/* Inter wird selbst gehostet (Subset Latin, deckt Deutsch ab) statt von Google-Servern
   geladen – beim Laden über Google ginge die IP jedes Besuchers an Google, was ohne
   Einwilligung als DSGVO-Verstoß gewertet wurde (LG München, 2022). Die SIL Open Font
   License erlaubt das Selbst-Hosten ausdrücklich. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-800.woff2") format("woff2");
}

:root {
  --white: #FFFFFF;
  --candon-blue: #1C5383;
  --chill-blue: #76B0E2;
  --frost-blue: #CBE1F4;
  --snack-yellow: #FFC928;

  /* Abgeleiteter Textton: Candon Blue mit ca. 15 % Weiß – nur für sekundären Text */
  --candon-blue-soft: #3d6f97;

  --text: var(--candon-blue);
  --bg: var(--white);
  --max-width: 1140px;

  --shadow: 0 20px 40px -20px rgba(28, 83, 131, 0.25);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--candon-blue);
  background: var(--frost-blue);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--candon-blue-soft);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--snack-yellow);
  color: var(--candon-blue);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px -10px rgba(255, 201, 40, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: var(--candon-blue);
  color: var(--candon-blue);
}

.btn-outline:hover {
  background: var(--candon-blue);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--candon-blue);
}

.btn-light:hover {
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.25);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 83, 131, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--candon-blue);
}

.brand img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--candon-blue);
  font-size: 0.98rem;
}

.main-nav a:hover {
  color: var(--chill-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--candon-blue);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--frost-blue) 0%, rgba(203, 225, 244, 0.35) 100%);
  padding: 72px 0 96px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--candon-blue-soft);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

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

.hero-visual .card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 320px;
}

/* Die Logo-SVGs sind mit width/height 100% exportiert und haben damit keine
   verlässliche Eigengröße – jede Einbindung setzt ihre Maße deshalb explizit. */
.hero-visual .card img {
  width: 100%;
  height: auto;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--frost-blue);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--frost-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--candon-blue);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

/* Runde Piktogramm-Flächen – gleiche Bildsprache wie die Visitenkarten-Rückseite.
   Die Piktogramme haben unterschiedliche Seitenverhältnisse, deshalb wird nicht die
   Größe, sondern eine gemeinsame Box vorgegeben, in die sie eingepasst werden. */
.leistung-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--candon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.leistung-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Schmale, hohe Piktogramme (Automat) füllen die quadratische Box kaum aus und wirken
   neben den breiteren dadurch zu klein. Etwas mehr Höhe stellt die optische Balance
   her, ohne das Seitenverhältnis anzutasten. */
.leistung-icon img.schmal {
  height: 32px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--candon-blue-soft);
  margin: 0;
}

/* Standorte / dark section */
.section-dark {
  background: var(--candon-blue);
  color: var(--white);
}

.section-dark .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.standorte .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.standorte p.lead {
  color: var(--frost-blue);
  font-size: 1.05rem;
  max-width: 480px;
}

.benefit-list {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}

.benefit-list .check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--snack-yellow);
  color: var(--candon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-list .check svg {
  width: 14px;
  height: 14px;
}

.standorte-visual {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.standorte-visual .stat {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--snack-yellow);
}

.standorte-visual .stat-label {
  color: var(--frost-blue);
  font-size: 0.95rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--frost-blue);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--candon-blue);
  transition: transform 0.15s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card .feature-icon {
  background: var(--white);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-card p {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.contact-cta {
  text-align: center;
  background: var(--frost-blue);
  border-radius: var(--radius);
  padding: 48px 32px;
}

.contact-cta h3 {
  font-size: 1.4rem;
}

/* Footer */
.site-footer {
  background: var(--candon-blue);
  color: var(--frost-blue);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-brand img {
  height: 34px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--frost-blue);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--frost-blue);
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--white);
}

.site-credit {
  color: var(--frost-blue);
  text-decoration: none;
}

.site-credit:hover {
  color: var(--white);
}

/* Legal pages */
.legal-page {
  padding: 64px 0 96px;
}

.legal-page h1 {
  font-size: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 32px;
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  text-decoration: none;
  color: var(--chill-blue);
}

.todo {
  background: var(--frost-blue);
  border-left: 4px solid var(--chill-blue);
  padding: 2px 12px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 860px) {
  section {
    padding: 64px 0;
  }

  .hero .container,
  .standorte .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(28, 83, 131, 0.1);
    display: none;
  }

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

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
