/* === Grundlayout und Farben === */

:root {
  --color-primary: #3D8CF2;
  --color-primary-dark: #2563a8;
  --color-accent: #F26624;
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: #f3f4f6;
}

/* === Container === */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* === Hero-Bereich (allgemein) === */

.hero {
  padding: 64px 16px 56px;
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 4px;
  background: #111827;
}

/* === Neues Hero-Banner Design === */

.hero-banner {
  background: #fff;
  padding: 0;
  margin: 0;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.hero h1 {
  margin: 8px 0 8px;
  font-size: 2.4rem;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  opacity: 0.9;
}

.hero .claim {
  margin-top: 4px;
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero-buttons {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Navigation === */

.nav {
  background: #003B6F;
  color: #e5e7eb;
}

.nav-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: none;
}

.nav-links a {
  margin-left: 16px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.92rem;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
}

/* === Buttons === */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #f59e0b;
  color: #111827;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: #d97706;
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(209, 213, 219, 0.7);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.4);
}

.hero.hero-with-avatar .btn-secondary {
  color: var(--color-primary-dark);
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero.hero-with-avatar .btn-secondary:hover {
  background: #fff;
}

/* === Überschriften / Text === */

h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

h2 + p {
  margin-top: 0;
  color: var(--color-muted);
}

/* === Values/Wofür wir stehen Section === */

.values {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.values h2 {
  font-size: 32px;
  margin-bottom: 35px;
  color: var(--color-accent);
  font-weight: 700;
}

.values > p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 35px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 60px;
}

.value-card {
  padding: 18px 0;
}

.value-card h3 {
  font-size: 20px;
  margin: 0 0 12px 0;
  font-weight: 700;
  color: var(--color-text);
}

.value-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
  opacity: 0.95;
  color: var(--color-text);
}

.section-text {
  max-width: 750px;
  line-height: 1.6;
  color: var(--color-text);
}

.location-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

/* === Content mit seitlicher Galerie === */

.content-with-gallery {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.content-with-gallery .section-text {
  flex: 1 1 0;
  min-width: 0;
}

.side-gallery {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-gallery a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: opacity 0.2s ease;
  height: 140px;
}

.side-gallery a:hover {
  opacity: 0.85;
}

.side-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* === Kartenlayout === */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 0;
  margin-bottom: 0;
}

.card-classic {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.card-classic h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.card-classic p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.card-classic a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #2563eb;
}

.card-classic a:hover {
  text-decoration: underline;
}

.card-classic .place-image {
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  float: left;
  margin-right: 16px;
}

/* === Themenseiten: Avatar links, Text rechts === */

.hero.hero-with-avatar {
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 48px 16px;
  background: #eef2ff;
  color: var(--color-text);
}

.hero-avatar {
  width: 320px;
  max-width: 40vw;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.hero.hero-with-avatar > div {
  max-width: 520px;
}

.hero .claim {
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* === Abschnittstitel Orange === */

.topic-title {
  color: var(--color-accent);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.topic-section {
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* === Footer === */

.footer {
  background: #0b1120;
  color: #9ca3af;
  padding: 28px 16px;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 12px;
}

.footer a:hover {
  text-decoration: underline;
}

/* === Responsive === */

@media (max-width: 1200px) {
  .hero-banner-top {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 16px;
  }

  .candidates-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {

  .hero-banner-top {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .logo-img {
    width: 90px;
  }

  .hero-banner-claim h1 {
    font-size: 1.2rem;
  }

  .hero-banner-cta-top p {
    font-size: 1rem;
  }

  .hero-banner-info {
    font-size: 0.75rem;
  }

  .hero-banner-desc {
    font-size: 0.75rem;
  }

  .hero-banner-candidates {
    padding: 16px 8px 20px;
  }

  .candidates-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .candidate-img {
    max-width: 90px;
  }

  .candidate-name {
    font-size: 0.65rem;
  }

  .hero.hero-with-avatar {
    flex-direction: column;
    text-align: center;
  }

  .hero-avatar {
    margin-bottom: 20px;
    width: 260px;
  }

  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .nav-links a {
    margin: 4px 12px 0 0;
  }

  .content-with-gallery {
    flex-direction: column;
  }

  .side-gallery {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .side-gallery a {
    width: 120px;
  }

}
