/* ROMĪE — Gestaltungssystem der Coming-Soon-Seite.
   Werte aus docs/entscheidungen.md. Keine Abhängigkeiten. */

:root {
  --papier: #ffffff;
  --tinte: #1b1917;
  --linie: rgba(27, 25, 23, 0.2);
  /* Kein Nebentext auf dieser Seite: Kleingedrucktes, Platzhalter und die
     Rechtszeile stehen in voller Tinte statt auf 60 Prozent. Zum Zurückdrehen
     hier auf rgba(27, 25, 23, 0.6) setzen — es hängt alles an dieser Zeile. */
  --neben: #1b1917;

  --rand: 24px;          /* Außenrand Desktop */
  --schrift: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Register A — Versalien 11 px, keine Laufweite. */
.versal {
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 400;
}

.neben {
  color: var(--neben);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 1px;
}

a:hover {
  border-bottom-color: var(--tinte);
}

:focus-visible {
  outline: 1px solid var(--tinte);
  outline-offset: 4px;
}

/* ------------------------------------------------------------------ */
/* Startseite: links Inhalt auf Weiß, rechts das Motiv randabfallend.  */

.seite {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 45fr 55fr;
}

.spalte {
  display: flex;
  flex-direction: column;
  padding: var(--rand);
  min-width: 0;
}

.inhalt {
  margin-top: auto;            /* zusammen mit .fuss: Inhalt mittig, Fuß unten */
  /* 560: erst ab 520 wird das Kleingedruckte zweizeilig statt dreizeilig,
     mit Reserve für den Wechsel auf Helvetica Neue. */
  max-width: 560px;
  width: 100%;
  padding: 48px 0;
}

.motiv {
  position: relative;
  overflow: hidden;
  background: var(--tinte);
}

/* Absolut gesetzt, damit die Eigenhöhe des Bildes nicht die Seitenhöhe bestimmt.
   Sonst wächst die Seite über das Fenster hinaus und die Fußzeile mit dem
   Impressum rutscht unter die Kante. */
.motiv img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;    /* Halsansatz und Band bleiben im Bild */
}

.wortmarke {
  display: block;
  width: 150px;
  height: auto;
}

/* Warteliste ------------------------------------------------------- */

/* Drei Teile untereinander: Wortmarke, Absatz, Feld. Der Abstand unter der
   Wortmarke ist der größte der Seite, damit die Marke für sich steht. */
.warteliste {
  margin-top: 64px;
}

.warteliste__versprechen {
  margin: 0 0 32px;            /* Luft über dem Feld */
}

.feldzeile {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--linie);
  transition: border-color 120ms linear;
}

.feldzeile:focus-within {
  border-bottom-color: var(--tinte);
}

.feldzeile input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  padding: 8px 0;
  font-family: inherit;
  font-size: 16px;             /* verhindert das Zoomen beim Antippen auf iOS */
  line-height: 1.4;
  color: var(--tinte);
}

/* Der Platzhalter steht im Versalienregister, gleich groß wie EINTRAGEN.
   Das Feld selbst bleibt bei 16 px, sonst ist die eingetippte Adresse zu
   klein und iOS zoomt beim Antippen. */
.feldzeile input::placeholder {
  color: var(--neben);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.feldzeile input:focus {
  outline: none;
}

.feldzeile button {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 8px 0;
  margin: 0;
  font-family: inherit;
  color: var(--tinte);
  cursor: pointer;
}

.feldzeile button[disabled] {
  color: var(--neben);
  cursor: default;
}

/* Honigtopf: für Menschen unsichtbar, für Bots ein Feld. */
.honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kleingedruckt {
  margin: 24px 0 0;            /* Luft unter dem Feld */
  font-size: 12px;
  line-height: 1.6;
  color: var(--neben);
}

.rueckmeldung {
  margin: 16px 0 0;
  min-height: 1.7em;
}

.rueckmeldung:empty {
  margin: 0;
  min-height: 0;
}

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

.fuss {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-top: 24px;
}

.fuss a {
  border-bottom: 0;
}

.fuss a:hover {
  border-bottom: 1px solid var(--linie);
}

/* ------------------------------------------------------------------ */
/* Mobil: Motiv oben, Inhalt darunter.                                 */

@media (max-width: 899px) {
  :root {
    --rand: 20px;
  }

  .versal {
    font-size: 10px;
  }

  .seite {
    display: flex;
    flex-direction: column;
  }

  /* 44 Prozent, damit das Eingabefeld auch auf einem kleinen Gerät ohne
     Scrollen sichtbar bleibt. Die Seite hat genau eine Handlung. */
  .motiv {
    order: -1;                 /* Motiv steht auf Mobil oben */
    flex: 0 0 auto;
    height: 44vh;
    height: 44dvh;
  }

  .spalte {
    flex: 1 1 auto;
  }

  .inhalt {
    max-width: none;
    padding: 32px 0 0;
    margin: 0;
  }

  .wortmarke {
    width: 130px;
  }

  .warteliste {
    margin-top: 48px;
  }

  .feldzeile input::placeholder {
    font-size: 10px;
  }

  .fuss {
    padding-top: 40px;
    padding-bottom: 8px;
  }
}

/* Kleine Geräte: das Motiv gibt weiter nach, damit das Feld oben bleibt. */
@media (max-width: 899px) and (max-height: 700px) {
  .motiv {
    height: 34vh;
    height: 34dvh;
  }
}

/* ------------------------------------------------------------------ */
/* Textseiten: Impressum, Datenschutz, Bestätigung.                    */

.textseite {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--rand);
  padding-top: 96px;
  padding-bottom: 96px;
}

.textseite .wortmarke {
  margin-bottom: 96px;
}

.textseite h1 {
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 40px;
}

.textseite h2 {
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 400;
  margin: 40px 0 8px;
}

/* Rechtstexte brauchen drei Ebenen. Die zweite und dritte bleiben im
   Fließtextregister und unterscheiden sich nur durch Abstand und Deckkraft. */
.textseite h3 {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  margin: 32px 0 8px;
}

.textseite h4 {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--neben);
  margin: 24px 0 4px;
}

.textseite p,
.textseite li {
  margin: 0 0 16px;
}

.textseite ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.textseite .fuss {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--linie);
}

.platzhalter {
  border: 1px solid var(--linie);
  padding: 16px;
  margin-bottom: 24px;
  color: var(--neben);
}

/* Bestätigungsseite ------------------------------------------------- */

.meldung {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--rand);
  gap: 40px;
}

.meldung p {
  margin: 0;
  max-width: 420px;
}

/* ------------------------------------------------------------------ */

.einblenden {
  animation: einblenden 400ms ease-out both;
}

@keyframes einblenden {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
