/* =========================================================================
   ÖHFV – Österreichischer Hypnosefachverband
   Haupt-Stylesheet
   -------------------------------------------------------------------------
   Aufbau dieser Datei:
     1.  Design-Tokens (CSS-Variablen: Farben, Abstände, Schriftgrößen)
     2.  Basis / Reset
     3.  Layout-Hilfen (Container)
     4.  Wiederkehrende Bausteine (Eyebrow, Überschriften, Buttons, Badges)
     5.  Kopfbereich / Navigation
     6.  Startseite (Hero, Karten, Über, Aktuelles, Termine, CTA)
     7.  Unterseiten (Über, Aktuelles, Termine, Kontakt, Recht)
     8.  Formular
     9.  Footer
     10. Animationen
     11. Responsive (Tablet & Smartphone)

   TIPP: Farben und Abstände werden zentral in Abschnitt 1 (":root") gesteuert.
   Wer das Erscheinungsbild anpassen möchte, ändert am besten nur dort.
   ========================================================================= */

/* =========================================================================
   1. DESIGN-TOKENS
   ========================================================================= */
:root {
  /* --- Markenfarben (Grün) --- */
  --color-primary:        #2E7D4F;   /* Hauptgrün: Buttons, Links, Akzente   */
  --color-primary-hover:  #256541;   /* dunkler beim Überfahren (Hover)       */
  --color-heading:        #1C3A28;   /* Überschriften, sehr dunkles Grün      */
  --color-eyebrow:        #4A7C5F;   /* kleine Label-Texte über Überschriften */

  /* --- Textfarben --- */
  --color-text:           #4A5568;   /* Fließtext                              */
  --color-text-strong:    #374151;   /* etwas kräftigerer Text / Labels        */
  --color-text-muted:     #6B7280;   /* zurückhaltender Text, Hinweise         */

  /* --- Flächen / Hintergründe --- */
  --surface:              #ffffff;   /* Standard-Hintergrund                   */
  --surface-alt:          #F7FAF8;   /* leicht grünlicher Wechsel-Hintergrund  */
  --surface-hero:         #F0F7F3;   /* Hero-Verlauf / Datums-Badge            */
  --surface-pill:         #E8F3ED;   /* Pillen, CTA-Fläche, Icon-Hintergrund   */

  /* --- Rahmen / Linien --- */
  --border:               #D1E5D8;   /* Standard-Rahmen                        */
  --border-strong:        #C2DDD0;   /* etwas kräftigerer Rahmen               */

  /* --- Footer (dunkler Bereich) --- */
  --footer-bg:            #1C3A28;
  --footer-heading:       #7EC8A0;
  --footer-text:          #93B8A5;
  --footer-muted:         #5A8A6E;
  --footer-border:        #2D5A3D;
  --footer-logo:          #4A9E6E;

  /* --- Format-Farben (Termine) --- */
  --format-praesenz:      #2E7D4F;
  --format-online:        #1B6B9A;
  --format-hybrid:        #7A4E9A;

  /* --- Abstände --- */
  --max-width:            1200px;    /* maximale Inhaltsbreite                 */
  --gutter:               2rem;      /* seitlicher Innenabstand                */
  --section-padding:      5rem;      /* vertikaler Abstand der Sektionen       */

  /* --- Radien --- */
  --radius:               6px;
  --radius-sm:            4px;
  --radius-pill:          2rem;

  /* --- Schrift --- */
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* --- Schriftgrößen --- */
  --fs-eyebrow:           0.75rem;
  --fs-body:              0.95rem;
  --fs-body-sm:           0.875rem;
  --fs-lead:              1.05rem;
  --fs-h1:                2rem;
  --fs-h1-hero:           clamp(2rem, 4vw, 3rem);
  --fs-h2:                1.75rem;
  --fs-h3:                1.1rem;
}

/* =========================================================================
   2. BASIS / RESET
   ========================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;          /* sanftes Scrollen für Anker-Links       */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  color: var(--color-text-strong);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 { margin: 0; color: var(--color-heading); }
p { margin: 0; }

/* Der mittlere Bereich wächst, damit der Footer immer unten sitzt */
.page-main { flex-grow: 1; }

