/* OCTOPUS STAY – Startseite
   Farben, Schrift, Radien und Abstände aus dem Designsystem „Octopus Stay (Navan)“.
   Die alte Fassung auf Mews-Basis liegt in _archiv-mews/. */

:root {
  /* Farben (tokens.json) */
  --abyss: #151747;          /* Navy aus dem Bildzeichen: Footer-Band, Überschriften */
  --abyss-deep: #0d0f33;
  --heading: #151747;
  --ink: #0a0c24;
  --graphite: #565a74;       /* Lead-Text */
  --smoke: #5f6386;          /* Metadaten */
  --line: #c6cad8;
  --line-on-mist: rgba(21, 23, 71, 0.18);
  --canvas: #f1f3f8;         /* Seite (Navan: Canvas Tint) */
  --surface: #f8f9fc;
  --card: #ffffff;
  --tide: #256f88;           /* die eine Primäraktion, Links, Fokus */
  --tide-press: #1b5a70;
  --on-tide: #ffffff;
  --lagoon: #4fa9ad;         /* Türkis vom Kopf des Oktopus, nur Dekor */
  --sea-mist: #dff0f1;       /* Hervorhebungsflächen (Navan: Iris Mist) */
  --on-abyss: #ffffff;
  --on-abyss-soft: #c9cde3;
  --on-abyss-accent: #5bb5b9;

  /* Tiefsee-Verlauf: endet in tide statt Türkis, damit weißer Text überall lesbar bleibt */
  --os-deep-water: radial-gradient(180% 160% at 0% 0%, rgba(13, 15, 51, 0.97) 8%, rgba(27, 90, 112, 0.96) 62%, rgba(37, 111, 136, 0.95) 100%);

  /* Schrift */
  --font-display: "Inter Tight", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Tiempos Headline", Georgia, serif;
  --font-text: Inter, "Neue Haas Grotesk Text", "Helvetica Neue", Arial, sans-serif;

  /* Formen und Abstände */
  --radius-md: 14px;
  --radius-pill: 9999px;
  --page-max: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(64px, 8vw, 80px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--line) var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--tide);
}

::selection { background: var(--sea-mist); color: var(--heading); }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--tide); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--tide-press); }

:focus-visible { outline: 2px solid var(--tide); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--on-abyss-accent); }

h1, h2, h3, h4 { margin: 0; color: var(--heading); text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--abyss); color: var(--on-abyss); padding: 10px 16px; border-radius: var(--radius-md);
}
.skip-link:focus { top: 12px; }

/* Typografie: Serif für Überschriften, leichte Grotesk für alles andere */
.h1, .h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; }
.h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.h3 {
  font-family: var(--font-text);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.31;
}
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--graphite);
  max-width: 38em;
}
.subhead {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* Schaltflächen (Komponente Button) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  font-family: var(--font-text); font-size: 15px; font-weight: 500; line-height: 1.3;
  text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--tide); color: var(--on-tide); }
.btn--primary:hover { background: var(--tide-press); color: var(--on-tide); }
.btn--ghost { color: var(--heading); border-color: var(--heading); background: transparent; }
.btn--ghost:hover { color: var(--heading); background: var(--sea-mist); }
.btn--inverse { color: var(--on-abyss); border-color: rgba(255, 255, 255, 0.8); background: transparent; }
.btn--inverse:hover { color: var(--heading); background: var(--on-abyss); border-color: var(--on-abyss); }
.btn--pill { border-radius: var(--radius-pill); min-height: 40px; padding: 8px 18px; font-size: 14px; }
.on-dark a:not(.btn):hover { color: var(--on-abyss); }

/* Entwurfs-Hinweise (Rechtsseiten): alles, was vor der Veröffentlichung ergänzt werden muss */
.draft {
  display: inline-block;
  font-size: 13px; line-height: 1.45; font-weight: 500;
  padding: 6px 10px;
  border: 1px dashed currentColor; border-radius: var(--radius-md);
}

/* Kopfzeile (Komponente Navigation) */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--canvas);
  box-shadow: inset 0 -1px 0 var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); flex: none; }
.logo img { height: 38px; width: auto; }
.logo__word {
  font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.logo__stay { color: var(--tide); }
.logo:hover { color: var(--heading); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 15px; color: var(--ink); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius-md);
}
.site-nav a:hover { color: var(--tide); }
.site-nav .nav-contact { margin-left: 12px; padding: 8px 18px; border-radius: var(--radius-pill); color: var(--on-tide); }
.site-nav .nav-contact:hover { color: var(--on-tide); }
.header-contact { display: none; }

