@font-face {
  font-family: "DM Sans";
  src: url("./fonts/DMSans-VariableFont_opsz\,wght.ttf") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./fonts/DMSans-Italic-VariableFont_opsz\,wght.ttf") format("woff2");
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("./fonts/LibreBaskerville-Regular.ttf") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("./fonts/LibreBaskerville-Bold.ttf") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --yellow: #f6c957;
  --yellow-soft: #f9e7b3;
  --blue: #2f3f97;
  --blue-dark: #263581;
  --paper: #fffdfa;
  --cream: #f7f2e8;
  --ink: #171717;
  --muted: #747474;
  --shadow: 0 12px 30px rgba(35, 50, 125, 0.16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: rgba(255,253,250,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(47,63,151,.12);
}
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--blue); line-height: .9; }
.brand-kicker { font-family: "Libre Baskerville", serif; font-size: .82rem; letter-spacing: .28em; margin-left: .1em; }
.brand-title { font-family: "Libre Baskerville", serif; font-size: clamp(1.2rem,3vw,1.9rem); font-weight: 700; letter-spacing: .07em; }
.main-nav { display: flex; align-items: center; gap: .5rem; }
.main-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--blue); padding: .7rem 1rem; border-radius: 999px; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--blue); color: white; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue); padding: 11px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: white; }

.hero {
  min-height: 74vh;
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); align-items: center;
  gap: clamp(2rem,7vw,6rem);
  padding: clamp(4rem,8vw,7rem) clamp(1.25rem,6vw,6rem);
  background: linear-gradient(120deg, var(--yellow) 0 58%, var(--yellow-soft) 58% 100%);
}
.hero > div:first-child {
  min-width: 0;
}
.hero h1, .section h2, .event-card h3 { font-family: "Libre Baskerville", serif; color: var(--blue); }
.hero h1 {
  font-size: clamp(3rem, 6.2vw, 6.6rem);
  line-height: .97;
  margin: .2em 0 .25em;
  max-width: 10ch;
}
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .18em; font-weight: 600; color: var(--blue); }
.hero-text { max-width: 42rem; font-size: clamp(1.05rem,2vw,1.3rem); line-height: 1.65; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85rem 1.4rem; border: 2px solid var(--blue); border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary-button { color: white; background: var(--blue); }
.primary-button:hover, .primary-button:focus-visible { background: var(--blue-dark); }
.hero-visual { display: grid; place-items: center; }
.logo-panel { width: min(100%, 520px); padding: clamp(1.2rem,3vw,2rem); background: rgba(255,255,255,.92); border: 3px solid var(--blue); border-radius: 36px; box-shadow: 18px 18px 0 rgba(47,63,151,.12); }
.hero-logo { width: 100%; height: auto; }

.section { padding: clamp(4rem,8vw,7rem) clamp(1.25rem,6vw,6rem); }
#events { background: var(--cream); }
.section-heading { max-width: 800px; margin-bottom: 2.5rem; }
.section h2 { margin: .2em 0; font-size: clamp(2.4rem,6vw,5rem); }
.section-heading p:last-child { line-height: 1.7; }
.events-grid { display: grid; gap: 1rem; }
.event-card { display: grid; grid-template-columns: 126px minmax(0,1fr) 54px; align-items: stretch; min-height: 122px; background: var(--paper); border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .2s ease, border-color .2s ease; }
.event-card:hover, .event-card:focus-visible { border-color: rgba(47,63,151,.35); box-shadow: 0 16px 34px rgba(35,50,125,.24); outline: none; }
.event-date, .event-day { background: var(--blue); color: white; }
.event-date { display: grid; place-content: center; text-align: center; font-family: "Libre Baskerville", serif; line-height: .85; }
.event-date strong { font-size: 3.3rem; font-weight: 400; }
.event-date span { font-size: 1.65rem; letter-spacing: .08em; }
.event-content { padding: 1.2rem 1.6rem; align-self: center; min-width: 0; }
.event-time { color: var(--muted); }
.event-content h3 { margin: .15rem 0; font-size: clamp(1.45rem,3vw,2.3rem); text-transform: uppercase; letter-spacing: .04em; }
.event-content p { margin: 0; font-size: 1.05rem; }
.event-day { display: flex; align-items: center; justify-content: center; align-self: stretch; min-width: 0; overflow: hidden; }
.event-day span { display: block; white-space: nowrap; letter-spacing: .06em; transform: rotate(90deg); }

.form-section { background: var(--blue); color: white; }
.section-heading.light .eyebrow, .section-heading.light h2 { color: white; }
.registration-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; max-width: 1000px; }
.registration-form label { display: grid; gap: .5rem; font-weight: 600; }
.registration-form input, .registration-form textarea, .registration-form select { width: 100%; border: 0; border-radius: 16px; padding: 1rem; background: white; color: var(--ink); }
.registration-form input:focus, .registration-form textarea:focus, .registration-form select:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.full-width { grid-column: 1 / -1; }
.secondary-button { background: var(--yellow); color: var(--blue); border-color: var(--yellow); }

