/* ============================
   Apple-inspirierter Stil
   Akzent: SPD-Rot
   ============================ */

:root {
  --accent: #e3000f;                 /* SPD Rot */
  --accent-hover: #ff4b5e;           /* Hover/Highlight */
  --text-main: #111111;
  --text-muted: #6e6e73;
  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-soft: #f5f5f7;
  --border-soft: rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --transition: 0.18s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
}

/* ============================
   Kopfzeile / Navigation
   ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(245, 245, 247, 0.90);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}

/* Brand links: SPD Logo + Name */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-title {
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.main-nav a {
  text-decoration: none;
  color: #1d1d1f;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.main-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Tastatur-Fokus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(227, 0, 15, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ============================
   Hauptbereich
   ============================ */

.page-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ============================
   Hero-Bereich
   ============================ */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 2.5rem;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  flex: 1 1 280px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn-primary,
.btn-ghost,
.news-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--transition),
    color var(--transition),
    transform 0.1s ease,
    box-shadow var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(227, 0, 15, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(227, 0, 15, 0.45);
}

.btn-ghost {
  background: var(--bg-page);
  color: #1d1d1f;
  border-color: #d2d2d7;
}

.btn-ghost:hover {
  background: #e5e5ea;
}

/* News-Link im Akzentrot */
.news-link {
  font-size: 0.85rem;
  padding: 0;
  border-radius: 0;
  border: none;
  color: var(--accent);
}

.news-link:hover {
  text-decoration: underline;
  background: none;
}

/* Profilbild */

.hero-photo {
  flex: 0 1 260px;
  display: flex;
  justify-content: center;
}

.profile-frame {
  width: 220px;
  height: 220px;
  border-radius: 38px;
  padding: 6px;
  background: linear-gradient(135deg, #ffffff, rgba(227, 0, 15, 0.30));
  box-shadow:
    var(--shadow-strong),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
}

/* ============================
   Sektionen
   ============================ */

.section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.section-background {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header.small h2 {
  margin-bottom: 0.25rem;
}

.section-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================
   Karten & Layouts
   ============================ */

.columns-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.card-soft {
  background: radial-gradient(circle at 0 0, #ffffff, var(--bg-soft));
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.card p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-main);
}

/* Optional: Zitat in Motivation */
.quote {
  display: block;
  margin-top: 0.75rem;
  font-weight: 650;
}

/* ============================
   Bullet-List
   ============================ */

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
}

.bullet-list li {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-main);
}

.bullet-list li::marker {
  color: var(--accent);
}

/* ============================
   Biografie-Grid
   ============================ */

.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

/* ============================
   Leitsätze / Programm-Punkte (9 Punkte)
   ============================ */

.programme-block {
  margin-top: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

/* kleine rote Linie unter Überschrift in Programm-Karten */
.programme-block .card h3 {
  position: relative;
  padding-bottom: 0.35rem;
}

.programme-block .card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

/* ============================
   News-Übersicht
   ============================ */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.news-card img {
  width: 160px;
  height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.news-date {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 550;
}

.news-content h3 {
  margin: 0;
  font-size: 1rem;
}

.news-content p {
  margin: 0.25rem 0 0.3rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

/* ============================
   Wahlprogramm / Bausteine
   ============================ */

.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.programme-card h3 {
  margin-bottom: 0.6rem;
}

/* Wahlprogramm-Download */
.programme-download {
  display: flex;
  justify-content: center;
}

.download-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================
   News-Detail
   ============================ */

.section-news-detail {
  margin-top: 2.5rem;
}

.news-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.news-detail-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.news-detail-content h1 {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.news-lead {
  font-size: 1rem;
  font-weight: 550;
}

.news-detail-content p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================
   Footer
   ============================ */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.5rem 0 2rem;
  margin-top: 2.5rem;
  background: var(--bg-page);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.dot-separator {
  opacity: 0.6;
}

/* ============================
   Responsive Anpassungen
   ============================ */

@media (max-width: 900px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 0.9rem;
  }
}

@media (max-width: 800px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    height: 36px;
    padding: 5px;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-content {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .hero-photo {
    justify-content: flex-start;
  }

  .news-card {
    flex-direction: column;
  }

  .news-card img {
    width: 100%;
    height: 180px;
  }

  .news-detail-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
