/* ============================================================
   Kenny Morgenstern – kennymorgenstern.de
   Statisches Design-System · keine externen Ressourcen
   Palette aus den Buchcovern:
   Himmelblau #58b7e8 · Dunkelblau #1d4e79 · Ziegelrot #d95b2e
   Sonnengelb #f6c445 · Wiesengrün #6db24f · Creme #fdf8ef
   ============================================================ */

:root {
  --sky: #58b7e8;
  --sky-soft: #e8f4fc;
  --navy: #1d4e79;
  --brick: #d95b2e;
  --sun: #f6c445;
  --grass: #6db24f;
  --cream: #fdf8ef;
  --paper: #ffffff;
  --ink: #2c3540;
  --ink-soft: #5b6672;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(29, 78, 121, 0.12);
  --font-round: "Avenir Next Rounded", "Arial Rounded MT Bold",
    ui-rounded, "Hiragino Maru Gothic ProN", "Nunito", "Trebuchet MS",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-round);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--navy); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 4px solid var(--sun);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand svg { width: 42px; height: 42px; flex: none; }

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.15;
}

.brand-claim {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  margin-left: 22px;
  font-size: 0.98rem;
}

.site-nav a:hover { color: var(--brick); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #9ed4f2 70%, var(--cream) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 2px 0 rgba(29, 78, 121, 0.35);
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--sun); }

.hero p {
  color: #f2f9ff;
  font-size: 1.12rem;
  max-width: 34em;
  margin-bottom: 28px;
  text-shadow: 0 1px 2px rgba(29, 78, 121, 0.25);
}

.hero-art {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #ffffff;
  transform: rotate(2deg);
  width: min(380px, 100%);
  height: auto;
  max-height: 500px;
  object-fit: cover;
  object-position: center 65%;
  justify-self: center;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.02rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brick);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(217, 91, 46, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--navy);
  margin-left: 10px;
  box-shadow: 0 6px 18px rgba(29, 78, 121, 0.18);
}

.btn-amazon {
  background: var(--navy);
  color: #ffffff;
  font-size: 0.95rem;
  padding: 12px 22px;
}

.btn-amazon:hover { background: #163d5f; }

/* ---------- Regenbogen-Trenner ---------- */

.rainbow-divider {
  height: 10px;
  background: linear-gradient(90deg,
    #e4573d 0%, #f0924a 18%, #f6c445 36%,
    #6db24f 54%, #58b7e8 72%, #8d6cc3 90%);
}

/* ---------- Abschnitte ---------- */

.section { padding: 72px 0; }

.section-alt { background: var(--paper); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 46em;
  margin-bottom: 42px;
}

/* ---------- Bücher ---------- */

.book {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  margin-bottom: 40px;
}

.section-alt .book {
  background: var(--cream);
}

.book-cover {
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(29, 78, 121, 0.25);
}

/* CSS-komponiertes Cover für Bände ohne finales Coverbild */
.composed-cover {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(29, 78, 121, 0.25);
}

.composed-cover img { width: 100%; }

.composed-cover .cc-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 14px 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(253, 248, 239, 0.94) 0%, rgba(253, 248, 239, 0.75) 70%, rgba(253, 248, 239, 0) 100%);
}

.composed-cover .cc-series {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brick);
  line-height: 1.1;
}

.composed-cover .cc-sub {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
  line-height: 1.25;
}

.composed-cover .cc-author {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 14px 12px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  background: linear-gradient(0deg, rgba(253, 248, 239, 0.94) 0%, rgba(253, 248, 239, 0) 100%);
}

.book-band {
  display: inline-block;
  background: var(--sun);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.book h3 {
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.book .age {
  color: var(--brick);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.book p { margin-bottom: 14px; }

.book .quote {
  border-left: 4px solid var(--sky);
  padding: 6px 16px;
  color: var(--ink-soft);
  font-style: italic;
  background: var(--sky-soft);
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
}

.book-actions { margin-top: 20px; }

.affiliate-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Über ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.about-art {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #ffffff;
  transform: rotate(-2deg);
  width: min(360px, 100%);
  height: auto;
  max-height: 500px;
  object-fit: cover;
  justify-self: center;
}

.about p { margin-bottom: 16px; }

/* ---------- Kontakt ---------- */

.contact-card {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h2 { font-size: 1.7rem; margin-bottom: 12px; }

.contact-card p {
  color: #d8e9f7;
  max-width: 38em;
  margin: 0 auto 24px;
}

.contact-card a.btn-primary { background: var(--sun); color: var(--navy); }

/* ---------- Footer ---------- */

.site-footer {
  background: #163d5f;
  color: #bcd4e8;
  padding: 36px 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: #ffffff; text-decoration: none; margin-left: 18px; }

.site-footer a:hover { text-decoration: underline; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 760px; }

.legal h1 { color: var(--navy); margin: 40px 0 18px; font-size: 1.9rem; }

.legal h2 { color: var(--navy); margin: 30px 0 10px; font-size: 1.25rem; }

.legal p, .legal ul { margin-bottom: 14px; }

.legal ul { padding-left: 22px; }

.legal .back { display: inline-block; margin: 26px 0 60px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 52px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .book { grid-template-columns: 1fr; }
  .book-cover, .composed-cover { max-width: 300px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; }
  .about-art { max-width: 420px; margin: 0 auto; order: -1; }
  .site-nav { display: none; }
}

@media (max-width: 480px) {
  .btn-secondary { margin-left: 0; margin-top: 10px; }
  .book { padding: 24px; }
  .contact-card { padding: 32px 20px; }
}
