/* ==================================================================
   Amorazza – pages/launch.css
   ==================================================================
   Page-spezifische Stile für die Pre-Launch-Seiten:
     - /index.php                  (Countdown + Reservierung)
     - /reservierung-bestaetigt.php (Bestätigungs-Landingpage)

   Aus den vormaligen inline-<style>-Blöcken in index.php (312 Zeilen)
   und reservierung-bestaetigt.php (150 Zeilen) zusammengeführt und 
   per body.page-launch / body.page-confirm gescoped, damit nichts
   ungewollt auf andere Seiten greift.

   Wird nur geladen wenn die Page $extra_css = ['pages/launch'] setzt.
   Wird im App-Bundle NICHT mitgeliefert (Pre-Launch existiert in der
   App nicht).
   ================================================================== */

/* ─── /index.php  (Countdown + Reservierungs-Formular) ─────────── */

/* Countdown-spezifisches CSS (v053: fluid Layout) */
/* V152: Vertikales Abstands-System der Launch-Page.
   --sec-gap  = Sektionsabstand (Hero|Pill|Teaser-Gruppe|Formular|Features)
   20px       = Gruppen-intern (Teaser->Countdown-Heading, Heading->Karten)
   8-12px     = Mikro (Tagline->Subline->CTA-Link)
   Regel: NUR margin-bottom, keine margin-top - Abstaende stapeln sich nie. */
body.page-launch {
  --sec-gap: clamp(36px, 5vw, 48px);
  background: var(--bg);
  padding-inline: clamp(12px, 3vw, 24px);
  padding-block: clamp(12px, 3vw, 24px) max(80px, calc(80px + var(--safe-bottom)));
}

body.page-launch .container {
  max-width: 1000px;
  margin: 0 auto;
}

body.page-launch .hero {
  text-align: center;
  margin-bottom: var(--sec-gap); /* V152 */
}

body.page-launch .hero-mark {
  font-size: clamp(64px, 14vw, 110px);  /* Decorative Hero-Logo, einmalig */
  color: var(--rose-400);
  line-height: 1;
  margin-bottom: 16px;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

body.page-launch .hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

body.page-launch .hero-tagline {
  font-size: var(--fs-strong);
  color: var(--ink-700);
  margin: 0 0 10px; /* V152: Mikro - Subline gehoert zur Tagline (war 48px Relikt aus Vor-Subline-Zeit) */
  font-weight: 400;
}

body.page-launch .countdown-section {
  text-align: center;
  margin-bottom: var(--sec-gap); /* V152 */
}

body.page-launch .countdown-title {
  font-size: var(--fs-strong);
  color: var(--ink-700);
  margin-bottom: 20px; /* V152: Gruppen-intern */
  font-weight: 500;
}

body.page-launch .countdown {
  display: flex;
  gap: clamp(8px, 2vw, 20px);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

body.page-launch .countdown-item {
  background: white;
  border-radius: 12px;
  padding: clamp(14px, 2.5vw, 22px) clamp(10px, 2vw, 18px);
  min-width: clamp(70px, 18vw, 110px);
  box-shadow: 0 2px 8px rgba(40,20,30,0.04);
  border: 0.5px solid var(--border);
}

body.page-launch .countdown-number {
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--rose-400);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

body.page-launch .countdown-label {
  font-size: var(--fs-meta);
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

body.page-launch .reserve-section {
  background: var(--surface);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 32px);
  width: 100%;
  max-width: 640px;
  margin: 0 auto var(--sec-gap); /* V152 (war 64px) */
  box-shadow: 0 4px 16px rgba(40,20,30,0.06);
  border: 0.5px solid var(--border);
}

body.page-launch .reserve-section h2 {
  font-size: var(--fs-title);
  margin: 0 0 8px;
  text-align: center;
  color: var(--ink-900);
}

body.page-launch .reserve-section .subtitle {
  font-size: var(--fs-strong);
  color: var(--ink-700);
  text-align: center;
  margin-bottom: 32px;
}

body.page-launch .nikolaus-box {
  font-size: var(--fs-strong);
  color: var(--rose-600);
  text-align: center;
  margin-bottom: 32px;
  padding: 16px 20px;
  border: 3px solid var(--rose-400);
  border-radius: 12px;
  font-weight: 600;
}

body.page-launch .benefits-box {
  text-align: left;
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(212, 83, 126, 0.05);
  border-radius: 12px;
  border: 2px solid var(--rose-400);
}

body.page-launch .benefits-box p {
  font-size: var(--fs-body);
  color: var(--ink-900);
  margin: 0 0 12px 0;
  line-height: 1.6;
}

body.page-launch .benefits-box p:last-child {
  margin-bottom: 0;
}

body.page-launch .checkbox-group {
  margin-bottom: 16px;
}

body.page-launch .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-body);
  color: var(--ink-900);
  cursor: pointer;
}