/* sichtbarer Fokusrahmen für Tastatur-Navigation (Barrierefreiheit) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =========================================================================
   3. LAYOUT-HILFEN
   ========================================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* schmalere Container für Textseiten */
.container--narrow  { max-width: 800px; }
.container--reading { max-width: 900px; }
.container--legal   { max-width: 760px; }

.section { padding: var(--section-padding) var(--gutter); }
.section--alt  { background-color: var(--surface-alt); }
.section--line-top    { border-top: 1px solid var(--border); }
.section--line-bottom { border-bottom: 1px solid var(--border); }

/* =========================================================================
   4. WIEDERKEHRENDE BAUSTEINE
   ========================================================================= */

/* Eyebrow – kleines Label über der Überschrift */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
  margin-bottom: 0.5rem;
}

/* grüner Trennstrich unter der Hauptüberschrift */
.accent-line {
  width: 48px;
  height: 2px;
  background-color: var(--color-primary);
  margin-bottom: 2.5rem;
}

.section-title { font-size: var(--fs-h2); font-weight: 700; }

/* Kopf einer Section mit Titel links und "Alle …"-Link rechts */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { flex-shrink: 0; }

.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
}
.btn--primary:hover { background-color: var(--color-primary-hover); }

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover { background-color: var(--surface-pill); }

.btn--sm { padding: 0.75rem 1.5rem; font-size: var(--fs-body-sm); }

/* Text-Link mit Pfeil ("Weiterlesen", "Alle Meldungen") */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0;
  transition: gap 0.15s ease;
}
.link-arrow:hover { gap: 0.7rem; }

/* --- Badges / Pillen --- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  background-color: var(--surface-pill);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* =========================================================================
   5. KOPFBEREICH / NAVIGATION
   ========================================================================= */
.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo + Wortmarke */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.brand__mark { width: 53px; height: 44px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; align-items: flex-start; }
.brand__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.brand__sub {
  font-size: 0.6rem;
  color: var(--color-eyebrow);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Desktop-Navigation */
.main-nav { display: flex; gap: 0.25rem; }
.main-nav__link {
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-body-sm);
  color: var(--color-text-strong);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav__link:hover { color: var(--color-primary); }
/* aktive Seite (über aria-current="page" gekennzeichnet) */
.main-nav__link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-primary);
}

/* Hamburger-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-strong);
  padding: 0.5rem;
}
.nav-toggle svg { display: block; }

/* Mobiles Ausklapp-Menü */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--surface-alt);
}
.mobile-nav.is-open { display: block; }
.mobile-nav__link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--color-text-strong);
  text-decoration: none;
  border-bottom: 1px solid #E5EFE9;
}
.mobile-nav__link:last-child { border-bottom: none; }
.mobile-nav__link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* =========================================================================
   6. STARTSEITE
   ========================================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-hero) 0%, #ffffff 60%);
  padding: 6rem var(--gutter) 5rem;
}
.hero__decor {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  opacity: 0.07;
}
.hero__content { position: relative; max-width: 680px; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  background-color: var(--surface-pill);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  margin-bottom: 2rem;
}
.hero__tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}
.hero__tag span {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero__title {
  font-size: var(--fs-h1-hero);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.hero__claim {
  font-size: 1.1rem;
  color: var(--color-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--color-text);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- 3er-Karten-Raster (Aufgaben des Verbandes) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -12px rgba(28, 58, 40, 0.25);
}
.feature-card__icon {
  width: 44px; height: 44px;
  background-color: var(--surface-pill);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.75;
}

/* --- Über-Block (zweispaltig mit Grafik) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-grid h2 { margin-bottom: 0.75rem; }
.about-grid .accent-line { margin-bottom: 1.5rem; }
.about-text p {
  font-size: var(--fs-body);
  color: var(--color-text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.about-text p:last-of-type { margin-bottom: 2rem; }
.about-figure { display: flex; justify-content: center; align-items: center; }

/* --- Aktuelles: News-Karten (Startseite) --- */
.news-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -12px rgba(28, 58, 40, 0.2);
  border-color: var(--border-strong);
}
.news-card__date {
  font-size: 0.78rem;
  color: var(--color-eyebrow);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.news-card__rule { width: 32px; height: 1px; background-color: var(--border-strong); }
.news-card h3 {
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.45;
}
.news-card p {
  font-size: var(--fs-body-sm);
  color: var(--color-text);
  line-height: 1.7;
  flex-grow: 1;
}

/* --- Termine-Liste (Startseite, kompakt) --- */
.termine-list { display: flex; flex-direction: column; }
.termin-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  transition: background-color 0.15s ease;
}
.termin-row:first-child { border-top: 1px solid var(--border); }
.termin-row:hover { background-color: var(--surface-alt); }
.termin-row__meta { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.termin-row__date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--color-primary);
  font-weight: 600;
}
.termin-row h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.termin-row p { font-size: var(--fs-body-sm); color: var(--color-text); line-height: 1.6; }
.termin-row__chevron { color: var(--border-strong); flex-shrink: 0; }

