/* ============================================================
   Beirat &middot; Bremen — Demo Stylesheet (Kommunalpolitik)
   Neutrales Basis-Theme + Partei-Theme (SPD) via html[data-theme]
   Self-contained — no inheritance from main studio-chop.de CSS
   ============================================================ */

/* ---- Theme: Neutral (Basis) ---------------------------------- */
:root {
  --accent:       #2f5d8a;
  --accent-2:     #9ec1e4;
  --accent-dark:  #1f4466;
  --accent-soft:  #e8eff5;
  --dark:         #18293b;
  --dark-soft:    #23384c;
  --bg:           #ffffff;
  --bg-soft:      #f4f6f9;
  --text:         #1f2933;
  --text-light:   #5b6675;
  --text-on-dark: #e9eef4;
  --border:       #d7dee6;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:    0 10px 34px rgba(0,0,0,.14);
}

/* ---- Theme: SPD ---------------------------------------------- */
html[data-theme="spd"] {
  --accent:#e2001a; --accent-2:#ff6b7d; --accent-dark:#b30012; --accent-soft:#fdecee;
  --dark:#1c0f10; --dark-soft:#2b1719; --bg-soft:#faf4f4; --text-light:#6b5255;
  --text-on-dark:#f7e8ea; --border:#ecdada;
}
/* ---- Theme: CDU ---------------------------------------------- */
html[data-theme="cdu"] {
  --accent:#a02130; --accent-2:#e2a7ad; --accent-dark:#7a1724; --accent-soft:#f6ebec;
  --dark:#10131a; --dark-soft:#1a1f29; --bg-soft:#f5f6f8; --text-light:#5a5f69;
  --text-on-dark:#e8eaee; --border:#d8dbe0;
}
/* ---- Theme: CSU ---------------------------------------------- */
html[data-theme="csu"] {
  --accent:#0079c4; --accent-2:#7fc8ef; --accent-dark:#005c99; --accent-soft:#e7f3fb;
  --dark:#0b2b45; --dark-soft:#12405f; --bg-soft:#f2f8fc; --text-light:#4f6270;
  --text-on-dark:#e4f0f8; --border:#cfe0ec;
}
/* ---- Theme: B90/Die Grünen ----------------------------------- */
html[data-theme="gruene"] {
  --accent:#3f7d20; --accent-2:#9ed67d; --accent-dark:#2f6117; --accent-soft:#eef6e8;
  --dark:#18310e; --dark-soft:#234815; --bg-soft:#f4f8f0; --text-light:#57704a;
  --text-on-dark:#e7f0e1; --border:#d8e5cf;
}
/* ---- Theme: FDP ---------------------------------------------- */
html[data-theme="fdp"] {
  --accent:#0088cc; --accent-2:#ffd83d; --accent-dark:#006090; --accent-soft:#e8f5fc;
  --dark:#002b4d; --dark-soft:#0a3f6b; --bg-soft:#f0f7fc; --text-light:#4b6474;
  --text-on-dark:#e6f0f7; --border:#cfe3ee;
}
/* ---- Theme: Die Linke ---------------------------------------- */
html[data-theme="linke"] {
  --accent:#c4006b; --accent-2:#ff7fb5; --accent-dark:#930052; --accent-soft:#fdecf5;
  --dark:#2b0d1e; --dark-soft:#3e142c; --bg-soft:#fbf1f6; --text-light:#6b4f5d;
  --text-on-dark:#f7e5ee; --border:#ecd4e0;
}
/* ---- Theme: AfD ---------------------------------------------- */
html[data-theme="afd"] {
  --accent:#0085ca; --accent-2:#82cbf2; --accent-dark:#005f91; --accent-soft:#e8f4fc;
  --dark:#10345c; --dark-soft:#17487c; --bg-soft:#f0f6fc; --text-light:#4c6476;
  --text-on-dark:#e6f0f7; --border:#cfe0ec;
}
/* ---- Theme: BSW ---------------------------------------------- */
html[data-theme="bsw"] {
  --accent:#e07008; --accent-2:#ffb45e; --accent-dark:#ad5406; --accent-soft:#fdf1e6;
  --dark:#3a2408; --dark-soft:#54330b; --bg-soft:#fdf6ee; --text-light:#6d5a40;
  --text-on-dark:#f7ebd9; --border:#ead9c0;
}
/* ---- Theme: Volt --------------------------------------------- */
html[data-theme="volt"] {
  --accent:#6a24ab; --accent-2:#c49aff; --accent-dark:#511b86; --accent-soft:#f3edfb;
  --dark:#2a1044; --dark-soft:#3b1a5e; --bg-soft:#f8f4fc; --text-light:#5f5270;
  --text-on-dark:#ede4f7; --border:#e0d4ec;
}
/* ---- Theme: Freie Wähler ------------------------------------- */
html[data-theme="fw"] {
  --accent:#e8730c; --accent-2:#ffb45c; --accent-dark:#b25708; --accent-soft:#fdf1e3;
  --dark:#3a2607; --dark-soft:#543608; --bg-soft:#fdf7ed; --text-light:#6d5c40;
  --text-on-dark:#f7ecd9; --border:#ecdcbf;
}
* { transition: background-color .25s, border-color .25s; }

