/* FemHealth Events – Stylesheet (Mobile First, ohne Framework) */

:root {
  /* CI-Farben */
  --fh-blue: #6EAEDA;        /* Hauptakzent */
  --fh-green: #B6C26D;       /* sekundär: Tags */
  --fh-navy: #2B3C67;        /* Text & Überschriften */
  --fh-pink: #F3C2C3;        /* sekundär: Tags, Flächen */

  /* Abgeleitete Töne */
  --fh-blue-hover: #5B9FCF;
  --fh-blue-50: #EEF6FC;
  --fh-blue-100: #DDEDF8;
  --fh-green-50: #F5F7E8;
  --fh-green-text: #4F5A1C;
  --fh-pink-50: #FDF0F0;
  --fh-pink-hover: #EBADAF;
  --fh-pink-200: #F8DCDD;
  --fh-pink-text: #8A3B3E;
  --fh-navy-80: #4A587F;
  --fh-navy-60: #5E6B8F;

  --bg: #FFFFFF;
  --bg-soft: #F7FAFD;
  --line: #E3EAF2;
  --text: var(--fh-navy);
  --text-muted: var(--fh-navy-60);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(43, 60, 103, .06), 0 2px 8px rgba(43, 60, 103, .05);
  --shadow: 0 2px 6px rgba(43, 60, 103, .05), 0 12px 32px rgba(43, 60, 103, .08);

  /* Schriften wie femhealth.at: Überschriften Alice, Text Almarai (selbst gehostet, siehe fonts.css) */
  --font-body: "Almarai", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Alice", Georgia, "Times New Roman", serif;

  --gutter: 16px;
  --container: 1200px;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------------------------------------------------------------- Basis */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--fh-blue); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--fh-navy); color: #fff; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.demo-banner {
  background: var(--fh-pink-50); color: var(--fh-pink-text); text-align: center;
  font-size: .875rem; padding: 6px var(--gutter); border-bottom: 1px solid var(--fh-pink);
}

.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fh-navy-80); margin-bottom: 12px;
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--fh-pink); color: var(--fh-navy); box-shadow: 0 1px 2px rgba(43, 60, 103, .08); }
.btn--primary:hover { background: var(--fh-pink-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: #fff; color: var(--fh-navy); border-color: var(--fh-pink-200); }
.btn--ghost:hover { border-color: var(--fh-pink); background: var(--fh-pink-50); }
.btn--link { background: none; color: var(--fh-navy-80); text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.0625rem; }

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__mark { width: auto; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-body); font-weight: 800; font-size: 1.3125rem; color: var(--fh-navy); letter-spacing: -.005em; }
.brand__name-accent { color: var(--fh-blue); }
.site-footer .brand__name-accent { color: var(--fh-blue); }
.brand__sub { font-size: .75rem; color: var(--text-muted); letter-spacing: .04em; }

.nav--desktop { display: none; align-items: center; gap: 8px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  color: var(--fh-navy); text-decoration: none; font-weight: 500; border-radius: var(--radius-pill);
}
.nav__link:hover { background: var(--fh-blue-50); }

.nav--mobile { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; list-style: none;
  font-weight: 600; font-size: .9375rem; background: #fff;
}
.nav__toggle::-webkit-details-marker { display: none; }
.nav__burger, .nav__burger::before, .nav__burger::after {
  display: block; width: 16px; height: 2px; background: var(--fh-navy); border-radius: 2px; position: relative;
}
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { top: -5px; }
.nav__burger::after { top: 5px; }
.nav--mobile[open] .nav__burger { background: transparent; }
.nav--mobile[open] .nav__burger::before { top: 0; transform: rotate(45deg); }
.nav--mobile[open] .nav__burger::after { top: 0; transform: rotate(-45deg); }
.nav__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 2 * var(--gutter)));
  display: flex; flex-direction: column; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.nav__panel .nav__link { border-radius: var(--radius-sm); }

