/* Theme „Hochzeit – Elfenbein“: Schrift, Farben, Grundlayout. Gilt für alle Seiten. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}

:root {
  --hintergrund: #f4f0e6;
  --hintergrund-mitte: #f8f5ee;
  --hintergrund-rand: #f1ebdf;
  --ueberschrift: #3e4a3d;
  --text: #626b5e;
  --akzent: #8b6c40;
  --akzent-dunkel: #74592f;
  --akzent-hell: rgba(139, 108, 64, 0.55);
  --button-text: #f4f0ec;
  --pill: #ebe6d9;
  --pill-hover: #e4dccb;
  --pill-text: #8b6c40;
  --linie: #e3cfb8;
  --fehler: #a0522d;
  --fehler-hintergrund: #f7e6da;

  --schrift: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  /* Größen aus dem Typeform-Theme (Desktop/Tablet) */
  --groesse-willkommen: 36px;
  --groesse-frage: 28px;
  --groesse-text: 20px;
  --groesse-button: 24px;
  --groesse-option: 22px;
  --groesse-eingabe: 24px;

  --radius-pill: 999px;
  --dauer: 420ms;
  --kurve: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

/* Handy: wie Typeform etwas kleiner skalieren, damit jede Frage auf einen Bildschirm passt. */
@media (max-width: 480px) {
  :root {
    --groesse-willkommen: 31px;
    --groesse-frage: 24px;
    --groesse-text: 18px;
    --groesse-button: 21px;
    --groesse-option: 19px;
    --groesse-eingabe: 21px;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--schrift);
  font-size: var(--groesse-text);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  background-color: var(--hintergrund);
  /* Weicher Verlauf wie im Typeform-Theme: Mitte etwas heller, Ränder wärmer. */
  background-image: radial-gradient(ellipse 85% 70% at 50% 50%, var(--hintergrund-mitte) 0%, var(--hintergrund) 60%, var(--hintergrund-rand) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--akzent);
}

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 22px 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--akzent);
  color: var(--button-text);
  font-family: var(--schrift);
  font-size: var(--groesse-button);
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
  touch-action: manipulation;
}
.knopf:hover {
  background: var(--akzent-dunkel);
}
.knopf:active {
  transform: scale(0.98);
}
.knopf[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Feine Doppellinie + Olivenzweig oben und unten */
.rahmen {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.rahmen__linien {
  width: 100%;
  height: 6px;
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid rgba(227, 207, 184, 0.65);
}
.rahmen__ornament {
  display: block;
  width: clamp(260px, 78vw, 340px);
  height: auto;
  user-select: none;
  pointer-events: none;
}
.rahmen--oben {
  padding-top: max(22px, env(safe-area-inset-top));
}
.rahmen--oben .rahmen__ornament {
  margin-top: 8px;
}
.rahmen--unten .rahmen__ornament {
  margin-bottom: 8px;
  transform: scaleY(-1);
}
