/* Yindis Reisen — Adventure UI Layer
   Macht Navigation, Typografie, Buttons und kleine UI-Elemente abenteuerlicher. */

/* 1. Typografie-Grundgefühl */

:root {
  --font-adventure: Georgia, "Times New Roman", serif;
  --font-readable: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;

  --ui-paper: rgba(255, 248, 229, .86);
  --ui-paper-solid: #fff3d4;
  --ui-ink: #173040;
  --ui-map-brown: #7b4b24;
  --ui-red: #e8663d;
  --ui-gold: #f4a63f;
  --ui-sea: #087da1;
}

body {
  font-family: var(--font-readable);
}

/* Große Titel bekommen mehr Logbuch-/Abenteuercharakter */
h1,
h2,
.collage-title,
.hero-content h1,
.page-hero h1 {
  font-family: var(--font-adventure);
  font-weight: 800;
  letter-spacing: -.045em;
}

.hero-content h1 {
  position: relative;
  display: inline-block;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: .88;
  text-shadow:
    0 4px 0 rgba(60, 33, 12, .18),
    0 18px 50px rgba(0,0,0,.35);
}

.hero-content h1::after {
  content: "✦";
  position: absolute;
  right: -.55em;
  top: -.18em;
  font-size: .24em;
  color: var(--ui-gold);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.22));
}

.hero-subtitle,
.collage-lead,
.lead {
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.55;
}

/* Eyebrows wie kleine Expeditionsstempel */
.eyebrow,
.collage-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  padding: .38rem .7rem;
  border: 2px dashed rgba(232, 102, 61, .55);
  border-radius: 999px;
  background: rgba(255, 248, 229, .72);
  color: var(--ui-red);
  font-family: var(--font-readable);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .13em;
  box-shadow: 0 8px 22px rgba(60, 33, 12, .08);
  transform: rotate(-1deg);
}

.hero-content .eyebrow {
  background: rgba(255, 248, 229, .20);
  color: #ffe2a3;
  border-color: rgba(255, 226, 163, .52);
  backdrop-filter: blur(8px);
}

/* 2. Header als Abenteuer-Navigation */

.site-header {
  padding: .75rem clamp(.9rem, 2.6vw, 2rem);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: .45rem clamp(.5rem, 1.5vw, 1rem);
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 248, 229, .18), rgba(255, 248, 229, .06));
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 14px 38px rgba(0,0,0,.14);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled::before,
.site-header.is-solid::before {
  background:
    linear-gradient(135deg, rgba(255, 248, 229, .96), rgba(246, 224, 180, .93));
  border-color: rgba(60, 33, 12, .13);
}

/* Logo wie kleine Expeditionsplakette */

.brand {
  gap: .75rem;
  font-family: var(--font-adventure);
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand-mark {
  position: relative;
  width: 3rem;
  height: 3rem;
  border: 2px solid currentColor;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.8), transparent 18%),
    linear-gradient(135deg, rgba(244, 166, 63, .95), rgba(232, 102, 61, .88));
  color: #173040;
  box-shadow:
    0 8px 22px rgba(0,0,0,.16),
    inset 0 0 0 3px rgba(255,255,255,.22);
}

.brand-mark::after {
  content: "⌁";
  position: absolute;
  right: -.42rem;
  bottom: -.38rem;
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff3d4;
  color: var(--ui-sea);
  font-family: var(--font-readable);
  font-size: .85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

.brand-text {
  font-size: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.16);
}

/* Menü als Kartenreiter */

.site-nav {
  gap: .45rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.55rem;
  padding: .52rem .85rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .01em;
  color: inherit;
  background: rgba(255, 248, 229, .13);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

.site-header.is-scrolled .site-nav a,
.site-header.is-solid .site-nav a {
  background: rgba(255,255,255,.48);
  border-color: rgba(60, 33, 12, .12);
}

.site-nav a:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: var(--ui-gold);
  color: #173040;
  box-shadow: 0 10px 24px rgba(60, 33, 12, .16);
}

