/* ===== Dunstheimer – Botanischer Dschungel ===== */
@font-face { font-family: "DM Serif Display"; src: url("fonts/dm-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("fonts/dm-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #1d2b27;
  --muted: #5d6b66;
  --teal: #2f9c96;
  --teal-dark: #1f6f6a;
  --line: #d9cfb8;
  --gold: #b89b5e;
  --soil: #4a3a28;
  --paper: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--soil); scroll-behavior: smooth; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif; font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; }

/* ---------- Palmenblätter links & rechts ---------- */
.leaves { position: fixed; top: 0; bottom: 0; width: min(32vw, 430px); z-index: 1; pointer-events: none; }
.leaves svg { width: 100%; height: 100%; display: block; }
.leaves.left { left: 0; }
.leaves.right { right: 0; transform: scaleX(-1); }
.sway { transform-box: view-box; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(16px, 4vw, 40px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 18px 5px 5px; box-shadow: 0 4px 18px rgba(29,43,39,.08);
  transition: border-color .2s, box-shadow .2s;
}
.brand:hover { border-color: var(--teal); box-shadow: 0 6px 22px rgba(47,156,150,.18); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); transition: transform .4s;
}
.brand:hover .brand-mark { transform: rotate(-14deg); }
.brand-mark svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 20px; color: var(--ink); }

.menu { position: relative; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px "Montserrat", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: #fff; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  box-shadow: 0 4px 18px rgba(29,43,39,.08);
  transition: border-color .2s, box-shadow .2s;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--teal); box-shadow: 0 6px 22px rgba(47,156,150,.18); }
