/* Verlagsanstalt Niederrhein – Verlagsseite
   Schriften lokal (SIL OFL 1.1), keine externen Dienste. */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("../fonts/source-sans-pro-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("../fonts/source-sans-pro-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("../fonts/source-sans-pro-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("../fonts/source-sans-pro-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --papier: #eef1f3;
  --flaeche: #ffffff;
  --tinte: #0f1e2c;
  --text: #25333f;
  --leise: #586572;
  --linie: #cfd7de;
  --petrol: #0f3b57;
  --petrol-tief: #0a2a3f;
  --signal: #f2b705;
  --fokus: #f2b705;
  --breite: 72rem;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--papier); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--tinte); line-height: 1.08; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.4rem; color: var(--tinte); }
p { margin: 0 0 1rem; }

.rahmen { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.schmal { max-width: 40rem; }
.leise { color: var(--leise); }
.klein { font-size: 0.9rem; color: var(--leise); }
.gross { font-size: 1.3rem; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--tinte); color: #fff; padding: 0.5rem 0.9rem; z-index: 50; }
.skip:focus { top: 1rem; }

/* Kopf */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.logo img { width: 12.5rem; }
.kopf ul { list-style: none; margin: 0; padding: 0; }
.kopf nav a { color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.kopf nav a:hover, .kopf nav a[aria-current="page"] { color: var(--petrol); box-shadow: inset 0 -2px 0 var(--signal); }
.menue-breit { display: none; }
.menue summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--tinte); padding: 0.45rem 0.9rem; border: 1px solid var(--linie); border-radius: 4px; }
.menue summary::-webkit-details-marker { display: none; }
.menue[open] summary { background: var(--papier); }
.menue nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 0.5rem 1.25rem 1rem; }
.menue nav li a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--papier); }
@media (min-width: 62rem) {
  .menue { display: none; }
  .menue-breit { display: block; }
  .menue-breit ul { display: flex; gap: 1.75rem; }
  .menue-breit a { padding: 0.35rem 0; }
}

