:root {
  --ink: #123f5c;
  --ink-soft: #315f76;
  --paper: #fffaf0;
  --cream: #f5ead4;
  --cream-deep: #ead9b8;
  --ochre: #dda134;
  --orange: #c76a32;
  --green: #5f846d;
  --blue: #4a7896;
  --shadow: 0 24px 70px rgba(53, 54, 37, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 15% 10%, rgba(221,161,52,.12), transparent 28rem), linear-gradient(180deg, var(--paper), #fff 60%);
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; border-radius: .6rem; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  min-height: 78px; padding: .8rem clamp(1.25rem,5vw,5rem);
  border-bottom: 1px solid rgba(18,63,92,.09); background: rgba(255,250,240,.9); backdrop-filter: blur(16px);
}
.wordmark { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .55rem; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.wordmark small { grid-column: 2; margin-top: .32rem; color: var(--ink-soft); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wordmark-dot { grid-row: 1 / span 2; width: 1.9rem; aspect-ratio: 1; border-radius: 40% 60% 55% 45%; background: var(--ochre); transform: rotate(12deg); box-shadow: inset 0 0 0 5px rgba(255,255,255,.3); }
.site-header nav { justify-self: center; display: flex; align-items: center; gap: 1.8rem; font-size: .92rem; font-weight: 700; }
.site-header nav a { padding: .5rem .2rem; }
.site-header nav a:hover { color: var(--orange); }
.site-header .nav-cta { padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: white; }
.site-header .nav-cta:hover { color: white; background: var(--orange); }
.language-switch { display: flex; gap: .35rem; align-items: center; font-size: .8rem; font-weight: 800; }
.language-switch button { appearance: none; border: 0; padding: .3rem; background: transparent; color: #7d8c91; cursor: pointer; }
.language-switch button.active { color: var(--ink); text-decoration: underline; text-underline-offset: .22rem; }

.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.9fr);
  align-items: center; gap: clamp(3rem,7vw,8rem); min-height: calc(100svh - 78px);
  padding: clamp(4rem,8vw,8rem) clamp(1.25rem,7vw,8rem);
}
.hero::after { content: ""; position: absolute; right: -8rem; bottom: -12rem; width: 40rem; aspect-ratio: 1; border-radius: 50%; background: rgba(95,132,109,.10); z-index: -1; }
.hero-copy { max-width: 710px; }
.eyebrow { margin: 0 0 .85rem; color: var(--orange); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin-bottom: 1.4rem; font-size: clamp(3.2rem,6.5vw,6.6rem); line-height: .98; letter-spacing: -.055em; }
.hero-intro { max-width: 650px; color: var(--ink-soft); font-size: clamp(1.1rem,1.6vw,1.35rem); line-height: 1.7; }
.delivery-pill { display: inline-flex; align-items: center; gap: .65rem; margin: .6rem 0 1.6rem; padding: .65rem 1rem; border-radius: 999px; background: #efe3c9; font-size: .88rem; font-weight: 750; }
.delivery-pill span:first-child { color: var(--orange); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 999px; padding: .72rem 1.35rem; font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18,63,92,.15); }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: rgba(255,255,255,.6); }
.microcopy { margin-top: 1.1rem; color: #61757e; font-size: .78rem; }

.book-fan { position: relative; min-height: 570px; }
.fan-book { position: absolute; top: 50%; left: 50%; width: min(310px,54%); border: 9px solid white; border-radius: 8px; box-shadow: var(--shadow); }
.fan-book-1 { transform: translate(-108%,-47%) rotate(-10deg); }
.fan-book-2 { z-index: 2; transform: translate(-50%,-53%) rotate(0deg); }
.fan-book-3 { z-index: 1; transform: translate(8%,-45%) rotate(10deg); }
.spark { position: absolute; z-index: 4; display: grid; place-items: center; width: 55px; aspect-ratio: 1; border-radius: 16px; background: var(--ochre); color: white; box-shadow: 0 12px 30px rgba(73,57,31,.17); }
.piece-one { left: 6%; bottom: 10%; transform: rotate(-11deg); }
.piece-two { right: 2%; top: 12%; background: var(--blue); transform: rotate(13deg); }

.section { padding: clamp(5rem,8vw,8rem) clamp(1.25rem,7vw,8rem); }
.section-heading { max-width: 760px; margin-bottom: 3.2rem; }
.section h2 { margin-bottom: 1rem; font-size: clamp(2.4rem,5vw,4.7rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p:last-child, .language-copy > p:last-child, .preorder-intro > p { color: var(--ink-soft); font-size: 1.1rem; }
.stories { background: white; }
.book-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.book-card { overflow: hidden; border: 1px solid rgba(18,63,92,.11); border-radius: 28px; background: var(--paper); box-shadow: 0 16px 48px rgba(31,48,48,.08); }
.cover-wrap { position: relative; padding: 2rem 2rem 0; }
.cover-wrap img { width: 100%; border-radius: 5px; box-shadow: 0 16px 34px rgba(45,42,29,.18); transition: transform .25s ease; }
.book-card:hover .cover-wrap img { transform: translateY(-5px) rotate(-1deg); }
.book-number { position: absolute; top: .8rem; right: 1rem; z-index: 2; font-size: 2rem; font-weight: 900; color: rgba(18,63,92,.20); }
.book-card-copy { padding: 1.8rem 2rem 2.2rem; }
.book-card h3 { margin-bottom: .55rem; font-size: 1.45rem; line-height: 1.2; }
.book-card .subtitle { min-height: 3.6em; color: var(--orange); font-weight: 800; font-size: .86rem; line-height: 1.45; }
.book-card-copy > p:last-child { color: var(--ink-soft); font-size: .95rem; }
.book-card.blue { background: #f1f6f8; }
.book-card.green { background: #f1f5ef; }

.language-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(3rem,8vw,8rem); background: var(--cream); }
.language-lists { display: grid; gap: 1rem; }
.language-card { position: relative; padding: 1.7rem; border-radius: 24px; background: rgba(255,255,255,.75); border: 1px solid rgba(18,63,92,.10); }
.language-card h3 { margin: 0 0 1rem 1.4rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.status-dot { position: absolute; top: 2rem; left: 1.7rem; width: .65rem; aspect-ratio: 1; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(95,132,109,.12); }
.planned .status-dot { background: var(--ochre); box-shadow: 0 0 0 5px rgba(221,161,52,.14); }
.language-tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.language-tags span { padding: .48rem .8rem; border: 1px solid rgba(18,63,92,.16); border-radius: 999px; background: white; font-size: .85rem; font-weight: 750; }
.language-tags.muted span { background: rgba(255,255,255,.45); color: #4d6977; }

.shipping-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem,8vw,8rem); background: #f0f6f2; }
.shipping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.shipping-grid article { padding: 1.7rem; border-radius: 24px; background: white; border: 1px solid rgba(18,63,92,.1); }
.shipping-icon { display: grid; place-items: center; width: 3rem; aspect-ratio: 1; margin-bottom: 1rem; border-radius: 14px; background: var(--cream); color: var(--orange); font-size: 1.35rem; font-weight: 900; }
.shipping-grid h3 { margin-bottom: .55rem; font-size: 1.15rem; }
.shipping-grid p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.preorder-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem,8vw,8rem); align-items: start; }
.preorder-intro { position: sticky; top: 118px; }
.date-card { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.2rem; border-radius: 22px; background: var(--cream); }
.calendar { display: grid; place-items: center; flex: 0 0 auto; width: 58px; aspect-ratio: 1; border-radius: 14px; background: var(--orange); color: white; font-size: .76rem; font-weight: 900; letter-spacing: .08em; }
.date-card strong { font-size: .92rem; line-height: 1.4; }
.preorder-form { display: grid; gap: 1.1rem; padding: clamp(1.4rem,4vw,2.8rem); border-radius: 30px; background: #f7f1e5; border: 1px solid var(--cream-deep); box-shadow: 0 22px 60px rgba(53,54,37,.10); }
.preorder-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 0; padding: 0; border: 0; }
.preorder-form legend { width: 100%; margin-bottom: .7rem; font-size: .88rem; font-weight: 850; }
.choice { display: flex; align-items: center; gap: .65rem; min-height: 52px; padding: .65rem .85rem; border: 1px solid rgba(18,63,92,.14); border-radius: 14px; background: white; cursor: pointer; font-size: .84rem; font-weight: 700; line-height: 1.25; }
.choice.full { grid-column: 1 / -1; background: var(--ink); color: white; }
.choice input, .consent input { accent-color: var(--orange); width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.delivery-choice { margin-top: .35rem !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.preorder-form > label, .form-row label { display: grid; gap: .45rem; }
.preorder-form label > span, .form-row label > span { font-size: .83rem; font-weight: 850; }
.preorder-form input:not([type="checkbox"]):not([type="radio"]), .preorder-form select, .preorder-form textarea { width: 100%; border: 1px solid rgba(18,63,92,.19); border-radius: 13px; background: white; padding: .72rem .85rem; color: var(--ink); outline: none; }
.preorder-form input:focus, .preorder-form select:focus, .preorder-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74,120,150,.13); }
.shipping-fields { display: grid; gap: 1rem; }
/* Ohne diese Zeile wuerde display:grid das hidden-Attribut ueberschreiben
   und die Versandfelder blieben dauerhaft sichtbar. */
.shipping-fields[hidden] { display: none; }
.notice { padding: .85rem 1rem; border-radius: 14px; background: #fff5d9; border: 1px solid #ead091; color: #664b13; font-size: .83rem; }
.consent { display: flex !important; align-items: flex-start; gap: .65rem !important; padding: .5rem 0; }
.consent span { font-weight: 500 !important; color: var(--ink-soft); line-height: 1.45; }
.submit { border: 0; width: 100%; }
.form-hint { margin: -.35rem 0 0; text-align: center; color: #687b84; font-size: .75rem; }
.form-message { margin: 0; padding: .8rem 1rem; border-radius: 12px; background: #e3efe6; color: #315b3d; font-size: .84rem; font-weight: 700; }

.faq { background: var(--ink); color: white; }
.faq .eyebrow { color: #f2bd56; }
.faq h2 { font-size: clamp(2.3rem,4vw,4rem); }
.faq-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.faq details { padding: 1.3rem 1.4rem; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.06); }
.faq summary { cursor: pointer; font-weight: 850; line-height: 1.35; }
.faq details p { margin: 1rem 0 0; color: #d2e1e7; font-size: .9rem; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: 2.2rem clamp(1.25rem,7vw,8rem); background: #0d3046; color: white; }
footer p { margin: .35rem 0 0; color: #b9ced8; font-size: .8rem; }
footer nav { display: flex; gap: 1.2rem; font-size: .85rem; }
.draft-note { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #f1c675; }

.legal-page { min-height: 100vh; padding: clamp(2rem,7vw,6rem) clamp(1.25rem,8vw,10rem); background: var(--paper); }
.legal-shell { max-width: 850px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--orange); font-weight: 800; }
.legal-page h1 { font-size: clamp(2.6rem,6vw,5rem); }
.legal-page h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.placeholder { padding: 1rem; border: 2px dashed var(--orange); border-radius: 14px; background: #fff3d8; color: #704c09 !important; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .book-fan { min-height: 430px; max-width: 760px; width: 100%; margin: 0 auto; }
  .book-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
  .book-card { display: grid; grid-template-columns: minmax(220px,.7fr) 1fr; align-items: center; }
  .cover-wrap { padding-bottom: 2rem; }
  .language-section, .shipping-section, .preorder-section { grid-template-columns: 1fr; }
  .preorder-intro { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { grid-template-columns: 1fr auto; gap: .8rem; min-height: 68px; }
  .site-header nav { display: none; }
  .hero { min-height: auto; padding-top: 4.2rem; gap: 2rem; }
  h1 { font-size: clamp(3rem,15vw,4.6rem); }
  .book-fan { min-height: 330px; }
  .fan-book { width: 46%; border-width: 5px; }
  .fan-book-1 { transform: translate(-102%,-45%) rotate(-9deg); }
  .fan-book-2 { transform: translate(-50%,-51%) rotate(0deg); }
  .fan-book-3 { transform: translate(2%,-44%) rotate(9deg); }
  .spark { width: 42px; }
  .book-card { display: block; }
  .book-card .subtitle { min-height: 0; }
  .shipping-grid, .preorder-form fieldset, .form-row, .faq-grid { grid-template-columns: 1fr; }
  .choice.full { grid-column: auto; }
  footer { grid-template-columns: 1fr; }
  .draft-note { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* --- Mengenauswahl je Geschichte --- */
.preorder-form .book-picker { display: block; }
.picker-note { margin: -.2rem 0 .9rem; color: #6c7f88; font-size: .78rem; line-height: 1.45; }
.book-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: .85rem;
  margin-bottom: .6rem;
  padding: .6rem .7rem;
  border: 1px solid rgba(18,63,92,.14);
  border-radius: 16px;
  background: white;
}
.book-row-cover { width: 54px; border-radius: 8px; box-shadow: 0 6px 16px rgba(45,42,29,.18); }
.book-row-title { font-size: .84rem; font-weight: 800; line-height: 1.3; }
.book-row.is-zero { background: #f3eee4; border-style: dashed; }
.book-row.is-zero .book-row-cover { filter: grayscale(1); opacity: .45; }
.book-row.is-zero .book-row-title { color: #8b969b; }

.stepper { display: flex; align-items: center; gap: .3rem; }
.stepper .step {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(18,63,92,.2);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.stepper .step:hover:not(:disabled) { background: var(--orange); color: white; }
.stepper .step:disabled { opacity: .35; cursor: default; }
.stepper .step:focus-visible { outline: 3px solid rgba(74,120,150,.45); outline-offset: 2px; }
/* Spezifitaet muss ueber .preorder-form input:not(...):not(...) liegen,
   sonst zieht das dortige width:100% das Feld auf die volle Breite. */
.preorder-form .stepper input.step-value[type="number"] {
  flex: 0 0 auto;
  width: 52px;
  padding: .4rem .2rem;
  text-align: center;
  font-weight: 900;
  -moz-appearance: textfield;
}
.stepper .step-value::-webkit-outer-spin-button,
.stepper .step-value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.picker-total { margin: .85rem 0 0; font-size: .84rem; font-weight: 800; }
.picker-total strong { color: var(--orange); }
.picker-total.is-empty strong { color: #b4403a; }

.preorder-form > .single-field { display: grid; gap: .45rem; }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ausfuellbar */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-message.is-error { background: #fbe4e2; color: #8a2f28; }

@media (max-width: 560px) {
  .book-row { grid-template-columns: 44px 1fr; row-gap: .55rem; }
  .book-row-cover { width: 44px; }
  .stepper { grid-column: 2 / -1; justify-content: flex-start; }
}
