/* Maison Nomade – Landingpage
   Farben und Typografie folgen der App: Obsidian, Porzellan, Champagnergold. */

:root {
  --obsidian: #0b0a0c;
  --obsidian-tief: #060507;
  --porzellan: #f3f0ea;
  --porzellan-gedaempft: #9a938a;
  --gold: #c9a96b;
  --gold-hell: #e0c48c;
  --gold-dunkel: #a98a50;
  --haarlinie: rgba(243, 240, 234, 0.12);
  --haarlinie-stark: rgba(243, 240, 234, 0.2);

  --serifen: "Cormorant Garamond", "New York", Georgia, "Times New Roman", serif;
  --grotesk: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;

  --rand: clamp(1.5rem, 5vw, 4.5rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--obsidian);
  color: var(--porzellan);
  font-family: var(--grotesk);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Warmer Lichtschein oben rechts, wie der Radialverlauf in der App. */
.lichtschein {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 88% -8%, rgba(201, 169, 107, 0.16), transparent 62%),
    radial-gradient(48rem 36rem at 4% 104%, rgba(201, 169, 107, 0.07), transparent 60%),
    linear-gradient(180deg, transparent 55%, var(--obsidian-tief) 100%);
}

/* Feine Körnung nimmt den Verläufen das Digitale. */
.koernung {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rahmen {
  position: relative;
  z-index: 1;
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) var(--rand) clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* --- Marke --- */

.marke {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.monogramm {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(201, 169, 107, 0.45);
  border-radius: 50%;
  font-family: var(--serifen);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(201, 169, 107, 0.14), transparent 70%);
}

.wortmarke {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--porzellan-gedaempft);
}

/* --- Eyebrow mit Goldstrich, wie in der App --- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.strich {
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dunkel), var(--gold-hell));
}

/* --- Hero: Slogan links, iPhone rechts --- */

main { flex: 1; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
  padding: clamp(2.25rem, 7vh, 4.5rem) 0 clamp(2rem, 5vh, 3rem);
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

h1 {
  margin: 0 0 1.35rem;
  font-family: var(--serifen);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.lead {
  max-width: 32rem;
  margin: 0;
  color: var(--porzellan-gedaempft);
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  line-height: 1.65;
}

.hero-geraet {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Weicher Übergang zwischen Slogan und Gerät – nicht über dem Display. */
.hero-uebergang {
  display: none;
}

.iphone {
  width: min(100%, 18.5rem);
  filter: drop-shadow(0 1.75rem 3rem rgba(0, 0, 0, 0.55));
}

.iphone-rahmen {
  position: relative;
  padding: 0.55rem;
  border-radius: 2.35rem;
  background:
    linear-gradient(160deg, #2a2724 0%, #121014 42%, #1c1a1d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 0.35rem #0a090b;
}

.iphone-display {
  position: relative;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 1.85rem;
  background: #0b0a0c;
}

.iphone-display img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.iphone-display img.is-aktiv {
  opacity: 1;
}

/* --- Aktion: Countdown + Anmeldung --- */

.aktion {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(2rem, 5vh, 3rem) 0;
  border-top: 1px solid var(--haarlinie);
  border-bottom: 1px solid var(--haarlinie);
}

.countdown {
  padding: 0;
  border-top: 0;
}

.countdown[hidden] {
  display: none !important;
}

.zaehler {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--haarlinie);
  border-top: 1px solid var(--haarlinie);
  border-bottom: 1px solid var(--haarlinie);
}

.zaehler li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 0.45rem;
  background: var(--obsidian);
}

.zahl {
  font-family: var(--serifen);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--porzellan);
}

.einheit {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--porzellan-gedaempft);
}

.zaehler-hinweis {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--porzellan-gedaempft);
}

.anmeldung {
  padding: 0;
  border-top: 0;
}

.anmeldung h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serifen);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.8vw, 2.15rem);
  line-height: 1.15;
}

