/* schlafbabyschlaf.de – Farben wie das Buchcover */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/lora-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/dm-sans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/dm-sans-700.woff2") format("woff2"); }

:root {
  --nacht: #1E2A47;
  --nacht-hell: #26345a;
  --gold: #F2C66D;
  --creme: #F6EBD9;
  --hellblau: #C9D3E6;
  --radius: 14px;
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--creme);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--creme);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--gold); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: var(--creme); }
a:focus-visible, .button:focus-visible, audio:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--nacht); padding: .6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Kopfzeile */
.site-header { padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: "Lora", Georgia, serif; font-weight: 700; color: var(--creme); text-decoration: none; font-size: 1.15rem; }
.brand:hover { color: var(--gold); }

/* Hero */
.hero { padding: 1.5rem 0 4rem; text-align: center; }
.hero-art { width: min(15rem, 62%); margin: 0 auto 1.5rem; }
.eyebrow {
  font-weight: 700; letter-spacing: .14em; font-size: .8rem;
  color: var(--gold); text-transform: uppercase; margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--hellblau); max-width: 38rem; margin: 0 auto 2rem; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.buttons.left { justify-content: flex-start; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.5rem;
  border-radius: 999px; border: 2px solid var(--gold);
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  background: var(--gold); color: var(--nacht);
  transition: background .15s, color .15s;
}
.button:hover { background: var(--creme); border-color: var(--creme); color: var(--nacht); }
.button.secondary { background: transparent; color: var(--gold); }
.button.secondary:hover { background: var(--gold); color: var(--nacht); }
.button.is-disabled, .button.is-disabled:hover {
  background: transparent; border-color: var(--hellblau); color: var(--hellblau);
  border-style: dashed; cursor: default;
}

/* Abschnitte */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--nacht-hell); }
.narrow { max-width: 42rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.book { display: grid; gap: 2.5rem; align-items: center; }
.book-cover { width: min(17rem, 70%); margin: 0 auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 198, 109, .18);
}

.teaser {
  border: 1px solid rgba(201, 211, 230, .35); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
}
.teaser p { color: var(--hellblau); }

.note { font-size: .92rem; color: var(--hellblau); }
.disclaimer { padding: 2.5rem 0; }
.disclaimer p { font-size: .9rem; color: var(--hellblau); max-width: 42rem; margin: 0 auto; text-align: center; }

/* Bonus-Karten */
.cards { display: grid; gap: 1.25rem; margin: 2rem 0; }
.card {
  background: var(--nacht-hell); border: 1px solid rgba(201, 211, 230, .25);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.card h2 { font-size: 1.3rem; color: var(--creme); margin: 0; }
.card p { margin: 0; color: var(--hellblau); }
.card .meta { font-size: .9rem; color: var(--gold); font-weight: 500; }
.card .button { align-self: flex-start; margin-top: .4rem; }
.card audio { width: 100%; margin-top: .4rem; }
.card.all { background: transparent; border: 2px solid var(--gold); }

/* Textseiten */
.prose { max-width: 42rem; padding: 2rem 0 4rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose ul { padding-left: 1.2rem; }

/* Fußzeile */
.site-footer { border-top: 1px solid rgba(201, 211, 230, .2); padding: 2rem 0 2.5rem; font-size: .92rem; color: var(--hellblau); }
.site-footer p { margin: 0; text-align: center; }
.site-footer a { color: var(--hellblau); }
.site-footer a:hover { color: var(--gold); }

@media (min-width: 48rem) {
  .hero { padding-top: 2.5rem; }
  .hero-art { width: 24rem; }
  .book { grid-template-columns: 2fr 3fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card.wide { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.lead.start { margin-left: 0; }
.back-links { margin-bottom: 3rem; }
main.wrap > .narrow { padding-top: 1.5rem; }
.hero-art.small { width: min(16rem, 70%); }

/* Zugangsseite Bonus */
.access { text-align: left; }
.access .hero-art.small { margin: 0 0 1.5rem; width: min(12rem, 50%); }
.code-form { display: grid; gap: .7rem; max-width: 24rem; margin: 2rem 0 3rem; }
.code-form label { font-weight: 700; }
.code-form input {
  font: inherit; font-size: 1.15rem; letter-spacing: .08em;
  min-height: 3rem; padding: .6rem 1rem;
  border-radius: 10px; border: 2px solid var(--hellblau);
  background: var(--creme); color: var(--nacht);
}
.code-form input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.code-form input[aria-invalid="true"] { border-color: #f4a3a3; }
.code-form .button { justify-self: start; cursor: pointer; font-family: inherit; }
.form-error { color: #ffd0d0; font-weight: 500; margin: 0; }
