/* ==========================================================================
   DAMME GEMEINSAM GESTALTEN – Ratsfraktion im Stadtrat Damme
   Plakatives Raster: Orange + Tinte, große Versalien, scharfe Kanten.
   Keine Web-Fonts – nur Systemschriften (keine Datenübertragung an Dritte).
   ========================================================================== */
:root {
  --paper:      #FAF7F2;
  --paper-2:    #F1ECE4;
  --ink:        #17141F;
  --ink-soft:   #4A4552;
  --orange:     #F47A20;
  --orange-ink: #B4490A;   /* Orange für kleine Schrift auf Papier (Kontrast) */
  --line:       rgba(23,20,31,.16);
  --font-head:  "Helvetica Neue", "Arial Nova", "Segoe UI", Arial, system-ui, sans-serif;
  --font-body:  Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --maxw: 1200px;
  --gut: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #131118;
    --paper-2:    #1C1922;
    --ink:        #F3EEE8;
    --ink-soft:   #B9B2BF;
    --orange-ink: #FF9A4D;
    --line:       rgba(243,238,232,.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 18px; line-height: 1.6;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #17141F; padding: 10px 16px; font-family: var(--font-head); font-weight: 700; }
.skip:focus { left: 12px; top: 12px; z-index: 50; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.label {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink);
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 0; }

/* ---------- Kopf ---------- */
.head { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__txt { font-family: var(--font-head); font-weight: 900; font-size: 13px; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav a { font-family: var(--font-head); font-weight: 700; font-size: 14px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); }
@media (max-width: 640px) { .nav li:not(.nav__keep) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(36px, 6vw, 72px); }
.hero__title {
  font-size: clamp(46px, 11.5vw, 156px); line-height: .86; letter-spacing: -.045em;
  text-transform: uppercase; margin-top: 18px;
}
.hero__title span { display: block; }
.hero__title .hl { display: inline-block; background: var(--orange); color: #17141F; padding: 0 .08em .02em; margin-left: -.08em; }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  margin-top: clamp(28px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line);
}
.hero__lead { margin: 0; max-width: 34em; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ink-soft); }
.hero__lead strong { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; min-height: 48px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--orange); color: #17141F; }
@media (max-width: 720px) { .hero__foot { grid-template-columns: 1fr; } }

/* ---------- Baustellen-Band ---------- */
.tape {
  background: repeating-linear-gradient(-45deg, var(--orange) 0 22px, #17141F 22px 44px);
  padding: 18px 0; border-block: 2px solid #17141F;
}
.tape p {
  margin: 0 auto; width: fit-content; max-width: calc(100% - 2 * var(--gut));
  background: var(--paper); color: var(--ink); padding: 10px 18px; border: 2px solid #17141F;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1.8vw, 16px); text-align: center;
}

/* ---------- Abschnitte ---------- */
.sec { padding: clamp(56px, 9vw, 112px) 0; border-bottom: 1px solid var(--line); }
.sec--alt { background: var(--paper-2); }
.sec__head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 40px; margin-bottom: clamp(28px, 5vw, 48px); }
.sec__head h2 { font-size: clamp(34px, 5.6vw, 64px); text-transform: uppercase; }
@media (max-width: 760px) { .sec__head { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, .9fr); gap: 32px 40px; align-items: start; }
.split > .prose { grid-column: 2; }
.prose p { margin: 0 0 1em; max-width: 34em; }
.prose p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split > .prose { grid-column: auto; } }

/* 27 Sitze, 2 davon unsere */
.seatgrid { border: 2px solid var(--ink); padding: 22px; background: var(--paper); }
.seatgrid__dots { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.seatgrid__dots i { aspect-ratio: 1; background: var(--line); }
.seatgrid__dots i.on { background: var(--orange); }
.seatgrid__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: 18px; font-family: var(--font-head); }
.seatgrid__cap b { white-space: nowrap; font-size: 48px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.seatgrid__cap span { font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* ---------- Mitglieder ---------- */
.people { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.person {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 8px 40px; align-items: center;
  padding: clamp(20px, 3vw, 30px) 0; border-bottom: 1px solid var(--line);
}
.person__num { font-family: var(--font-head); font-weight: 900; font-size: 15px; color: var(--orange-ink); letter-spacing: .08em; }
.person__name { font-size: clamp(26px, 4vw, 44px); text-transform: none; letter-spacing: -.035em; }
.person__role { margin-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.person__link {
  font-family: var(--font-head); font-weight: 700; font-size: 14px; text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-bottom: 2px; white-space: nowrap;
}
.person__link:hover { color: var(--orange-ink); }
@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; }
  .person__link { justify-self: start; margin-top: 6px; }
}

/* ---------- Kontakt ---------- */
.contact { background: var(--orange); color: #17141F; padding: clamp(56px, 9vw, 112px) 0; }
.contact .label { color: #17141F; }
.contact h2 { font-size: clamp(34px, 5.6vw, 64px); text-transform: uppercase; margin-top: 14px; }
.contact p { max-width: 34em; margin: 18px 0 0; font-size: clamp(18px, 2vw, 21px); }
.contact__mail {
  display: inline-block; margin-top: clamp(24px, 4vw, 40px);
  font-family: var(--font-head); font-weight: 900; letter-spacing: -.035em;
  font-size: clamp(26px, 6.4vw, 76px); line-height: 1; text-decoration: none;
  border-bottom: 4px solid #17141F; padding-bottom: 6px; overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--paper); border-bottom-color: var(--paper); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact__mail:hover { color: #FAF7F2; border-bottom-color: #FAF7F2; }
}

/* ---------- Fuß ---------- */
.foot { background: #17141F; color: #F3EEE8; padding: 36px 0; font-family: var(--font-head); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; border-bottom: 1px solid rgba(243,238,232,.35); }
.foot a:hover { border-bottom-color: var(--orange); color: var(--orange); }

/* ---------- Impressum ---------- */
.legal { max-width: 46em; }
.legal h2 { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -.02em; margin: 2.2em 0 .6em; padding-top: 1em; border-top: 2px solid var(--ink); }
.legal h3 { font-size: 18px; letter-spacing: -.01em; margin: 1.6em 0 .4em; }
.legal p { margin: 0 0 1em; }
.legal dl { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 24px; margin: 0; }
.legal dt { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.legal dd { margin: 0; }
.legal a { color: var(--orange-ink); }
.legal .stand { margin-top: 2.4em; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 10px; } }

/* Instagram-Link im Kontaktblock */
.contact__insta {
  display: flex; align-items: center; gap: 12px; width: fit-content; margin-top: 28px;
  padding: 12px 20px; border: 2px solid #17141F; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(15px, 1.8vw, 17px);
  transition: background .2s, color .2s;
}
.contact__insta svg { width: 22px; height: 22px; flex: none; }
.contact__insta:hover { background: #17141F; color: var(--orange); }

/* ---------- Sitzverteilung (Halbring) ---------- */
.hemi { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hemi { grid-template-columns: 1fr; } }
.hemi__chart { position: relative; max-width: 560px; }
.hemi__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.hemi__chart .seg { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.22,.8,.25,1); }
.hemi__chart .seg-num { font-family: var(--font-head); font-weight: 900; font-size: 20px; text-anchor: middle; dominant-baseline: central; opacity: 0; transition: opacity .4s ease .5s; }
.hemi__chart .is-in .seg { stroke-dashoffset: 0; }
.hemi__chart .is-in .seg-num { opacity: 1; }
.hemi__total { position: absolute; left: 0; right: 0; bottom: 3%; text-align: center; pointer-events: none; font-family: var(--font-head); }
.hemi__total b { display: block; font-size: clamp(40px, 7vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -.045em; }
.hemi__total span { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.hemi__legend { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.hemi__legend li {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(15px, 1.8vw, 17px); line-height: 1.2;
}
.hemi__legend i { width: 16px; height: 16px; background: var(--c); }
.hemi__legend b { font-weight: 900; font-size: 1.35em; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hemi__legend em { display: block; margin-top: 4px; font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.hemi__legend li.is-us { background: var(--orange); color: #17141F; padding-inline: 14px; margin-inline: -14px; border-bottom-color: #17141F; }
.hemi__legend li.is-us i { box-shadow: inset 0 0 0 2px #17141F; }
.hemi__note { margin: clamp(24px, 4vw, 36px) 0 0; font-size: 15px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .hemi__chart .seg, .hemi__chart .seg-num { transition: none; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hemi__chart .seg.is-cdu { stroke: #3B4148; }
  :root:not([data-theme="light"]) .hemi__legend i.is-cdu { background: #3B4148; }
}

/* Instagram prominent im Hero */
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.btn--insta { background: var(--orange); color: #17141F; border: 2px solid #17141F; padding: 10px 22px 10px 18px; gap: 14px; box-shadow: 5px 5px 0 #17141F; transition: transform .15s, box-shadow .15s, background .2s; }
.btn--insta svg { width: 28px; height: 28px; flex: none; }
.btn--insta span { display: flex; flex-direction: column; line-height: 1.15; font-size: 15px; }
.btn--insta small { font-size: 13px; font-weight: 700; opacity: .8; letter-spacing: .01em; }
.btn--insta:hover { background: var(--orange); color: #17141F; transform: translate(2px, 2px); box-shadow: 3px 3px 0 #17141F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--insta { border-color: #17141F; box-shadow: 5px 5px 0 #F3EEE8; }
  :root:not([data-theme="light"]) .btn--insta:hover { box-shadow: 3px 3px 0 #F3EEE8; }
}
.hero__btns .btn:not(.btn--insta) { align-self: center; }

/* Instagram in der Kopfleiste */
.nav { align-items: center; }
.nav a.nav__insta {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--orange); color: #17141F; border: 2px solid #17141F;
}
.nav a.nav__insta:hover { background: #17141F; color: var(--orange); border-bottom-color: #17141F; }
.nav__insta svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 420px) { .nav__insta span { display: none; } }

/* Hero-Instagram größer */
.btn--insta { padding: 14px 26px 14px 20px; }
.btn--insta svg { width: 34px; height: 34px; }
.btn--insta span { font-size: 17px; }
.btn--insta small { font-size: 14px; }

/* ==========================================================================
   Ein Hauch Windows 95: 3D-Kanten
   ========================================================================== */
:root {
  --bev-hi: #FFFFFF;    /* Lichtkante oben/links */
  --bev-lo: #A79E93;    /* Innenschatten */
  --bev-dk: #17141F;    /* Außenschatten unten/rechts */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bev-hi: #4E4858;
    --bev-lo: #0D0B11;
    --bev-dk: #000000;
  }
}

/* Buttons: erhaben, beim Klicken eingedrückt */
.btn {
  border: 2px solid; border-color: #5C5666 #000 #000 #5C5666;
  box-shadow: inset -2px -2px 0 #0B0910;
}
.btn:active { border-color: #000 #5C5666 #5C5666 #000; box-shadow: inset 2px 2px 0 #0B0910; }
.btn--insta, .btn--insta:hover {
  border: 2px solid; border-color: #FFC08F #6E3006 #6E3006 #FFC08F;
  box-shadow: 0 0 0 2px #17141F, inset -2px -2px 0 #C45A10;
  transform: none;
}
.btn--insta:hover { background: #FF8A35; }
.btn--insta:active { border-color: #6E3006 #FFC08F #FFC08F #6E3006; box-shadow: 0 0 0 2px #17141F, inset 2px 2px 0 #C45A10; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--insta, :root:not([data-theme="light"]) .btn--insta:hover { box-shadow: 0 0 0 2px #F3EEE8, inset -2px -2px 0 #C45A10; }
}
.nav a.nav__insta { border: 2px solid; border-color: #FFC08F #6E3006 #6E3006 #FFC08F; }
.nav a.nav__insta:hover { border-color: #FFC08F #6E3006 #6E3006 #FFC08F; background: #FF8A35; color: #17141F; }
.nav a.nav__insta:active { border-color: #6E3006 #FFC08F #FFC08F #6E3006; }
.contact__insta { border-color: #FFC08F #6E3006 #6E3006 #FFC08F; box-shadow: 0 0 0 2px #17141F; }

/* Baustellen-Hinweis als kleines Dialogfeld */
.tape p {
  border: 2px solid; border-color: var(--bev-hi) var(--bev-dk) var(--bev-dk) var(--bev-hi);
  box-shadow: inset -2px -2px 0 var(--bev-lo);
}
.tape p::before { content: "⚠ "; color: var(--orange-ink); }


