:root{
  --bg:#ffffff;
  --surface:#f6f7fb;
  --card:#ffffff;
  --text:#1b1b1f;
  --muted:#5a5f6a;
  --line:#e6e8ef;

  --primary:#e07a00;
  --secondary:#f2c200;

  --radius:16px;
  --shadow: 0 10px 30px rgba(16,24,40,.08);

  --max: 1120px;
  --max-narrow: 860px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  line-height:1.55;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(224,122,0,.10), transparent 60%),
    radial-gradient(900px 420px at 85% 0%, rgba(242,194,0,.10), transparent 55%),
    var(--bg);
}

:root{
  --header-offset: 92px; /* anpassen: Höhe Sticky-Header + etwas Luft */
}

html{
  scroll-padding-top: var(--header-offset);
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
@media (min-width: 1200px){ .container{padding:0 28px;} }

.hiddenSource{display:none}

/* Header */
.siteHeader{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.navbar{display:flex; align-items:center; justify-content:space-between; height:64px}
.brand{display:flex; align-items:center; gap:10px; font-weight:800;}
.brandLogo{width:44px; height:30px; object-fit:contain; border-radius:8px; background:#fff; box-shadow:0 6px 18px rgba(16,24,40,.10)}
.brandText{letter-spacing:.2px}
.navlinks{display:flex; gap:12px; align-items:center}
.navlinks a{padding:8px 10px; border-radius:12px; color:var(--muted)}
.navlinks a:hover{background:var(--surface); color:var(--text)}
.navlinks a.active{background:rgba(224,122,0,.12); border:1px solid rgba(224,122,0,.25); color:var(--text)}

.burger{
  display:none;
  width:44px; height:44px; border-radius:14px;
  border:1px solid var(--line);
  background:var(--surface);
  cursor:pointer;
}
.mobilepanel{display:none; padding:10px 0 16px;}
.mobilepanel a{display:block; padding:12px 14px; border-radius:14px; color:var(--muted)}
.mobilepanel a:hover{background:var(--surface); color:var(--text)}
.mobilepanel.open{display:block}

.siteheadline{padding:10px 0 16px}
.siteheadline h1{
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  margin: 6px 0 4px;
  letter-spacing:.2px;
}
.siteheadline p{margin:0; color:var(--muted); max-width:70ch}

/* Sections */
.page{background:transparent}
section{padding: 28px 0; scroll-margin-top:90px}
.sectionPanel{
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  padding: 22px;
}
@media (min-width: 900px){ .sectionPanel{padding:28px;} }

.sectionTitle{margin-bottom:14px; max-width: var(--max-narrow)}
.sectionTitle h2{margin:0; font-size:1.55rem}
.sectionTitle p{margin:6px 0 0; color:var(--muted); max-width:75ch}
.sectionTitle h2:after{
  content:""; display:block; width:72px; height:4px; margin-top:10px;
  border-radius:999px; background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity:.9;
}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card:hover{transform: translateY(-2px)}
.figure{overflow:hidden}
.figure img{width:100%; height:auto; display:block}

/* Hero */
.hero{padding: 22px 0 14px}
.heroGrid{display:grid; grid-template-columns: 1.3fr .7fr; gap:18px; align-items:stretch}
.heroPhoto{position:relative; overflow:hidden}
.heroPhoto{
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.heroPhoto img{
  width: 100%;
  height: auto;          /* wichtig: keine feste Höhe */
  max-height: 520px;     /* verhindert „zu hoch“ auf Desktop */
  object-fit: contain;   /* zeigt immer das ganze Bild */
  display: block;
}
.heroPhotoShade{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 40%, rgba(0,0,0,.35) 100%);
  pointer-events:none;
}
.heroPhotoCaption{
  position:absolute; left:14px; bottom:14px;
  display:flex; flex-direction:column; gap:6px;
  color:#fff;
}
.chip{
  display:inline-flex; width:fit-content;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  font-weight:700;
  font-size:.86rem;
}

.heroText{padding:18px}
.kicker{color:var(--muted); font-weight:700; letter-spacing:.35px; text-transform:uppercase; font-size:.78rem}
.heroTitle{margin:.35rem 0 .6rem; font-size: 1.75rem; line-height:1.15}
.lead{color:var(--muted); margin:0 0 12px}
.summary{color:var(--muted); margin:12px 0 0}

.pills{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.pill{
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size:.92rem;
}

/* Layout helpers */
.split{display:grid; grid-template-columns: .9fr 1.1fr; gap:18px}
.splitTwo{grid-template-columns: 1fr 1fr;}
.content{padding:16px 16px 4px}
.content p{color:var(--muted); margin-top:0}
.smallnote{color:var(--muted); font-size:.92rem}
.checklist{padding-left:18px; margin:10px 0 6px}
.checklist li{margin:7px 0}
.bullets{padding-left: 18px; margin:10px 0 18px}
.bullets li{margin:6px 0}
.subbullets{padding-left: 18px; margin-top: 6px}
.subbullets li{margin:4px 0; color:var(--text)}

/* Buttons */
.readmore{margin-top:10px; display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight:750;
  cursor:pointer;
}
.btn:hover{filter:brightness(.98)}
.btnPrimary{
  background: linear-gradient(135deg, rgba(224,122,0,.18), rgba(242,194,0,.18));
  border-color: rgba(224,122,0,.35);
}

/* Candidates */
.gridCandidates{display:grid; grid-template-columns: repeat(3, 1fr); gap:18px}
.person{overflow:hidden; display:flex; flex-direction:column; cursor:pointer}
.person:focus{outline:3px solid rgba(224,122,0,.25); outline-offset:4px}
.personMedia{
  position:relative;
  border-bottom:1px solid var(--line);
  background:#f0f2f6;
}
.person img{
  width:100%;
  aspect-ratio: 4/5;     /* WICHTIG: gleiche Kartenhöhe */
  height:auto;
  object-fit: cover;     /* egal welches Format */
  object-position: center 20%;
  display:block;
}
.person .body{padding: 12px 12px 14px}
.person .name{font-weight:850}
.person .role{color:var(--muted); font-weight:700; font-size:.92rem; margin-top:2px}
.person .desc{color:var(--muted); margin:10px 0 0}

/* Gallery */
.galleryGrid{display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:10px}
.galleryItem{display:block; border-radius:12px; overflow:hidden; border:1px solid var(--line); background:#fff}
.galleryItem img{display:block; width:100%; height: 120px; object-fit: cover}

/* Modal */
body.noScroll{overflow:hidden}
.modal{position:fixed; inset:0; display:none; z-index:1000}
.modal.open{display:block}
.modalOverlay{position:absolute; inset:0; background: rgba(0,0,0,0.55)}
.modalDialog{
  position:relative;
  margin: 6vh auto;
  width: min(920px, calc(100% - 24px));
  max-height: 88vh;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}
.modalDialogWide{width:min(1100px, calc(100% - 24px))}
.modalClose{
  position:absolute; top:10px; right:10px;
  border:0; background: rgba(0,0,0,0.06);
  width:40px; height:40px;
  border-radius:999px;
  cursor:pointer;
  font-size:26px;
  line-height:40px;
}
.modalClose:hover{background: rgba(0,0,0,0.10)}
.modalHeader{padding: 18px 56px 10px 18px; border-bottom:1px solid var(--line)}
.modalTitle{font-size: 22px; font-weight: 900; margin:0 0 2px}
.modalMeta{color:var(--muted); font-size: 14px}
.modalBody{padding:18px; overflow:auto; max-height: calc(88vh - 70px)}
.modalSection{margin:0 0 14px}
.modalSection h4{margin:0 0 6px; font-size:16px}
.modalSection p{margin:0; line-height:1.65}
.longText h3{margin-top:14px}
.longText p{margin:8px 0}

.lightboxBody{padding:12px; overflow:auto; max-height: calc(88vh - 20px)}
.lightboxBody img{display:block; width:100%; height:auto; border-radius:12px}
.lightboxCaption{margin-top:10px; color:var(--muted)}

/* Footer */
.siteFooter{padding: 22px 0 40px; border-top:1px solid var(--line); color:var(--muted)}
.footerGrid{display:grid; grid-template-columns: 1.1fr .9fr; gap:14px}

/* Responsive */
@media (max-width: 920px){
  .heroGrid{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  .gridCandidates{grid-template-columns: repeat(2, 1fr)}
  .galleryGrid{grid-template-columns: repeat(4, minmax(0,1fr))}
}
@media (max-width: 720px){
  .navlinks{display:none}
  .burger{display:inline-flex; align-items:center; justify-content:center}
  h2.heroTitle{font-size: 1.55rem}
  .galleryGrid{grid-template-columns: repeat(2, minmax(0,1fr))}
  .galleryItem img{height: 130px}
}
@media (max-width: 520px){
  .gridCandidates{grid-template-columns: 1fr}
}
section[home]{
  scroll-margin-top: var(--header-offset);
}

section[geschichte]{
  scroll-margin-top: var(--header-offset);
}
section[kandidaten]{
  scroll-margin-top: var(--header-offset);
}
section[ziele]{
  scroll-margin-top: var(--header-offset);
}
section[kinderzeichnungen]{
  scroll-margin-top: var(--header-offset);
}
section[raetsel]{
  scroll-margin-top: var(--header-offset);
}
section[wahl2020]{
  scroll-margin-top: var(--header-offset);
}
