/* ============================================================
   Demo-Kalender Münster
   Eigenstaendiges, ueberparteiliches Erscheinungsbild.
   Bewusst ohne externe Schriftarten und ohne Framework:
   nichts wird von fremden Servern nachgeladen (Datenschutz)
   und die Seite ist auch auf schlechter Verbindung sofort da (SEO).
   ============================================================ */

:root {
  --ink:        #16161d;
  --ink-soft:   #4a4a55;
  --ink-faint:  #7c7c88;
  --paper:      #faf9f7;
  --surface:    #ffffff;
  --line:       #e4e1db;
  --line-soft:  #efece7;
  --accent:     #c8451f;
  --accent-ink: #a23617;
  --accent-bg:  #fdf0ec;
  --ok:         #1d6b4f;
  --ok-bg:      #e9f4ef;
  --warn-bg:    #fdf3e3;
  --danger:     #b3261e;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(22,22,29,.05), 0 8px 24px -12px rgba(22,22,29,.18);
  --wrap:       960px;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #f2f0ec;
    --ink-soft:   #b9b6b0;
    --ink-faint:  #8d8a85;
    --paper:      #131318;
    --surface:    #1c1c23;
    --line:       #2e2e38;
    --line-soft:  #26262f;
    --accent:     #ff7a52;
    --accent-ink: #ff9878;
    --accent-bg:  #2a1a15;
    --ok:         #6cc39c;
    --ok-bg:      #16281f;
    --warn-bg:    #2a2318;
    --danger:     #ff6b61;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; }
.muted { color: var(--ink-faint); }
.small { font-size: .85rem; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------- Kopfbereich */

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 66px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent);
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 8px var(--accent);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-text small { font-size: .72rem; color: var(--ink-faint); letter-spacing: .02em; }

.site-head nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-head nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 7px 12px; border-radius: 99px;
}
.site-head nav a:hover { background: var(--line-soft); color: var(--ink); }

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

.hero { padding: 44px 0 22px; }
.hero h1 { max-width: 18ch; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.2rem; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: 11px 20px; border-radius: 99px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); }
.btn-danger { background: transparent; border-color: var(--line); color: var(--danger); }
.btn-danger:hover { background: var(--accent-bg); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 6px 13px; font-size: .82rem; }

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

.filters { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 28px; }
.filter-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-label {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-faint); margin-right: 4px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 99px; padding: 5px 13px;
  font-size: .87rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-n { font-size: .74rem; color: var(--ink-faint); font-weight: 700; }
.chip.is-active .chip-n { color: var(--paper); opacity: .65; }

/* ------------------------------------------------------------- Terminliste */

.month-head {
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em;
  color: var(--ink-faint); margin: 30px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.month-head:first-child { margin-top: 0; }

.demo-list { display: flex; flex-direction: column; gap: 12px; }

.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.demo:hover { border-color: var(--ink-faint); box-shadow: var(--shadow); }
.demo.is-past { opacity: .62; }

.demo-link {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px;
  padding: 18px 20px; text-decoration: none; color: inherit;
}

.demo-date {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  background: var(--accent-bg); border-radius: var(--radius-sm);
  padding: 9px 4px 7px; line-height: 1;
}
.d-day { font-size: 1.65rem; font-weight: 800; color: var(--accent-ink); letter-spacing: -.03em; }
.d-mon { font-size: .74rem; font-weight: 800; color: var(--accent-ink); text-transform: uppercase; margin-top: 3px; }
.d-wd  { font-size: .68rem; font-weight: 600; color: var(--ink-faint); margin-top: 5px; text-transform: uppercase; }

.demo-title { margin: 0 0 5px; }
.demo-meta  { margin: 0 0 3px; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.demo-place { margin: 0 0 7px; font-size: .9rem; color: var(--ink-faint); }
.demo-excerpt { margin: 0 0 9px; font-size: .93rem; color: var(--ink-soft); }
.demo-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }

.tag {
  display: inline-block; font-size: .74rem; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
  background: var(--accent-bg); color: var(--accent-ink); text-decoration: none;
}
.tag-quiet { background: var(--line-soft); color: var(--ink-faint); }

.archive-link { margin: 28px 0 0; font-size: .9rem; }

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

.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-faint); padding: 22px 0 0; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.detail { padding: 14px 0 10px; }
.detail-head { margin-bottom: 22px; }
.detail-head .tag { margin-bottom: 12px; }
.detail-head h1 { margin-top: 6px; }

