/* =========================================================
   Hirnpredigt – Styles
   Mobile-First, max. 720px Content-Breite, dezente Animationen.
   ========================================================= */

/* ---------- Schriften ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter ist Variable Font: eine Datei pro Subset deckt alle Gewichte ab. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #f8f5ee;
  --bg-elev: #fdfaf3;
  --bg-tint: #f3eddc;
  --primary: #7a1f2b;
  --primary-dark: #5e1721;
  --accent: #d4a24c;
  --accent-soft: #ead6a9;
  --accent-glow: rgba(212, 162, 76, 0.18);
  --text: #1f1f1f;
  --text-muted: #5a5550;
  --rule: #e6dfd0;
  --error: #b22b3a;
  --success: #2f6b3a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  --maxw: 720px;
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 1px 2px rgba(31, 31, 31, 0.04),
    0 6px 24px rgba(31, 31, 31, 0.06);
  --shadow-cta: 0 4px 14px rgba(122, 31, 43, 0.22);
  --shadow-cta-hover: 0 8px 22px rgba(122, 31, 43, 0.32);
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout-Container ---------- */
.section,
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
}

@media (min-width: 640px) {
  .section,
  .hero {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding-top: clamp(3.5rem, 9vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  isolation: isolate;
  overflow: hidden;
}

/* Halo-Aura hinter dem Titel */
.hero::before {
  content: "";
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 78vw, 560px);
  aspect-ratio: 1;
  border: 1.5px solid rgba(212, 162, 76, 0.42);
  border-radius: 50%;
  z-index: -1;
}

/* Sanfter Glanz innen */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 45% at 50% 32%,
    var(--accent-glow),
    transparent 70%
  );
  z-index: -2;
  pointer-events: none;
}

.hero__ornament {
  display: block;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  line-height: 1;
  user-select: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  max-width: 30em;
  margin: 0 auto 2.25rem;
  line-height: 1.5;
}

/* ---------- Headlines ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--space-3);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.3rem);
  margin-bottom: var(--space-3);
  position: relative;
  display: inline-block;
}

/* Goldene Unterstreichung an den Section-Headlines */
h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.6rem;
}

h3 {
  font-size: 1.25rem;
}

/* ---------- Section-Ornament zwischen Abschnitten ---------- */
.section + .section::before,
.section--form::before {
  content: "✦";
  display: block;
  text-align: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.4em;
  margin: 0 auto var(--space-5);
  opacity: 0.55;
}

/* ---------- Pullquote ---------- */
.pullquote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 var(--space-3);
  padding: 0.5rem 0 0.5rem 2.5rem;
  border-left: 0;
  quotes: none;
}

.pullquote::before {
  content: "„";
  position: absolute;
  left: 0;
  top: -0.1em;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.button--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta-hover);
}

.button--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-cta);
}

.button--large {
  font-size: 1.05rem;
  padding: 1rem 1.75rem;
}

.button[disabled],
.button[aria-busy="true"] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Pfeil im Button schiebt sich beim Hover leicht nach rechts */
.button span[aria-hidden] {
  display: inline-block;
  transition: transform 0.15s ease;
}

.button:hover span[aria-hidden] {
  transform: translateX(3px);
}

/* ---------- Eckdaten als Karten ---------- */
.facts {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 var(--space-3);
  padding: 0;
}

.facts__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--space-3);
  padding: 0.95rem var(--space-3);
  background: var(--bg-elev);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .facts__row:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(31, 31, 31, 0.06),
      0 10px 28px rgba(31, 31, 31, 0.08);
  }
}

.facts dt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0;
}

.facts dd {
  margin: 0;
  color: var(--text);
  align-self: center;
}

@media (max-width: 520px) {
  .facts__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.85rem var(--space-3);
  }
}

/* Solo-Hinweis */
.note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-3);
  font-size: 0.97rem;
  color: var(--text);
  margin-top: var(--space-3);
}

.note strong {
  color: var(--primary);
}

/* ---------- Anmelde-Section ---------- */
.section--form {
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--bg-tint) 100%
  );
  border-radius: var(--radius);
}

.form-intro {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.form {
  display: grid;
  gap: var(--space-3);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.field input {
  font: inherit;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:hover {
  border-color: var(--text-muted);
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.12);
  outline: none;
}

.field--invalid input {
  border-color: var(--error);
}

.field--invalid input:focus {
  box-shadow: 0 0 0 3px rgba(178, 43, 58, 0.15);
}

.field__error {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.88rem;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#submit-btn {
  justify-self: start;
  margin-top: var(--space-2);
}

.form-status {
  margin-top: var(--space-2);
  font-size: 0.97rem;
}

.form-status:empty {
  display: none;
}

.form-status--success {
  color: var(--success);
  background: #e8f1ea;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-3);
  border: 1px solid #c2dac8;
}

.form-status--error {
  color: var(--error);
  background: #f7e3e6;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-3);
  border: 1px solid #eac4ca;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-4) var(--space-3) var(--space-5);
  margin-top: var(--space-5);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer__mark {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
  opacity: 0.7;
}

.footer__line {
  margin: 0.25rem 0;
}

.footer__links a {
  white-space: nowrap;
}

.footer__links span {
  margin: 0 0.5rem;
  color: var(--rule);
}

/* ---------- Fade-In bei Scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .section,
  .hero {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }
  .hero {
    animation-delay: 0.05s;
  }
  .section:nth-of-type(1) {
    animation-delay: 0.15s;
  }
  .section:nth-of-type(2) {
    animation-delay: 0.2s;
  }
  .section:nth-of-type(3) {
    animation-delay: 0.25s;
  }
  .section:nth-of-type(4) {
    animation-delay: 0.3s;
  }
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
}

.page h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: var(--space-3);
}

.page__back {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
}

.page address {
  font-style: normal;
  margin-bottom: var(--space-3);
}
