/* Gemeinsames Aussehen der Blog-Einzelseiten (/blog/<slug>/), gebaut von tools/build-blog-pages.js nach blog/seiten.css.
   Farben wie die Startseite: Schwarz #0A0A0A, Rot #E10000, weisser Grund. Schriften nur lokal (assets/fonts), keine externen Ressourcen.
   Pfade zu den Schriften sind relativ zu dieser Datei (blog/seiten.css -> ../assets/fonts/). Kein backdrop-filter, keine Animationen. */
@font-face { font-family: "Asap Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/asap-condensed-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Asap Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/asap-condensed-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-variable.woff2") format("woff2"); }

:root {
  --ink: #0A0A0A; --red: #E10000; --red-hover: #FF1A1A; --link: #C40000; --muted: #555555; --line: #DADADA;
  --display: "Asap Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.75 var(--sans); overflow-x: hidden; overflow-wrap: anywhere; }
@supports (overflow: clip) { body { overflow-x: clip; } }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .knopf:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: #fff; color: #000; padding: 8px 12px; }
.spalte { width: min(740px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* Kopf */
.kopf { border-bottom: 3px solid var(--red); background: #fff; }
.kopf .spalte { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: block; flex: 0 1 auto; min-width: 0; }
.logo img { display: block; width: 150px; max-width: 100%; height: auto; }
.alle { font: 600 16px/1.2 var(--display); letter-spacing: .02em; color: var(--ink); text-decoration: none; padding: 12px 0 12px 12px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.alle:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }

/* Beitrag */
main { padding-block: clamp(28px, 6vw, 56px) 0; }
.titel .datum { margin: 0 0 8px; font: 500 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; margin: 1.6em 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); line-height: 1.08; margin: 0 0 .6em; }
.text h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.text h3 { font-size: clamp(1.4rem, 4vw, 1.7rem); }
.text h4, .text h5, .text h6 { font-size: 1.25rem; }
.text p { margin: 0 0 1.1em; }
.text ul, .text ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.text li { margin-bottom: .35em; }
.text blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1em; border-left: 4px solid var(--red); color: #333; }
.text figure, .text .wp-caption { margin: 1.6em 0; max-width: 100%; }
.text img, .hero img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.hero { margin: 0 0 1.6em; }
.hero img { width: 100%; }
figcaption, .wp-caption-text, .gallery-caption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.text .alignleft, .text .alignright, .text .aligncenter, .text .alignnone { float: none; margin-inline: auto; max-width: 100%; }
.text .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 1.6em 0; }
.text .gallery figure, .text .gallery .gallery-item { margin: 0; width: auto; max-width: 100%; }
.text .gallery img { width: 100%; }
.text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.1em; }
.text th, .text td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.text pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f4f4; padding: 12px; }
.text iframe, .text video, .text embed, .text object { max-width: 100%; }
.text hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Vor/Zurueck */
.nachbarn { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 48px 0 0; }
.nachbarn a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: 14px 16px; min-height: 44px; }
.nachbarn a:hover { border-color: var(--red); }
.nachbarn span { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.nachbarn strong { display: block; font: 600 1.15rem/1.25 var(--display); }
.nachbarn .neu { text-align: right; }
@media (min-width: 640px) { .nachbarn { grid-template-columns: 1fr 1fr; } }

/* Anfrage-Kasten */
.kasten { margin: 40px 0 0; padding: 24px clamp(18px, 4vw, 32px); background: var(--ink); color: #fff; }
.kasten p { margin: 0 0 14px; }
.kasten-titel { font: 700 clamp(1.7rem, 5vw, 2.2rem)/1.1 var(--display); margin-bottom: 8px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 22px; background: var(--red); color: #fff; border: 2px solid var(--red); font: 600 17px/1 var(--display); letter-spacing: .02em; text-decoration: none; }
.knopf:hover { background: var(--red-hover); border-color: var(--red-hover); }
.kasten .knopf:focus-visible { outline-color: #fff; }
.alle-unten { margin: 28px 0 0; padding-bottom: 48px; }
.alle-unten a { display: inline-block; padding: 10px 0; }

/* Fuss */
.fuss { background: var(--ink); color: #fff; border-top: 3px solid var(--red); padding-block: 24px; font-size: 15px; }
.fuss p { margin: 0 0 8px; font-weight: 600; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.fuss a { color: #fff; display: inline-block; padding: 10px 0; min-height: 44px; }
.fuss a:hover { color: #FF5A5A; }
