/* ==========================================================================
   Knöpfe
   ========================================================================== */
.btn {
  --h: 56px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 8px 0 26px; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .4s;
}
.btn:active { transform: scale(.97) !important; }
.btn--sm { --h: 44px; padding-left: 18px; gap: 10px; font-size: .875rem; }
.btn__label { position: relative; display: block; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.btn__label > span { display: block; transition: transform .6s var(--ease-out); }
.btn__label > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.btn:hover .btn__label > span { transform: translateY(-100%); }
.btn__orb {
  flex: none; width: calc(var(--h) - 14px); height: calc(var(--h) - 14px); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.55), rgba(255,255,255,.12) 55%, rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 8px rgba(0,0,0,.12);
  transition: transform .6s var(--ease-out);
}
.btn__orb svg { width: 16px; height: 16px; transition: transform .6s var(--ease-out); }
.btn:hover .btn__orb { transform: scale(1.08); }
.btn:hover .btn__orb svg { transform: rotate(-45deg); }
.btn--primary { color: #fff; background: linear-gradient(180deg, var(--sea-hi), var(--sea)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--shadow-sea); }
.is-night .btn--primary { color: #1b0d06; background: linear-gradient(180deg, var(--sunset-hi), var(--sunset)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 26px -12px rgba(232,103,58,.7); }
.btn--glass {
  color: var(--fg); padding-right: 26px; overflow: hidden;
  background: rgba(255,255,255,.42); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 1px 0 #fff, 0 8px 24px -14px rgba(20,20,20,.3);
}
.btn--glass::before {
  content: ""; position: absolute; z-index: -1; left: var(--fx, 50%); top: var(--fy, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%;
  background: var(--fg); transform: translate(-50%, -50%) scale(0); transition: transform .7s var(--ease-out);
}
.btn--glass:hover { color: var(--bg); }
.btn--glass:hover::before { transform: translate(-50%, -50%) scale(1); }

/* ==========================================================================
   Chips, Kapseln
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font: 500 .85rem/1 var(--sans);
  background: rgba(255,255,255,.62); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 6px 18px -12px rgba(0,0,0,.3);
}
.chip svg { width: 16px; height: 16px; }
.is-night .chip { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.obj { width: 44px; height: 44px; object-fit: contain; flex: none; }

/* ==========================================================================
   Kugel (CSS-Fassung, im Hero übernimmt WebGL)
   ========================================================================== */
.orb {
  --s: 64px; width: var(--s); height: var(--s); border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 34% 26%, #8fd0e4 0%, #2c8dae 30%, #0b5c7a 66%, #063f55 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -4px 8px rgba(4,40,55,.45), 0 8px 18px -6px rgba(11,92,122,.6);
  display: grid; place-items: center; color: #fff;
}
.orb > svg { width: 46%; height: 46%; }

/* Cursor-Begleiter */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .4s; }
.has-cursor .cursor { opacity: 1; }
.cursor__orb { --s: 12px; position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); transition: width .5s var(--ease-out), height .5s var(--ease-out), left .5s var(--ease-out), top .5s var(--ease-out); }
.cursor__orb > svg { display: none; }
.cursor__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; transition: opacity .3s, transform .5s var(--ease-out); white-space: nowrap; }
.cursor.is-view .cursor__orb { --s: 92px; }
.cursor.is-view .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-press .cursor__orb { --s: 6px; }

/* ==========================================================================
   Kopf: nur Logo und Sprache
   ========================================================================== */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 100; display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter); pointer-events: none; color: var(--fg); transition: color .4s, opacity .5s;
}
.topbar > * { pointer-events: auto; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__word { font: 400 1.7rem/.9 var(--serif); letter-spacing: .02em; }
.logo__sub { font: 600 .56rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; margin-top: 4px; opacity: .8; }
.lang { font: 600 .78rem/1 var(--sans); letter-spacing: .08em; display: flex; gap: 6px; }
.lang a { opacity: .45; padding: 10px 3px; }
.lang a[aria-current] { opacity: 1; }

/* ==========================================================================
   Dock unten (mobile first, auf allen Geräten)
   ========================================================================== */
.dock {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 110;
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.66); color: var(--ink);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), inset 0 1px 0 #fff, 0 18px 40px -18px rgba(20,24,30,.45);
  transform: translate(-50%, 0); transition: transform .8s var(--ease-out), opacity .5s;
}
.dock.is-away { transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; }
.is-night .dock { background: rgba(30,32,42,.6); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px -18px rgba(0,0,0,.6); }
.dock__item {
  display: grid; justify-items: center; gap: 4px; min-width: 66px; padding: 8px 10px 7px; border-radius: 999px;
  font: 600 .66rem/1 var(--sans); letter-spacing: .01em; transition: background-color .3s, color .3s;
}
.dock__item .ico { width: 21px; height: 21px; }
.dock__item:hover, .dock__item[aria-current="true"] { color: var(--sea); background: rgba(255,255,255,.7); }
.is-night .dock__item:hover, .is-night .dock__item[aria-current="true"] { color: var(--sunset-hi); background: rgba(255,255,255,.08); }
.dock__item span { transition: opacity .4s, height .4s; height: 1em; overflow: hidden; }
.dock.is-compact .dock__item span { opacity: 0; height: 0; }
.dock.is-compact .dock__item { gap: 0; }
.dock__orb { margin: 0 6px; }
.dock__orb .orb { --s: 52px; transition: transform .5s var(--ease-spring); }
.dock__orb:hover .orb { transform: scale(1.06); }
@media (max-width: 420px) { .dock__item { min-width: 56px; padding-inline: 6px; } }

