:root {
  /* Farbwelt */
  --brombeer: #5a174f;
  --brombeer-dunkel: #35102f;
  --gelb: #f6c64f;
  --gelb-hell: #fff4cf;
  --creme: #fffaf0;
  --weiss: #ffffff;

  /* Text, Linien, Schatten */
  --text: #2b2028;
  --muted: #6f5e68;
  --rand: #ead8e5;
  --shadow: 0 10px 24px rgba(90, 23, 79, 0.08);
}

/* =========================================================
   1. Basis / Reset
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--creme);
}

a {
  color: inherit;
}

/* =========================================================
   2. Navigation inkl. CSS-only Hamburger-Menü
   ========================================================= */

.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--brombeer-dunkel);
  color: var(--weiss);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  max-width: 1100px;
  min-height: 58px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  padding: 1rem 0;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Unsichtbare Checkbox für das mobile Menü.
   Nicht mit display:none verstecken, damit sie für Tastatur/Screenreader verfügbar bleibt. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hamburger {
  display: none;
  padding: 0.8rem;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  padding: 1rem 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--gelb);
  color: var(--brombeer-dunkel);
  outline: none;
}

/* =========================================================
   3. Hero / Startbereich
   ========================================================= */

.hero {
  padding: 7rem 1rem 5.5rem;
  color: var(--weiss);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(90, 23, 79, 0.97), rgba(53, 16, 47, 0.9)),
    radial-gradient(circle at top right, var(--gelb), transparent 38%);
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0 0 1.5rem;
  color: var(--gelb);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: normal;
}

.hero p {
  max-width: 780px;
  margin: 0 auto 2rem;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
}

/* Hauptbutton im Hero */
.button {
  display: inline-block;
  padding: 0.95rem 1.25rem;
  border: 2px solid var(--gelb);
  border-radius: 999px;
  background: var(--gelb);
  color: var(--brombeer-dunkel);
  font-weight: bold;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: transparent;
  color: var(--gelb);
  outline: none;
}

/* =========================================================
   4. Allgemeines Layout
   ========================================================= */

section {
  padding: 4rem 1rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 2.3rem;
  text-align: center;
}

.section-title h2 {
  margin: 0 0 0.5rem;
  color: var(--brombeer);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

/* Dunkle Abschnittsvariante, z. B. Inhalte und Anfragebereich */
.band {
  background: var(--brombeer);
  color: var(--weiss);
}

.band .section-title h2,
.band .section-title p {
  color: var(--weiss);
}

/* Spaltenraster */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: 2fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Kleine Herkunfts-/Quellenangabe in der NYD-Box */
.source {
  margin-top: 2rem;
  color: #756772;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* =========================================================
   5. Standard-Karten und Infoboxen
   Verwendet für: Intro, Highlights, Inhalte, freie Termine
   ========================================================= */

.card,
.date-card,
.intro-text,
.highlight-box {
  padding: 1.35rem;
  border: 1px solid var(--rand);
  border-radius: 1.2rem;
  background: var(--weiss);
  color: var(--text);
  box-shadow: var(--shadow);
}

.card h3,
.date-card h3,
.intro-text h3,
.highlight-box h3,
.note-box h3 {
  margin-top: 0;
  color: var(--brombeer);
}

/* Gelbe Hinweisboxen, z. B. Trainingsverständnis/Tagesablauf/Anfrage */
.highlight-box,
.note-box {
  border-left: 8px solid var(--gelb);
  background: var(--gelb-hell);
}

.note-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-top: 1px solid var(--gelb);
  border-right: 1px solid var(--gelb);
  border-bottom: 1px solid var(--gelb);
  border-radius: 1.2rem;
  color: var(--text);
}

/* Kleine gelbe Chips, z. B. freie Termine und Kategorien */
.pill {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--gelb);
  color: var(--brombeer-dunkel);
  font-size: 0.9rem;
  font-weight: bold;
}

/* Hervorgehobener Intro-Absatz */
.lede {
  color: var(--brombeer);
  font-size: 1.1rem;
  font-weight: bold;
}

ul {
  padding-left: 1.2rem;
}

/* =========================================================
   6. Tagesablauf-Liste
   Verwendet in der gelben note-box im Abschnitt "Inhalte"
   ========================================================= */

.day-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1.2rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.day-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(90, 23, 79, 0.15);
}

.day-list strong {
  color: var(--brombeer);
}

/* =========================================================
   7. Event-Karten
   Verwendet im Abschnitt "Bereits geplante Termine"

   HTML:
   <article class="date-card event-card">

   Für neue Seminare einfach eine komplette Event-Karte kopieren.
   Für ausgebuchte Termine nur Text in .event-status und .event-action anpassen.
   ========================================================= */

.event-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.event-top {
  padding: 1rem;
  border-bottom: 1px solid var(--rand);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--gelb-hell);
}

.event-date {
  display: block;
  color: var(--brombeer);
  font-size: 1.45rem;
  font-weight: bold;
  line-height: 1.1;
}

.event-location {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: bold;
  opacity: 0.8;
}

.event-location a {
  color: var(--brombeer);
  font-weight: bold;
}

.event-status {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--rand);
  border-radius: 999px;
  background: var(--weiss);
  color: var(--brombeer);
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
}

.event-body {
  padding: 1.1rem;
  flex: 1;
}

.event-body h3 {
  margin-bottom: 0.5rem;
}

/* Anmeldebalken am unteren Kartenrand */
.event-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding: 0.95rem 1.1rem;
  background: var(--brombeer);
  color: var(--weiss);
  font-weight: bold;
  text-decoration: none;
}

.event-action:hover,
.event-action:focus-visible {
  background: var(--brombeer-dunkel);
  outline: none;
}

.event-action small {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: normal;
}

.event-action strong {
  font-size: 1.5rem;
}

/* =========================================================
   8. Anfragebereich

   HTML:
   <section id="buchbar">

   Hier werden freie Termine und Seminaranfragen angezeigt.
   ========================================================= */

.request-box {
  margin-top: 2rem;
  text-align: center;
}

.request-box h3 {
  margin-top: 0;
}

.request-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: var(--brombeer);
  color: var(--weiss);
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}

.request-button:hover,
.request-button:focus-visible {
  background: var(--brombeer-dunkel);
  outline: none;
}

/* =========================================================
   9. Footer und aufklappbares Rechtliches
   Verwendet für Impressum + Datenschutz
   ========================================================= */

footer {
  padding: 1.5rem 1rem;
  background: var(--brombeer-dunkel);
  color: var(--weiss);
  text-align: center;
}

footer a {
  color: var(--gelb);
  font-weight: bold;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.legal-details {
  max-width: 900px;
  margin: 1rem auto 0;
  text-align: left;
}

.legal-details summary {
  cursor: pointer;
  color: var(--gelb);
  font-weight: bold;
  text-align: center;
  list-style: none;
}

.legal-details summary::-webkit-details-marker {
  display: none;
}

.legal-content {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.legal-content h4 {
  margin-top: 0;
  color: var(--gelb);
}

.legal-content a {
  color: var(--gelb);
}

/* =========================================================
   10. Responsives Verhalten
   ========================================================= */

@media (max-width: 850px) {
  .hamburger {
    display: block;
  }

  .nav-inner {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .brand {
    display: flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.5rem;
  }

  .nav-links a {
    padding: 0.9rem 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .day-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 5.5rem 1rem 4rem;
  }

  section {
    padding: 3.2rem 1rem;
  }
}

@media (max-width: 600px) {
  .event-top {
    flex-direction: column;
    align-items: stretch;
  }

  .event-action {
    text-align: left;
  }
}