/* Einstieg: Video im Hintergrund, Navy-Abdunklung für weißen Text */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--abyss-deep);
  color: var(--on-abyss);
  padding-block: clamp(96px, 13vw, 176px);
}
.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: var(--abyss-deep); opacity: 0; pointer-events: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 15, 51, 0.88) 0%, rgba(13, 15, 51, 0.74) 42%, rgba(21, 23, 71, 0.38) 100%),
    linear-gradient(0deg, rgba(13, 15, 51, 0.35), rgba(13, 15, 51, 0) 40%);
}
.hero__text { display: grid; gap: 20px; max-width: 40rem; }
.hero .h1 { color: var(--on-abyss); font-size: clamp(38px, 5vw, 64px); }
.hero .lead { color: var(--on-abyss); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero__toggle {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  font: 500 13px/1 var(--font-text); color: var(--on-abyss);
  background: rgba(13, 15, 51, 0.55); border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.hero__toggle:hover { background: rgba(13, 15, 51, 0.8); }
.hero__toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero__toggle .i-play { display: none; fill: currentColor; }
.hero__toggle[aria-pressed="true"] .i-pause { display: none; }
.hero__toggle[aria-pressed="true"] .i-play { display: inline; }

/* Abschnitte allgemein */
.section { padding-block: var(--section); }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 48rem; }

.bullets { list-style: none; display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 20px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--lagoon); }

.section-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.section-foot p { max-width: 38em; color: var(--graphite); }

/* Geschäftsmodelle A und B */
.part__tag {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--heading);
}
.part__letter {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--abyss); color: var(--on-abyss);
  font-family: var(--font-serif); font-size: 17px; letter-spacing: 0; text-transform: none;
}
.part--b { background: var(--sea-mist); }
.part--b .section-foot { border-top-color: var(--line-on-mist); }

/* A: Kriterien */
.criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.criteria__col {
  display: grid; gap: 14px; align-content: start;
  padding: 24px; border-radius: var(--radius-md);
  background: var(--card); border: 1px solid var(--line);
}
.criteria .bullets { font-size: 17px; }

/* B: drei Kooperationsmodelle */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model {
  display: grid; align-content: start; gap: 12px;
  padding: 24px 20px; border-radius: var(--radius-md);
  background: var(--card);
}
.model__head { display: flex; align-items: center; gap: 12px; }
.model__icon { display: inline-flex; flex: none; }
.model__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--tide); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.model .h3 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.model__def { font-size: 16px; color: var(--ink); }
.model .bullets { color: var(--graphite); font-size: 15px; }

/* Unterkunftskonzept: das eine Tiefsee-Panel der Seite, drei Spalten mit Haarlinie statt Kacheln */
.concept .deep {
  background: var(--abyss-deep); background-image: var(--os-deep-water);
  color: var(--on-abyss);
  border-radius: var(--radius-md);
  padding: clamp(32px, 5vw, 64px);
}
.concept .h2 { color: var(--on-abyss); }
.concept .lead { color: var(--on-abyss-soft); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 40px); }
.pillar {
  display: grid; gap: 8px; align-content: start;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.pillar .h3 { color: var(--on-abyss); }
.pillar p { color: var(--on-abyss); }

/* Pilotprojekt */
.pilot-section { overflow-x: clip; }
.pilot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px clamp(32px, 5vw, 64px);
  align-items: end;
}
.pilot__intro { display: grid; gap: 16px; max-width: 40rem; }
.facts {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; min-width: 300px;
  padding: 20px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.facts dt { color: var(--smoke); font-size: 15px; }
.facts dd { margin: 0; font-weight: 500; }
/* Beide Bildflächen gleich hoch: Spaltenbreiten im Verhältnis ihrer Seitenformate (1.75 : 1.33) */
.pilot__media {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.333fr);
  gap: 16px; margin-top: 16px;
}

/* Vorher-Nachher mit wandernder Linie */
.ba {
  --p: 0%; --o: 1; --ta: 0; --tb: 1;
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 1600 / 914; border-radius: var(--radius-md);
  background: var(--surface);
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--p)) 0 0);
  opacity: var(--o);
}
.ba__line {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px;
  background: #ffffff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  opacity: var(--o);
}
.ba__line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.ba__tag {
  position: absolute; top: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.5;
  padding: 4px 10px; border-radius: var(--radius-md);
  background: var(--card); color: var(--heading);
}
.ba__tag--before { right: 12px; opacity: var(--tb, 1); }
.ba__tag--after { left: 12px; opacity: var(--ta, 0); }

