/*
 * Newsletter-Fenster (09.10.2026), Markup: resources/views/partials/newsletter-fenster.blade.php
 * Eigene Farben statt Seiten-Variablen: Home und /lippen definieren verschiedene
 * (--gold vs. --gold-deep), das Fenster soll auf beiden gleich aussehen.
 * Dunkle Bildseite mit Gold wie die Markenwelt (Navigation, Hero), rechts knapp:
 * Angebot gross, ein Satz, Vertrauen, ein Feld, ein Knopf.
 */
#nf-fenster {
  --nf-gold: #c08437;
  --nf-gold-tief: #8a5f26;
  --nf-gold-hell: #e2c08a;
  --nf-creme: #f4f0eb;
  --nf-papier: #fbf9f6;
  --nf-tinte: #1a1a1a;
  --nf-grau: #5f5850;
  --nf-leise: #8b847b;
  --nf-linie: #ddd3c5;
  --nf-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --nf-sans: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}
html.nf-offen { overflow: hidden; }

.nf-hinter {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(18, 15, 12, 0.6);
  opacity: 0; transition: opacity .22s ease;
  font-family: var(--nf-sans); color: var(--nf-tinte);
}
.nf-hinter[hidden] { display: none; }
.nf-hinter.nf-sichtbar { opacity: 1; }

.nf-karte {
  position: relative;
  display: grid; grid-template-columns: 300px 1fr;
  width: 100%; max-width: 820px; max-height: calc(100vh - 48px);
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
  transform: translateY(14px) scale(.985); transition: transform .28s ease;
  outline: none;
}
.nf-sichtbar .nf-karte { transform: none; }

.nf-bild {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(192, 132, 55, .22) 0%, rgba(192, 132, 55, 0) 55%),
    linear-gradient(160deg, #2b241d 0%, #16120e 70%, #0f0c09 100%);
  padding: 24px 14px;
}
.nf-geschenk { width: 100%; max-width: 280px; height: auto; display: block; }

.nf-inhalt { padding: 40px 40px 26px; overflow-y: auto; }
.nf-schritt[hidden] { display: none; }

.nf-zu {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--nf-grau);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.nf-zu:hover { background: var(--nf-creme); color: var(--nf-tinte); }

.nf-augenbraue {
  margin: 0 0 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--nf-gold-tief);
}
.nf-titel {
  margin: 0 0 12px;
  font-family: var(--nf-serif); font-weight: 500; font-size: 27px; line-height: 1.12;
  color: var(--nf-tinte); text-wrap: balance; outline: none;
}
.nf-betrag {
  display: block;
  font-size: 60px; line-height: .95; font-weight: 600; letter-spacing: -.01em;
  color: var(--nf-gold-tief); margin-bottom: 4px;
}
.nf-titel-danke { font-size: 34px; }
.nf-text { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--nf-grau); }

.nf-vertrauen { margin: 0 0 18px; font-size: 12px; color: var(--nf-grau); }
.nf-sterne { color: var(--nf-gold); letter-spacing: .08em; margin-right: 4px; }

.nf-zeile { display: flex; gap: 8px; }
.nf-feld { flex: 1; min-width: 0; margin: 0; }
.nf-feld input {
  width: 100%; height: 52px; box-sizing: border-box;
  padding: 0 14px; font: 400 15px/1 var(--nf-sans); color: var(--nf-tinte);
  background: var(--nf-papier); border: 1px solid var(--nf-linie); border-radius: 2px;
}
.nf-feld input::placeholder { color: #9a9288; }
.nf-feld input:focus { outline: 2px solid var(--nf-gold); outline-offset: 1px; border-color: var(--nf-gold); }
.nf-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nf-falle { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.nf-knopf {
  flex: none; height: 52px; padding: 0 22px;
  border: 0; border-radius: 2px; cursor: pointer;
  background: var(--nf-gold); color: var(--nf-tinte);
  font: 700 12px/1 var(--nf-sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: background .18s ease;
}
.nf-knopf:hover { background: #cf9446; }
.nf-knopf:focus-visible, .nf-zu:focus-visible, .nf-nein:focus-visible, .nf-bedingungen summary:focus-visible {
  outline: 2px solid var(--nf-tinte); outline-offset: 2px;
}
.nf-knopf[disabled] { opacity: .65; cursor: wait; }
.nf-knopf-voll { display: block; width: 100%; margin-top: 20px; }

.nf-fehler { margin: 8px 0 0; font-size: 12.5px; color: #a23b2a; }
.nf-fehler[hidden] { display: none; }

.nf-einwilligung { margin: 10px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--nf-leise); }
.nf-einwilligung a, .nf-bedingungen a { color: var(--nf-gold-tief); }

.nf-bedingungen { margin: 6px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--nf-leise); }
.nf-bedingungen summary { cursor: pointer; list-style: none; }
.nf-bedingungen summary::-webkit-details-marker { display: none; }
.nf-bedingungen summary span { text-decoration: underline; text-underline-offset: 2px; }
.nf-bedingungen summary span::after { content: ' ▾'; text-decoration: none; display: inline-block; margin-left: 2px; }
.nf-bedingungen[open] summary span::after { content: ' ▴'; }
.nf-bedingungen p { margin: 6px 0 0; }

.nf-klein { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--nf-leise); }
.nf-nein {
  display: block; margin: 14px auto 0; padding: 6px 10px;
  border: 0; background: none; cursor: pointer;
  font: 500 12px var(--nf-sans); color: var(--nf-grau); text-decoration: underline; text-underline-offset: 3px;
}

/* Handy: unten angedockt, dunkles Band mit dem Geschenk oben */
@media (max-width: 680px) {
  .nf-hinter { align-items: flex-end; padding: 0; }
  .nf-karte {
    grid-template-columns: 1fr; max-width: none;
    max-height: 94vh; max-height: 94svh;
    border-radius: 14px 14px 0 0;
    transform: translateY(40px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nf-bild { padding: 10px 18px 6px; }
  .nf-geschenk { max-width: 168px; }
  .nf-zu { color: #e9e1d4; }
  .nf-zu:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .nf-inhalt { padding: 20px 20px 18px; overflow: visible; }
  .nf-augenbraue { margin-bottom: 8px; }
  .nf-titel { font-size: 22px; margin-bottom: 8px; }
  .nf-betrag { font-size: 48px; }
  .nf-text { font-size: 13.5px; margin-bottom: 8px; }
  .nf-vertrauen { margin-bottom: 14px; }
  .nf-zeile { flex-direction: column; }
  .nf-knopf { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-hinter, .nf-karte { transition: none; }
}