@media (min-width: 900px) {
  .nav--desktop { display: flex; }
  .nav--mobile { display: none; }
}

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 40px;
  background:
    radial-gradient(420px 260px at 92% 8%, rgba(243, 194, 195, .45), transparent 70%),
    radial-gradient(360px 240px at 4% 96%, rgba(182, 194, 109, .28), transparent 70%),
    linear-gradient(180deg, var(--fh-blue-50), #fff 92%);
}
.hero__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero__title { font-size: clamp(2rem, 6.4vw, 3.5rem); font-weight: 400; }
.hero__lead { margin: 16px auto 0; max-width: 620px; font-size: clamp(1.0625rem, 2.4vw, 1.25rem); color: var(--fh-navy-80); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero__actions .btn { width: 100%; }
@media (min-width: 480px) { .hero__actions .btn { width: auto; } }
@media (min-width: 768px) { .hero { padding: 80px 0 64px; } }

/* ---------------------------------------------------------------- Filter */

.events { padding: 8px 0 56px; }

.filters {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin: 0 0 20px; padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  position: relative; z-index: 1; margin-top: -8px;
}
@media (min-width: 560px) {
  .filters { grid-template-columns: 1fr 1fr; padding: 20px; }
  .field--search, .filters__actions { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .filters { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; margin-top: -32px; }
  .field--search { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .filters { grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); }
  .field--search { grid-column: auto; }
  .filters__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: .8125rem; font-weight: 600; color: var(--fh-navy-80); }
.field__control {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--fh-navy);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  -webkit-appearance: none; appearance: none;
}
select.field__control {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232B3C67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  text-overflow: ellipsis;
}
.field__control:hover { border-color: var(--fh-blue-100); }
.field__control:focus { outline: none; border-color: var(--fh-blue); box-shadow: 0 0 0 3px rgba(110, 174, 218, .3); background-color: #fff; }

.filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__actions .btn--primary { flex: 1 1 auto; }
@media (min-width: 560px) { .filters__actions .btn--primary { flex: 0 0 auto; } }
.js-filter [data-filter-submit] { display: none; }

.results-count { font-size: .9375rem; color: var(--text-muted); margin: 4px 0 16px; }

/* ---------------------------------------------------------------- Karten */

/* Raster: Reihen deutlich getrennt (Zeilenabstand > Spaltenabstand); Reihenfolge = Datum, kein „dense“ */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 24px 20px; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1040px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* Zeitliche Hervorhebung: läuft gerade (grün) vs. heute/morgen/übermorgen (rosa) */
.card--running, .card--soon { position: relative; border-width: 3px; }
.card--running { border-color: var(--fh-green); box-shadow: 0 0 0 5px var(--fh-green-50), var(--shadow); }
.card--soon { border-color: var(--fh-pink); box-shadow: 0 0 0 5px var(--fh-pink-50), var(--shadow-sm); }
.card--running:hover { box-shadow: 0 0 0 5px var(--fh-green-50), var(--shadow); }
.card--soon:hover { box-shadow: 0 0 0 5px var(--fh-pink-50), var(--shadow); }

.status-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; margin-bottom: -2px;
}
.status-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.status-badge--running { background: var(--fh-green); color: var(--fh-navy); }
.status-badge--running .status-badge__dot { background: #fff; animation: fh-pulse 1.8s ease-out infinite; }
.status-badge--today { background: var(--fh-pink); color: var(--fh-navy); }
.status-badge--tomorrow, .status-badge--in2days { background: var(--fh-pink-50); color: var(--fh-pink-text); box-shadow: inset 0 0 0 1.5px var(--fh-pink); }
.status-badge--lg { display: flex; width: fit-content; font-size: .875rem; padding: 6px 16px; margin-bottom: 12px; }
@keyframes fh-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9); } 70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .status-badge--running .status-badge__dot { animation: none; } }

.card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--fh-blue-50); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { position: absolute; inset: 0; }
.card__media--blue .card__placeholder {
  background: radial-gradient(circle at 80% 20%, rgba(243, 194, 195, .7) 0 18%, transparent 19%),
              radial-gradient(circle at 18% 90%, rgba(255, 255, 255, .55) 0 26%, transparent 27%),
              linear-gradient(135deg, var(--fh-blue-100), var(--fh-blue));
}
.card__media--green .card__placeholder {
  background: radial-gradient(circle at 78% 26%, rgba(255, 255, 255, .6) 0 20%, transparent 21%),
              radial-gradient(circle at 12% 88%, rgba(110, 174, 218, .45) 0 24%, transparent 25%),
              linear-gradient(135deg, var(--fh-green-50), var(--fh-green));
}
.card__media--pink .card__placeholder {
  background: radial-gradient(circle at 82% 24%, rgba(110, 174, 218, .5) 0 16%, transparent 17%),
              radial-gradient(circle at 16% 86%, rgba(255, 255, 255, .6) 0 26%, transparent 27%),
              linear-gradient(135deg, var(--fh-pink-50), var(--fh-pink));
}