/* Diashow der Apartment-Bilder */
.slides {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--radius-md);
  background: var(--surface);
}
.slides__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
.slides__img.is-active { opacity: 1; }
.slides__dots { position: absolute; right: 14px; bottom: 18px; display: flex; gap: 6px; }
.slides__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: background-color .4s ease, transform .4s ease; }
.slides__dots span.is-active { background: #ffffff; transform: scale(1.35); }

/* Team */
.team-section { background: var(--surface); box-shadow: inset 0 1px 0 var(--line); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.person {
  display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 20px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line);
}
.portrait {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-md); background: var(--abyss-deep);
}
.person__body { display: grid; gap: 8px; }
.person__role { font-size: 14px; font-weight: 500; color: var(--tide); }
.person__body p:not(.person__role) { color: var(--graphite); }

/* Kontakt: eine helle Fläche, zwei Spalten mit Haarlinie statt Karten in der Karte */
.contact-panel {
  background: var(--sea-mist); border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 56px);
}
.contact-panel .section__head { margin-bottom: 24px; }
.mail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line-on-mist); border-bottom: 1px solid var(--line-on-mist);
}
.mail__link {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4.6vw, 52px);
  font-weight: 400; line-height: 1.1;
  color: var(--heading);
  text-decoration: underline; text-decoration-color: var(--tide); text-decoration-thickness: 2px; text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}
.mail__link:hover { color: var(--tide); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 500 14px/1 var(--font-text); color: var(--heading);
  background: transparent; border: 1.5px solid var(--heading); border-radius: var(--radius-md);
  padding: 12px 16px; cursor: pointer;
}
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { background: var(--card); }

.contact-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 64px); margin-top: 32px; }
.help { display: grid; gap: 14px; align-content: start; }
.help .bullets { color: var(--graphite); }
.help .btn { justify-self: start; margin-top: 8px; }

/* Footer (Komponente FooterBand) */
.site-footer { background: var(--abyss); color: var(--on-abyss-soft); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-claim { font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; color: var(--on-abyss); margin-top: 20px; max-width: 16em; }
.site-footer .logo { color: var(--on-abyss); }
.site-footer .logo__stay { color: var(--on-abyss-accent); }
.footer-links { list-style: none; display: grid; gap: 0; }
.footer-links a { display: inline-block; padding-block: 10px; }
.site-footer a { color: var(--on-abyss-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-abyss); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 16px; border-top: 1px solid rgba(201, 205, 227, 0.2); font-size: 13px; }

/* Rechtsseiten */
.legal { padding-block: clamp(56px, 8vw, 96px); }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); display: grid; gap: 24px; }
.legal h1 { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 48px); font-weight: 400; line-height: 1.08; }
.legal h2 { font-size: 20px; font-weight: 500; margin-top: 12px; }
.legal p, .legal li { color: var(--graphite); }
.legal .draft { color: var(--smoke); }
.legal ul { padding-left: 20px; display: grid; gap: 4px; }
.legal ul { list-style: disc; }
.legal a { color: var(--tide); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .legal__date { font-size: 14px; color: var(--smoke); margin-top: 16px; }
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 20px; }

/* Responsiv */
@media (max-width: 960px) {
  .people, .contact-help, .criteria, .models, .pillars { grid-template-columns: 1fr; }
  .pilot { grid-template-columns: 1fr; align-items: start; }
  .facts { min-width: 0; }
}

@media (max-width: 840px) {
  html { scroll-padding-top: 124px; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; min-height: 64px; gap: 16px; }
  .header-contact { display: inline-flex; margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0 0 6px; gap: 0; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; padding: 10px 8px; }
  .site-nav a:first-child { margin-left: -8px; }
  .site-nav .nav-contact { display: none; }
  .logo__word { font-size: 16px; letter-spacing: 0.12em; }
  .logo img { height: 32px; }
  .hero__actions .btn { width: 100%; }
  .person { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  .hero { padding-block: 72px 88px; }
  .hero::before { background: rgba(13, 15, 51, 0.72); }
  .pilot__media { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Mit GSAP (Klasse .js, gesetzt im <head>, entfernt falls GSAP fehlt) ---------- */
.js { scroll-behavior: auto; scroll-padding-top: calc(var(--header-h, 72px) + 16px); }
.js .site-header { position: fixed; top: 0; left: 0; right: 0; }
.js #smooth-content { padding-top: var(--header-h, 72px); }
.js .hero__text { visibility: hidden; }
/* Abschnitt A fährt als Vorhang über den angehefteten Hero */
.js .part--a {
  position: relative; z-index: 2;
  background: var(--canvas);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -24px 48px -16px rgba(0, 0, 0, 0.35);
}
.js main > section:not(.hero) { position: relative; z-index: 2; }
.js .site-footer { position: relative; z-index: 2; }
