/* Windige Zeiten – Waitlist
   Design-Tokens & Stile 1:1 aus der Hauptseite windige-zeiten.lovable.app */

:root {
  --bg: #f3eee6;
  --text: #171513;
  --green: #3b4e40;
  --green-active: #639370;
  --green-deep: #223226;
  --green-soft: #e0ece2;
  --sand: #ebe4d8;
  --pergament: #c7bfaf;
  --bronze: #7e5d34;
  --bronze-soft: #f5ead9;
  --muted-warm: #4b463f;
  --card: #ffffff;
  --radius: 0.125rem; /* 2px */
  --font-serif: "Source Serif 4", ui-serif, Georgia, serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Topografischer Hintergrund – exakt aus Original */
.topo-bg {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 30%, #3a56450a 0, #0000 40%),
    radial-gradient(circle at 80% 70%, #8a683009 0, #0000 45%),
    repeating-radial-gradient(circle, #3a564506 0 1px, #0000 1px 28px);
  background-attachment: fixed;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.5rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  margin-bottom: 1.25rem;
}

.display-h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(40px, 6vw, 64px);
  color: var(--text);
  margin: 0 0 1.5rem;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-warm);
  max-width: 34rem;
  margin: 0 0 2.25rem;
}

/* ---------- Waitlist-Formular ---------- */
.waitlist {
  width: 100%;
  max-width: 30rem;
}

.waitlist-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--pergament);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-form input[type="email"]::placeholder {
  color: #9a9184;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(59, 78, 64, 0.12);
}

.waitlist-form button {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--card);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.waitlist-form button:hover:not(:disabled) {
  background: var(--green-active);
  border-color: var(--green-active);
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-warm);
  margin: 0.9rem 0 0;
}

.form-note a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Erfolgs- / Fehlerzustände */
.form-message {
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}

.form-message.success {
  background: var(--green-soft);
  border: 1px solid var(--green-active);
  color: var(--green-deep);
}

.form-message .msg-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.25rem;
}

.form-message .msg-hint {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted-warm);
}

.form-error {
  color: #a33227;
  font-size: 0.85rem;
  margin: 0.65rem 0 0;
  min-height: 1em;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem 2rem;
  font-size: 0.82rem;
  color: var(--muted-warm);
  border-top: 1px solid var(--pergament);
}

.site-footer a {
  color: var(--muted-warm);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
}

.site-footer .dot {
  color: var(--pergament);
}

/* ---------- Utility ---------- */
.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;
}

/* ---------- Inhaltsseiten (Impressum, Datenschutz) ---------- */
.content {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.content .eyebrow {
  margin-bottom: 0.75rem;
}

.content h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(30px, 4.5vw, 42px);
  color: var(--text);
  margin: 0 0 2rem;
}

.content h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--green-deep);
  margin: 2.25rem 0 0.6rem;
}

.content h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 1.5rem 0 0.4rem;
}

.content p,
.content li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted-warm);
}

.content p {
  margin: 0 0 0.9rem;
}

.content ul {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.content li {
  margin-bottom: 0.35rem;
}

.content a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content strong {
  color: var(--text);
  font-weight: 600;
}

/* Platzhalter, die noch mit echten Daten gefüllt werden müssen */
.placeholder {
  background: var(--bronze-soft);
  border-bottom: 1px dashed var(--bronze);
  color: var(--bronze);
  padding: 0 0.25em;
  border-radius: 2px;
  font-style: normal;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted-warm);
  text-decoration: none;
}
.back-link:hover {
  color: var(--green);
}

.updated {
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: var(--pergament);
}

/* ---------- Zentrierte Statusseite (DOI-Bestätigung) ---------- */
.status-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
  width: 100%;
}

.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid var(--green-active);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.status-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--green);
}

.status-page h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text);
  margin: 0 0 1.25rem;
}

.status-page p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted-warm);
  max-width: 32rem;
  margin: 0 0 1rem;
}

.status-page .cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--card);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.status-page .cta:hover {
  background: var(--green-active);
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
  }
  .waitlist-form button {
    width: 100%;
  }
}