/* Knöpfe */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.6rem 1.15rem; border: 2px solid var(--petrol); border-radius: 4px; font-weight: 700; color: var(--petrol); text-decoration: none; background: transparent; line-height: 1.2; text-align: center; }
.knopf:hover { background: var(--petrol); color: #fff; }
.knopf-voll { background: var(--petrol); color: #fff; }
.knopf-voll:hover { background: var(--petrol-tief); border-color: var(--petrol-tief); }
.textlink { font-weight: 700; }

/* Bühne mit Regal */
.buehne { background: var(--petrol); color: #e8eef3; overflow: hidden; }
.buehne-raster > * { min-width: 0; }
.buehne-text { position: relative; z-index: 1; }
.buehne-raster { display: grid; gap: 2.5rem; padding: 3.5rem 0 3rem; align-items: center; }
.buehne h1 { color: #fff; max-width: 12ch; }
.buehne-lead { font-size: 1.2rem; line-height: 1.55; max-width: 34rem; }
.buehne .knopf { border-color: #fff; color: #fff; }
.buehne .knopf:hover { background: #fff; color: var(--petrol); }
.buehne .knopf-voll { background: var(--signal); border-color: var(--signal); color: var(--tinte); }
.buehne .knopf-voll:hover { background: #ffd24a; border-color: #ffd24a; color: var(--tinte); }
.regal { list-style: none; margin: 0; padding: 0 0 0.5rem; display: flex; align-items: flex-end; max-width: 36rem; width: 100%; }
.regal li { flex: 0 0 auto; width: 20.5%; margin-left: -4.6%; transform: rotate(calc((var(--i) - 2.5) * 2.2deg)) translateY(calc(var(--i) * 0.35rem)); transform-origin: bottom center; animation: einreihen 0.7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms); }
.regal li:first-child { margin-left: 0; }
.regal img { border-radius: 2px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.25); }
@keyframes einreihen { from { opacity: 0; transform: translateY(3rem) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .regal li { animation: none; } }
@media (min-width: 56rem) {
  .buehne-raster { grid-template-columns: 1.05fr 1fr; padding: 5rem 0 4.5rem; }
  .regal { margin-left: auto; }
}

/* Reihen auf der Startseite */
.reihe { padding: 4rem 0 1rem; }
.reihe + .reihe { padding-top: 2rem; }
.reihe-kopf { display: grid; gap: 0 3rem; margin-bottom: 1.5rem; }
.reihe-kopf p:last-child { max-width: 40rem; }
.reihe-ziel { font-weight: 700; color: var(--petrol); margin-bottom: 0.4rem; }
@media (min-width: 56rem) { .reihe-kopf { grid-template-columns: 1fr 1.3fr; } .reihe-kopf h2 { grid-row: span 2; } }
.titelliste { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; background: var(--flaeche); border: 1px solid var(--linie); }
.titelzeile { display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem 1.5rem; padding: 1.4rem 1.25rem; border-top: 1px solid var(--linie); border-left: 6px solid var(--fach); }
.titelzeile:first-child { border-top: 0; }
.titelzeile-cover img { box-shadow: 0 6px 14px -6px rgba(15,30,44,.45); }
.titelzeile h3 a { color: var(--tinte); text-decoration: none; }
.titelzeile h3 a:hover { text-decoration: underline; }
.titelzeile-text p:last-child { margin-bottom: 0; }
.titelzeile-kauf { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.titelzeile-kauf .preis { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--tinte); }
@media (min-width: 56rem) {
  .titelzeile { grid-template-columns: 6.5rem 1fr 15rem; align-items: start; padding: 1.6rem 1.75rem; }
  .titelzeile-kauf { grid-column: auto; flex-direction: column; align-items: stretch; }
  .titelzeile-kauf .preis { text-align: left; }
}
.band { font-weight: 700; color: var(--fach, var(--petrol)); margin: 0 0 0.2rem; font-size: 0.95rem; }
.marke { display: inline-block; margin: 0.4rem 0 0; padding: 0.15rem 0.6rem; background: #fff4cc; color: #5c4600; border-left: 3px solid var(--signal); font-weight: 700; font-size: 0.92rem; }

/* Prinzip und Autor */
.prinzip { padding: 4.5rem 0 3.5rem; }
.prinzip-raster { display: grid; gap: 2rem; margin-top: 1.75rem; }
.prinzip-raster > div { border-top: 3px solid var(--petrol); padding-top: 1rem; }
@media (min-width: 56rem) { .prinzip-raster { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.autor { background: var(--flaeche); border-top: 1px solid var(--linie); padding: 3.5rem 0; }
.autor-raster { display: grid; gap: 1rem 3rem; }
.autor h2 { max-width: 18ch; }
@media (min-width: 56rem) { .autor-raster { grid-template-columns: 1fr 1.2fr; } }

/* Unterseiten */
.seitenkopf { padding: 3.5rem 0 1.5rem; }
.seitenkopf p { font-size: 1.15rem; }
.programm-reihe { padding: 1.5rem 0 3rem; border-top: 1px solid var(--linie); }
.kacheln { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 2rem 1.5rem; }
.kachel a { display: block; text-decoration: none; color: var(--tinte); }
.kachel img { border-bottom: 5px solid var(--fach); box-shadow: 0 10px 20px -10px rgba(15,30,44,.5); margin-bottom: 0.75rem; }
.kachel a:hover img { transform: translateY(-3px); }
.kachel-band { display: block; font-size: 0.9rem; color: var(--leise); }
.kachel-titel { display: block; font-weight: 700; line-height: 1.3; }
.kachel a:hover .kachel-titel { text-decoration: underline; }

.titel { padding: 2rem 0 4rem; }
.brotkrumen { font-size: 0.95rem; color: var(--leise); }
.titel-raster { display: grid; gap: 2rem 3.5rem; margin-top: 1rem; }
.titel-cover img { width: min(100%, 22rem); box-shadow: 0 24px 40px -18px rgba(15,30,44,.6); border-bottom: 6px solid var(--fach); }
@media (min-width: 56rem) { .titel-raster { grid-template-columns: 20rem 1fr; } .titel-cover { position: sticky; top: 6.5rem; align-self: start; } }
.titel h1 { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.3rem); }
.titel h2 { font-size: 1.7rem; margin-top: 2.25rem; }
.untertitel { color: var(--leise); font-size: 1.05rem; max-width: 42rem; }
.lead { font-size: 1.2rem; max-width: 42rem; }
.haken { list-style: none; padding: 0; margin: 0; max-width: 42rem; }
.haken li { position: relative; padding: 0.55rem 0 0.55rem 1.9rem; border-bottom: 1px solid var(--linie); }
.haken li::before { content: ""; position: absolute; left: 0.2rem; top: 0.95rem; width: 0.75rem; height: 0.4rem; border-left: 3px solid var(--fach); border-bottom: 3px solid var(--fach); transform: rotate(-45deg); }
.hinweis { margin-top: 1rem; padding: 0.8rem 1rem; background: var(--flaeche); border-left: 4px solid var(--fach, var(--petrol)); max-width: 42rem; }
table { border-collapse: collapse; }
.daten, .formate { width: 100%; max-width: 42rem; margin-bottom: 1rem; }
.daten th, .daten td, .formate th, .formate td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.daten th, .formate th { width: 11rem; font-weight: 600; color: var(--leise); }
.formate td { font-weight: 700; color: var(--tinte); }
.formate td.leise { font-weight: 400; color: var(--leise); }
.kasten { background: var(--flaeche); border: 1px solid var(--linie); padding: 1.5rem; margin: 2rem 0 1rem; max-width: 42rem; }
.kasten h2 { margin-top: 0; font-size: 1.6rem; }

.bonusliste { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.bonuszeile { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem 1.5rem; align-items: center; background: var(--flaeche); border: 1px solid var(--linie); border-left: 6px solid var(--fach); padding: 1.1rem 1.25rem; margin-bottom: 0.9rem; }
.bonuszeile h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.bonuszeile p { margin-bottom: 0.3rem; }
.bonuszeile .knopf { grid-column: 1 / -1; }
@media (min-width: 48rem) { .bonuszeile { grid-template-columns: 5rem 1fr auto; } .bonuszeile .knopf { grid-column: auto; } }

.korrektur { background: var(--flaeche); border: 1px solid var(--linie); border-top: 5px solid var(--fach); padding: 1.5rem; margin-bottom: 1.5rem; scroll-margin-top: 6rem; }
.korrektur h2 { font-size: 1.6rem; }
.tabelle-scroll { overflow-x: auto; }
.liste { width: 100%; min-width: 32rem; }
.liste th, .liste td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--linie); }

.text-raster, .fliesstext { max-width: 44rem; padding-bottom: 4rem; }
.fliesstext h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.fliesstext address { font-style: normal; margin-bottom: 1rem; }
.kontakt-raster { display: grid; gap: 1.5rem; }
.kontakt-raster .kasten { margin: 0; }
@media (min-width: 56rem) { .kontakt-raster { grid-template-columns: 1.3fr 1fr; } }

/* Fuß */
.fuss { background: var(--tinte); color: #c9d3dc; margin-top: 2rem; font-size: 0.98rem; }
.fuss a { color: #fff; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.35rem; }
.fuss-raster { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
.fuss-name { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 0.5rem; }
.fuss-kopf { font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.fuss-zeile { border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0 1.5rem; font-size: 0.9rem; }
.fuss-zeile p { margin: 0; }
@media (min-width: 48rem) { .fuss-raster { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Fachfarben und Regal – erzeugt von build.py */
.fach-zib { --fach: #0f7189; }
.fach-bwh { --fach: #0f7a66; }
.fach-rbh { --fach: #b3261e; }
.fach-mikp { --fach: #6d28d9; }
.fach-ntg { --fach: #c2560f; }
.fach-chemikant-tap1 { --fach: #d99a00; }
.regal li:nth-child(1) { --i: 0; }
.regal li:nth-child(2) { --i: 1; }
.regal li:nth-child(3) { --i: 2; }
.regal li:nth-child(4) { --i: 3; }
.regal li:nth-child(5) { --i: 4; }
.regal li:nth-child(6) { --i: 5; }
.regal li:nth-child(7) { --i: 6; }
.regal li:nth-child(8) { --i: 7; }
