/* =========================================================
   TuS Grundschöttel 1893 e.V. – Stylesheet
   Angelehnt an tus-grundschoettel-tt.de (Rot #DC2626, Grautöne)
   Jede Abteilungsseite setzt über body[data-dept] eigene Farben.
   ========================================================= */

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fef2f2;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-dark: #111827;

  /* Abteilungsfarbe – Standard = Vereinsrot */
  --dept: var(--red);
  --dept-dark: var(--red-dark);
  --dept-soft: var(--red-soft);
  --dept-tint: #fee2e2;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 4px 16px rgba(17, 24, 39, .06);
  --shadow-lg: 0 10px 30px rgba(17, 24, 39, .12);
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Abteilungsfarben */
body[data-dept="turnen"]     { --dept: #7c3aed; --dept-dark: #6d28d9; --dept-soft: #f5f3ff; --dept-tint: #ede9fe; }
body[data-dept="handball"]   { --dept: #2563eb; --dept-dark: #1d4ed8; --dept-soft: #eff6ff; --dept-tint: #dbeafe; }
body[data-dept="badminton"]  { --dept: #16a34a; --dept-dark: #15803d; --dept-soft: #f0fdf4; --dept-tint: #dcfce7; }
body[data-dept="tischtennis"]{ --dept: #dc2626; --dept-dark: #b91c1c; --dept-soft: #fef2f2; --dept-tint: #fee2e2; }
body[data-dept="volleyball"] { --dept: #d97706; --dept-dark: #b45309; --dept-soft: #fffbeb; --dept-tint: #fef3c7; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--dept-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--dept); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head--left { margin-left: 0; text-align: left; }
.accent { color: var(--red); }
.dept-accent { color: var(--dept); }

.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dept-dark); background: var(--dept-soft); border: 1px solid var(--dept-tint);
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: .8rem 1.35rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--dept { background: var(--dept-dark); color: #fff; }
.btn--dept:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--dept-dark); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 48px; height: 48px; }
.brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; display: block; }
.brand-sub { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav a, .nav button.nav-sub-toggle {
  display: block; padding: .55rem .75rem; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .97rem; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav a:hover, .nav button.nav-sub-toggle:hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .nav-cta a { background: var(--red); color: #fff; padding: .6rem 1.1rem; margin-left: .5rem; }
.nav .nav-cta a:hover { background: var(--red-dark); }

.has-sub { position: relative; }
.nav-sub-toggle::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.subnav {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; display: none !important;
  flex-direction: column; align-items: stretch !important; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .4rem !important;
}
.has-sub.open .subnav { display: flex !important; }
.subnav a { display: flex !important; align-items: center; gap: .6rem; }
.subnav .dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }

.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: .5rem .65rem; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: #fff; overflow-y: auto; display: none; border-top: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 2rem; gap: .15rem; }
  .nav a, .nav button.nav-sub-toggle { padding: .9rem .75rem; font-size: 1.1rem; width: 100%; text-align: left; }
  .subnav { position: static; display: flex !important; box-shadow: none; border: 0; padding: 0 0 0 .75rem !important; min-width: 0; }
  .nav-sub-toggle { pointer-events: none; color: var(--muted-2) !important; font-size: .85rem !important; text-transform: uppercase; letter-spacing: .06em; }
  .nav-sub-toggle::after { display: none !important; }
  .nav .nav-cta a { margin: 1rem 0 0; text-align: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (Startseite) ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin-bottom: 1.75rem; }
.quick { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.quick h2 { font-size: 1.1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.quick dl { margin: 0; display: grid; gap: .9rem; }
.quick dt { font-weight: 700; color: var(--ink); font-size: .9rem; }
.quick dd { margin: 0; color: var(--muted); font-size: .97rem; }
.sport-strip { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.sport-strip a { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem .4rem .45rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.sport-strip a:hover { border-color: var(--ink); }
.sport-strip .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sport-strip .ic svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Abteilungskarten ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.dept-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink-2); }
.dept-card .art { height: 130px; background: var(--c); position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.dept-card .art::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .25; }
.dept-card .art svg { position: relative; width: 74px; height: 74px; }
.dept-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.dept-card h3 { margin-bottom: .3rem; }
.dept-card p { font-size: .95rem; color: var(--muted); margin-bottom: .9rem; }
.dept-card .more { margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--cd); }
.dept-card .more::after { content: " →"; }

/* ---------- Karten / Listen allgemein ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: .6rem; }
.card .meta { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; font-size: .95rem; }
.card .meta li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; }
.card .meta b { color: var(--ink); font-weight: 600; }
.chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--dept-soft); color: var(--dept-dark); border: 1px solid var(--dept-tint); }

.person { display: flex; gap: 1rem; align-items: flex-start; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--dept-dark); background: var(--dept-soft); border: 2px solid var(--dept-tint); }
.person .role { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dept-dark); margin-bottom: .1rem; }
.person .name { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: .25rem; }
.person .contact { font-size: .95rem; margin: 0; }
.person .contact a { color: var(--ink-2); }

.notice { display: flex; gap: .9rem; background: var(--dept-soft); border: 1px solid var(--dept-tint); border-radius: var(--radius-sm); padding: 1rem 1.2rem; color: var(--ink-2); }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--dept-dark); margin-top: .15rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Abteilungs-Hero ---------- */
.dept-hero { position: relative; color: #fff; background: linear-gradient(135deg, var(--dept-dark), var(--dept)); overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.dept-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .18; }
.dept-hero .wrap { position: relative; display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; align-items: center; }
.dept-hero h1 { color: #fff; }
.dept-hero .lead { font-size: 1.15rem; max-width: 34em; opacity: .95; margin-bottom: 1.5rem; }
.dept-hero .badge { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.dept-hero .art { justify-self: center; width: min(280px, 70vw); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.dept-hero .art svg { width: 62%; height: 62%; color: #fff; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; opacity: .9; }
.breadcrumb a { color: #fff; }
@media (max-width: 760px) { .dept-hero .wrap { grid-template-columns: 1fr; } .dept-hero .art { width: 150px; order: -1; justify-self: start; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: -2.5rem; position: relative; z-index: 2; }
.fact { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--dept); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.fact .k { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dept-dark); }
.fact .v { color: var(--ink); font-weight: 600; }

/* ---------- Angebote (Gruppen) ---------- */
.offer { border-left: 4px solid var(--dept); }
.offer .icon-badge { width: 40px; height: 40px; border-radius: 10px; background: var(--dept-soft); color: var(--dept-dark); display: grid; place-items: center; flex: none; }
.offer .icon-badge svg { width: 24px; height: 24px; }

/* ---------- Wochenplan ---------- */
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day h3 { margin: 0; padding: .75rem 1rem; background: var(--dept); color: #fff; font-size: 1rem; letter-spacing: .02em; }
.day ul { list-style: none; margin: 0; padding: .4rem 0; }
.day li { padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.day li:last-child { border-bottom: 0; }
.day .t { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; display: block; }
.day .g { font-weight: 600; color: var(--ink-2); display: block; }
.day .o { font-size: .88rem; color: var(--muted-2); display: block; }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--dept-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .tt { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.legend b { color: var(--ink); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--dept-dark); color: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .12; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; opacity: .92; }

/* ---------- Geschichte / Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 3px; background: linear-gradient(var(--red), var(--line-2)); border-radius: 3px; }
.tl-item { position: relative; padding: 0 0 2rem 1.25rem; }
.tl-item::before { content: ""; position: absolute; left: -1.85rem; top: .35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--red)); }
.tl-year { font-weight: 800; color: var(--c, var(--red)); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.tl-item h3 { margin: .1rem 0 .3rem; }
.tl-item p { color: var(--muted); margin: 0; }
.tl-item.big .tl-year { font-size: 2rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; text-align: center; }
.stat .n { font-size: 2.1rem; font-weight: 800; color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: .9rem; color: var(--muted); }
.bars { display: grid; gap: .55rem; max-width: 680px; margin: 0 auto; }
.bar { display: grid; grid-template-columns: 3.2rem 1fr 3rem; align-items: center; gap: .75rem; font-variant-numeric: tabular-nums; font-size: .95rem; }
.bar .track { height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--red); border-radius: 99px; }
.bar .y { font-weight: 700; color: var(--ink); }
.bar .v { text-align: right; color: var(--muted); }

/* ---------- Aktuelles ---------- */
.news { display: grid; gap: 1rem; }
.news-item { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.news-date { background: var(--red-soft); color: var(--red-dark); border-radius: var(--radius-sm); text-align: center; padding: .5rem; font-weight: 800; line-height: 1.15; align-self: start; }
.news-date .d { font-size: 1.6rem; display: block; }
.news-date .m { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.news-item h3 { margin-bottom: .25rem; font-size: 1.1rem; }
.news-item p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; color: var(--ink); font-size: .95rem; display: block; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .75rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -5000px; }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--muted); font-weight: 400; }
.form .consent input { width: auto; margin-top: .3rem; }
.form-status { padding: .9rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.ok { display: block; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.form-status.err { display: block; background: var(--red-soft); border: 1px solid #fecaca; color: var(--red-dark); }

/* ---------- Fließtext-Seiten ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose address { font-style: normal; }
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0; }
.page-head .breadcrumb a { color: var(--muted); }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.doc-list a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; }
.doc-list a:hover { border-color: var(--red); }
.doc-list .ext { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--red-dark); background: var(--red-soft); padding: .15rem .5rem; border-radius: 6px; }
.doc-list svg { width: 24px; height: 24px; color: var(--red); flex: none; }

.fee-table td:last-child, .fee-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fee-table .price { font-weight: 800; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #d1d5db; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #f3f4f6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height: 52px; background: #fff; border-radius: 50%; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid #374151; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; color: #9ca3af; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
@media (max-width: 520px) { .card .meta li { grid-template-columns: 4.8rem 1fr; } }

/* ---------- DOMLAB-Credit (wie auf tus-grundschoettel-tt.de) ---------- */
.domlab-credit{font:inherit;font-size:.8rem;margin:.9rem 0 0;color:#9ca3af;opacity:.85;line-height:1.5;text-align:center}
.domlab-credit a{color:inherit;text-decoration:none!important;position:relative;display:inline-block;padding:.35rem .1rem;transition:color .25s}
.domlab-credit a:hover,.domlab-credit a:focus-visible{color:#f3e600}
.domlab-credit .dl-mono{font-family:ui-monospace,"SF Mono","Cascadia Code",Menlo,Consolas,monospace;letter-spacing:.2px}
.domlab-credit .dl-brand{font-weight:800;letter-spacing:.3px}
.domlab-credit .dl-brand b{color:#f3e600;font-weight:800}
.domlab-credit .dl-tip{position:absolute;left:50%;bottom:calc(100% + 10px);width:270px;transform:translateX(-50%) translateY(6px);background:#161920;color:#f1f5f9;border:1px solid #f3e600;border-radius:8px;padding:.7rem .9rem;font-size:.78rem;line-height:1.45;text-align:center;box-shadow:0 10px 25px rgba(0,0,0,.45);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s,transform .25s,visibility .25s;z-index:9999;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.domlab-credit .dl-tip::after{content:"";position:absolute;top:100%;left:50%;margin-left:-6px;border:6px solid transparent;border-top-color:#f3e600}
@media (hover:hover){.domlab-credit a:hover .dl-tip,.domlab-credit a:focus-visible .dl-tip{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}}
@media (prefers-reduced-motion:reduce){.domlab-credit a,.domlab-credit .dl-tip{transition:none}}