/* Blätter von unten (Mieten, Mehr) */
.sheet-wrap { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.sheet-wrap.is-open { visibility: visible; }
.sheet-wrap__dim { position: absolute; inset: 0; background: rgba(10,12,16,.35); opacity: 0; transition: opacity .5s; }
.sheet-wrap.is-open .sheet-wrap__dim { opacity: 1; }
.sheet {
  position: absolute; left: 50%; bottom: 0; width: min(560px, 100%); transform: translate(-50%, 105%);
  padding: 12px 18px calc(26px + env(safe-area-inset-bottom)); border-radius: 32px 32px 0 0; background: var(--limestone); color: var(--ink);
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.35); transition: transform .7s var(--ease-out);
}
.sheet-wrap.is-open .sheet { transform: translate(-50%, 0); }
.sheet__handle { width: 40px; height: 5px; border-radius: 9px; background: rgba(21,23,26,.18); margin: 0 auto 18px; }
.sheet h2 { font: 400 2rem/1 var(--serif); margin: 0 6px 16px; }
.sheet__list a, .sheet__list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 10px; border-radius: 18px; text-align: left; font: 500 1.05rem/1.2 var(--sans); }
.sheet__list a:hover, .sheet__list button:hover { background: #fff; }
.sheet__list small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; margin-top: 3px; }
.sheet__list .chev { margin-left: auto; color: var(--muted); }

/* ==========================================================================
   Preloader
   ========================================================================== */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--limestone); transition: opacity .9s var(--ease-out) .2s, visibility 0s 1.1s; }
.loader__orb { width: 84px; height: 84px; border-radius: 50%; position: relative; overflow: hidden; background: rgba(11,92,122,.08); box-shadow: inset 0 0 0 1px rgba(11,92,122,.25); }
.loader__water { position: absolute; left: -50%; width: 200%; height: 200%; top: calc(100% - var(--load, 0) * 100%); background: radial-gradient(circle at 50% 0, #2c8dae, var(--sea) 30%, var(--sea-deep)); border-radius: 42%; animation: wave 3.4s linear infinite; transition: top .6s var(--ease-out); }
.is-ready .loader { opacity: 0; visibility: hidden; }
@keyframes wave { to { transform: rotate(360deg); } }

/* ==========================================================================
   Gerät: iPhone 18 Pro aus Apples iOS-UI-Kit (Figma, „Product Bezels“).
   Rahmen 450 × 920 pt, Display 402 × 874 pt bei 24/23 pt. --pw = Displaybreite in px.
   ========================================================================== */
.device { --pw: 300px; position: relative; width: calc(var(--pw) * 450 / 402); aspect-ratio: 450 / 920; font-size: calc(var(--pw) / 402 * 16px); }
.device__screen { position: absolute; left: calc(24 / 450 * 100%); top: calc(23 / 920 * 100%); width: calc(402 / 450 * 100%); height: calc(874 / 920 * 100%); border-radius: 3em; overflow: hidden; background: #000; isolation: isolate; }
.device__bezel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; user-select: none; }
.device__glare { position: absolute; inset: 0; z-index: 70; pointer-events: none; background: linear-gradient(calc(115deg + var(--gl, 0deg)), rgba(255,255,255,.12), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 72%, rgba(255,255,255,.05)); }
.device__shadow { position: absolute; left: 10%; right: 10%; bottom: -4%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20,25,35,.38), transparent); filter: blur(10px); z-index: -1; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--night-0); color: #fff; padding: 90px var(--gutter) calc(120px + env(safe-area-inset-bottom)); position: relative; z-index: 2; }
.footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--sunset-hi); }
.footer__word { font: 400 clamp(5rem, 24vw, 26rem)/.8 var(--serif); letter-spacing: -.04em; display: flex; justify-content: space-between; margin-top: 40px; overflow: hidden; }
.footer__word span { display: inline-block; transform: translateY(100%); transition: transform 1.4s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.footer__word.is-in span { transform: none; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 30px; font-size: .8rem; color: rgba(255,255,255,.5); }
@media (max-width: 800px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