/* --- CTA-Kontaktblock --- */
.cta {
  padding: var(--section-padding) var(--gutter);
  background-color: var(--surface-pill);
  border-top: 1px solid var(--border-strong);
  text-align: center;
}
.cta__inner { max-width: 600px; margin: 0 auto; }
.cta__icon {
  width: 48px; height: 48px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.cta h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
.cta p {
  font-size: var(--fs-body);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* =========================================================================
   7. UNTERSEITEN
   ========================================================================= */
.page-intro { /* H1-Bereich auf Unterseiten */ }
.page-intro h1 { font-size: var(--fs-h1); font-weight: 700; margin-bottom: 0.75rem; }
.page-intro .accent-line { margin-bottom: 2.5rem; }

/* Stapel aus Text-Karten (Über-Seite) */
.stack { display: flex; flex-direction: column; gap: 1.5rem; }

.text-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-alt);
}
.text-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.text-card p { font-size: 0.925rem; color: var(--color-text); line-height: 1.85; }

.page-footer-action { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* --- Aktuelles (Vollseite) --- */
.news-article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface);
  transition: box-shadow 0.2s ease;
}
.news-article:hover { box-shadow: 0 10px 24px -14px rgba(28, 58, 40, 0.25); }
.news-article__body { padding: 1.75rem 2rem; }
.news-article__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.news-article__date { font-size: 0.8rem; color: var(--color-eyebrow); font-weight: 500; }
.news-article h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.news-article__lead { font-size: 0.9rem; color: var(--color-text); line-height: 1.75; margin-bottom: 1rem; }
.news-article__more { border-top: 1px solid var(--surface-pill); padding-top: 1rem; }
.news-article__more p { font-size: var(--fs-body-sm); color: var(--color-text-muted); line-height: 1.75; }

/* --- Termine (Vollseite) --- */
.event-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -16px rgba(28, 58, 40, 0.25);
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  background-color: var(--surface-hero);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}
.event-date__month {
  font-size: 0.7rem; font-weight: 700;
  color: var(--color-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-date__day { font-size: 1.75rem; font-weight: 800; color: var(--color-heading); line-height: 1; }
.event-date__year { font-size: 0.7rem; color: var(--color-text-muted); }
.event-card h2 { font-size: 0.975rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.5rem; }
.event-card__row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.event-card__place { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.825rem; color: var(--color-text); }
.event-card p { font-size: var(--fs-body-sm); color: var(--color-text); line-height: 1.7; }

/* Format-Badge mit variabler Farbe (per CSS-Variable --fmt gesetzt im HTML) */
.format-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--fmt, var(--color-primary));
  background-color: color-mix(in srgb, var(--fmt, var(--color-primary)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--fmt, var(--color-primary)) 30%, transparent);
}
.format-badge--praesenz { --fmt: var(--format-praesenz); }
.format-badge--online   { --fmt: var(--format-online); }
.format-badge--hybrid   { --fmt: var(--format-hybrid); }

.notice {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-body-sm);
  color: var(--color-text);
  line-height: 1.7;
}
.notice strong { color: var(--color-heading); }
.notice a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.notice a:hover { text-decoration: underline; }