body.page-launch .checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

body.page-launch .checkbox-label span {
  flex: 1;
  line-height: 1.5;
}

body.page-launch .checkbox-label a {
  color: var(--rose-600);
  text-decoration: underline;
}

body.page-launch .checkbox-label a:hover {
  color: var(--rose-400);
}

body.page-launch .form-group {
  margin-bottom: 20px;
}

body.page-launch .form-group label {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
}

body.page-launch .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;  /* min 16px verhindert iOS Auto-Zoom beim Tap */
  font-family: inherit;
  background: var(--surface);
  color: var(--ink-900);
  transition: border-color 0.2s;
}

body.page-launch .form-group input:focus {
  outline: none;
  border-color: var(--rose-400);
}

body.page-launch .form-group small {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-meta);
  color: var(--ink-500);
}

body.page-launch .btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  background: var(--rose-400);
  color: white;
  transition: background 0.2s;
}

body.page-launch .btn:hover {
  background: var(--rose-600);
}

body.page-launch .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.page-launch .alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: var(--fs-body);
}

body.page-launch .alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

body.page-launch .alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Features: Mobile einspaltig, Desktop 3-spaltig (einzige Mehrspalten-Ausnahme) */
body.page-launch .features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: var(--sec-gap); /* V152 */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 720px) {
  body.page-launch .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

body.page-launch .feature {
  text-align: center;
  padding: clamp(20px, 3vw, 28px) clamp(14px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.page-launch .feature-icon {
  font-size: var(--fs-icon);
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

body.page-launch .feature h3 {
  font-size: var(--fs-strong);
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink-900);
}

body.page-launch .feature p {
  margin: 0;
  color: var(--ink-700);
  font-size: var(--fs-body);
  line-height: 1.5;
}

@media (max-width: 600px) {
  body.page-launch .reserve-section { padding: 28px 20px; }
  body.page-launch .feature { padding: 20px 16px; }
}

/* ─── /reservierung-bestaetigt.php  (Bestätigungs-Landing) ──────── */

/* Countdown-spezifisches CSS */
body.page-confirm {
  background: var(--bg);
  padding: 16px 16px 100px;
}

body.page-confirm .container {
  max-width: 1000px;
  margin: 0 auto;
}

body.page-confirm .hero {
  text-align: center;
  margin-bottom: 24px;
}

body.page-confirm .hero-mark {
  font-size: clamp(64px, 14vw, 110px);
  color: var(--rose-400);
  line-height: 1;
  margin-bottom: 16px;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

body.page-confirm .hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

body.page-confirm .hero-tagline {
  font-size: var(--fs-strong);
  color: var(--ink-700);
  margin: 0 0 48px;
  font-weight: 400;
}

body.page-confirm .success-section {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px 28px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 64px;
  box-shadow: 0 4px 16px rgba(40,20,30,0.06);
  border: 0.5px solid var(--border);
  text-align: center;
}

body.page-confirm .success-section h2 {
  font-size: var(--fs-title);
  margin: 0 0 24px;
  color: var(--ink-900);
}

body.page-confirm .success-section p {
  font-size: var(--fs-body);
  color: var(--ink-700);
  margin-bottom: 20px;
  line-height: 1.6;
}

body.page-confirm .success-section p:last-of-type {
  margin-bottom: 32px;
}

body.page-confirm .signature {
  font-size: var(--fs-body);
  color: var(--ink-900);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 32px;
}

body.page-confirm .btn {
  display: inline-block;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  background: var(--rose-400);
  color: white;
  text-decoration: none;
  transition: background 0.2s;
}

body.page-confirm .btn:hover {
  background: var(--rose-600);
}

body.page-confirm .features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

body.page-confirm .feature {
  text-align: center;
  padding: 24px 16px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.page-confirm .feature-icon {
  font-size: var(--fs-icon);
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

body.page-confirm .feature h3 {
  font-size: var(--fs-strong);
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink-900);
}

body.page-confirm .feature p {
  margin: 0;
  color: var(--ink-700);
  font-size: var(--fs-body);
  line-height: 1.5;
}

@media (max-width: 600px) {
  body.page-confirm .hero-mark { /* fluid via clamp oben */ }
  body.page-confirm .hero-title { /* fluid via clamp oben */ }
  body.page-confirm .hero-tagline { font-size: var(--fs-strong); }
  body.page-confirm .success-section { padding: 32px 20px; }
  body.page-confirm .features { grid-template-columns: 1fr; gap: 16px; }
  body.page-confirm .feature { min-height: auto; padding: 20px 16px; }
}

/* V085: Mehr Abstand oberhalb der Passwort-Felder (Countdown-/Register-
   Formular), damit das Firefox-"Passwort verwalten"-Popup das Feld nicht
   verdeckt. */
body.page-launch .form-group:has(> input[type="password"]) { margin-top: 20px; }

/* ─────────────────────────────────────────────────────────────────
   V128: Conversion-Optimierung Hero + Formular
   ───────────────────────────────────────────────────────────────── */

/* Tagline-Margin reduzieren, weil jetzt Subline + CTA-Link folgen */
body.page-launch .hero-tagline {
  margin: 0 0 12px;
}

/* Subline: USP "Würdigen, nicht wegwischen"
   V133: gleiche Schrift+Groesse wie Tagline (war: fs-body + weight 500) */
body.page-launch .hero-subline {
  font-size: var(--fs-strong);
  color: var(--ink-700);
  margin: 0 0 12px; /* V152: Mikro */
  font-weight: 400;
}

/* Was-ist-Amorazza-Link unter dem Hero */
body.page-launch .hero-cta-link {
  margin: 0; /* V152: Sektionsabstand traegt .hero, nicht das letzte Kind */
  font-size: var(--fs-small, 0.92rem);
}

body.page-launch .hero-cta-link a {
  color: var(--rose-400);
  text-decoration: none;
  border-bottom: 1px dotted var(--rose-400);
  padding-bottom: 1px;
}

body.page-launch .hero-cta-link a:hover {
  color: var(--rose-500, #c73861);
  border-bottom-style: solid;
}

/* Passwort-Sichtbar-Toggle */
body.page-launch .password-field {
  position: relative;
}

body.page-launch .password-field input[type="password"],
body.page-launch .password-field input[type="text"] {
  padding-right: 44px;
}

body.page-launch .password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  font-size: 18px;
  color: var(--ink-500, #666);
  border-radius: 6px;
}

body.page-launch .password-toggle:hover {
  background: rgba(0,0,0,0.04);
}

body.page-launch .password-toggle:focus-visible {
  outline: 2px solid var(--rose-400);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────────
   V129: Success-Banner above-the-fold (Mobile-Fix)
   ───────────────────────────────────────────────────────────────── */

body.page-launch .success-banner {
  background: linear-gradient(135deg, #e8f7ed 0%, #d4f0dc 100%);
  border: 1px solid #8bc4a0;
  border-left: 4px solid #2d9b5a;
  border-radius: 14px;
  padding: 24px 24px 20px;
  margin: 0 0 28px;
  box-shadow: 0 2px 12px rgba(45, 155, 90, 0.10);
  text-align: center;
}

body.page-launch .success-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #2d9b5a;
  color: white;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

body.page-launch .success-banner-title {
  font-size: var(--fs-title, 1.6rem);
  color: #1f6b3f;
  margin: 0 0 10px;
  font-weight: 700;
}

body.page-launch .success-banner-text {
  font-size: var(--fs-body);
  color: var(--ink-800, #2a2a2a);
  margin: 0 0 12px;
  line-height: 1.5;
}

body.page-launch .success-banner-resend {
  font-size: var(--fs-small, 0.92rem);
  color: var(--ink-700, #555);
  margin: 0;
}

body.page-launch .success-banner-resend a {
  color: #1f6b3f;
  text-decoration: underline;
  font-weight: 500;
}

body.page-launch .success-banner-resend a:hover {
  color: #2d9b5a;
}

@media (max-width: 600px) {
  body.page-launch .success-banner {
    padding: 20px 18px 16px;
    margin: 0 0 20px;
  }
  body.page-launch .success-banner-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

/* ─────────────────────────────────────────────────────────────────
   V133: Hearts-Explainer unter der Vorteils-Box
   ───────────────────────────────────────────────────────────────── */
body.page-launch .hearts-explainer {
  margin: 12px auto 28px;
  max-width: 520px;
  font-size: var(--fs-small, 0.92rem);
  color: var(--ink-600, #666);
  text-align: center;
  line-height: 1.5;
  font-style: italic;
}

body.page-launch .hearts-explainer em {
  font-style: normal;
  color: var(--ink-700, #555);
}

body.page-launch .hearts-explainer span {
  font-style: normal;
  margin-right: 4px;
  opacity: 0.7;
}


/* ==========================================================================
   V151: Reise-Teaser (zwischen vision-label und countdown-section)
   ==========================================================================
   Variante 2 Layout: schmaler Balken mit 14 Herz-Stationen, 11 ausgefuellt,
   das 12. pulsiert ("Du bist hier"), letzte 2 als Outline-Herzen.
   Klickbar - linkt auf /reise.php.
   ========================================================================== */

/* V152: page-lokaler Abstand fuer die Vision-Pill. Ersetzt auf DIESER
   Seite die V122-Entscheidung "keine margins, Abstand aus Padding der
   Nachbarn" - der V151-Teaser brachte kein Padding mit, daher klebte
   die Pill am Teaser. vision-label.css selbst bleibt margin-frei. */
body.page-launch .vision-label {
  margin-bottom: var(--sec-gap);
}

body.page-launch .reise-teaser {
  display: block;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg, 14px);
  padding: 18px 24px 16px;
  margin: 0 auto 20px; /* V152: Gruppe mit Countdown ("Fast da" -> "Wir starten...") */
  max-width: 640px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
body.page-launch .reise-teaser:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
body.page-launch .reise-teaser-label {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--rose-600);
  font-size: var(--fs-meta);
  font-style: italic;
  margin: 0 0 12px;
}
body.page-launch .reise-teaser-track {
  position: relative;
  height: 22px;
  margin: 0 4px;
}
body.page-launch .reise-teaser-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; transform: translateY(-50%);
  background: var(--rose-100);
  border-radius: 999px;
}
body.page-launch .reise-teaser-fill {
  position: absolute; left: 0; top: 50%;
  height: 3px; width: 86%;
  background: linear-gradient(90deg, var(--rose-400), var(--rose-600));
  border-radius: 999px;
  transform: translateY(-50%);
}
body.page-launch .reise-teaser-hearts {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between;
  align-items: center; height: 100%;
}
body.page-launch .rth {
  width: 16px; height: 14px;
  display: inline-block;
  line-height: 0;
}
body.page-launch .rth svg { width: 100%; height: 100%; display: block; }
body.page-launch .rth-done svg { fill: var(--rose-600); }
body.page-launch .rth-pulse svg { fill: var(--rose-600); }
body.page-launch .rth-pulse {
  animation: reiseTeaserPulse 1.6s ease-in-out infinite;
}
body.page-launch .rth-todo svg {
  fill: none;
  stroke: var(--rose-400);
  stroke-width: 1.4;
}
@keyframes reiseTeaserPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}
body.page-launch .reise-teaser-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
  gap: 12px;
}
body.page-launch .reise-teaser-text {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink-700);
  font-size: var(--fs-meta);
}
body.page-launch .reise-teaser-link {
  font-family: -apple-system, system-ui, sans-serif;
  color: var(--rose-600);
  font-size: var(--fs-meta);
  font-weight: 600;
  white-space: nowrap;
}
body.page-launch .reise-teaser-link::after {
  content: " \2192";
  display: inline-block;
  transition: transform 200ms ease;
}
body.page-launch .reise-teaser:hover .reise-teaser-link::after {
  transform: translateX(3px);
}

/* Mobile: Footer-Zeile bricht ggf. um */
@media (max-width: 480px) {
  body.page-launch .reise-teaser-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  body.page-launch .reise-teaser-link { align-self: flex-end; }
}