/* ---- Reset minimal ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .25s, color .25s;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Libre Baskerville', Georgia, serif; line-height: 1.25; }

/* ---- Utility -------------------------------------------------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.eyebrow {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: .5rem;
}

/* ---- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: inherit; font-size: .98rem; font-weight: 600;
  padding: .72rem 1.6rem; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent;
  text-align: center; line-height: 1.2; white-space: nowrap;
  background: var(--accent); color: #fff; transition: all .2s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--sm { padding: .5rem 1.1rem; font-size: .9rem; }

/* ---- Demo-Notice + Theme-Switch ------------------------------- */
.demo-notice {
  position: relative; z-index: 2000;
  background: var(--accent); color: #fff;
  font-size: .85rem; padding: .55rem 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: center; justify-content: space-between;
}
.demo-notice a { color: #fff; text-decoration: underline; }
.demo-notice__text { line-height: 1.4; }
.theme-switch { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.theme-switch__label { font-size: .8rem; opacity: .9; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.theme-dots { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.theme-dot {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--dot, #888);
  border: 2px solid rgba(255,255,255,.55);
  transition: transform .15s, box-shadow .15s;
}
.theme-dot:hover { transform: scale(1.18); }
.theme-dot--active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--dot, #888);
  border-color: #fff; transform: scale(1.05);
}
.theme-select {
  font-family: inherit; font-size: .82rem; font-weight: 700;
  padding: .3rem .55rem; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.45);
}
.theme-select option { color: #111; background: #fff; }

/* ---- Navigation ----------------------------------------------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--dark); color: var(--text-on-dark);
  box-shadow: var(--shadow);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo { display: flex; flex-direction: column; line-height: 1.1; color: var(--text-on-dark); }
.nav__logo:hover { color: var(--text-on-dark); }
.nav__logo-name { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.1rem; }
.nav__logo-sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-2); }
.nav__links { display: flex; align-items: center; gap: .25rem; }
.nav__links a {
  color: var(--text-on-dark); font-size: .95rem; font-weight: 600;
  padding: .5rem .85rem; border-radius: 5px; transition: all .15s;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__links a.active { color: #fff; background: var(--accent); }
.nav-burger {
  position: fixed; top: 3.2rem; right: 1rem; z-index: 1501;
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem;
}
.nav-burger span { width: 26px; height: 3px; background: var(--text-on-dark); border-radius: 2px; transition: all .25s; }

/* ---- Hero ----------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--dark-soft), var(--dark));
  color: var(--text-on-dark); padding: 4rem 0 3.5rem;
}
.hero__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: .6rem; }
.hero p.lede { font-size: 1.15rem; color: rgba(233,238,244,.9); max-width: 46ch; }
.party-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: var(--accent); color: #fff; padding: .28rem .7rem; border-radius: 999px;
}
.hero__meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 1.4rem 1.6rem;
}
.hero__card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.hero__card ul { display: grid; gap: .55rem; }
.hero__card li { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; }
.hero__card li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); margin-top: .5rem; flex: none; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---- Sections ------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: 2rem; }
.section__head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .5rem; }
.section__head p { color: var(--text-light); }

/* ---- Cards ----------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.card h3 { font-size: 1.15rem; margin: .4rem 0 .5rem; }
.card p { color: var(--text-light); font-size: .95rem; }
.card a { font-weight: 600; }

/* ---- News (Aktuelles) ------------------------------------------ */
.news-list { display: grid; gap: 1.2rem; }
.news-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow);
}
.news-date { text-align: center; }
.news-date__day { font-family: 'Libre Baskerville', serif; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.news-date__month { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); }
.news-item h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.news-item p { color: var(--text-light); font-size: .95rem; }

/* ---- Termine --------------------------------------------------- */
.termine-list { display: grid; gap: 1rem; max-width: 780px; }
.termin {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--bg); border-left: 4px solid var(--accent); border-radius: 8px;
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow);
}
.termin__date { font-weight: 700; color: var(--accent); line-height: 1.25; }
.termin__date small { display: block; font-weight: 400; color: var(--text-light); font-size: .85rem; }
.termin__what h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.termin__what p { color: var(--text-light); font-size: .92rem; }
.termin__where { font-size: .85rem; color: var(--text-light); font-weight: 600; white-space: nowrap; }
.termin__where::before { content: "📍 "; }