/* --- Rechtsseiten (Impressum / Datenschutz) --- */
.legal { display: flex; flex-direction: column; gap: 2rem; }
.legal__block { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.legal__block h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.legal__block,
.legal__block p { font-size: 0.925rem; color: var(--color-text); line-height: 1.85; }
.legal__block p + p { margin-top: 0.5rem; }
.legal__block strong { color: var(--color-heading); }
.legal__block a { color: var(--color-primary); text-decoration: none; }
.legal__block a:hover { text-decoration: underline; }

/* =========================================================================
   8. KONTAKT / FORMULAR
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-item { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 1.5rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item__icon {
  width: 38px; height: 38px;
  background-color: var(--surface-pill);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.contact-item__value { font-size: 0.9rem; color: var(--color-heading); font-weight: 500; text-decoration: none; }
.contact-item__value:hover { text-decoration: underline; }

.contact-note {
  margin-top: 2rem;
  padding: 1.25rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-note p { font-size: var(--fs-body-sm); color: var(--color-text); line-height: 1.75; }

/* Formular */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__field { display: flex; flex-direction: column; }
.form__label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-strong);
  margin-bottom: 0.4rem;
}
.form__input,
.form__textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-heading);
  background-color: var(--surface-alt);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form__textarea { resize: vertical; min-height: 130px; }
.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 79, 0.12);
}
.form__hint { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.6; }
.form__hint a { color: var(--color-primary); }

/* Erfolgsmeldung nach dem Absenden */
.form-success {
  padding: 2.5rem;
  background-color: var(--surface-pill);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}
.form-success__icon {
  width: 48px; height: 48px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.9rem; color: var(--color-text); line-height: 1.7; }
.is-hidden { display: none !important; }

/* =========================================================================
   9. FOOTER
   ========================================================================= */
.site-footer { background-color: var(--footer-bg); color: var(--footer-text); }
.site-footer__inner { padding: 3rem var(--gutter) 2rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand__top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand__top img { width: 43px; height: 36px; }
.footer-brand__name { font-size: 1rem; font-weight: 700; color: #ffffff; letter-spacing: 0.06em; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: var(--footer-text); max-width: 280px; }
.footer-brand__mail { display: inline-block; margin-top: 1.25rem; font-size: var(--fs-body-sm); color: var(--footer-logo); text-decoration: none; }
.footer-brand__mail:hover { text-decoration: underline; }

.footer-col__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-heading);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: var(--fs-body-sm);
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #ffffff; }

.site-footer__bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__bottom p { font-size: 0.8rem; color: var(--footer-muted); }
.site-footer__legal { display: flex; gap: 1.5rem; }
.site-footer__legal a { font-size: 0.8rem; color: var(--footer-muted); text-decoration: none; }
.site-footer__legal a:hover { color: var(--footer-text); }

/* =========================================================================
   10. ANIMATIONEN
   ========================================================================= */
/* Sanftes Einblenden beim Scrollen – per JS (main.js) aktiviert.
   Elemente mit der Klasse .reveal starten leicht verschoben & transparent. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Nutzer, die reduzierte Bewegung bevorzugen, sehen keine Animationen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-card:hover,
  .news-card:hover,
  .event-card:hover { transform: none; }
}

/* =========================================================================
   11. RESPONSIVE
   ========================================================================= */

/* ----- Tablet (bis 992px) ----- */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ----- Mobil (bis 768px) ----- */
@media (max-width: 768px) {
  :root { --section-padding: 3.5rem; --gutter: 1.25rem; }

  /* Navigation: Desktop-Menü aus, Hamburger an */
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 4rem var(--gutter) 3.5rem; }

  .grid-3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-figure { order: -1; }            /* Grafik über den Text */
  .about-figure svg { width: 220px; height: 220px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* Termine-Zeile (Startseite) gestapelt */
  .termin-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.25rem; }
  .termin-row__chevron { display: none; }

  /* Footer einspaltig */
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p { max-width: none; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ----- Kleine Smartphones (bis 480px) ----- */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .brand__sub { display: none; }          /* Untertitel ausblenden, Platz sparen */
  .event-card { grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.25rem; }
}
