/* =========================================================
   Daniel Kaszanics – Kandidatenseite Ratswahl Oldenburg 2026
   Plain CSS, mobile-first. Farben & Typografie aus dem
   CDU Corporate Design (cdu-corporate-design.md).
   ========================================================= */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --tuerkis: #52b7c1;
  --tuerkis-10: #f2f8fa;
  --tuerkis-25: #ddeef1;
  --tuerkis-60: #a7d5dc;
  --blau: #2d3c4b;
  --blau-10: #e5e5e9;
  --blau-25: #bec1c7;
  --blau-60: #737986;
  --gold: #ffa600;
  --weiss: #ffffff;

  --text: #2d3c4b;
  --text-muted: #566373;

  --maxw: 1120px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 12px 30px rgba(45, 60, 75, .12);
  --shadow-sm: 0 4px 14px rgba(45, 60, 75, .10);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* Platz für den klebrigen Header bei Sprungmarken */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img, picture { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.75rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem); }
p  { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blau); color: #fff; padding: .7rem 1rem; z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .12s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--tuerkis); color: #fff; }
.btn-primary:hover { background: #45a3ad; }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--blau-10);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand { display: inline-flex; }
.brand-logo { width: auto; height: 34px; }

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem);
}
.primary-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--blau);
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--tuerkis); }
.primary-nav a.is-active { border-bottom-color: var(--tuerkis); color: #1f2b37; }
.nav-cta {
  background: var(--gold);
  color: #1b191d !important;
  border-radius: 999px;
  padding: .55rem 1.1rem !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: #e7960a; }

.nav-toggle {
  display: none;
  align-items: center; gap: .55rem;
  background: var(--blau); color: #fff;
  border: 0; border-radius: 999px;
  padding: .55rem 1rem;
  font: inherit; font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ""; display: block;
  width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
    pointer-events: none;
  }
  .primary-nav > ul { overflow: hidden; visibility: hidden; }
  .primary-nav.is-open {
    grid-template-rows: 1fr;
    border-bottom: 1px solid var(--blau-10);
    pointer-events: auto;
  }
  .primary-nav.is-open > ul { visibility: visible; }
  .primary-nav ul {
    flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem var(--pad) 1.25rem;
  }
  .primary-nav li { border-bottom: 1px solid var(--blau-10); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: .9rem 0; }
  .nav-cta { text-align: center; margin-top: .9rem; padding: .8rem 1.1rem !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blau);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-bogen {
  position: absolute; inset: 0;
  background: url("../img/bogen.svg") no-repeat right -8% bottom -12%;
  background-size: min(70%, 620px);
  opacity: .16;
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-text { max-width: 34rem; }
.kicker {
  display: inline-block;
  background: var(--gold);
  color: #1b191d;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: .35rem .9rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .35em; }
.hero-sub {
  font-weight: 600;
  font-size: clamp(1rem, .9rem + .5vw, 1.25rem);
  color: var(--tuerkis-60);
  margin-bottom: 1.1rem;
}
.hero-lead { color: rgba(255, 255, 255, .9); margin-bottom: 1.8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-media { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 5px solid #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.wahlbadge {
  position: absolute;
  right: -14px; bottom: -22px;
  width: clamp(110px, 30vw, 168px);
  height: auto;
  transform: rotate(-8deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .28));
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-media { justify-self: end; }
}

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-tint { background: var(--tuerkis-10); }
.section-dark { background: var(--blau); color: #fff; }
.section-head { max-width: 44rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.eyebrow {
  text-transform: none;
  font-weight: 700;
  color: var(--tuerkis);
  margin-bottom: .4rem;
  letter-spacing: -0.01em;
}
.eyebrow-light { color: var(--tuerkis-60); }
.section-dark h2 { color: #fff; }
.section-intro { color: rgba(255, 255, 255, .85); }

/* ---------- Über mich ---------- */
.about-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.fact-list li {
  background: #fff;
  border: 1px solid var(--blau-10);
  border-left: 5px solid var(--tuerkis);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.fact-list h3 { margin-bottom: .25em; color: #1f2b37; }
.fact-list p { margin: 0; color: var(--text-muted); font-size: .98rem; }

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 340px 1fr; align-items: start; }
  .about-photo { position: sticky; top: 90px; }
}

/* ---------- Ziele ---------- */
.goals { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.goal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.1rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--tuerkis-25);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.goal-num {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--tuerkis);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}
.goal h3 { margin-bottom: .3em; color: #1f2b37; }
.goal p { margin: 0; color: var(--text-muted); }
@media (min-width: 760px) {
  .goals { grid-template-columns: 1fr 1fr; }
  .goal:last-child { grid-column: 1 / -1; }
}

/* ---------- Wahlprogramm ---------- */
.programm-card {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  background: var(--tuerkis-10);
  border: 1px solid var(--tuerkis-25);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.programm-logo { width: clamp(130px, 34vw, 180px); height: auto; justify-self: center; }
.programm-body h2 { font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem); }
.programm-body p { color: var(--text-muted); }
.programm-body .btn { margin-top: .6rem; }

@media (min-width: 720px) {
  .programm-card { grid-template-columns: auto 1fr; gap: 2.5rem; }
}

/* ---------- Geschichte / Comic ---------- */
.comic { display: grid; gap: 1.25rem; }
.panel { margin: 0; background: rgba(255, 255, 255, .06); border-radius: 14px; overflow: hidden; }
.panel-img {
  display: block; width: 100%; padding: 0; border: 0; margin: 0;
  background: none; cursor: zoom-in;
}
.panel-img img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-bottom: 4px solid #fff;
}
.panel figcaption {
  padding: 1rem 1.15rem 1.2rem;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}
.ki-note {
  margin-top: 1.4rem;
  font-size: .85rem;
  color: var(--tuerkis-60);
}

@media (min-width: 760px) {
  .comic { grid-template-columns: repeat(3, 1fr); }
  .panel-wide { grid-column: span 2; }
  .panel-wide .panel-img img { aspect-ratio: 2 / 1; height: 100%; }
  .panel-narrow { grid-column: span 1; }
}

/* ---------- OB-Wahl: Jascha Rohr ---------- */
.jascha-photo { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.jascha-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 82% 22%;
  border-radius: var(--radius);
  border: 4px solid #fff;
}
.jascha-photo figcaption {
  margin-top: .5rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .5);
}
@media (min-width: 720px) {
  .jascha-photo img { aspect-ratio: 21 / 8; object-position: 80% 30%; }
}

.jascha-grid { display: grid; gap: 1.5rem; }
.jascha-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.jascha-ballot-label {
  font-weight: 700;
  color: var(--tuerkis-60);
  font-size: .82rem;
  letter-spacing: -0.01em;
  margin-bottom: .55rem;
}
.jascha-ballot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: start;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: .92rem;
  line-height: 1.5;
}
.jascha-num {
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 8px;
  background: var(--gold);
  color: #1b191d;
  font-weight: 800;
  font-size: 1.15rem;
}
.faq { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.faq h3 {
  position: relative;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .3em;
  padding-left: 2rem;
}
.faq h3::before {
  content: "✓";
  position: absolute; left: 0; top: .05em;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: var(--gold);
  color: #1b191d;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800;
}
.faq p { margin: 0; padding-left: 2rem; color: rgba(255, 255, 255, .82); }

@media (min-width: 820px) {
  .jascha-grid { grid-template-columns: 330px 1fr; align-items: start; gap: 2.5rem; }
}

/* ---------- Wahltermin ---------- */
.wahltermin { background: var(--tuerkis); color: #06343a; }
.wahltermin-inner { text-align: center; padding-block: clamp(2.4rem, 6vw, 3.6rem); }
.wahltermin-date {
  font-weight: 800;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 3.5rem);
  letter-spacing: -0.02em;
  margin: 0;
}
.wahltermin-claim {
  font-weight: 800;
  font-size: clamp(1.2rem, 1rem + 1.4vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: .2rem 0 .6rem;
}
.wahltermin-sub { margin: 0; font-weight: 500; color: #0c3f46; }

/* ---------- Kontakt ---------- */
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: grid; gap: .25rem;
  text-decoration: none;
  background: var(--tuerkis-10);
  border: 1px solid var(--tuerkis-25);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  transition: transform .12s ease, border-color .15s ease;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--tuerkis); }
.contact-label { font-weight: 700; color: var(--tuerkis); font-size: .9rem; }
.contact-value { font-weight: 600; font-size: 1.15rem; color: #1f2b37; word-break: break-word; }

@media (min-width: 620px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blau);
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
}
.footer-inner {
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.footer-logo {
  height: 30px; width: auto;
  background: #fff; padding: 6px 10px; border-radius: 8px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-nav a { color: var(--tuerkis-60); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-fineprint { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .55); }
.footer-fineprint a { color: var(--tuerkis-60); }
.footer-copy { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .45); }
.todo { color: var(--gold); font-style: italic; }

/* ---------- Rechtstext-Seiten (Impressum / Datenschutz) ---------- */
.legal { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.legal .wrap { max-width: 760px; }
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--tuerkis);
  text-decoration: none; margin-bottom: 1.4rem;
}
.back-link:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); margin-bottom: .5em; }
.legal h2 {
  font-size: 1.3rem; margin: 2.2rem 0 .5em;
  padding-top: 1.4rem; border-top: 1px solid var(--blau-10);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1rem; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .3em; }
.legal p, .legal li { color: var(--text-muted); }
.legal a { color: var(--tuerkis); }
.legal address { font-style: normal; color: var(--text-muted); }
.legal .meta { font-size: .85rem; color: var(--blau-60); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 21, 27, .92);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 88vh;
  border-radius: 10px;
  border: 4px solid #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--blau);
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
}

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