.anmeldung-text {
  max-width: 30rem;
  margin: 0 0 1.1rem;
  color: var(--porzellan-gedaempft);
}

.anmeldung-hinweis {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(154, 147, 138, 0.9);
}

.feld {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 34rem;
  border-bottom: 1px solid var(--haarlinie-stark);
  padding-bottom: 0.75rem;
  transition: border-color 0.25s ease;
}

.feld:focus-within { border-color: var(--gold); }

input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--porzellan);
  font-family: var(--grotesk);
  font-size: 1rem;
  padding: 0.35rem 0;
}

input[type="email"]::placeholder { color: rgba(154, 147, 138, 0.7); }
input[type="email"]:focus { outline: none; }

button[type="submit"] {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  background: linear-gradient(135deg, var(--gold-hell), var(--gold) 55%, var(--gold-dunkel));
  color: #1a1509;
  font-family: var(--grotesk);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.25s ease;
}

button[type="submit"]:hover {
  box-shadow: 0 0 2.25rem rgba(201, 169, 107, 0.28);
}

button[type="submit"]:active { transform: scale(0.975); }

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

button[type="submit"]:focus-visible,
input[type="email"]:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.rueckmeldung {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  color: var(--porzellan-gedaempft);
}

.rueckmeldung[data-art="erfolg"] { color: var(--gold); }
.rueckmeldung[data-art="fehler"] { color: #c1445c; }

.feld-optional {
  margin-top: 0.85rem;
}

.feld-optional label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--porzellan-gedaempft);
}

.feld-optional label span {
  opacity: 0.7;
}

.feld-optional input {
  width: 100%;
  border: 1px solid var(--haarlinie-stark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--porzellan);
  border-radius: 0.55rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
}

.feld-optional input::placeholder {
  color: rgba(154, 147, 138, 0.7);
}

.einwilligung {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--porzellan-gedaempft);
  cursor: pointer;
}

.einwilligung input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.einwilligung a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 107, 0.35);
}

/* --- Säulen --- */

.saeulen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
  padding: clamp(2.25rem, 5vh, 3.25rem) 0;
  border-top: 0;
}

.saeulen h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serifen);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--gold);
}

.saeulen p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--porzellan-gedaempft);
}

/* --- Fuß --- */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--haarlinie);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(154, 147, 138, 0.75);
}

.fuss-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fuss-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: flex-start;
}

.fuss-nav a,
.recht-fuss a {
  color: rgba(154, 147, 138, 0.9);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.fuss-nav a:hover,
.recht-fuss a:hover {
  color: var(--gold);
  border-bottom-color: rgba(201, 169, 107, 0.45);
}

/* --- TestFlight-Button (nur Danke-Seite, MN-Stil wie „Auf die Liste“) --- */

a.testflight-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.75rem 0 0.25rem;
  padding: 0.85rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-hell), var(--gold) 55%, var(--gold-dunkel));
  color: #1a1509 !important;
  font-family: var(--grotesk);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(201, 169, 107, 0.18);
}

a.testflight-button:hover,
a.testflight-button:visited,
a.testflight-button:focus-visible {
  color: #1a1509 !important;
  text-decoration: none !important;
  opacity: 0.92;
  transform: translateY(-1px);
}

a.testflight-button[hidden] {
  display: none !important;
}

/* --- Danke --- */

.danke {
  padding: clamp(2rem, 6vh, 4rem) 0 2rem;
  max-width: 34rem;
}

.danke h1 {
  margin: 0.35rem 0 1rem;
  font-family: var(--serifen);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  line-height: 1.05;
}

.danke h1 em {
  font-style: italic;
  color: var(--gold);
}

.danke-position {
  margin: 0 0 1rem;
  font-family: var(--serifen);
  font-size: 1.35rem;
  color: var(--gold);
}

.danke-text,
.danke-sekundaer {
  color: var(--porzellan-gedaempft);
  line-height: 1.7;
}

