/* ==========================================================================
   Viva Ladies München
   Eine Datei, keine Build-Schritte. Mobil zuerst.
   Rosa-Töne nur als Flächen – Text immer (fast) schwarz.
   ========================================================================== */

/* ---------------------------------------------------------------- Tokens */

:root {
  --rose-light: #FAD2FA;
  --rose: #F5A9E4;
  --pink: #F57AC0;
  --raspberry: #F56C9C;
  --coral: #FE3A54;
  --coral-dark: #D91F3A;
  --logo-pink: #D93A75;
  --gold: #C9A24B;

  --text: #1A1A1A;
  --text-muted: #5C5560;
  --bg: #FFF8FB;
  --surface: #FFFFFF;
  --surface-tint: #FFF0F8;
  --border: #F1D6E8;
  --border-strong: #E3B5D3;

  --whatsapp: #1F8F4E;
  --whatsapp-dark: #177340;
  --ok-bg: #E8F7EE;
  --ok-text: #14532D;
  --warn-bg: #FFF4D6;
  --warn-text: #6B4A00;
  --error-bg: #FFE5E9;
  --error-text: #8A1023;

  --cat-stammtisch: #F57AC0;
  --cat-unternehmung: #F56C9C;
  --cat-kultur: #B57BEA;
  --cat-bewegung: #3FB68B;
  --cat-gespraechskreis: #F2A541;
  --cat-spontan: #FE3A54;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --fs-base: 1.125rem;   /* 18 px Fließtext */
  --fs-small: 1rem;
  --fs-h1: clamp(2rem, 6vw, 3rem);
  --fs-h2: clamp(1.5rem, 4vw, 2rem);
  --fs-h3: 1.25rem;
  --lh: 1.6;

  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 6px 24px rgba(217, 58, 117, 0.10);
  --shadow-strong: 0 12px 40px rgba(217, 58, 117, 0.18);
  --space: 1rem;
  --container: 72rem;
  --tap: 48px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--coral);
}

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }

a {
  color: var(--text);
  text-decoration-color: var(--raspberry);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--coral); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

code {
  background: var(--surface-tint);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
  word-break: break-all;
}

hr { border: 0; border-top: 2px solid var(--border); margin: 2rem 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
.container--wide { max-width: 80rem; }
.narrow { max-width: 36rem; }
.narrow-ish { max-width: 52rem; }

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }
.empty {
  padding: 1.5rem;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-muted);
}
.rounded { border-radius: var(--radius); }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.6rem 1.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 4px 14px rgba(254, 58, 84, 0.3); }
.btn--primary:hover { background: var(--coral-dark); }

.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--raspberry); }
.btn--secondary:hover { background: var(--surface-tint); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-tint); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }

.btn--google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn--google:hover { background: #f7f8f8; }

.btn--danger { background: var(--error-bg); color: var(--error-text); border-color: #f5b5c0; }
.btn--danger:hover { background: #ffd2d9; }
.btn--danger-text { color: var(--error-text); }

.btn--small { min-height: 40px; padding: 0.35rem 0.9rem; font-size: 0.95rem; }
.btn--large { min-height: 56px; padding: 0.8rem 1.8rem; font-size: 1.15rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.inline-form { display: inline-flex; gap: 0.5rem; align-items: center; margin: 0; }

/* ---------------------------------------------------------------- Badges & Hinweise */

.badge {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--surface-tint);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.badge--stammtisch { background: #FDE4F2; border-color: var(--cat-stammtisch); }
.badge--unternehmung { background: #FDE2EB; border-color: var(--cat-unternehmung); }
.badge--kultur { background: #F1E6FC; border-color: var(--cat-kultur); }
.badge--bewegung { background: #E1F5EC; border-color: var(--cat-bewegung); }
.badge--gespraechskreis { background: #FDF0DC; border-color: var(--cat-gespraechskreis); }
.badge--spontan { background: #FFE3E7; border-color: var(--cat-spontan); }
.badge--cancelled { background: var(--error-bg); border-color: #f5b5c0; color: var(--error-text); }
.badge--draft { background: var(--warn-bg); border-color: #F2D27A; color: var(--warn-text); }
.badge--status-published { background: var(--ok-bg); border-color: #9AD8B1; color: var(--ok-text); }
.badge--status-draft { background: var(--warn-bg); border-color: #F2D27A; color: var(--warn-text); }
.badge--status-cancelled { background: var(--error-bg); border-color: #f5b5c0; color: var(--error-text); }

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  border-left: 5px solid;
}
.alert p:last-child { margin-bottom: 0; }
.alert--ok { background: var(--ok-bg); color: var(--ok-text); border-color: #3FB68B; }
.alert--warn { background: var(--warn-bg); color: var(--warn-text); border-color: #F2A541; }
.alert--error { background: var(--error-bg); color: var(--error-text); border-color: var(--coral); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translate(-50%, 1rem);
  background: var(--text);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  max-width: calc(100% - 2rem);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.brand img { border-radius: 50%; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.brand--small { font-weight: 700; }

.nav-toggle {
  width: var(--tap);
  height: var(--tap);
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bar { top: 50%; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.5rem 1rem 1.25rem;
}
.nav-open .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.main-nav a[aria-current="page"] { background: var(--surface-tint); box-shadow: inset 4px 0 0 var(--raspberry); }
.main-nav .sub-nav a { padding-left: 1.5rem; font-weight: 500; }
.main-nav__cta { margin-top: 0.75rem; }
.main-nav__cta .btn { display: flex; }

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .main-nav > ul { display: flex; align-items: center; gap: 0.25rem; }
  .main-nav a { padding: 0.5rem 0.8rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--raspberry); border-radius: 0; background: none; }
  .main-nav .has-children { position: relative; }
  .main-nav .sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0.4rem;
  }
  .main-nav .has-children:hover .sub-nav,
  .main-nav .has-children:focus-within .sub-nav { display: block; }
  .main-nav .sub-nav a { padding-left: 0.8rem; }
  .main-nav__cta { margin: 0 0 0 0.5rem; }
}

.admin-bar {
  background: var(--text);
  color: #fff;
  font-size: 0.9rem;
}
.admin-bar__inner { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.admin-bar a { color: #fff; text-decoration-color: var(--pink); }

.breadcrumbs { font-size: var(--fs-small); margin: 1rem 0; color: var(--text-muted); }

/* ---------------------------------------------------------------- Blöcke */

.site-main { padding-bottom: 3rem; }
.blocks > .block:first-child:not(.hero) { margin-top: 2rem; }
.block { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.block__title { margin-bottom: 1.25rem; }
.block__more { margin-top: 1.5rem; text-align: center; }
.hero + .block--tinted { margin-top: 0; }
.block--tinted {
  background: var(--rose-light);
  background: linear-gradient(180deg, var(--rose-light) 0%, #FCE4FA 100%);
  padding: 2.5rem 0;
}

.page-head { padding-top: 2rem; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  border-left: 4px solid var(--pink);
  background: var(--surface-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Hero */
.hero {
  margin-top: 0;
  margin-bottom: 0;
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 169, 228, 0.55), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(250, 210, 250, 0.9), transparent 50%),
    var(--bg);
}
.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
.hero__lead { font-size: 1.25rem; max-width: 34rem; }
.hero__media { display: flex; justify-content: center; }
.hero__logo {
  width: min(70vw, 320px);
  border-radius: 50%;
  box-shadow: var(--shadow-strong);
}
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}
@media (min-width: 48rem) {
  .hero { padding: 4rem 0; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* Kacheln */
.tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 36rem) {
  .tiles--2, .tiles--3, .tiles--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }
  .tiles--4 { grid-template-columns: repeat(4, 1fr); }
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  padding: 0;
}
.tile > .tile__title, .tile > p, .tile > .tile__more { padding: 0 1.25rem; }
.tile > .tile__title { padding-top: 1.25rem; }
.tile > :last-child { padding-bottom: 1.25rem; }
.tile__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tile__body p:last-child { margin-bottom: 0; }
.tile__title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.tile__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile__more { margin-top: auto; padding-top: 0.5rem; font-weight: 650; }
.tile--link { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tile--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); }
.tiles .tile:nth-child(4n + 1) { border-top: 5px solid var(--pink); }
.tiles .tile:nth-child(4n + 2) { border-top: 5px solid var(--raspberry); }
.tiles .tile:nth-child(4n + 3) { border-top: 5px solid var(--rose); }
.tiles .tile:nth-child(4n + 4) { border-top: 5px solid var(--coral); }

/* Text + Bild */
.split { display: grid; gap: 1.5rem; align-items: center; }
.split__media { margin: 0; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.placeholder {
  aspect-ratio: 1;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 48rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split--left .split__media { order: -1; }
}

.figure { text-align: center; }
.figure img { margin: 0 auto; max-height: 70vh; width: auto; box-shadow: var(--shadow); }
.figure--wide img { width: 100%; max-height: none; object-fit: cover; }
.figure figcaption { margin-top: 0.6rem; color: var(--text-muted); font-size: var(--fs-small); }

/* Hinweis mit Button */
.cta {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cta h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.cta p:last-child { margin-bottom: 0; }
.cta--whatsapp { background: #E7F6EC; border: 2px solid #A7DDB9; }
.cta--primary { background: linear-gradient(135deg, var(--pink), var(--raspberry)); }
.cta--primary .btn--primary { background: #fff; color: var(--text); box-shadow: none; }
.cta--soft { background: var(--rose-light); }
@media (min-width: 48rem) {
  .cta { grid-template-columns: 1fr auto; padding: 2rem 2.5rem; }
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--raspberry); }
.faq details[open] summary::after { content: "–"; }
.faq__answer { padding: 0 1.1rem 1rem; }

/* Kontakt */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------------------------------------------------------------- Karten & Formulare */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 1.3rem; }
.card--notice { border-left: 5px solid var(--raspberry); }

.form { display: grid; gap: 1rem; }
.form--grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) {
  .form--grid { grid-template-columns: 1fr 1fr; }
  .form--grid-3 { grid-template-columns: repeat(3, 1fr); }
  .field--full { grid-column: 1 / -1; }
}
.form--inline h2 { margin-bottom: 0; }

.field { display: grid; gap: 0.35rem; font-weight: 600; margin: 0; border: 0; padding: 0; min-width: 0; }
.field legend { font-weight: 700; margin-bottom: 0.4rem; padding: 0; }
.field > span { font-weight: 600; }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
textarea { resize: vertical; min-height: 6rem; }
input:focus, select:focus, textarea:focus { border-color: var(--raspberry); outline: none; box-shadow: 0 0 0 3px rgba(245, 108, 156, 0.25); }
input[type="file"] { font: inherit; font-size: var(--fs-small); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 2rem;
}
.check input { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; accent-color: var(--coral); flex-shrink: 0; }
.check--card {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: #fff;
}
.check--card:has(input:checked) { border-color: var(--raspberry); background: var(--surface-tint); }

/* ---------------------------------------------------------------- Termine */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.segmented {
  display: inline-flex;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.segmented a {
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.segmented a[aria-current="page"] { background: var(--raspberry); color: #fff; }
.filter select { min-width: 13rem; }

.month-heading {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 2rem 0 0.75rem;
}

.event-list { display: grid; gap: 0.9rem; }
@media (min-width: 60rem) {
  .block .event-list { grid-template-columns: repeat(3, 1fr); }
}

.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--pink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.event-card__link {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  height: 100%;
}
.event-card__date {
  flex: 0 0 4.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--rose-light);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  line-height: 1.1;
  align-self: flex-start;
}
.event-card__wd, .event-card__mon { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.event-card__day { font-size: 1.8rem; font-weight: 800; }
.event-card__body { min-width: 0; }
.event-card__title { font-size: 1.2rem; margin: 0.35rem 0 0.25rem; }
.event-card__meta { display: flex; flex-direction: column; margin: 0; font-size: var(--fs-small); color: var(--text-muted); }
.event-card__places { margin: 0.4rem 0 0; font-size: 0.95rem; font-weight: 600; }
.event-card--cancelled { opacity: 0.7; }
.event-card--cancelled .event-card__title { text-decoration: line-through; }
.event-card--stammtisch { border-left-color: var(--cat-stammtisch); }
.event-card--unternehmung { border-left-color: var(--cat-unternehmung); }
.event-card--kultur { border-left-color: var(--cat-kultur); }
.event-card--bewegung { border-left-color: var(--cat-bewegung); }
.event-card--gespraechskreis { border-left-color: var(--cat-gespraechskreis); }
.event-card--spontan { border-left-color: var(--cat-spontan); }

/* Monatsansicht */
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.month-nav h2 { margin: 0; font-size: 1.4rem; }
.calendar {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}
.calendar__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar__head div {
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--rose-light);
}
.calendar__cell {
  min-height: 3.5rem;
  padding: 0.25rem;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  font-size: 0.8rem;
  min-width: 0;
}
.calendar__cell:first-child { border-left: 0; }
.calendar__cell.is-other { background: #FCF7FA; color: #A99BA6; }
.calendar__num { display: inline-block; font-weight: 700; width: 1.7rem; height: 1.7rem; line-height: 1.7rem; text-align: center; border-radius: 50%; }
.calendar__cell.is-today .calendar__num { background: var(--coral); color: #fff; }
.calendar__event {
  display: block;
  margin-top: 0.15rem;
  padding: 0.1rem 0.3rem;
  border-radius: 6px;
  border-left: 3px solid;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}
.calendar__event.is-cancelled { text-decoration: line-through; opacity: 0.7; }
.calendar__time { font-weight: 700; }
@media (max-width: 40rem) {
  /* Auf dem Handy nur Punkte statt Titel */
  .calendar__event { font-size: 0; height: 8px; width: 8px; padding: 0; border-radius: 50%; display: inline-block; margin-right: 2px; border: 0; }
  .calendar__event.badge--stammtisch { background: var(--cat-stammtisch); }
  .calendar__event.badge--unternehmung { background: var(--cat-unternehmung); }
  .calendar__event.badge--kultur { background: var(--cat-kultur); }
  .calendar__event.badge--bewegung { background: var(--cat-bewegung); }
  .calendar__event.badge--gespraechskreis { background: var(--cat-gespraechskreis); }
  .calendar__event.badge--spontan { background: var(--cat-spontan); }
}
@media (min-width: 48rem) { .calendar__cell { min-height: 6.5rem; padding: 0.4rem; } }

.subscribe { margin-top: 2.5rem; background: var(--surface-tint); }
.subscribe__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Termin-Detail */
.event-detail__head { margin-bottom: 1.5rem; }
.event-detail__head h1 { margin-top: 0.5rem; }
.event-detail__grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
.event-detail__img { width: 100%; max-height: 420px; object-fit: cover; margin-bottom: 1.5rem; }
@media (min-width: 56rem) {
  .event-detail__grid { grid-template-columns: 1fr 22rem; align-items: start; }
  .event-detail__side { position: sticky; top: 90px; }
}

.facts {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem; }
.facts dt { font-weight: 700; color: var(--text-muted); }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts div { grid-template-columns: 1fr; gap: 0; } }

.signup { border-top: 6px solid var(--coral); }
.signup h2 { font-size: 1.3rem; }
.signup__mode { font-size: 1.15rem; font-weight: 600; }
.places { font-size: 1.1rem; }
.action-list { display: grid; gap: 0.6rem; }

/* ---------------------------------------------------------------- Fußbereich */

.site-footer {
  background: var(--text);
  color: #F5EEF2;
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
}
.site-footer a { color: #fff; text-decoration-color: var(--pink); }
.site-footer a.muted { color: #CDBFC8; }
.site-footer__grid { display: grid; gap: 1.75rem; }
.site-footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.site-footer__title { font-weight: 700; margin-bottom: 0.4rem; color: var(--rose); }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

.link-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 0.25rem 0; }
.plain-list li { padding: 0.15rem 0; }

/* ---------------------------------------------------------------- Login */

.login { text-align: center; padding-bottom: 3rem; }
.login__logo { margin: 0 auto 1rem; border-radius: 50%; box-shadow: var(--shadow); }
.login .form { text-align: left; margin-top: 2rem; }

/* ==========================================================================
   Verwaltung
   ========================================================================== */

body.admin { background: #FBF6F9; }
.admin-main { padding: 1.25rem 0 7rem; }
@media (min-width: 60rem) { .admin-main { padding-bottom: 3rem; } }

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  min-height: 60px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.admin-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  order: 3;
  width: 100%;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.95rem;
}
.admin-nav a[aria-current="page"] { background: var(--rose-light); }
.admin-header__user {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}
.admin-header__user form { margin: 0; }
@media (min-width: 60rem) {
  .admin-nav { order: 0; width: auto; }
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
}
.admin-head h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.admin-head .breadcrumbs { margin: 0 0 0.25rem; }

.admin-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.admin-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.admin-list__main { display: flex; flex-direction: column; text-decoration: none; color: var(--text); min-width: 0; flex: 1 1 14rem; }
.admin-list__main .muted { font-size: 0.95rem; }
.admin-list__meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.3rem;
}
.bottom-nav a span { font-size: 1.3rem; line-height: 1; }
.bottom-nav__primary span {
  background: var(--coral);
  color: #fff;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1.2rem;
  box-shadow: 0 4px 14px rgba(254, 58, 84, 0.4);
}
@media (min-width: 60rem) { .bottom-nav { display: none; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 0.75rem; text-align: center; }
.stat__num { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; }

.people { margin: 0 0 1.5rem; padding-left: 1.5rem; }
.people li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.people li > div:first-child { display: inline-block; vertical-align: middle; }
.people li .inline-form { float: right; }
.people--muted { list-style: none; padding-left: 0; color: var(--text-muted); }

.role-help { display: grid; gap: 0.3rem; font-size: 0.95rem; margin: 0 0 1.5rem; }
.role-help div { display: flex; flex-wrap: wrap; gap: 0 0.5rem; }
.role-help dt { font-weight: 700; }
.role-help dt::after { content: ":"; }
.role-help dd { margin: 0; color: var(--text-muted); }

.danger-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--border);
}

.event-actions { margin-bottom: 1rem; }
.event-form { margin-bottom: 1rem; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  position: sticky;
  bottom: 4.5rem;
  background: rgba(251, 246, 249, 0.95);
  padding: 0.75rem 0;
  backdrop-filter: blur(4px);
}
@media (min-width: 60rem) { .form-actions { bottom: 0; } }
details.more {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
}
details.more[open] { padding-bottom: 1rem; display: grid; gap: 1rem; }
details.more > summary { cursor: pointer; font-weight: 650; padding: 0.85rem 0; min-height: var(--tap); }
.signup-options { display: grid; gap: 0.75rem; padding: 1rem; background: var(--surface-tint); border-radius: var(--radius-sm); }
.announcement textarea { font-family: var(--font); margin: 0.75rem 0; }
.announcement summary { cursor: pointer; }

.message--unread { border-left: 5px solid var(--coral); }

/* Seitenbaum */
.page-tree { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.page-tree--sub { margin: 0.25rem 0 0 1.5rem; padding-left: 0.75rem; border-left: 2px solid var(--border); }
.page-tree li { margin-bottom: 0.35rem; }
.page-tree__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
}

.page-settings > summary { cursor: pointer; display: flex; gap: 0.75rem; align-items: center; min-height: 2.5rem; }
.page-settings[open] > summary { margin-bottom: 1rem; }

/* Block-Editor */
.editor-blocks { display: grid; gap: 0.25rem; padding-bottom: 2rem; }
.editor-block {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 80px;
}
.editor-block.is-editing { border-color: var(--raspberry); background: var(--surface); box-shadow: var(--shadow-strong); }
.editor-block__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.editor-block__type { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.editor-block__saved { color: var(--ok-text); font-weight: 600; font-size: 0.9rem; }
.editor-block__tools { margin-left: auto; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.editor-block__preview { pointer-events: none; max-height: 34rem; overflow: hidden; position: relative; }
.editor-block__preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3rem;
  background: linear-gradient(transparent, var(--bg));
}
.editor-block__preview .block { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.editor-block__preview .hero { padding: 1.5rem 0; }
.editor-block__preview .site-header { position: static; }
.block-form { padding: 1rem; }

.add-block { position: relative; text-align: center; }
.add-block > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0.25rem auto;
  border-radius: 50%;
  background: var(--surface);
  border: 2px dashed var(--raspberry);
  color: var(--raspberry);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.add-block > summary::-webkit-details-marker { display: none; }
.add-block > summary:hover, .add-block[open] > summary { opacity: 1; transform: scale(1.1); background: var(--rose-light); }
.add-block__menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  z-index: 20;
  width: min(36rem, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  padding: 0.6rem;
  text-align: left;
}
@media (min-width: 40rem) { .add-block__menu { grid-template-columns: 1fr 1fr; } }
.add-block__option {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.add-block__option:hover { background: var(--surface-tint); border-color: var(--raspberry); }
.add-block__option span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.35; }

.tile-editor__item {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.75rem;
  background: var(--bg);
}
.tile-editor__item legend { font-weight: 700; padding: 0 0.4rem; }

/* Texteditor */
.rte { border: 2px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--raspberry); }
.rte__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}
.rte__toolbar button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.rte__toolbar button:hover { background: var(--rose-light); }
.rte__area { min-height: 9rem; padding: 0.75rem 0.9rem; font-weight: 400; max-width: none; }
.rte__area:focus { outline: none; }

/* Bildauswahl */
.image-field__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  background: var(--surface-tint);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}
.image-field__preview img { max-height: 10rem; border-radius: 8px; }
.image-field__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.media-dialog {
  width: min(48rem, calc(100vw - 1rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-strong);
}
.media-dialog::backdrop { background: rgba(26, 26, 26, 0.5); }
.media-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.media-dialog__head h2 { margin: 0; font-size: 1.3rem; }
.media-upload { display: grid; gap: 0.6rem; padding: 1rem; background: var(--surface-tint); border-radius: var(--radius-sm); margin-bottom: 1rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.5rem; }
.media-grid__item {
  padding: 0;
  border: 3px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1;
}
.media-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.media-grid__item:hover, .media-grid__item:focus-visible { border-color: var(--coral); }

.media-library { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.media-card { display: grid; gap: 0.6rem; align-content: start; padding: 0.75rem; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.media-card .form { gap: 0.5rem; }

/* ---------------------------------------------------------------- Druck & Bewegung */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .admin-header, .bottom-nav, .admin-bar, .btn, .danger-zone { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* ---------------------------------------------------------------- Mitglieder-Login */

.main-nav__login { margin-top: 0.75rem; }
.main-nav__login .btn { display: flex; }
@media (min-width: 60rem) {
  .main-nav__login { margin: 0 0 0 0.5rem; }
  .main-nav__login .btn { display: inline-flex; }
}

.login__form { margin-top: 1.5rem; }
.login__or {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
}
.login__or::before, .login__or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

.members-teaser { background: var(--surface); text-align: center; border-top: 6px solid var(--raspberry); }
.members-teaser__lead { font-size: 1.15rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.members-teaser .btn-row { justify-content: center; }

.card--credentials { border-left: 5px solid var(--whatsapp); background: var(--ok-bg); }
.card--credentials textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; margin-bottom: 0.75rem; }

.account__actions { margin-top: 2rem; }
.account__actions form { margin: 0; }

.subscribe__options { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 40rem) { .subscribe__options { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .subscribe__options { grid-template-columns: repeat(4, auto); justify-content: start; } }
.subscribe__help { margin-bottom: 1rem; }
.subscribe__help summary { cursor: pointer; font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.subscribe__help ul { padding-left: 1.2em; }
.subscribe__help li { margin-bottom: 0.4em; }

.map-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }

.user-edit { position: relative; }
.user-edit > summary { list-style: none; cursor: pointer; }
.user-edit > summary::-webkit-details-marker { display: none; }
.user-edit[open] > .form {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 20;
  width: min(22rem, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  padding: 0.9rem;
  gap: 0.6rem;
}
.city-overview summary { cursor: pointer; }
.overview-grid { display: grid; gap: 1rem; margin-top: 0.75rem; }
@media (min-width: 48rem) { .overview-grid { grid-template-columns: 1fr 1fr; } }
.overview-grid h3 { font-size: 1rem; margin-bottom: 0.3rem; }

.badge--guest { background: #EEF4FF; border-color: #A9C1F0; color: #1D3D7A; }

.hero__note { margin-top: 0.9rem; font-size: var(--fs-small); color: var(--text-muted); max-width: 34rem; }
.block__intro { max-width: 44rem; font-size: 1.15rem; margin-bottom: 1.5rem; }
