/* MBSR Kurse in Siegen – Stylesheet
   Keine externen Schriften (kein Google Fonts) → datenschutzfreundlich */

:root {
  --bg: #eef3ea;
  --paper: #ffffff;
  --ink: #2f3a33;
  --muted: #5f6b63;
  --sage: #6f8a74;
  --sage-dark: #4e6653;
  --sage-light: #dde8d4;
  --line: #d3dccb;
  --accent: #b5895a;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

a { color: var(--sage-dark); }
a:hover { color: var(--accent); }

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

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }

/* Kopfbereich: Titelbild + Menüleiste */
.site-header { background: var(--paper); }
.header-image {
  background-color: #8fae7f;
  background-image: linear-gradient(120deg, #6f8a74, #c5d6b8);
  background-size: cover;
  background-position: 75% center;
  position: relative;
}
.header-image::before {          /* heller Schleier links, damit der Titel lesbar bleibt */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(240,244,232,.55) 0%, rgba(240,244,232,.2) 45%, rgba(240,244,232,0) 70%);
}
.header-image .wrap { position: relative; padding-top: 2.75rem; padding-bottom: 2.75rem; }
.is-home .header-image .wrap { padding-top: 6rem; padding-bottom: 6rem; }
.brand { text-decoration: none; color: #2b3a2e; display: inline-block; }
.brand-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.15;
  text-shadow: 0 1px 14px rgba(255,255,255,.6);
}
.is-home .brand-title { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.brand-sub {
  display: block;
  margin-top: .35rem;
  font-size: 1.05rem;
  letter-spacing: .08em;
  color: #46584a;
}

.nav { background: var(--sage-dark); }
.nav .wrap { position: relative; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0 1.6rem;
}
.nav a {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,.85);
  font-size: .98rem;
  padding: .85rem 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: #c5d6b8; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; }

@media (max-width: 760px) {
  .nav-button {
    display: flex; align-items: center; gap: .6rem;
    color: #fff; font-weight: 600; padding: .85rem 0; cursor: pointer;
  }
  .burger, .burger::before, .burger::after {
    display: block; width: 20px; height: 2px; background: #fff; position: relative; content: "";
  }
  .burger::before { position: absolute; top: -6px; }
  .burger::after { position: absolute; top: 6px; }
  .nav ul { display: none; flex-direction: column; padding-bottom: .5rem; }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav a { padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
  .is-home .header-image .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .header-image .wrap { padding-top: 1.75rem; padding-bottom: 1.75rem; }
}

/* Hinweis „Nächster Kurs“ auf der Startseite */
.next-course {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 0 0 2rem;
  text-decoration: none;
  color: var(--ink);
}
.next-course:hover { border-color: var(--sage); color: var(--ink); }
.next-course:hover .nc-more { background: var(--sage); }
.nc-info { display: flex; flex-direction: column; gap: .15rem; }
.nc-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-dark); }
.nc-date { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.nc-date .badge { font-size: .75rem; margin-left: .5rem; position: relative; top: -2px; }
.nc-ort { font-size: .95rem; color: var(--muted); }
.nc-more {
  flex-shrink: 0;
  background: var(--sage-dark); color: #fff; font-weight: 600;
  padding: .65rem 1.3rem; border-radius: 999px; white-space: nowrap;
}
.nc-more::after { content: " →"; }
@media (max-width: 640px) { .nc-more { width: 100%; text-align: center; } }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sage-light), var(--bg));
  padding: 3.5rem 0 2.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 1.5rem;
}

/* Inhalt */
main { padding: 2.5rem 0 3.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.3; }
main h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin: 0 0 1.25rem; }
main h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
main h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }

blockquote {
  margin: 1.75rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--sage);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}
blockquote footer, blockquote cite {
  display: block;
  margin-top: .4rem;
  font-family: var(--sans);
  font-size: .9rem;
  font-style: normal;
  color: var(--muted);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.badge {
  font-family: var(--sans);
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .15rem .6rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: .35rem;
}
.badge.frei { background: var(--sage-light); color: var(--sage-dark); }
.badge.voll { background: #f3e6d8; color: #8a5a2b; }
.badge.wenige { background: #fbf0c9; color: #7a5d00; }
.badge.aus  { background: #eee; color: #777; }

/* Hinweisbox für kurzfristige Infos (z. B. Absagen) */
.notice {
  background: #fff8ec;
  border: 1px solid #ecd7b4;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 2rem;
}
.notice strong { display: block; margin-bottom: .2rem; }

.dl { margin: 0; }
.dl div { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.dl div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

.button {
  display: inline-block;
  background: var(--sage-dark);
  color: #fff;
  text-decoration: none;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
}
.button:hover { background: var(--sage); color: #fff; }
.button.secondary { background: transparent; color: var(--sage-dark); border: 1px solid var(--sage); }
.button.secondary:hover { background: var(--sage-light); color: var(--sage-dark); }
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; }

.profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.profile img { border-radius: var(--radius); }
@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; }
  .profile img { max-width: 220px; }
  .dl div { grid-template-columns: 1fr; gap: 0; }
}

ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 1.6rem; position: relative; margin: .35rem 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

/* Fußbereich */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: .92rem;
  padding: 1.75rem 0;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }

/* Download-Liste */
ul.files { list-style: none; margin: 0; padding: 0; }
ul.files li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
ul.files li:last-child { border-bottom: 0; }
ul.files span { color: var(--muted); font-size: .85rem; }

/* Ausfälle in Terminlisten */
.entfaellt { color: #8a5a2b; white-space: nowrap; }
.entfaellt s { color: var(--muted); }
p.small { font-size: .92rem; color: var(--muted); margin: .75rem 0 0; }

ul.files li { align-items: center; }
.dl-btn { flex-shrink: 0; font-size: .88rem; text-decoration: none; border: 1px solid var(--sage); border-radius: 999px; padding: .3rem .8rem; color: var(--sage-dark); white-space: nowrap; }
.dl-btn:hover { background: var(--sage-light); }

/* Karten im Raster: Link immer ganz unten, damit alle auf einer Höhe stehen */
.grid > .card { display: flex; flex-direction: column; margin: 0; }
.grid > .card > p:last-child { margin-top: auto; padding-top: .5rem; }
.grid { margin: 1.25rem 0; }