.date-badge {
  position: absolute; left: 14px; top: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 58px; height: 62px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm);
  line-height: 1;
}
.date-badge__day { font-size: 1.5rem; font-weight: 700; color: var(--fh-navy); }
.date-badge__month { margin-top: 4px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fh-navy-80); }

.mode-badge {
  position: absolute; right: 14px; top: 14px; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--fh-navy); color: #fff; font-size: .8125rem; font-weight: 600;
}

.card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px; }
.card__date { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .875rem; font-weight: 600; color: var(--fh-navy-80); }
.card__time { font-weight: 500; color: var(--text-muted); }
.card__title { font-size: 1.3125rem; font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--fh-blue); text-underline-offset: 3px; }
.card__summary { color: var(--fh-navy-80); font-size: .9375rem; }

.card__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--fh-navy-80); }
.fact { display: inline-flex; align-items: center; gap: 6px; }
.fact::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--fh-blue); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.fact--place { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.fact--format { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-7l-4 3v-3H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 11px; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 500; line-height: 1.4; }
.tag--blue { background: var(--fh-blue-50); color: var(--fh-navy); }
.tag--green { background: var(--fh-green-50); color: var(--fh-green-text); }
.tag--pink { background: var(--fh-pink-50); color: var(--fh-pink-text); }
.tag--more { background: var(--bg-soft); color: var(--text-muted); }

.card__footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.card__organizer { font-size: .875rem; color: var(--text-muted); min-width: 0; overflow-wrap: anywhere; }
.card__cta {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: auto;
  font-weight: 700; color: var(--fh-navy); text-decoration: none;
  text-decoration-line: underline; text-decoration-color: var(--fh-blue); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.card__cta:hover { color: var(--fh-blue-hover); }
.card__arrow { margin-left: .35em; }

/* ---------------------------------------------------------------- Zustände */

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 40px 20px; background: var(--bg-soft); border: 1px dashed var(--fh-blue-100); border-radius: var(--radius);
  color: var(--fh-navy-80);
}
.empty__title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--fh-navy); }
.empty .btn { margin-top: 8px; }

.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; }
.notice--info { background: var(--fh-blue-50); border-left: 4px solid var(--fh-blue); }
.notice--error { background: var(--fh-pink-50); border-left: 4px solid #D9797C; color: var(--fh-pink-text); }

/* ---------------------------------------------------------------- CTA-Band */

.cta-band { padding: 0 0 64px; }
.cta-band__inner {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  padding: 28px var(--gutter); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--fh-blue-50), var(--fh-pink-50));
}
.cta-band__title { font-size: 1.375rem; margin-bottom: 6px; }
.cta-band__inner p { color: var(--fh-navy-80); }
.cta-band__inner .btn { width: 100%; }
@media (min-width: 768px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 48px; }
  .cta-band__inner .btn { width: auto; flex: none; }
}

/* ---------------------------------------------------------------- Inhaltsseiten */

