:root {
  --cream: #f2ead9;
  --cream-soft: #e8ddc8;
  --green-outer: #8ca94d;
  --green-2: #5f9338;
  --green-3: #0e664d;
  --green-4: #074b3a;
  --brown-inner: #4b2a08;
  --bark-dark: #2a180a;
  --bark-mid: #68451f;
  --bark-light: #a17843;
  --ink: #f7f0df;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #111;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.screen {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100svh;
  overflow: hidden;
  background: #142313;
  isolation: isolate;
}

/* Desktop-Test-Rahmen: zeigt die mobile Seite wie eine schmale App-Spalte. */
@media (min-width: 520px) {
  body {
    min-height: 100svh;
    padding: 22px 0;
    background:
      radial-gradient(circle at 50% 10%, rgba(255,255,255,.08), transparent 26rem),
      repeating-radial-gradient(circle at 10% 20%, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
      #111;
  }

  .screen {
    min-height: min(900px, calc(100svh - 44px));
    border-radius: 38px;
    box-shadow: 0 28px 90px rgba(0,0,0,.55), 0 0 0 10px #1b1b1b, 0 0 0 13px #555;
  }
}

.background-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  filter: blur(9px) saturate(.9) brightness(.72);
  transform: scale(1.05);
}

.forest-blur {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,22,12,.8), rgba(17,45,20,.58) 44%, rgba(15,27,13,.72)),
    radial-gradient(circle at 78% 22%, rgba(231,184,63,.8), transparent 13rem),
    radial-gradient(circle at 62% 72%, rgba(195,126,55,.42), transparent 10rem),
    linear-gradient(90deg, #11270f, #31501f 50%, #142212);
}

.tree {
  position: absolute;
  top: -10%;
  bottom: -8%;
  width: 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(5,11,6,.75), rgba(63,76,38,.35), rgba(6,12,7,.7));
  opacity: .78;
}
.tree--1 { left: 18%; transform: rotate(1deg); }
.tree--2 { left: 42%; width: 13px; opacity: .55; }
.tree--3 { left: 66%; width: 16px; transform: rotate(-2deg); }
.tree--4 { left: 76%; width: 10px; opacity: .47; }
.tree--5 { left: 86%; width: 22px; opacity: .42; }

.sun-glow {
  position: absolute;
  top: 18%;
  right: 17%;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,222,104,.78), rgba(255,184,40,.24) 36%, transparent 70%);
}

.path-glow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 120px;
  height: 360px;
  transform: rotate(12deg);
  background: linear-gradient(180deg, transparent, rgba(162,113,57,.38), rgba(99,66,34,.52));
  border-radius: 60% 40% 45% 55%;
}

.content-card {
  position: absolute;
  right: -22px;
  bottom: 130px;
  width: 180px;
  min-height: 190px;
  padding: 38px 26px;
  border-radius: 52% 0 0 42%;
  background: rgba(241,230,208,.92);
  color: #263228;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .84rem;
  line-height: 1.55;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: max(32px, env(safe-area-inset-top)) 24px 0;
}

.brand {
  padding-top: 96px;
  text-shadow: 0 2px 14px rgba(0,0,0,.34);
}

.brand-x {
  margin-left: 18px;
  margin-bottom: 12px;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 6.4rem;
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.08em;
}

.brand-kicker {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .035em;
}

h1 {
  margin: .2rem 0 0;
  font-size: clamp(3rem, 15vw, 4.2rem);
  line-height: .9;
  letter-spacing: -.045em;
}

.menu-button {
  position: relative;
  margin-top: 84px;
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  color: #173822;
  background: var(--cream);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.ring-nav {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(112vw, 500px);
  height: min(76svh, 560px);
  z-index: 10;
  pointer-events: none;
}

.ring-nav__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.ring-link,
.nav-center {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  outline: none;
}

.ring-segment {
  stroke: rgba(246,240,224,.38);
  stroke-width: 1.5;
  transition: filter .18s ease, transform .18s ease, opacity .18s ease;
  transform-box: fill-box;
  transform-origin: 0 100%;
}

.ring-link:is(:hover, :focus-visible) .ring-segment {
  filter: brightness(1.14);
}

.ring-label,
.ring-icon {
  color: var(--ink);
  fill: currentColor;
  stroke: currentColor;
  pointer-events: none;
}

.ring-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: .015em;
}

.icon-circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.bark-base {
  fill: none;
  stroke: var(--bark-mid);
  stroke-width: 12;
  stroke-linecap: round;
}

.bark-cracks {
  fill: none;
  stroke: var(--bark-dark);
  stroke-width: 9;
  stroke-dasharray: 12 7 4 9 18 6;
  stroke-linecap: butt;
  opacity: .85;
}

.bark-highlight {
  fill: none;
  stroke: var(--bark-light);
  stroke-width: 2;
  stroke-dasharray: 22 15 6 18;
  opacity: .65;
}

.wood-button__bark { fill: #5b3515; stroke: #1d1007; stroke-width: 5; }
.wood-button__face { fill: #efd59f; stroke: #b38345; stroke-width: 3; }
.wood-button__ring { fill: none; stroke: rgba(116,78,35,.36); stroke-width: 2; }
.wood-button__ring--thin { stroke-width: 1.2; opacity: .85; }
.wood-button__x {
  fill: #174d31;
  font-family: Georgia, serif;
  font-size: 68px;
  font-weight: 900;
}

@media (max-width: 360px) {
  .brand { padding-top: 92px; }
  .brand-x { font-size: 5.6rem; }
  .ring-label { font-size: 19px; }
}

/* Interaktion: geschlossen ist nur die Baumscheibe sichtbar. */
.ring-nav:not(.is-open) .ring-link {
  pointer-events: none;
}

.nav-piece {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 0 100%;
  transform: translate(145px, 26px) scale(.42);
  transition:
    opacity .34s ease,
    transform .48s cubic-bezier(.18, .88, .18, 1);
  will-change: transform, opacity;
}

.ring-nav.is-open .nav-piece {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.ring-nav.is-closing .nav-piece {
  transition:
    opacity .24s ease,
    transform .36s cubic-bezier(.62, 0, .38, 1);
}

/* Die Baumscheibe bleibt immer vorne und klickbar. */
.nav-center {
  pointer-events: auto;
}

.wood-button {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .2s ease, filter .2s ease;
}

.nav-center:is(:hover, :focus-visible) .wood-button {
  transform: scale(1.045);
  filter: brightness(1.08);
}

.ring-nav.is-open .wood-button__face {
  fill: #f4dba8;
}

/* Ein bisschen mehr Tiefe, sobald die Navigation offen ist. */
.screen.nav-is-open .background-layer {
  filter: blur(13px) saturate(.82) brightness(.58);
}

@media (prefers-reduced-motion: reduce) {
  .nav-piece,
  .wood-button,
  .background-layer {
    transition: none !important;
  }
}