.facts {
  display: grid; gap: 1px; margin: 0 0 28px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.fact { background: var(--surface); padding: 15px 18px; margin: 0; }
.fact dt {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-faint); margin-bottom: 5px;
}
.fact dd { margin: 0; }
.fact dd strong { font-size: 1.12rem; }
.ext { font-size: .88rem; font-weight: 600; }

@media (min-width: 620px) {
  .facts { grid-template-columns: 1fr 1fr; }
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: .4rem; }
.detail-text { margin-bottom: 26px; }
.intro-text { margin: 46px 0 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.faq h2 { font-size: 1.12rem; margin-top: 1.7rem; }

.more { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.more h2 { margin-bottom: 14px; }

/* -------------------------------------------------------------- Hinweise */

.notice {
  border-radius: var(--radius-sm); padding: 13px 17px; margin: 0 0 22px;
  font-size: .93rem; border: 1px solid var(--line);
  background: var(--warn-bg);
}
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { margin: .4rem 0 0; padding-left: 1.15rem; }
.notice-error { background: var(--accent-bg); border-color: var(--accent); color: var(--ink); }
.notice-ok    { background: var(--ok-bg); border-color: var(--ok); }
.notice-past  { background: var(--line-soft); }
.notice-small { font-size: .84rem; color: var(--ink-faint); background: transparent; border-color: var(--line); }

.empty {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 28px; text-align: center;
  margin: 20px 0;
}
.empty-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.empty p { max-width: 48ch; margin-left: auto; margin-right: auto; color: var(--ink-soft); }

/* -------------------------------------------------------------- Formulare */

.form { margin: 8px 0 60px; }
.form fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 6px; margin: 0 0 20px; background: var(--surface);
}
.form legend {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-faint); padding: 0 8px;
}
.field { margin-bottom: 17px; flex: 1 1 160px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-wide { flex: 3 1 220px; }
.field-narrow { flex: 0 1 110px; }

.field label {
  display: block; font-size: .88rem; font-weight: 700; margin-bottom: 5px; color: var(--ink);
}
.req { color: var(--accent); }

.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 13px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-bg);
}
.hint { font-size: .82rem; color: var(--ink-faint); margin: 5px 0 0; }
.form-note { font-size: .86rem; color: var(--ink-faint); max-width: 62ch; }

/* Honigtopf — fuer Menschen unsichtbar, fuer Bots ein Koeder.
   Bewusst nicht display:none, das ueberspringen manche Bots gezielt. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ------------------------------------------------------------- Moderation */

.mod-head { padding: 34px 0 14px; }
.mod-section { margin-bottom: 42px; }
.mod-section h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.count {
  font-size: .78rem; font-weight: 800; background: var(--line-soft);
  color: var(--ink-faint); border-radius: 99px; padding: 2px 10px;
}
.mod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mod-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
}
.mod-main { flex: 1 1 320px; min-width: 0; }
.mod-title { font-weight: 700; margin: 0 0 4px; }
.mod-meta { font-size: .85rem; color: var(--ink-faint); margin: 0 0 3px; word-break: break-word; }
.mod-desc { font-size: .89rem; color: var(--ink-soft); margin: 7px 0 0; }
.mod-actions { display: flex; gap: 7px; align-items: flex-start; flex-wrap: wrap; }
.inline { display: inline; margin: 0; }

/* ---------------------------------------------------------------- Fussbereich */

.site-foot {
  margin-top: 70px; border-top: 1px solid var(--line);
  background: var(--surface); padding: 34px 0;
}
.foot-inner { display: flex; gap: 34px; justify-content: space-between; flex-wrap: wrap; }
.foot-claim { font-weight: 600; max-width: 46ch; margin-bottom: .5rem; }
.site-foot .muted { max-width: 52ch; }
.foot-nav { display: flex; flex-direction: column; gap: 7px; }
.foot-nav a { font-size: .9rem; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.foot-nav a:hover { color: var(--accent); }

/* ----------------------------------------------------------------- Schmal */

@media (max-width: 520px) {
  body { font-size: 16px; }
  .demo-link { grid-template-columns: 58px 1fr; gap: 13px; padding: 15px 15px; }
  .d-day { font-size: 1.4rem; }
  .hero { padding: 30px 0 16px; }
  .site-head nav a { padding: 6px 9px; font-size: .88rem; }
  .form fieldset { padding: 16px 15px 4px; }
}

/* ------------------------------------------------------------------ Druck */

@media print {
  .site-head, .site-foot, .hero-actions, .filters, .btn, .crumbs, .more { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .demo { break-inside: avoid; border-color: #999; }
}