.empfehlung {
  margin: 1.75rem 0 1.5rem;
}

.empfehlung label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--porzellan-gedaempft);
}

.empfehlung-feld {
  display: flex;
  gap: 0.5rem;
}

.empfehlung-feld input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--haarlinie-stark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--porzellan);
  border-radius: 0.55rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
}

.empfehlung-feld button {
  border: 1px solid rgba(201, 169, 107, 0.45);
  background: transparent;
  color: var(--gold);
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
  font: inherit;
  cursor: pointer;
}

.empfehlung-feld button:hover {
  background: rgba(201, 169, 107, 0.1);
}

.zurueck {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 107, 0.35);
  font-size: 0.9rem;
}

/* --- Rechtstexte --- */

.rahmen.recht {
  max-width: 44rem;
}

.marke-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.recht-inhalt {
  padding: clamp(2rem, 5vh, 3.5rem) 0 2rem;
}

.recht-inhalt h1 {
  margin: 0.4rem 0 0.85rem;
  font-family: var(--serifen);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.recht-intro {
  margin: 0 0 2rem;
  color: var(--porzellan-gedaempft);
  max-width: 36rem;
}

.recht-inhalt h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--serifen);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--gold);
}

.recht-inhalt p,
.recht-inhalt li {
  color: rgba(243, 240, 234, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
}

.recht-inhalt ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.recht-inhalt a {
  color: var(--gold);
}

.recht-inhalt code {
  font-size: 0.85em;
  color: var(--gold-hell);
}

.recht-hinweis {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--haarlinie);
  font-size: 0.82rem !important;
  color: var(--porzellan-gedaempft) !important;
}

.recht-inhalt .fehlt {
  display: none;
}

.recht-fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--haarlinie);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.recht-fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.recht-fuss a[aria-current="page"] {
  color: var(--gold);
}

/* --- Hilfsklassen --- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 30rem) {
  .zaehler { grid-template-columns: repeat(2, 1fr); }
  .feld { flex-wrap: wrap; }
  button[type="submit"] { width: 100%; }
  .iphone { width: min(100%, 16.5rem); }
}

/* Desktop: Hero zweispaltig, Countdown links / Anmeldung rechts */
@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.95fr);
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    min-height: min(78svh, 46rem);
    padding: clamp(1.75rem, 5vh, 3rem) 0;
  }

  .hero-text {
    padding-right: clamp(0.5rem, 2vw, 1.5rem);
  }

  /* Soft fade am rechten Textrand Richtung Gerät */
  .hero-text::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1.5rem;
    bottom: 0;
    width: 4.5rem;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(11, 10, 12, 0.55) 55%, var(--obsidian));
    opacity: 0.85;
  }

  .hero-geraet {
    justify-content: flex-end;
    min-height: 100%;
  }

  .hero-uebergang {
    display: block;
    position: absolute;
    z-index: 3;
    left: -12%;
    top: 6%;
    bottom: 6%;
    width: 28%;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(11, 10, 12, 0.82) 0%,
      rgba(11, 10, 12, 0.35) 42%,
      transparent 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
  }

  .iphone {
    width: min(100%, 21rem);
  }

  h1 {
    font-size: clamp(3.1rem, 5.2vw, 5rem);
  }

  .aktion {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding: clamp(2.25rem, 4.5vh, 3.25rem) 0;
  }

  /* Wenn der Countdown fehlt, nimmt die Anmeldung die volle Breite. */
  .aktion:has(.countdown[hidden]) {
    grid-template-columns: 1fr;
  }

  .aktion:has(.countdown[hidden]) .anmeldung {
    max-width: 36rem;
  }

  .saeulen {
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(2rem, 4vh, 2.75rem) 0;
  }

  .saeulen h3 { font-size: 1.15rem; }
  .saeulen p { font-size: 0.85rem; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .iphone-display img { transition: none !important; }
}
