/* Revierkalender 2027/28 – Produktseite
   Schriften lokal eingebunden (keine Verbindung zu Google, DSGVO-freundlich) */

@font-face { font-family: "Kalender Sans"; src: url("fonts/sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Kalender Sans"; src: url("fonts/sans-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Kalender Sans"; src: url("fonts/sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Kalender Sans"; src: url("fonts/sans-700i.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --gruen: #1E3326;
  --gruen-hell: #2F4D39;
  --gruen-tief: #172A1F;
  --gold: #C9A54A;
  --salbei: #AFC08A;
  --gold-hell: #DDBE6C;
  --papier: #F3EDE0;
  --papier-dunkel: #E9E2CF;
  --linie: #D9D1BC;
  --tinte: #1B241D;
  --text: #3A463C;
  --text-leise: #5A6458;
  --hell-leise: #B9BFA9;
  --hell-text: #E7E2D3;
  --fehler: #B3261E;
  --ok: #2E6B3F;
  --kopf: "Kalender Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --text-font: "Kalender Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text-font); color: var(--tinte); background: var(--papier); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--gold-hell); }
:focus-visible { outline: 3px solid var(--gold-hell); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--gruen); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 4px; font: 700 16px/1 var(--text-font); text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn-gold { background: var(--gold); color: var(--gruen); border: 2px solid var(--gold); }
.btn-gold:hover { background: var(--gold-hell); border-color: var(--gold-hell); color: var(--gruen); }
.btn-gold, .btn-gold:hover { color: #14231A; }
.btn-line { background: transparent; color: var(--papier); border: 2px solid rgba(244,239,227,.45); }
.btn-line:hover { border-color: var(--papier); color: #fff; }
.btn-dark { background: var(--gruen); color: var(--papier); border: 2px solid var(--gruen); min-width: 200px; }
.btn-dark:hover { background: var(--gruen-hell); border-color: var(--gruen-hell); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Kopfzeile */
.kopf { background: var(--gruen); border-bottom: 1px solid rgba(201,165,74,.25); }
.kopf .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.marke { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--papier); font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.marke:hover { color: #fff; }
.kopf .btn { min-height: 44px; font-size: 15px; }

/* Hero */
.hero { background: radial-gradient(ellipse 60% 70% at 72% 45%, var(--gruen-hell) 0%, var(--gruen) 70%); color: var(--papier); overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-text { flex: 1 1 380px; min-width: 0; max-width: 520px; }
/* Titelfeld wie auf dem Kalender-Deckblatt */
.titelfeld { position: relative; container-type: inline-size; background: rgba(30,51,38,.92); border: 2px solid var(--gold); border-radius: 18px; padding: 52px 32px 30px; text-align: center; margin-top: 44px; }
.titelfeld .siegel { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); }
.unterzeile { display: block; line-height: 1.4; margin: 14px 0 0; font-size: clamp(12px, 1.5vw, 15px); letter-spacing: .32em; font-weight: 700; color: #fff; }
.zeitraum { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: var(--papier); }
.trenner { display: block; width: 72px; height: 3px; background: var(--gold); margin: 14px auto 0; border: 0; }
.motto { margin: 14px 0 0; font-style: italic; font-size: 19px; line-height: 1.45; color: var(--papier); }
.gruss { margin: 8px 0 0; font-weight: 700; font-size: 15px; color: var(--gold); }
.hero h1 { margin: 0; font-family: var(--kopf); font-size: 36px; font-size: min(58px, 9cqi); line-height: 1.12; font-weight: 700; color: #fff; }
.hero h1 .jahr { white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--salbei); font-size: .82em; margin-top: 4px; }
.hero h1 .jahr::before, .hero h1 .jahr::after { content: ""; width: min(56px, 9cqi); height: 5px; background: var(--gold); flex: none; }
.lead { margin: 32px 0 0; font-size: 19px; line-height: 1.6; color: var(--hell-text); max-width: 34em; }
.fakten { margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; border-top: 1px solid rgba(201,165,74,.35); padding-top: 20px; }
.fakten dt { font-size: 14px; color: var(--hell-leise); }
.fakten dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Hängender Kalender */
.kalender { scroll-margin-top: 16px; flex: 1 1 480px; min-width: 0; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.aufhaengung { display: block; }
.objekt { width: 100%; filter: drop-shadow(0 28px 34px rgba(0,0,0,.45)) drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.stapel { position: relative; width: 100%; aspect-ratio: 1587 / 1123; background: var(--papier); perspective: 1800px; }
.stapel.oben { border-radius: 2px 2px 0 0; }
.stapel.unten { border-radius: 0 0 2px 2px; }
.blatt { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .65s cubic-bezier(.3,.7,.2,1), opacity .45s ease; }
.blatt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.oben .blatt { transform-origin: 50% 100%; }
.unten .blatt { transform-origin: 50% 0%; }
.oben .blatt.umgeblaettert { transform: rotateX(-100deg); opacity: 0; }
.unten .blatt.umgeblaettert { transform: rotateX(100deg); opacity: 0; }
/* Wire-O-Bindung wie beim echten Klappkalender */
.bindung { position: relative; z-index: 60; height: 12px; transition: opacity .4s ease 1.15s, transform .4s cubic-bezier(.3,.7,.2,1) 1.15s; transform-origin: 50% 0; }
/* Zugeklappt: keine Bindung unter dem Deckblatt – sie erscheint erst beim Aufklappen */
.js .objekt:not(.offen) .bindung { opacity: 0; transform: scaleY(.2); transition-delay: 0s, 0s; }
.bindung svg { position: absolute; left: 2.5%; width: 95%; top: -11px; height: 34px; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
/* Messing-Nagel */
.nagel { position: relative; z-index: 70; margin-bottom: -7px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
/* Unterteil klappt beim Öffnen herunter */
.unterteil { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .9s cubic-bezier(.45,.05,.25,1) .15s; }
.js .objekt:not(.offen) .unterteil { transition-delay: .55s; }
.unterteil-innen { min-height: 0; overflow: hidden; }
.js .objekt:not(.offen) .unterteil { grid-template-rows: 0fr; }
.js .objekt:not(.offen) .stapel.oben { cursor: pointer; }
/* Deckblatt klappt an der Bindung nach UNTEN um:
   1. Hälfte: Deckblatt kippt nach vorn bis waagerecht
   2. Hälfte: Rückseite (Kalenderblatt April) schwingt unten herunter */
.oben .blatt.deckblatt { transition: transform .6s cubic-bezier(.55,0,.85,.4) .6s, opacity 0s linear .6s; }
.oben .blatt.deckblatt.umgeblaettert { transform: rotateX(-90deg); opacity: 0; transition: transform .6s cubic-bezier(.55,0,.85,.4) 0s, opacity 0s linear .6s; }
.klappe { position: absolute; inset: 0; z-index: 50; transform-origin: 50% 0%; transform: none; opacity: 0; transition: transform .65s cubic-bezier(.15,.6,.35,1) .6s, opacity 0s linear 1.25s; }
.klappe img { display: block; width: 100%; height: 100%; object-fit: cover; }
.js .objekt:not(.offen) .klappe { transform: rotateX(90deg); opacity: 1; transition: transform .6s cubic-bezier(.55,0,.85,.4) 0s, opacity 0s linear 0s; }
/* Fokus beim Laden: Text tritt zurück, Kalender rückt nach vorn */
.hero-text, .objekt, .blaettern, .bildunterschrift { transition: opacity .7s ease, transform .7s ease, filter .7s ease; }
.js .hero.fokus .hero-text { opacity: .28; filter: blur(1px); }
.js .hero.fokus .objekt { transform: scale(1.04); }
.js .hero.fokus .blaettern, .js .hero.fokus .bildunterschrift { opacity: 0; }
.blaettern { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; justify-content: center; margin-top: 28px; width: 100%; }
.reiter .kurz { display: none; }
.reiter { min-height: 44px; padding: 0 16px; white-space: nowrap; border-radius: 999px; border: 1.5px solid rgba(201,165,74,.5); background: transparent; color: var(--papier); font: 600 15px/1 var(--text-font); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.reiter:hover { border-color: var(--gold); }
.reiter[aria-pressed="true"] { background: var(--gold); color: var(--gruen); border-color: var(--gold); }
.pfeil { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(201,165,74,.5); background: transparent; color: var(--papier); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pfeil:hover { border-color: var(--gold); }
.bildunterschrift { margin: 14px 0 0; font-size: 15px; color: var(--hell-leise); text-align: center; }

/* Inhalt */
.inhalt .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 96px; padding-bottom: 96px; }
.inhalt-text { flex: 1 1 420px; min-width: 0; max-width: 560px; }
h2 { margin: 0; font-family: var(--kopf); font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; font-weight: 700; color: var(--gruen); }
/* Kopfbalken wie auf den Kalenderseiten */
.balken { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; justify-content: space-between; background: var(--gruen); color: #fff; border-radius: 6px; padding: 16px 24px; border-bottom: 3px solid var(--gold); }
.balken h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .01em; text-transform: uppercase; }
.balken p { margin: 0; color: var(--gold); font-weight: 700; font-style: italic; font-size: 15px; }
/* Symbole im Ring wie auf dem Deckblatt */
.ring { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--gruen-hell); box-shadow: 0 0 0 3px var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.ring::after { content: ""; position: absolute; inset: 4px; border: 1px solid #E9E2CF; border-radius: 50%; }
.ring svg { width: 34px; height: 34px; fill: var(--papier); }
.siegel.ring { width: 78px; height: 78px; background: var(--gruen); box-shadow: 0 0 0 5px var(--gold); }
.siegel.ring svg { width: 46px; height: 46px; fill: var(--gold); }
.logo.ring { width: 40px; height: 40px; background: var(--gruen); box-shadow: 0 0 0 2px var(--gold); }
.logo.ring::after { inset: 3px; }
.logo.ring svg { width: 26px; height: 26px; fill: var(--gold); }
.absatz { margin: 20px 0 0; font-size: 18px; line-height: 1.65; color: var(--text); max-width: 34em; }
.blattbild { margin: 36px 0 0; }
.blattbild img { display: block; width: 100%; max-width: 531px; border-radius: 2px; box-shadow: 0 18px 30px rgba(31,53,39,.22), 0 2px 4px rgba(31,53,39,.18); }
figcaption.klein { margin-top: 12px; font-size: 14px; color: var(--text-leise); }
.themen { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.themen li { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--linie); }
.themen li:last-child { border-bottom: 0; }
.themen .ring { margin-top: 2px; }
.themen h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--gruen); }
.themen p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--text); }

/* Extras */
.extras { background: var(--papier-dunkel); }
.extras .wrap { padding-top: 88px; padding-bottom: 88px; }

.extras-raster { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.extras figure { margin: 0; }
.extras img { display: block; width: 100%; border-radius: 2px; box-shadow: 0 10px 20px rgba(31,53,39,.18); }
.extras figcaption { margin-top: 16px; }
.extras strong { display: block; font-size: 18px; color: var(--gruen); }
.extras figcaption span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--text); }

/* Kontakt */
.kontakt { background: var(--gruen); color: var(--papier); }
.kontakt .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 96px; padding-bottom: 96px; }
.kontakt-text { flex: 1 1 320px; min-width: 0; max-width: 440px; }
.kontakt h2 { color: var(--papier); }
.kontakt .absatz { color: var(--hell-text); }
.direkt { margin: 28px 0 0; font-size: 16px; line-height: 1.6; color: var(--hell-leise); }
.direkt a { font-size: 18px; font-weight: 600; }
.formkarte { flex: 1 1 460px; min-width: 0; max-width: 620px; background: var(--papier); color: var(--tinte); border-radius: 6px; padding: 32px; }
.formular { display: flex; flex-direction: column; gap: 20px; position: relative; }
.formular label.titel { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feld { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 4px; border: 1.5px solid #8E9A86; background: #FBF8F1; color: var(--tinte); font: 400 16px/1.5 var(--text-font); }
.feld:focus-visible { outline-color: var(--gruen); }
.feld[aria-invalid="true"] { border-color: var(--fehler); }
textarea.feld { resize: vertical; }
.feld.kurz { max-width: 160px; }
.hilfe { margin: 6px 0 0; font-size: 14px; color: var(--text-leise); }
.fehler { margin: 6px 0 0; font-size: 14px; color: var(--fehler); }
.fehler:empty { display: none; }
.zustimmung { display: flex; gap: 12px; align-items: flex-start; }
.zustimmung input { width: 22px; height: 22px; accent-color: var(--gruen); margin: 2px 0 0; flex: none; }
.zustimmung label { font-size: 15px; line-height: 1.5; color: var(--text); }
.zustimmung a { color: var(--gruen); font-weight: 600; }
.zustimmung + .fehler { margin-left: 34px; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { display: flex; gap: 16px; align-items: flex-start; padding: 8px 0; }
.meldung h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--gruen); }
.meldung p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.serverfehler { margin: 0; padding: 12px 14px; border-radius: 4px; background: #F9E3E1; color: #7A1A14; font-size: 15px; line-height: 1.5; }
.serverfehler:empty { display: none; }
[hidden] { display: none !important; }

/* Fuß */
.fuss { background: var(--gruen-tief); color: var(--hell-leise); }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; font-size: 15px; line-height: 1.6; }
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 24px; align-items: flex-start; }
.fuss .hinweis { max-width: 32em; }

/* Rechtliche Unterseiten */
.rechtstext .wrap { max-width: 760px; padding-top: 64px; padding-bottom: 80px; }
.rechtstext h1 { font-family: var(--kopf); font-size: clamp(32px, 4vw, 44px); color: var(--gruen); margin: 0 0 24px; letter-spacing: -.015em; }
.rechtstext h2 { font-size: 22px; margin: 36px 0 8px; }
.rechtstext p, .rechtstext li { font-size: 17px; line-height: 1.65; color: var(--text); }
.rechtstext a { color: var(--gruen); font-weight: 600; }
.platzhalter { background: #FFF3C4; padding: 0 4px; }

@media (max-width: 520px) {
  .kopf { display: none; }
  .rechtstext-seite .kopf { display: block; }
  .blaettern { gap: 6px; margin-top: 20px; }
  .reiter { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 15px; }
  .reiter .lang { display: none; }
  .reiter .kurz { display: inline; }
  .pfeil { width: 44px; height: 44px; }
  .bildunterschrift { font-size: 14px; }
  .hero .wrap { gap: 40px; }
  .inhalt .wrap, .kontakt .wrap { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .extras .wrap { padding-top: 56px; padding-bottom: 64px; }
  .balken { padding: 12px 16px; }
  .balken h2 { font-size: 20px; }
  .absatz, .lead { font-size: 17px; }
  .titelfeld { padding: 50px 18px 26px; }
  .unterzeile { letter-spacing: .2em; }
  .fakten { grid-template-columns: 1fr; }
  .formkarte { padding: 22px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blatt, .btn, .reiter, .unterteil, .klappe, .bindung, .hero-text, .objekt, .blaettern, .bildunterschrift { transition: none; }
  .js .hero.fokus .objekt { transform: none; }
}

/* v9: Eckdaten, April-Vorschau, Großansicht */
.eckdaten { margin: 20px 0 0; font-size: 16px; font-weight: 700; color: var(--salbei); }
.aktionen { margin-top: 28px; }
.april-paar { display: flex; flex-direction: column; gap: 6px; margin-top: 32px; max-width: 531px; }
.april-paar .blattbild { margin: 0; }
.april-paar .blattbild + .blattbild { margin-top: 18px; }
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 2px; }
.zoom img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 18px 30px rgba(31,53,39,.22), 0 2px 4px rgba(31,53,39,.18); }
.lupe { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(30,51,38,.88); color: #fff; box-shadow: 0 0 0 2px var(--gold); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.zoom:hover .lupe { transform: scale(1.08); }
.hinweis-april { margin: 28px 0 0; padding: 14px 18px; border-left: 4px solid var(--gold); background: #FBF8F1; font-size: 17px; line-height: 1.55; color: var(--gruen); font-weight: 700; max-width: 531px; }
.optional { font-weight: 400; color: var(--text-leise); }
.grossansicht { width: min(96vw, 1400px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 4px; background: var(--papier); overflow: auto; }
.grossansicht::backdrop { background: rgba(10,18,13,.85); }
.grossansicht img { display: block; width: 100%; height: auto; }
.schliessen { position: sticky; top: 10px; float: right; margin: 10px 10px -54px 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gruen); color: #fff; box-shadow: 0 0 0 2px var(--gold); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
