/* Oorde – vorläufige Webseite
   Schriften und Grafiken liegen lokal. Externe Skripte nur auf der Startseite für die Warteliste:
   Brevo (Formularversand) und Cloudflare Turnstile (Spamschutz) – siehe Datenschutz. */

/* Schriften lokal: Dateien in den Ordner fonts/ legen (siehe Anleitung). Fehlen sie, greifen die Ersatzschriften. */
@font-face { font-family: "Oorde Display"; src: url("fonts/bodoni-moda.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Oorde Text"; src: url("fonts/jost.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --plum: #3F1B2E;
  --plum-deep: #2F1422;
  --cream: #F1E6D8;
  --sand: #D9C9BA;
  --muted: #BCA99B;
  --sage: #A7B59C;
  --fruit: #D0587E;
  --display: "Oorde Display", "Didot", "Bodoni 72", "Bodoni MT", "Bodoni Moda", "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Oorde Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--plum);
  color: var(--cream);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cream); text-underline-offset: 3px; }
a:hover { color: var(--sage); }
a:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.page {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.brand {
  font-family: var(--display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--cream);
}

/* Startseite */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.arch {
  justify-self: center;
  width: min(300px, 80vw);
  aspect-ratio: 460 / 620;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.arch svg { width: 100%; height: 100%; display: block; }

h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 120px);
  line-height: 0.96;
}

.lead {
  margin: 0 0 16px;
  max-width: 34em;
  font-weight: 300;
  color: var(--sand);
}

.soon { margin: 0 0 32px; }

.contact {
  display: inline-block;
  padding: 14px 26px;
  background: var(--cream);
  color: var(--plum);
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.contact:hover { background: var(--sage); color: var(--plum-deep); }

/* Warteliste (Brevo-Formular, eigene Gestaltung statt Brevo-Stylesheet) */
.soon { max-width: 34em; }
.sib-form, .sib-form-container, .sib-container { max-width: 34em; }
.waitlist { max-width: 34em; margin: 0; }
.waitlist .entry__label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.waitlist .sib-input { flex: 1 1 240px; }
.waitlist-submit { padding-top: 32px; } /* Höhe der Beschriftung, damit der Button neben dem Feld steht */
.waitlist input.input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--sand);
  border-radius: 2px;
  color: var(--cream);
  font: inherit;
  font-size: 16px;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:focus-visible, .waitlist button:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.waitlist button {
  min-height: 52px;
  padding: 0 26px;
  background: var(--cream);
  color: var(--plum);
  border: none;
  border-radius: 2px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.waitlist button:hover:not(:disabled) { background: var(--sage); color: var(--plum-deep); }
.waitlist input:disabled, .waitlist button:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist button { display: inline-flex; align-items: center; gap: 8px; }
.waitlist .input--hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-note { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--sand); }
.soon strong { font-weight: 500; color: var(--cream); }

/* Fehlermeldungen direkt am Feld (Brevo füllt sie bei Bedarf) */
.waitlist .entry__error { display: block; margin-top: 6px; font-size: 14px; color: #F2B8C8; }
.waitlist .entry__error:empty { display: none; }
.waitlist input.input[aria-invalid="true"], .waitlist .entry_errored input.input { border-color: #F2B8C8; }

/* Spamschutz-Feld */
.waitlist .sib-captcha { margin-top: 0; } /* Box ist meist unsichtbar; kein Leerraum */
.waitlist .sib-captcha .entry__label { display: none; }

/* Ladeanzeige im Button */
.sib-hide-loader-icon { display: none; }
.progress-indicator__icon { width: 16px; height: 16px; fill: currentColor; animation: oorde-spin 1s linear infinite; }
@keyframes oorde-spin { to { transform: rotate(360deg); } }

/* Meldungen nach dem Absenden: unsichtbar, bis Brevo sie aktiviert */
.sib-form-message-panel { display: none; }
.sib-form-message-panel--active { display: block; }
.waitlist-msg { max-width: 34em; margin: 0 0 20px; padding-top: 20px; border-top: 1px solid var(--sage); color: var(--sand); }
.waitlist-msg .done-title { margin: 0 0 8px; font-family: var(--display); font-size: 28px; color: var(--cream); }
.waitlist-msg--error { border-top-color: var(--fruit); color: var(--cream); padding-bottom: 4px; }
/* Nach erfolgreicher Anmeldung das Formular ausblenden, nur die Meldung bleibt */
.sib-form-container:has(#success-message.sib-form-message-panel--active) #sib-container { display: none; }

@media (max-width: 520px) {
  .waitlist-submit { padding-top: 0; flex-basis: 100%; }
  .waitlist-submit button { width: 100%; justify-content: center; }
}

/* Handy: Text und Warteliste zuerst, Grafik kleiner darunter */
.arch { order: 2; }
@media (max-width: 859px) {
  .arch { width: min(220px, 60vw); }
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(241, 230, 216, 0.2);
  font-size: 14px;
  color: var(--sand);
}
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* Rechtstext-Seiten */
.legal { flex: 1; max-width: 42em; }
.legal h1 { font-size: clamp(40px, 7vw, 64px); }
.legal h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 32px 0 8px; }
.legal p { color: var(--sand); }
.placeholder {
  padding: 16px 20px;
  border: 1px dashed var(--muted);
  color: var(--muted);
}

@media (min-width: 860px) {
  .page { padding: 48px 64px; }
  .hero { grid-template-columns: 1.4fr 1fr; gap: 80px; }
  .arch { width: 100%; max-width: 420px; order: 2; }
}

@media (prefers-reduced-motion: no-preference) {
  .arch { animation: rise 1.2s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

.placeholder-inline { color: var(--muted); border-bottom: 1px dashed var(--muted); }
.legal-date { margin-top: 32px; font-size: 14px; color: var(--muted); }
