:root {
  --blau-dunkel: #050917;
  --blau: #101b34;
  --blau-hell: #283b61;
  --gold: #f3d39a;
  --gold-intensiv: #ffd88a;
  --creme: #f7f2e8;
  --text: #e4e6f5;
  --accent: #7ac6ff;
  --max-width: 1100px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #1b2b4f 0, transparent 55%),
    radial-gradient(circle at top right, #121a32 0, transparent 60%),
    linear-gradient(to bottom, var(--blau), var(--blau-dunkel));
  color: var(--creme);
  line-height: 1.6;
  scroll-behavior: smooth;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 9, 23, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 211, 154, 0.25);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Logo: dunkler Kreis, goldene Möwe klar sichtbar */
.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(243,211,154,0.7);
  border: 1px solid rgba(243,211,154,0.9);
  background: radial-gradient(circle at 30% 30%, #151b30 0, #050917 70%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img img {
  width: 82%;
  height: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo-sub {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c4cff0;
}

nav {
  position: relative;
}

.nav-links {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  font-size: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.nav-links a:hover {
  background: rgba(243, 211, 154, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(243,211,154,0.5);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(243,211,154,0.6);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  color: #f7f2e8;
  font-size: 1rem;
  cursor: pointer;
}

/* Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

section {
  padding: 3rem 0 2.4rem;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

/* Seil-artiger Trenner zwischen Abschnitten (außer Hero) */
section:not(:first-of-type)::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 260px;
  height: 2px;
  margin: 0 auto 2.2rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(6,10,20,0),
      rgba(243,211,154,0.4),
      rgba(243,211,154,0.9),
      rgba(243,211,154,0.4),
      rgba(6,10,20,0)
    );
  box-shadow: 0 0 6px rgba(243,211,154,0.6);
}

h1, h2, h3 {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--gold-intensiv);
}

h1 {
  font-size: clamp(2.1rem, 3.3vw + 1rem, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.6rem, 2.3vw + 1rem, 2.2rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.muted {
  font-size: 0.9rem;
  color: #b8c0d7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, #f3d39a, #ffe6b7, #ffd88a);
  color: #1b2537;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(243, 211, 154, 0.95);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(243, 211, 154, 1);
}

.btn-secondary {
  background: radial-gradient(circle at top, rgba(122,198,255,0.15), rgba(10,18,38,0.95));
  border: 1px solid rgba(243, 211, 154, 0.6);
  color: #f7f2e8;
  box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}

.btn-secondary:hover {
  background: radial-gradient(circle at top, rgba(122,198,255,0.25), rgba(22,32,58,0.98));
  transform: translateY(-1px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

/* Hero-Bereich */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.3rem;
  align-items: center;
  padding-top: 2.3rem;
}

.hero-tagline {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c4cff0;
  margin-bottom: 0.75rem;
}

.hero-text p {
  max-width: 34rem;
}

.hero-highlight {
  margin-top: 0.8rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at top left, rgba(122, 198, 255, 0.24), transparent 60%),
    linear-gradient(to right, rgba(10,16,34,0.9), rgba(14,20,40,0.95));
  border: 1px solid rgba(122, 198, 255, 0.4);
  font-size: 0.9rem;
}

.hero-aside {
  position: relative;
  isolation: isolate;
}

.hero-card {
  border-radius: 1.6rem;
  padding: 1.3rem;
  background:
    radial-gradient(circle at top, rgba(243, 211, 154, 0.11), rgba(12, 18, 31, 0.97));
  border: 1px solid rgba(243, 211, 154, 0.45);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.78),
    0 0 26px rgba(243,211,154,0.15);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-cover-placeholder {
  border-radius: 1.25rem;
  background: radial-gradient(circle at top, #2c3f72 0, #0b1020 55%, #050711 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}

.hero-cover-placeholder img {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 1rem;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.8),
    0 0 26px rgba(122,198,255,0.7);
}

.hero-meta {
  font-size: 0.8rem;
  color: #c0c8e2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.4rem;
}

.hero-meta strong {
  color: #ffffff;
}

/* Grid Sektionen */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

.card {
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  background: radial-gradient(circle at top, rgba(38,54,96,0.7), rgba(7,11,23,0.96));
  border: 1px solid rgba(243, 211, 154, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.pill {
  display: inline-block;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 211, 154, 0.7);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5dec0;
  margin-bottom: 0.6rem;
  background: radial-gradient(circle at top, rgba(243,211,154,0.18), transparent 70%);
}

/* Charaktere */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.character {
  padding: 1rem 1rem 0.9rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(122, 198, 255, 0.28), rgba(9, 12, 23, 0.97));
  border: 1px solid rgba(122, 198, 255, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.character h3 {
  margin-bottom: 0.15rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  color: #ffedd5;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.4rem;
  border: 1px solid rgba(243, 211, 154, 0.75);
}

/* Leseprobe */
.leseprobe {
  font-size: 0.96rem;
  max-width: 700px;
}

.leseprobe p {
  margin-bottom: 0.9rem;
}

.leseprobe-title {
  font-style: italic;
  color: #d4e0ff;
  margin-bottom: 0.6rem;
}

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(122,198,255,0.2), rgba(6,10,20,0.97));
  border: 1px solid rgba(243,211,154,0.5);
  box-shadow: 0 18px 40px rgba(0,0,0,0.75);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item figcaption {
  padding: 0.6rem 0.8rem 0.85rem;
  font-size: 0.86rem;
  color: #e7ecff;
}

/* Autor-Bereich */
.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

.author-avatar {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  background: radial-gradient(circle at 30% 20%, #151b30 0, #050917 70%, #000000 100%);
  box-shadow: 0 0 26px rgba(243,211,154,0.6);
  border: 1px solid rgba(243,211,154,0.8);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar img {
  width: 80%;
  height: auto;
  opacity: 0.96;
}

.author-note {
  font-size: 0.9rem;
  color: #d3dcff;
}

/* Buch-Themen & Für wen */
.progress-list {
  list-style: none;
  margin: 1.0rem auto 0;
  padding: 0;
  max-width: 420px;
  text-align: left;
}

.progress-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}

.progress-list li .status-icon {
  font-size: 1rem;
  min-width: 1.2rem;
}

/* Fortschrittsbalken im Erscheinungsbereich */
.progress-bar {
  width: 100%;
  max-width: 380px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(243,211,154,0.5);
  overflow: hidden;
  margin: 0.6rem auto 0.4rem;
}

.progress-fill {
  width: 80%; /* 4 von 5 Meilensteinen */
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3d39a, #ffd88a, #ffe6b7);
  box-shadow: 0 0 10px rgba(243,211,154,0.8);
}

.small-note {
  font-size: 0.82rem;
}

/* Kontakt & Footer */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 2rem;
}

footer {
  padding: 1.5rem 1.25rem 2.5rem;
  background: #020308;
  border-top: 1px solid rgba(243, 211, 154, 0.18);
  color: #a4aec8;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.social-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

/* Back-to-top Muschel */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(243,211,154,0.7);
  background: radial-gradient(circle at 30% 30%, #ffffff 0, #ffe4bb 35%, #f3d39a 70%, #c68c3a 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,0.6), 0 0 18px rgba(243,211,154,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top img {
  width: 70%;
  height: auto;
  display: block;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* Möwen-Easter-Egg */
.easter-egg {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(243,211,154,0.7);
  background: radial-gradient(circle at 30% 30%, #151b30 0, #050917 70%, #000000 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.7), 0 0 16px rgba(243,211,154,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
}

.easter-egg img {
  width: 72%;
  height: auto;
  display: block;
}

.easter-dialog {
  position: fixed;
  left: 1.2rem;
  bottom: 4.6rem;
  max-width: 260px;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(7,11,23,0.98);
  border: 1px solid rgba(243,211,154,0.7);
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
  font-size: 0.85rem;
  color: #f7f2e8;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 39;
}

.easter-dialog.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsive Navigation */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-height) - 4px);
    right: 1.25rem;
    background: rgba(5,9,23,0.97);
    border-radius: 1rem;
    border: 1px solid rgba(243,211,154,0.35);
    padding: 0.7rem 0.8rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.8);
    min-width: 190px;
  }

  body.nav-open .nav-links li {
    margin: 0.1rem 0;
  }

  .hero,
  .two-col,
  .author-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    order: -1;
  }

  .progress-bar {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  main {
    padding-inline: 1rem;
  }

  .hero-card {
    padding: 1rem;
  }

  .hero-cover-placeholder {
    margin-bottom: 0.5rem;
  }

  .easter-dialog {
    max-width: 220px;
  }
}
