/* Stubenrätsel: Jede Seite ist der Deckel einer Spielschachtel. Regeln im Brand Kit. */
@font-face { font-family: "Caprasimo"; src: url("fonts/Caprasimo-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("fonts/Vollkorn-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("fonts/Vollkorn-kursiv-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root { --senf: #ffc42e; --nacht: #17224f; --mohn: #e8352e; --tanne: #0d6b57; --rosa: #f7b5c6; --himmel: #3f8fd6; --schnee: #fff; --mohn-dunkel: #c2241f; --punktlinie: #4a5a95;
  --deckel: var(--senf); --titel: Caprasimo, "Cooper Black", Georgia, serif; --text: Vollkorn, Georgia, serif; --breite: 1120px; }
body.rosa { --deckel: var(--rosa); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--schnee); color: var(--nacht); font: 400 21px/1.45 var(--text); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--titel); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--himmel); outline-offset: 3px; }

/* Logo mit den Augen im ä */
.marke { font: 400 34px/1 var(--titel); color: var(--nacht); text-decoration: none; white-space: nowrap; }
.ae { position: relative; display: inline-block; }
.ae i { position: absolute; top: -.07em; width: .25em; height: .25em; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .035em var(--nacht); }
.ae i::after { content: ""; position: absolute; width: 54%; height: 54%; border-radius: 50%; background: var(--nacht); top: 14%; left: 38%; }
.ae i:first-of-type { left: .015em; } .ae i:last-of-type { right: .005em; }