/* ---- Person / Bio ----------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.about-highlight { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; }
.about-highlight h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.about-highlight ul { display: grid; gap: .5rem; }
.about-highlight li { position: relative; padding-left: 1.1rem; color: var(--text); }
.about-highlight li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 2.4rem;
  margin: 0 auto 1rem; box-shadow: var(--shadow-lg);
}

/* ---- Archiv ----------------------------------------------------- */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.doc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: .6rem;
}
.doc-row__name { font-weight: 600; font-size: .95rem; }
.doc-row__name small { display: block; font-weight: 400; color: var(--text-light); font-size: .82rem; }
.doc-row__dl { font-size: .85rem; font-weight: 700; }
.paper {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.5rem; box-shadow: var(--shadow);
}
.paper h3 { font-size: 1.05rem; margin-bottom: .6rem; }

/* ---- Leichte Sprache -------------------------------------------- */
.leicht-box {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.6rem 1.8rem; margin-bottom: 1.4rem;
  font-size: 1.05rem; line-height: 1.75;
}
.leicht-box p { margin-bottom: .8rem; }
.barriere-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.barriere-row__icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}

/* ---- Kontakt / Ansprechpartner ------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.team-cards { display: grid; gap: 1rem; }
.team-card {
  display: flex; gap: 1rem; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.2rem; box-shadow: var(--shadow);
}
.team-card__avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.3rem;
}
.team-card h3 { font-size: 1.05rem; }
.team-card p.role { color: var(--accent); font-size: .85rem; font-weight: 600; }
.team-card p.meta { color: var(--text-light); font-size: .9rem; }

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .7rem .9rem; font-family: inherit; font-size: .95rem;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-ok {
  display: none; margin-top: 1rem; padding: 1rem 1.2rem;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 8px; font-weight: 600;
}

/* ---- Definition-Liste (Terminkalender) ---------------------------- */
.def-list { display: grid; gap: .6rem; max-width: 780px; }
.def-list dt { font-weight: 700; color: var(--accent); }
.def-list dd { color: var(--text-light); margin-left: 1rem; }

/* ---- Footer ------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--text-on-dark); margin-top: 2rem; }
.footer__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem 1.25rem 2rem;
}
.footer__col h4 { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; margin-bottom: .7rem; }
.footer__col p { color: rgba(233,238,244,.75); font-size: .92rem; margin-bottom: .3rem; }
.footer__col a { color: var(--accent-2); text-decoration: underline; }
.footer__legal {
  text-align: center; padding: .8rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem;
}
.footer__legal a { color: var(--text-on-dark); }
.footer__legal-sep { margin: 0 .5rem; opacity: .5; }
.footer__bottom {
  text-align: center; padding: .8rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem;
  color: rgba(233,238,244,.7);
}
.footer__bottom a { color: var(--text-on-dark); }
.demo-marker { color: #ffd166; font-weight: 700; }

/* ---- Legal pages ------------------------------------------------- */
.legal-content { max-width: 780px; }
.legal-block { margin-bottom: 2rem; }
.legal-block h2 { font-size: 1.25rem; color: var(--accent); border-bottom: 2px solid var(--border); padding-bottom: .4rem; margin-bottom: .7rem; }
.legal-block p { color: var(--text-light); font-size: .95rem; margin-bottom: .6rem; }
.legal-list { list-style: disc; padding-left: 1.5rem; color: var(--text-light); font-size: .95rem; }
.legal-demo-note { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 1.3rem 1.5rem; }

/* ---- Page head ---------------------------------------------------- */
.page-head {
  background: linear-gradient(180deg, var(--dark-soft), var(--dark));
  color: var(--text-on-dark); padding: 3rem 0;
}
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .4rem; }
.page-head p { color: rgba(233,238,244,.82); max-width: 60ch; }
.breadcrumb { font-size: .82rem; color: rgba(233,238,244,.7); margin-bottom: .8rem; }
.breadcrumb a { color: var(--accent-2); }

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 980px) {
  .cards, .cards--2, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav__inner { justify-content: flex-start; }
  .nav__logo { margin-right: auto; }
  .nav__links {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: var(--dark); flex-direction: column; gap: .25rem;
    padding: 5rem 1.5rem 2rem; transition: right .3s ease; z-index: 1500;
    box-shadow: var(--shadow-lg);
  }
  .nav__links a { width: 100%; }
  #nav-toggle:checked ~ .site-nav .nav__links { right: 0; }
  .termin { grid-template-columns: 1fr; gap: .4rem; }
  .termin__where { white-space: normal; }
}
@media (max-width: 600px) {
  .cards, .cards--2, .archive-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-date { text-align: left; display: flex; gap: .5rem; align-items: baseline; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .demo-notice { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ---- Stadtteil-Ticker (im Logo-Sub im Header) ---------------- */
.nav__ticker {
  display: inline-block;
  min-width: 17ch;
  text-align: center;
  transition: color .2s;
}
.nav__ticker.is-final {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .18em;
}