.page { padding: 40px 0 64px; }
.page--narrow .container { max-width: 760px; }
.page--center { text-align: center; }
.page__title { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 8px 0 12px; }
.page__meta { color: var(--fh-navy-80); font-weight: 500; margin-bottom: 16px; }
.page__lead { font-size: 1.125rem; color: var(--fh-navy-80); margin-bottom: 16px; }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.page--center .page__actions .btn { flex: 1 1 220px; max-width: 320px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--fh-navy-80); text-decoration: none; font-weight: 500; }
.back-link:hover { text-decoration: underline; }
.error-code { font-size: 4.5rem; font-weight: 700; line-height: 1; color: var(--fh-blue); }
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--fh-green-50);
  position: relative;
}
.success-icon::after {
  content: ""; position: absolute; left: 26px; top: 18px; width: 16px; height: 28px;
  border: solid var(--fh-green-text); border-width: 0 4px 4px 0; transform: rotate(45deg);
}
@media (min-width: 768px) { .page { padding: 64px 0 88px; } }

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--fh-navy); color: #E6ECF6; padding: 40px 0 24px; }
.site-footer .brand__name { color: #fff; }
.site-footer__inner { display: flex; flex-direction: column; gap: 24px; }
.site-footer__brand p { margin-top: 8px; max-width: 420px; color: #C9D3E6; font-size: .9375rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer__nav a, .site-footer__bottom a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin-left: -8px;
  color: #fff; text-decoration: none; border-radius: var(--radius-sm);
}
.site-footer__nav a:hover, .site-footer__bottom a:hover { text-decoration: underline; text-decoration-color: var(--fh-blue); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .875rem; color: #C9D3E6;
}
.site-footer :focus-visible { outline-color: var(--fh-pink); }
@media (min-width: 768px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .site-footer__nav { gap: 4px 20px; }
}

/* ---------------------------------------------------------------- Einreichungsformular */

.page--form .container { max-width: 820px; }
.form-intro { margin-bottom: 24px; }
.form-note { font-size: .875rem; color: var(--text-muted); }
.req { color: #B5474B; font-weight: 700; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit-form { display: flex; flex-direction: column; gap: 20px; }
.form-section {
  margin: 0; padding: 20px 16px 24px; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  display: block;
}
.form-section > * + * { margin-top: 18px; }
.form-section > legend + * { clear: both; margin-top: 0; }
@media (min-width: 768px) { .form-section { padding: 28px 32px 32px; } }
.form-section__title {
  float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 18px;
  font-family: var(--font-heading); font-size: 1.5rem; color: var(--fh-navy);
}
.step {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: var(--fh-pink-50); color: var(--fh-navy);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
}
.form-section__hint { font-size: .9375rem; color: var(--fh-navy-80); }

.field-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--4 { grid-template-columns: 1fr 1fr; }
  .field-row--plz { grid-template-columns: 140px 1fr; }
}
@media (min-width: 900px) { .field-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.field--group { border: 0; margin: 0; padding: 0; min-width: 0; }
.field--group > .field__label { padding: 0; margin-bottom: 6px; }
.field__label { font-size: .9375rem; }
.field__hint { font-size: .8125rem; color: var(--text-muted); margin-top: 2px; }
.field__counter { font-size: .75rem; color: var(--text-muted); text-align: right; margin-top: 2px; }
textarea.field__control { min-height: 0; resize: vertical; line-height: 1.5; }
.field__control[aria-invalid="true"], .field--group[aria-invalid="true"] .choice,
.field--group[aria-invalid="true"] .segmented__item span { border-color: #D9797C; }
.form-error { font-size: .875rem; color: #A3383C; font-weight: 600; margin-top: 2px; }
.field__control--file { padding: 10px; background: var(--bg-soft); cursor: pointer; }
.field__control--file::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 0; border-radius: var(--radius-pill);
  background: var(--fh-pink); color: var(--fh-navy); font: inherit; font-weight: 700; cursor: pointer;
}
.file-preview { margin-top: 10px; max-width: 320px; max-height: 200px; border-radius: var(--radius-sm); border: 1px solid var(--line); object-fit: cover; }
.file-preview--logo { max-width: 160px; max-height: 120px; object-fit: contain; background: #fff; padding: 8px; }

/* Checkbox-Kacheln */
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 4px; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice {
  display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
  cursor: pointer; line-height: 1.35; font-size: .9375rem;
}
.choice:hover { border-color: var(--fh-pink); }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--fh-navy); }
.choice:has(input:checked) { background: var(--fh-pink-50); border-color: var(--fh-pink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--fh-blue); outline-offset: 2px; }
.choice--block { background: #fff; }

/* Segment-Auswahl (Radio) */
.segmented { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.segmented__item { position: relative; flex: 1 1 0; min-width: 90px; }
.segmented__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__item span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg-soft);
  font-weight: 600; text-align: center; cursor: pointer;
}
.segmented__item input:checked + span { background: var(--fh-pink); border-color: var(--fh-pink); }
.segmented__item input:focus-visible + span { outline: 3px solid var(--fh-blue); outline-offset: 2px; }

.input-affix { position: relative; }
.input-affix__prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 600; }
.input-affix .field__control { padding-left: 34px; }

.privacy-note { font-size: .875rem; color: var(--fh-navy-80); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.privacy-note a { color: var(--fh-navy); }

.error-summary ul { margin: 8px 0 0; padding-left: 18px; list-style: disc; }
.error-summary a { color: inherit; }
.error-summary:focus { outline: 3px solid #D9797C; outline-offset: 2px; }

.form-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; padding-bottom: 8px; }
.form-actions .btn { width: 100%; }
@media (min-width: 640px) {
  .form-actions { flex-direction: row; align-items: center; }
  .form-actions .btn { width: auto; flex: none; }
}
.btn:disabled { opacity: .7; cursor: progress; }

.page__actions--start { justify-content: flex-start; }

/* ---------------------------------------------------------------- Werbung */
/* Werbeplatz über die ganze Rasterbreite zwischen zwei Kachelreihen; Abstand zu den Reihen 40–48 px. */

.ad { grid-column: 1 / -1; margin: 12px 0; }
.ad[hidden] { display: none; }
.ad__head { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 6px; font-size: .75rem; color: var(--text-muted); }
.ad__label { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ad__sponsor { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad__frame {
  display: block; overflow: hidden; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-soft);
}
a.ad__frame:hover { box-shadow: var(--shadow-sm); }
a.ad__frame:focus-visible { outline: 3px solid var(--fh-blue); outline-offset: 3px; }
.ad__img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: contain; margin: 0 auto; }
@media (min-width: 700px) { .ad { margin: 8px 0; } .ad__img { max-height: 160px; } }
@media (min-width: 1040px) { .ad__img { max-height: 180px; } }

/* ---------------------------------------------------------------- Social Media */

/* Plattform-Logos (Font Awesome Free Brands, CC BY 4.0) in den Markenfarben */
.social-icon { flex: none; display: block; color: var(--fh-navy); }
.social-icon--instagram { color: #E4405F; }
.social-icon--linkedin  { color: #0A66C2; }
.social-icon--facebook  { color: #0866FF; }
.social-icon--youtube   { color: #FF0000; }
.social-icon--tiktok, .social-icon--x, .social-icon--threads { color: #000; }
.social-icon--pinterest { color: #E60023; }
.social-icon--whatsapp  { color: #25D366; }
.social-icon--website, .social-icon--other { color: var(--fh-blue); }

.social-fields { margin: 20px 0 20px; }
.social-fields__title { margin-bottom: 2px; }
.social-fields__intro { margin: 0 0 12px; }
.social-grid { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 640px) { .social-grid { grid-template-columns: 1fr 1fr; } }
.input-icon { position: relative; }
.input-icon .social-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.input-icon .field__control { padding-left: 46px; }
.social-more { margin: 4px 0 8px; }
.social-more > summary {
  cursor: pointer; font-weight: 600; color: var(--fh-navy); min-height: 44px; display: flex; align-items: center;
  text-decoration: underline; text-decoration-color: var(--fh-pink); text-underline-offset: 3px;
}
.social-more[open] > summary { margin-bottom: 8px; }
.social-legacy { margin-top: 8px; padding: 12px 14px 2px; border-radius: var(--radius-sm); background: var(--bg-soft); }

.social-links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff;
  color: var(--fh-navy); font-weight: 600; font-size: .9375rem; text-decoration: none; max-width: 100%;
}
.social-link__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.social-link:hover { border-color: var(--fh-pink); background: var(--fh-pink-50); }
a.social-link:focus-visible { outline: 3px solid var(--fh-blue); outline-offset: 2px; }
.social-links--compact { margin: 0; gap: 6px; }
.social-links--compact .social-link { min-height: 32px; padding: 3px 10px 3px 8px; font-size: .8125rem; }

/* ---------------------------------------------------------------- Detailseite */

.detail { padding: 24px 0 64px; }
@media (min-width: 768px) { .detail { padding: 40px 0 88px; } }
.detail__head { max-width: 860px; margin: 12px 0 28px; }
.detail__title { font-size: clamp(1.875rem, 5.5vw, 3rem); margin: 4px 0 14px; overflow-wrap: anywhere; }
.detail__lead { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--fh-navy-80); margin-bottom: 18px; }
.detail__head .tag a { color: inherit; text-decoration: none; }
.detail__head .tag a:hover { text-decoration: underline; }

.detail__layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 960px) { .detail__layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; } }
.detail__aside { order: -1; }
@media (min-width: 960px) { .detail__aside { order: 0; position: sticky; top: 92px; } }

.detail__image { margin: 0 0 28px; }
.detail__image img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); }
.detail__section + .detail__section { margin-top: 32px; }
.detail__h2 { font-size: 1.5rem; margin-bottom: 12px; }
.prose p { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.7; overflow-wrap: anywhere; }

.info-card {
  padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.facts { margin: 0; display: flex; flex-direction: column; }
.facts__row { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts__row:first-child { padding-top: 0; }
.facts dt { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; color: var(--fh-navy); overflow-wrap: anywhere; }
.facts__note { font-weight: 400; color: var(--fh-navy-80); font-size: .9375rem; }
.facts__link { font-weight: 600; font-size: .9375rem; color: var(--fh-navy); text-decoration-color: var(--fh-pink); text-underline-offset: 3px; }
.info-card__cta { width: 100%; margin-top: 18px; }
.info-card__note { margin-top: 8px; font-size: .8125rem; color: var(--text-muted); text-align: center; }

.organizer__box { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--bg-soft); border-radius: var(--radius); }
@media (min-width: 560px) { .organizer__box { flex-direction: row; align-items: flex-start; } }
.organizer__logo { width: 96px; height: auto; max-height: 96px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); padding: 8px; flex: none; }
.organizer__name { font-weight: 800; font-size: 1.125rem; }
.organizer__text { margin-top: 6px; color: var(--fh-navy-80); }
.organizer__link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; color: var(--fh-navy); text-decoration-color: var(--fh-pink); text-underline-offset: 3px; }

.related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.related__more { margin-top: 24px; text-align: center; }

/* ---------------------------------------------------------------- Freigabe (intern) */

.approval__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.approval__head .page__title { margin: 4px 0; }
.approval__meta { color: var(--text-muted); font-size: .9375rem; margin-bottom: 8px; }
.status { padding: 6px 14px; border-radius: var(--radius-pill); font-weight: 700; font-size: .875rem; }
.status--pending { background: var(--fh-blue-50); color: var(--fh-navy); }
.status--ok { background: var(--fh-green-50); color: var(--fh-green-text); }
.status--no { background: var(--fh-pink-50); color: var(--fh-pink-text); }
.notice--success { background: var(--fh-green-50); border-left: 4px solid var(--fh-green); color: var(--fh-green-text); }
.approval__grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 16px; }
@media (min-width: 960px) { .approval__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } }
.approval__aside { display: flex; flex-direction: column; gap: 20px; order: -1; }
@media (min-width: 960px) { .approval__aside { order: 0; } }
.approval__image { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; }
.approval__facts { margin-bottom: 24px; }
.approval__main .detail__h2 { margin-top: 20px; }
.approval__btn { width: 100%; }
.approval__actions form + details { margin-top: 12px; }
.approval__reject > summary { list-style: none; cursor: pointer; }
.approval__reject > summary::-webkit-details-marker { display: none; }
.approval__reject form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.btn--danger { background: #B5474B; color: #fff; }
.btn--danger:hover { background: #993A3E; }
.text-warn { color: #A3383C; }

/* Kalender */
.calendar { margin-top: 14px; }
.calendar__toggle { width: 100%; list-style: none; cursor: pointer; }
.calendar__toggle::-webkit-details-marker { display: none; }
.calendar__list { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.calendar__list li + li { border-top: 1px solid var(--line); }
.calendar__list a { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; font-weight: 600; color: var(--fh-navy); text-decoration: none; }
.calendar__list a:hover { background: var(--fh-pink-50); }

/* ------------------------------------------------------------ Instagram (Freigabeseite) */
.insta { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.insta__grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .insta__grid { grid-template-columns: minmax(260px, 400px) 1fr; align-items: start; } }
.insta__preview img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.insta__links { margin: 10px 0 0; font-size: .9375rem; }
.insta__caption { font-family: inherit; line-height: 1.5; min-height: 320px; }
.insta__caption-view { white-space: pre-wrap; font-family: inherit; font-size: .9375rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; }
.insta__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.insta__design { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; background: #fff; }
.insta__design[open] { padding-bottom: 16px; }
.insta__design > summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--fh-navy); }
.insta__design fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.insta__design .choice { margin-bottom: 6px; }
.insta__file { margin-top: 6px; }
.insta__when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.insta__when .btn { margin-top: 4px; }

/* Download (z. B. Programm) */
.download-btn { width: 100%; margin-top: 12px; gap: 8px; }
.download-meta { margin-top: 6px; text-align: center; }
/* Veranstalter-Links */
.organizer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.organizer__links .organizer__link { margin-top: 0; }

/* ------------------------------------------------------------ Veranstalter-Bereich */
.page--narrow .container { max-width: 620px; }
.login-form { margin: 20px 0 16px; }
.login-form__btn { width: 100%; }
.account__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.account__who { margin: 4px 0 0; color: var(--fh-navy-80); }
.account__grid { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 960px) { .account__grid { grid-template-columns: 1fr 340px; align-items: start; } }
.account__section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.account__section-head .detail__h2 { margin: 0; }
.account-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.account-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.account-item__main { flex: 1 1 260px; min-width: 0; }
.account-item__date { margin: 0; font-size: .875rem; color: var(--fh-navy-80); }
.account-item__title { margin: 2px 0 8px; font-family: var(--font-heading, inherit); font-size: 1.125rem; color: var(--fh-navy); }
.account-item__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-past { margin-top: 24px; }
.account-past > summary { cursor: pointer; font-weight: 600; color: var(--fh-navy); }
.account-list--past .account-item { box-shadow: none; background: var(--bg-soft); }
.account-profile { margin-bottom: 12px; }
.account-profile__name { margin: 0 0 8px; font-weight: 700; color: var(--fh-navy); }
.account-profile__btn { width: 100%; margin-top: 12px; }
.account-logo, .account-current-image { display: block; max-width: 220px; max-height: 140px; width: auto; height: auto; margin: 6px 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); object-fit: contain; background: #fff; }
.account-current-image { max-width: 320px; max-height: 180px; object-fit: cover; }
.account-static { margin: 4px 0; font-weight: 600; color: var(--fh-navy); word-break: break-all; }
.account-hint { margin-bottom: 20px; }
.choice--inline { display: inline-flex; min-height: 0; padding: 6px 10px; margin: 4px 0 8px; }
.text-muted { color: var(--fh-navy-80); }
.account-profile .facts__row { display: block; }
.account-profile .facts__row dt { margin-bottom: 2px; }
.account-profile .facts__row dd { font-weight: 400; word-break: break-word; }

/* Zeitplan je Tag, Anmeldehinweis */
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.schedule li { white-space: nowrap; }
.schedule__day { font-weight: 800; }
.info-card__badge { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--fh-navy); font-weight: 700; text-align: center; }
.info-card__badge--free { background: var(--fh-green-50); color: var(--fh-green-text); box-shadow: inset 0 0 0 1px var(--fh-green); }

/* Zeiten je Tag im Formular */
.per-day { margin: 4px 0 20px; }
.per-day__toggle { margin-bottom: 10px; }
.per-day__rows { display: grid; gap: 8px; padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.per-day__row { display: flex; align-items: center; gap: 8px; }
.per-day__label { font-weight: 700; flex: 0 0 5.5em; }
.per-day__row .field__control { width: 8.5em; flex: 0 1 8.5em; min-width: 0; padding-left: 10px; padding-right: 8px; }
@media (max-width: 479px) {
  .per-day__row { flex-wrap: wrap; gap: 4px 8px; }
  .per-day__label { flex-basis: 100%; }
  .per-day__row .field__control { flex: 1 1 0; width: auto; }
}

/* Anmeldung: drei Möglichkeiten */
.segmented--wrap .segmented__item { flex: 1 1 180px; }

/* Bereits hochgeladene Datei */
.stash-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  margin: 4px 0 8px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--fh-green-50); color: var(--fh-green-text); box-shadow: inset 0 0 0 1px var(--fh-green); font-weight: 600; font-size: .9375rem;
}
.stash-note__remove { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--fh-navy); cursor: pointer; }
