/* Local Comfortaa font: quick setup with one TTF variable font */
@font-face {
  font-family: 'Comfortaa';
  src: url('fonts/Comfortaa-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* variable Gewichtsspanne */
  font-style: normal;
  font-display: swap;
}

/* Base tokens */
:root {
  --bg: #f3f4f7;
  --panel: #ffffff;
  --text: #545454; /* requested */
  --muted: #6a6a6a;
  --border: #e8e9ee;
  --brand: #0d1321;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow-md: 0 10px 25px rgba(16, 24, 40, 0.08);
  --shadow-sm: 0 6px 16px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Comfortaa', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--text);
  background: var(--bg);
}

.page {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 32px 32px;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 32px;
  font-size: 12px;
  color: var(--muted);
}

.site-footer__inner {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-footer__nav a:hover,
.site-footer__nav a:focus {
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0;
  white-space: nowrap;
}

.legal-page {
  max-width: 800px;
  margin: 32px auto 48px;
  padding: 32px 24px 40px;
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.legal-page__header {
  margin-bottom: 24px;
}

.legal-page__header h1 {
  margin: 8px 0 0;
  font-size: 24px;
}

.legal-page__back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.legal-page__back:hover,
.legal-page__back:focus {
  text-decoration: underline;
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.legal-section p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

.legal-section ul {
  margin: 0 0 8px 20px;
  font-size: 14px;
}

.legal-note {
  font-size: 12px;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: flex-start; /* Logo- und Kartenoberkante bündig */
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.hero__content { width: 100%; }

.hero__header {
  margin-bottom: 120px; /* Abstand zwischen Logo und Claim (Desktop) */
}

.claim {
  margin-top: 0; /* Abstand wird über hero__header gesteuert */
}

.hero__logo {
  height: 32px;
  width: auto;
  display: block;
}

.claim__title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
  color: #3A5036; /* requested claim color */
}

.claim__sub {
  margin: 0 0 56px; /* mehr Abstand zur E-Mail */
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: #749F6D; /* updated subheadline color */
}

.claim__note {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 12px;
}

.consent input[type="checkbox"] {
  margin-top: 2px;
}

.consent label {
  cursor: pointer;
}

.waitlist {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 520px;
}

.waitlist input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.waitlist input[type="email"]:focus {
  border-color: #c7c8d1;
  box-shadow: 0 0 0 4px rgba(13, 19, 33, 0.06);
}

.btn {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #FF9385; /* requested button color */
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Comfortaa', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  cursor: pointer;
}

.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

.form__message {
  grid-column: 1 / -1;
  margin: 6px 2px 0;
  font-size: 14px;
}

.hero__visual { width: 100%; }

.visual-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* responsive card, etwas flacher auf Desktop */
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #f2f3f7, #e8eaf3);
}

.visual-card__img {
  position: absolute;
  inset: 0;                     /* fill the rounded container */
  width: 100%;
  height: 100%;
  object-fit: cover;            /* cover entire container */
  object-position: right center;/* align content to the right */
}

.visual-card__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #8f94a3;
  font-size: 14px;
  letter-spacing: 0.2px;
  background: repeating-linear-gradient(
    -45deg,
    #f7f8fb,
    #f7f8fb 12px,
    #eef0f6 12px,
    #eef0f6 24px
  );
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px;
  }
  .hero__header {
    margin-bottom: 56px; /* auf kleineren Screens etwas kompakter */
  }
  .hero__header {
    margin-bottom: 56px; /* auf kleineren Screens etwas kompakter */
  }
  .hero__visual {
    order: -1; /* image first on small screens */
    display: flex;
    justify-content: center;
    margin-bottom: 56px; /* Abstand zwischen grünem Container und Logo */
  }
  .visual-card {
    width: 80%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 560px) {
  .page { padding: 0 16px 16px; margin-top: 24px; }
  .hero { padding: 22px; gap: 24px; }
  .waitlist { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  /* Claim auf kleinen Screens etwas kleiner, damit beide Zeilen nicht umbrechen */
  .claim__title {
    font-size: 20px;
  }
  .claim__sub {
    margin-bottom: 28px; /* halber Abstand Subheadline -> Erklärungstext */
  }
  .visual-card {
    width: 100%;
    max-width: none; /* gleiche Breite wie Formular-Elemente */
  }
  .visual-card__img {
    object-position: 98% center; /* Smartphone im Hochformat weiter nach links ins Zentrum holen */
    transform: none;
  }
  .site-footer {
    margin-bottom: 64px; /* mehr Platz unter dem Footer, damit nichts am unteren Rand klebt */
  }
}
