/* ============================================================
   knuth-rueffer.de — Hauptstylesheet
   Primärfarbe:   Cadenabbia-Türkis (#52B7C1)
   Sekundärfarbe: Rhöndorf-Blau     (#2d3c4b)
   Akzentfarbe:   Union-Gold        (#ffa600)
   ============================================================ */

:root {
  /* ── Primär: Cadenabbia-Türkis ── */
  --teal:       #52b7c1;
  --teal-dark:  #3a9aa4;   /* Hover / aktive Zustände    */
  --teal-deep:  #2a7f88;   /* Sehr dunkles Teal (Footer) */
  --teal-80:    #74c5ce;
  --teal-60:    #96d3da;
  --teal-20:    #d8f0f2;
  --teal-10:    #edf9fa;

  /* ── Sekundär: Rhöndorf-Blau ── */
  --blue:       #2d3c4b;
  --blue-80:    #4a5f72;
  --blue-60:    #677e93;
  --blue-20:    #d5dde3;
  --blue-10:    #eaeff2;

  /* ── Akzent: Union-Gold ── */
  --gold:       #ffa600;
  --gold-80:    #ffba40;
  --gold-20:    #fff0cc;

  /* ── Neutral ── */
  --white:      #ffffff;
  --text-dark:  #2d3c4b;
  --text-light: #ffffff;

  /* ── Design-Token ── */
  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(82, 183, 193, 0.15);
  --shadow-lg:  0 6px 32px rgba(82, 183, 193, 0.25);
  --transition: 0.2s ease;

  --font-body:  'Inter', 'Segoe UI', Arial, sans-serif;
  --font-head:  'Inter', 'Segoe UI', Arial, sans-serif;
  --max-w:      1100px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue);
  letter-spacing: -0.02em;
}

/* ---- Wahlkampf-Banner (ganz oben) ---- */
.campaign-banner {
  background: var(--gold);
  color: var(--blue);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ---- Hauptnavigation ── jetzt in Teal ---- */
.site-header {
  background: var(--teal);
  position: sticky;
  top: 44px;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(82, 183, 193, 0.3);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  display: block;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--teal-dark);
  color: var(--white);
}

.nav-cdu a {
  background: var(--gold-20);
  color: var(--blue) !important;
}
.nav-cdu a:hover {
  background: var(--gold) !important;
  color: var(--blue) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Hero / Startseite ── Teal-dominant ---- */
.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, var(--blue) 100%);
  color: var(--white);
  padding: 72px 24px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}

.hero-photo { position: relative; }

.hero-photo img {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--gold);
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--blue);
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 8px;
}

.hero-text .subtitle {
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-80);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 166, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  margin-left: 12px;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--teal);
}

/* ---- Sektion allgemein ---- */
.section { padding: 72px 24px; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--blue);
  margin-bottom: 16px;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 40px;
}

/* ---- Aktuelles-Cards ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--teal-20);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-60);
}

.news-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--teal-10), var(--teal-20));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 3rem;
}

.news-card-body { padding: 24px; }

.news-tag {
  display: inline-block;
  background: var(--teal-20);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--blue);
}

.news-card-body p {
  font-size: 0.9rem;
  color: var(--blue-60);
  margin-bottom: 16px;
}

.news-card-body .date {
  font-size: 0.8rem;
  color: var(--blue-60);
  font-style: italic;
}

.read-more {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.read-more:hover { color: var(--blue); }
.read-more::after { content: ' →'; }

/* ---- Themen-Chips (Wofür ich stehe) ---- */
.themes-section { background: var(--teal-10); }

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.theme-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border-left: 5px solid var(--teal);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition);
}

.theme-card:hover {
  border-left-color: var(--gold);
  transform: translateY(-3px);
}

.theme-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.theme-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.theme-card p {
  font-size: 0.9rem;
  color: var(--blue-60);
}

/* ---- CTA-Band ── Teal zu Blau ---- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--teal-20);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ---- Unterseite: Page Hero ── Teal-dominant ---- */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 60%, var(--blue) 100%);
  color: var(--white);
  padding: 60px 24px 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Content-Prose (Unterseiten) ---- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--teal);
  display: inline-block;
}

.prose p { margin-bottom: 16px; color: var(--blue-80); }

.prose ul { margin: 0 0 20px 24px; }
.prose ul li { margin-bottom: 8px; color: var(--blue-80); }
.prose ul li::marker { color: var(--teal); }

/* ---- Positions-Liste ---- */
.position-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.position-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--teal-20);
}

.position-list .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---- Social Media Icons ---- */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--gold);
  color: var(--blue);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Social Bar im Hero */
.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-social .social-link {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.hero-social .social-link:hover {
  background: var(--gold);
  color: var(--blue);
  border-color: var(--gold);
}

.hero-social .social-link svg { width: 20px; height: 20px; }

/* ---- Footer ── Teal-Deep als Hintergrund ---- */
.site-footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.8;
  display: block;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-photo {
    display: flex;
    justify-content: center;
  }

  .hero-photo img { max-width: 260px; }

  .hero-text p { margin: 0 auto 32px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .campaign-banner { font-size: 0.78rem; padding: 8px 12px; }

  .site-header { top: 40px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--teal);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }

  .hamburger { display: flex; }

  .section { padding: 48px 16px; }

  .hero { padding: 48px 16px; }

  .footer-inner { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .btn-outline { margin-left: 0; margin-top: 12px; }

  .hero-text .btns { display: flex; flex-direction: column; align-items: center; }

  .position-list { grid-template-columns: 1fr; }
}