.site-nav a::before {
  font-size: 1rem;
  line-height: 1;
}

.site-nav a[href*="crew"]::before {
  content: "🐾";
}

.site-nav a[href*="welten"]::before {
  content: "🗺️";
}

.site-nav a[href*="logbuch"]::before {
  content: "📜";
}

.site-nav a[href*="akademie"]::before {
  content: "🧭";
}

.site-nav a[href*="reede"]::before {
  content: "⚓";
}

.site-nav a[aria-current="page"] {
  background: var(--ui-gold);
  color: #173040;
}

/* 3. Hero-Buttons wie Abenteuer-Marken */

.hero-actions {
  gap: .9rem;
}

.button {
  position: relative;
  min-height: 3.25rem;
  padding: .82rem 1.25rem;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: .01em;
  box-shadow:
    0 14px 32px rgba(0,0,0,.18),
    inset 0 0 0 1px rgba(255,255,255,.24);
}

.button::after {
  content: "";
  position: absolute;
  inset: .22rem;
  border-radius: inherit;
  border: 1px dashed rgba(23, 48, 64, .22);
  pointer-events: none;
}

.button-primary {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 24%),
    linear-gradient(135deg, #ffd66b, #f4a63f 55%, #e8663d);
  color: #173040;
}

.button-primary::before {
  content: "✦";
  margin-right: .45rem;
}

.button-secondary {
  background: rgba(255, 248, 229, .20);
  color: #fff8e9;
  border-color: rgba(255, 248, 229, .42);
  backdrop-filter: blur(12px);
}

.button-secondary::before {
  content: "🗺️";
  margin-right: .45rem;
}

.button:hover {
  transform: translateY(-3px) rotate(-1deg);
}

/* 4. Soundbutton wie kleines Schiffsinstrument */

.sound-toggle {
  font-weight: 900;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,248,229,.20), rgba(255,248,229,.08));
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.sound-toggle::before {
  content: "♪ ";
}

.sound-toggle.is-playing::before {
  content: "♫ ";
}

/* 5. Collage-Texte noch lebendiger */

.note-bubble,
.character-quote,
.logbook-caption,
.reede-stamp {
  font-family: var(--font-hand);
  letter-spacing: .01em;
}

.note-bubble {
  font-size: 1.08rem;
  transform: rotate(-1deg);
}

.character-copy h3,
.world-label h3,
.lesson-list h3,
.reede-card h3 {
  font-family: var(--font-adventure);
  letter-spacing: -.03em;
}

/* 6. Kleine Entdecker-Marker für Sections */

.collage-section {
  scroll-margin-top: 6rem;
}

.collage-section::after {
  content: "✺";
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: clamp(1rem, 4vw, 3rem);
  color: rgba(123, 75, 36, .16);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  pointer-events: none;
  transform: rotate(12deg);
}

/* 7. Mobile Navigation */

@media (max-width: 900px) {
  .site-header::before {
    inset: .45rem .75rem;
    border-radius: 1.5rem;
  }

  .site-nav {
    gap: .6rem;
    border: 1px solid rgba(60, 33, 12, .15);
    background:
      radial-gradient(circle at 20% 10%, rgba(244, 166, 63, .22), transparent 32%),
      linear-gradient(180deg, rgba(255,248,229,.98), rgba(242,223,184,.98));
  }

  .site-nav a {
    justify-content: flex-start;
    width: 100%;
    color: var(--ui-ink);
    background: rgba(255,255,255,.5);
  }

  .nav-toggle {
    background: rgba(255,248,229,.18);
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
  }

  .site-header.is-scrolled .nav-toggle,
  .site-header.is-solid .nav-toggle {
    background: rgba(255,255,255,.55);
  }
}

@media (max-width: 680px) {
  .hero-content h1 {
    font-size: clamp(3.5rem, 16vw, 5.6rem);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 2.6rem;
    height: 2.6rem;
  }
}