.contact-section { display: grid; grid-template-columns: 1fr minmax(280px,.7fr); gap: 3rem; align-items: start; background: var(--paper); }
.contact-card { display: grid; gap: .7rem; padding: 2rem; background: var(--cream); border: 3px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card a { color: var(--blue); font-weight: 700; }

.site-footer { color: white; background: var(--blue); overflow: hidden; }
.silhouette-wrap { padding: 3rem 0 0; background: var(--yellow-soft); }
.silhouette-wrap img { width: 100%; max-height: 390px; object-fit: contain; object-position: center bottom; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem,4vw,3rem); }
.footer-bottom p { margin: 0; }
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus-visible { text-decoration: underline; }

.event-modal { width: min(92vw,620px); border: 0; border-radius: 28px; padding: 2.5rem; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.event-modal::backdrop { background: rgba(20,28,71,.72); }
.event-modal h2 { color: var(--blue); font-family: "Libre Baskerville", serif; font-size: clamp(2rem,6vw,3.5rem); margin: .25em 0; }
.modal-subtitle { font-weight: 700; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--blue); color: white; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 1150px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 2rem;
  }

  .hero > div:first-child {
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 5.8vw, 5.2rem);
    max-width: 9ch;
  }

  .logo-panel {
    width: min(100%, 460px);
  }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--paper);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open { display: flex; }
  .main-nav a { text-align: center; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    background: var(--yellow);
  }

  .hero h1 {
    max-width: 11ch;
  }

  .hero-visual {
    width: min(84vw, 470px);
    margin-inline: auto;
  }

  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .event-card { grid-template-columns: 92px minmax(0,1fr) 42px; min-height: 108px; border-radius: 18px; }
  .event-date strong { font-size: 2.5rem; }
  .event-date span { font-size: 1.1rem; }
  .event-content { padding: 1rem; }
  .event-content h3 { font-size: 1.2rem; }
  .event-content p, .event-time { font-size: .9rem; }
  .event-day { font-size: .82rem; }
  .registration-form { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .site-header { padding: .85rem 1rem; }
  .brand-kicker { font-size: .72rem; }
  .brand-title { font-size: 1.2rem; }
  .event-card { grid-template-columns: 78px minmax(0,1fr); grid-template-areas: "date content" "day day"; }
  .event-date { grid-area: date; }
  .event-content { grid-area: content; }
  .event-day { grid-area: day; min-height: 30px; }
  .event-day span { transform: none; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
}

/* Erweiterte Anmeldung */
.form-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
}

.form-group legend {
  padding: 0 .55rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: white;
}

.required-mark { color: var(--yellow); }

.choice-field {
  display: grid;
  align-content: start;
  gap: .55rem;
}

.choice-label { font-weight: 600; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.registration-form .radio-row label {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .45rem;
  min-height: 52px;
  padding: .75rem 1rem;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.registration-form .radio-row input,
.registration-form .privacy-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--blue);
}

.registration-form input:disabled {
  opacity: .58;
  cursor: not-allowed;
  background: #ececec;
}

.privacy-consent {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .8rem !important;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  font-weight: 400 !important;
  line-height: 1.55;
}

.privacy-consent input { margin-top: .22rem !important; }
.privacy-consent a { color: white; text-underline-offset: .2em; }
.form-note { margin: -.2rem 0 0; font-size: .9rem; opacity: .85; }

@media (max-width: 720px) {
  .form-group { grid-template-columns: 1fr; padding: 1rem; }
}


/* Anti-Spam-Feld: fuer Menschen unsichtbar, fuer einfache Bots weiterhin im Formular vorhanden. */
.website-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 600;
}

.form-status.is-error { color: #ffe49a; }
.form-status.is-success { color: #d8ffd8; }

@media (prefers-reduced-motion: reduce) {
  .event-card { transition: none; }
}

/* Rechtliche Unterseiten */
.legal-page {
  min-height: 100vh;
  background: var(--cream);
}

.legal-header .brand {
  flex-shrink: 0;
}

.legal-main {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 6vw, 6rem);
}

.legal-hero {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 32px;
  background: var(--yellow-soft);
  border: 2px solid rgba(47, 63, 151, .14);
}

.legal-hero h1 {
  margin: .15em 0 .25em;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 1;
  color: var(--blue);
}

.legal-hero p:last-child {
  max-width: 70ch;
  margin-bottom: 0;
  line-height: 1.7;
}

.legal-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-content section + section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(47, 63, 151, .16);
}

.legal-content h2 {
  margin: 0 0 .8rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--blue);
}

.legal-content h3 {
  margin: 1.5rem 0 .5rem;
  color: var(--blue-dark);
}

.legal-content p,
.legal-content li,
.legal-content address {
  line-height: 1.75;
}

.legal-content address {
  font-style: normal;
}

.legal-content a {
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: .18em;
}

.placeholder-note {
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--yellow);
  border-radius: 0 14px 14px 0;
  background: #fff8df;
}

.placeholder {
  display: inline-block;
  padding: .05em .35em;
  border-radius: .35em;
  background: var(--yellow-soft);
  color: var(--blue-dark);
  font-weight: 700;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  text-decoration: underline;
}

@media (max-width: 620px) {
  .legal-header .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .legal-header .main-nav a:not(.legal-home-link) {
    display: none;
  }

  .legal-header .nav-toggle {
    display: none;
  }
}