/* Knöpfe */
.knopf, .btn--kauf { display: inline-block; background: var(--mohn); color: #fff; font: 400 24px/1 var(--titel); padding: 17px 30px; border-radius: 12px; border: 4px solid var(--nacht); box-shadow: 5px 5px 0 var(--nacht); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.knopf:hover, .btn--kauf:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--nacht); }
.btn--zweit { display: inline-block; background: var(--schnee); color: var(--nacht); font: 400 18px/1 var(--titel); padding: 12px 18px; border-radius: 10px; border: 3px solid var(--nacht); text-decoration: none; cursor: pointer; }
.preis { font: 400 27px/1 var(--titel); }
.kauf { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.klein { font-size: 16px; line-height: 1.35; }

/* Schachteldeckel */
.deckel { background: var(--deckel); padding: 22px; }
.rahmen { max-width: 1560px; margin: 0 auto; border: 7px solid var(--nacht); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.links { padding: 30px 44px 34px; display: flex; flex-direction: column; min-width: 0; }
.deckel-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.deckel-kopf nav { display: flex; gap: 22px; font-size: 18px; }
.deckel-kopf nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.deckel-kopf nav a:hover { border-color: var(--nacht); }
h1 { font-size: clamp(50px, 6.3vw, 86px); margin: 46px 0 24px; }
.einstieg { font-size: 24px; line-height: 1.38; max-width: 25em; margin-bottom: 30px; }
.links .klein { margin-top: 18px; max-width: 34em; }
.fenster { position: relative; margin: 26px 26px 0 0; border-radius: 320px 320px 0 0; overflow: hidden; border: 7px solid var(--nacht); border-bottom: 0; background: var(--nacht); min-height: 420px; }
.fenster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* Bänder */
.band { padding: 76px 22px; }
.innen { max-width: var(--breite); margin: 0 auto; }
h2 { font-size: clamp(38px, 4.6vw, 60px); margin-bottom: 34px; }
.nachtband { background: var(--nacht); color: #fff; }
.nachtband h2 { color: var(--senf); }
.weiss { background: var(--schnee); }
.rosaband { background: var(--rosa); }
.senfband { background: var(--senf); }

.fahrplan { max-width: 880px; }
.fahrplan div { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 13px 0; border-bottom: 2px dotted var(--punktlinie); align-items: baseline; }
.fahrplan b { font: 400 28px/1 var(--titel); color: var(--senf); font-variant-numeric: tabular-nums; }
.fahrplan div:last-child { border-bottom: 0; }
.fahrplan div:last-child span { font: 400 34px/1.1 var(--titel); color: var(--rosa); }

.umschlaege { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.umschlaege figure { margin: 0; min-width: 0; }
.umschlaege svg { display: block; width: 100%; height: auto; }
.umschlaege figcaption { font: 400 18px/1.15 var(--titel); margin-top: 10px; }
.umschlaege small { display: block; font: 400 15.5px/1.25 var(--text); margin-top: 4px; }

.seiten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.seiten figure { margin: 0; }
.seiten img { width: 100%; border: 4px solid var(--nacht); border-radius: 6px; background: #fff; }
.seiten figcaption { font-size: 18px; line-height: 1.3; margin-top: 10px; }

.zwei { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.zwei h2 { margin: 0; }
.zwei p + p { margin-top: 14px; }

.dateien { max-width: 880px; margin-top: 44px; }
.dateien div { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding: 14px 0; border-top: 3px solid var(--nacht); }
.dateien div:last-child { border-bottom: 3px solid var(--nacht); }
.dateien b { font: 400 21px/1.2 var(--titel); }

.fragen details { border-top: 3px solid var(--nacht); padding: 15px 0; max-width: 880px; }
.fragen details:last-of-type { border-bottom: 3px solid var(--nacht); }
.fragen summary { font: 400 24px/1.2 var(--titel); cursor: pointer; }
.fragen details p { margin-top: 8px; max-width: 38em; }

.schluss .rahmen { grid-template-columns: 1.2fr .8fr; min-height: 0; }
.schluss .links { padding: 42px 44px; }
.schluss h2 { margin-bottom: 14px; }
.schluss .links > p:not(.klein) { margin-bottom: 24px; max-width: 26em; }
.schluss .fenster { min-height: 340px; }

.naechstes { background: var(--tanne); color: #fff; padding-block: 52px; }
.naechstes .innen { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.naechstes h3 { font-size: 34px; color: var(--senf); margin-bottom: 6px; }
.naechstes a { font: 400 22px var(--titel); color: #fff; text-underline-offset: 5px; }

/* Fuß */
.fuss { background: var(--nacht); color: #fff; padding: 26px 22px; font-size: 16px; }
.fuss .seite { max-width: var(--breite); margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fuss .btn--zweit { font-size: 16px; padding: 9px 14px; border-color: #fff; }

/* Rechtstexte und Download */
.kopf { background: var(--senf); border-bottom: 5px solid var(--nacht); }
body.rosa .kopf { background: var(--rosa); }
.kopf .seite { max-width: var(--breite); margin: 0 auto; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 16px; }
.kopf nav a { font-size: 18px; }
main.seite { max-width: var(--breite); margin: 0 auto; padding: 0 22px; }
.recht { max-width: 760px; padding: 48px 0 64px; font-size: 19px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.recht h1 { font-size: clamp(30px, 8.4vw, 44px); margin: 0 0 24px; }
.recht h2 { font-size: clamp(23px, 6vw, 27px); margin: 34px 0 10px; }
.recht p { margin-bottom: 12px; }
.recht ol, .recht ul { padding-left: 24px; }
.recht li { margin-bottom: 8px; }
.platzhalter { background: #fff1a8; border-left: 5px solid var(--senf); padding: 12px 16px; font-size: 16px; margin-bottom: 24px; }
form.widerruf label { display: block; font: 400 18px var(--titel); margin: 16px 0 5px; }
form.widerruf input, form.widerruf textarea { width: 100%; font: 18px var(--text); color: var(--nacht); padding: 10px; border: 3px solid var(--nacht); border-radius: 8px; background: #fff; }
.zustimmung { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 28px; border: 5px solid var(--nacht); border-radius: 20px; box-shadow: 8px 8px 0 var(--nacht); background: var(--schnee); color: var(--nacht); font-size: 19px; }
.zustimmung::backdrop { background: rgba(23, 34, 79, .55); }
.zustimmung h2 { font-size: 30px; margin-bottom: 12px; }
.zustimmung p { margin: 0 0 16px; }
.zustimmung .haken { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; background: var(--senf); border-radius: 12px; border: 3px solid var(--nacht); cursor: pointer; }
.zustimmung .haken input { width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--nacht); }
.zustimmung .haken a { color: inherit; }
.zustimmung-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.zustimmung .knopf[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 5px 5px 0 var(--nacht); }
@media (max-width: 480px) { .zustimmung { padding: 20px; font-size: 17px; } .zustimmung h2 { font-size: 25px; } .zustimmung .knopf { font-size: 20px; padding: 14px 20px; } }
.einrichtung { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--nacht); color: #fff; padding: 12px 18px; font-size: 16px; width: max-content; max-width: 90vw; z-index: 20; border-radius: 8px; }

/* Kaufleiste auf dem Handy */
.kaufleiste { display: none; }

@media (max-width: 900px) {
  body { font-size: 19px; }
  body.mit-leiste { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .deckel { padding: 10px; }
  .rahmen, .schluss .rahmen { grid-template-columns: 1fr; border-width: 5px; border-radius: 18px; min-height: 0; }
  .links, .schluss .links { padding: 20px 20px 24px; }
  .deckel-kopf nav a:not(.immer) { display: none; }
  h1 { margin-top: 28px; }
  .einstieg { font-size: 21px; }
  .fenster, .schluss .fenster { margin: 0 14px; height: 400px; min-height: 0; border-width: 5px; border-bottom: 0; }
  .band { padding: 52px 18px; }
  .umschlaege { grid-template-columns: repeat(3, 1fr); }
  .seiten { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
  .seiten figure:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; }
  .seiten figcaption { font-size: 15.5px; }
  .zwei { grid-template-columns: 1fr; gap: 20px; }
  .dateien div { grid-template-columns: 1fr; gap: 4px; }
  .fahrplan div { grid-template-columns: 78px 1fr; gap: 12px; }
  .fahrplan b { font-size: 22px; }
  .marke { font-size: 30px; }
  .kaufleiste { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; justify-content: space-between; align-items: center; gap: 12px; background: var(--deckel); border-top: 4px solid var(--nacht); padding: 9px max(16px, env(safe-area-inset-right, 0px)) calc(9px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .kaufleiste .knopf { font-size: 20px; padding: 11px 20px; box-shadow: 3px 3px 0 var(--nacht); border-width: 3px; }
}
@media (max-width: 900px) { .deckel:not(.schluss) .kauf { display: none; } h1 + .einstieg { margin-bottom: 14px; } .deckel:not(.schluss) .links .klein { margin-top: 0; } }
@media (max-width: 480px) { .deckel-kopf nav { display: none; } .umschlaege { grid-template-columns: 1fr 1fr; } .umschlaege figure:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 8px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .knopf, .btn--kauf { transition: none; } }