.burger { width: 18px; height: 12px; position: relative; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 5px; } .burger i:nth-child(3) { top: 10px; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(29,43,39,.14);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.menu.open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-panel .group { padding: 10px 12px 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.menu-panel a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 9px; text-decoration: none; font-weight: 500;
}
.menu-panel a:hover { background: #eef7f5; color: var(--teal-dark); }
.menu-panel a.active { color: var(--teal); font-weight: 600; }
.menu-panel a small { color: var(--muted); font-size: 12px; }
.menu-panel hr { border: none; border-top: 1px solid #eee6d6; margin: 6px 8px; }

/* ---------- Inhalt ---------- */
main {
  position: relative; z-index: 5; flex: 1;
  width: min(820px, 100% - 32px); margin: 0 auto;
  padding: 30px 0 40px;
}

.frame {
  position: relative; background: #fff;
  border: 1px solid var(--gold);
  outline: 1px solid var(--line); outline-offset: 8px;
  padding: clamp(36px, 7vw, 70px) clamp(20px, 5vw, 60px);
  text-align: center; margin: 20px 8px 50px;
  box-shadow: 0 30px 60px -30px rgba(29,43,39,.25);
}
.frame .dash { display: block; width: 34px; height: 3px; background: var(--teal); margin: 0 auto 18px; }
.frame h1 { font-family: "DM Serif Display", serif; font-weight: 400; line-height: 1.05; }
.frame h1 .small { display: block; font-size: clamp(24px, 4vw, 36px); }
.frame h1 .big { display: block; font-size: clamp(52px, 11vw, 96px); color: var(--teal); letter-spacing: .01em; }
.frame p.lead { margin: 18px auto 0; max-width: 460px; color: var(--muted); line-height: 1.7; }

/* ---------- Hero ohne Kasten ---------- */
.hero {
  position: relative; text-align: center;
  padding: clamp(30px, 6vw, 60px) 0 clamp(40px, 7vw, 70px);
}
.hero::before { /* weicher weißer Nebel, damit die Schrift vor den Blättern lesbar bleibt */
  content: ""; position: absolute; inset: -40px -18%; z-index: -1;
  background: radial-gradient(closest-side, #fff 62%, rgba(255,255,255,0));
}
.hero > * { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero > :nth-child(2) { animation-delay: .1s; } .hero > :nth-child(3) { animation-delay: .2s; }
.hero > :nth-child(4) { animation-delay: .3s; } .hero > :nth-child(5) { animation-delay: .4s; }
.hero > :nth-child(6) { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.headline {
  font-family: "DM Serif Display", serif; font-weight: 400;
  font-size: clamp(40px, 8vw, 80px); line-height: 1.05; color: var(--ink);
}
.headline .accent, .rotator > span {
  font-style: italic; color: var(--teal);
  background: linear-gradient(180deg, #33a7a0, #1f6f6a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
.rotator { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.rotator > span { display: inline-block; transition: transform .38s cubic-bezier(.6,0,.3,1), opacity .38s; }
.rotator > span.out { transform: translateY(-70%); opacity: 0; }
.rotator > span.in { transform: translateY(70%); opacity: 0; transition: none; }

/* Kennzahlen */
.stats { list-style: none; display: flex; justify-content: center; margin: 26px auto 0; }
.stats li {
  display: flex; flex-direction: column; align-items: center; padding: 0 clamp(16px, 4vw, 34px);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 34px; letter-spacing: 0; text-transform: none; color: var(--teal); line-height: 1.1; }

/* Spiele-Würfel */
.picker {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 26px; padding: 14px 40px 16px; min-width: 280px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 14px 30px -18px rgba(29,43,39,.35);
}
.picker-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.picker-name { font-family: "DM Serif Display", serif; font-size: 34px; color: var(--ink); }
.picker.rolling .picker-name { color: var(--muted); }
.picker.landed { animation: pop .45s ease; border-color: var(--teal); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

.hero .sub { font-family: "DM Serif Display", serif; font-size: clamp(20px, 3vw, 26px); margin-top: 8px; color: var(--ink); }
.hero .sub em { font-style: italic; }
.ornament { width: 160px; height: 24px; margin: 26px auto 18px; display: block; }
.ornament path { stroke: var(--gold); stroke-width: 1; fill: none; }
.ornament .gem { fill: var(--teal); stroke: none; }
.hero .lead { margin: 0 auto; max-width: 470px; color: var(--muted); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn {
  font: 600 13px "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--teal); color: var(--teal-dark); background: #fff;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(47,156,150,.6); }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); }
[id] { scroll-margin-top: 90px; }

.section-title {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  font-family: "DM Serif Display", serif; font-weight: 400; font-size: 30px; margin: 10px 0 24px;
}
.section-title::before, .section-title::after { content: ""; width: 48px; height: 1px; background: var(--gold); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 24px 14px 20px; background: #fff; text-decoration: none;
  border: 1px solid var(--line); border-radius: 4px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 14px 30px -14px rgba(47,156,150,.4); }
.tile svg { width: 34px; height: 34px; stroke: var(--teal); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile .mono {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--teal); color: var(--teal);
  font-family: "DM Serif Display", serif; font-size: 22px;
}
.tile h3 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 21px; }
.tile p { font-size: 13px; line-height: 1.5; color: var(--muted); }
.tiles.games { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.prose { text-align: left; }
.prose h2 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 22px; margin: 26px 0 8px; color: var(--teal-dark); }
.prose p { line-height: 1.75; color: #33423d; }
.prose a { color: var(--teal-dark); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

.prose ul { margin: 8px 0 14px; padding-left: 1.3em; }
.prose li { line-height: 1.75; color: #33423d; margin-bottom: 4px; }
.prose li::marker { color: var(--teal); }
.prose li strong { font-weight: 600; color: var(--ink); }

/* ---------- Dschungelboden ---------- */
.floor { position: relative; z-index: 6; height: 300px; margin-top: -40px; pointer-events: none; }
.floor svg { width: 100%; height: 100%; display: block; }
.floor .snail { animation: crawl 40s ease-in-out infinite alternate; }
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(90px); } }
.floor .blink { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.floor .bob { transform-box: fill-box; transform-origin: bottom center; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
.floor .tailwag { transform-box: fill-box; transform-origin: 0% 100%; animation: bob 2.4s ease-in-out infinite; }

.butterfly { position: fixed; z-index: 4; width: 30px; top: 0; left: 0; pointer-events: none; animation: flutter 28s linear infinite; }
.butterfly .wing { transform-box: fill-box; transform-origin: center; animation: flap .22s ease-in-out infinite alternate; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.25); } }
@keyframes flutter {
  0% { transform: translate(-5vw, 70vh) rotate(10deg); }
  25% { transform: translate(28vw, 30vh) rotate(-10deg); }
  50% { transform: translate(60vw, 60vh) rotate(8deg); }
  75% { transform: translate(85vw, 20vh) rotate(-8deg); }
  100% { transform: translate(105vw, 45vh) rotate(0); }
}

/* ---------- Footer ---------- */
footer {
  position: relative; z-index: 6; background: var(--soil); color: #e9dcc0;
  text-align: center; padding: 6px 16px 26px; font-size: 14px;
}
footer nav { display: flex; justify-content: center; gap: 24px; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
footer a { text-decoration: none; color: #f4e9cf; }
footer a:hover { color: #9fe0d9; }
footer small { display: block; margin-top: 10px; opacity: .6; }

@media (max-width: 900px) {
  /* Tablet & Handy: Blätter als Eck-Deko oben, scrollen mit weg */
  .leaves { position: absolute; bottom: auto; width: 46vw; }
  .leaves svg { height: auto; }
  .leaves.left { transform: translateX(-32%); }
  .leaves.right { transform: translateX(32%) scaleX(-1); }
}
@media (max-width: 640px) {
  .leaves { width: 64vw; }
  .leaves.left { transform: translateX(-30%); }
  .leaves.right { transform: translateX(30%) scaleX(-1); }
  .hero::before { inset: -30px -8%; background: radial-gradient(closest-side, rgba(255,255,255,.96) 70%, rgba(255,255,255,0)); }
  .floor { height: 220px; }
  .brand { padding-right: 14px; gap: 8px; }
  .brand-text b { font-size: 18px; }
  .eyebrow { letter-spacing: .18em; font-size: 11px; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .frame { margin-inline: 4px; }
  .stats li { padding: 0 14px; letter-spacing: .12em; }
  .stats b { font-size: 28px; }
  .picker { min-width: 0; width: 100%; }
  .tiles, .tiles.games { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 18px 10px 14px; }
  .tile h3 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
