/* -------------------------------------------------- */
/* Local Inter Font – DSGVO-konform, no Google calls   */
/* -------------------------------------------------- */

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

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

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

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

:root {
  /* Brand Colors (angepasst an Logo) */
  --primary: #2D6C79;       /* Logo dunkel (Petrol) */
  --primary-dark: #254F57;  /* dunklere Variante für Hover */
  --primary-light: #4B8790; /* hellere Variante falls benötigt */
  --accent: #6BAFB3;        /* Logo hell (Türkis) */
  --accent-soft: #DCEEEF;   /* sehr helles Türkis für Flächen */
  --accent-strong: #4aa8b3; /* kräftiger Akzent für wichtige Flächen */
  --secondary: #6BAFB3;     /* zweiter Akzent */

  /* Text */
  --text: #1E2A2D;          /* ruhiger, weniger blau */
  --text-muted: #8A8A8B;    /* Logo Grau als muted */
  --muted: #8A8A8B;

  /* Backgrounds */
  --bg: #F8FBFB;            /* Off‑White mit leichtem Türkis */
  --bg-light: #F1F6F6;      /* leicht getönt für Flächen */
  --section-bg-1: #FFFFFF; /* Grundfläche für Sektionen */
  --section-bg-2: #F3F7F7; /* alternierende Sektionsfarbe */

  /* Borders */
  --border: #E3E8E8;

  /* Status Colors */
  --info-bg: #FFF4CC;
  --warning-text: #AD7A00;

  /* Misc */
  --radius: 0.9rem;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --scroll-offset: 6rem;  /* Offset für Anker-Sprünge (berücksichtigt Höhe des Headers) */
}

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

html,
body {
  margin: 0;
  padding: 0;
}

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

/* Globale Link-Regeln */
a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--primary-light);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Globale Absatzregeln */
p {
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
  max-width: 65ch;
}

/* Layout-Helfer */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.section > .container > h1,
.section > .container > h2 {
  margin-bottom: 1.2rem;
}

.section {
  padding-top: 2rem;
  background: var(--section-bg-1);
}

.section:nth-of-type(even) {
  background: var(--section-bg-2);
}

/* Header & Navigation (mobile first) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #e2e5ec;
  padding-block: 0.35rem; /* leicht mehr Platz oben/unten, damit das große Logo nicht abschneidet */
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-inline: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
}

/* Link + Bild */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* Große Standardgröße (mind. doppelt so groß wie vorher) */
.logo-image {
  height: 100px;       /* Desktop-Standard: groß */
  width: auto;
  max-width: 480px;    /* verhindert Überdehnung */
  display: block;
  object-fit: contain;
}

/* Breakpoints: skaliert das Logo sauber herunter */
@media (max-width: 1024px) {
  .logo-image { height: 120px; }
}

@media (max-width: 768px) {
  .logo-image { height: 96px; }
  .header-inner { padding-inline: 1rem; }
}

@media (max-width: 480px) {
  .logo-image { height: 72px; } /* Smartphone: noch groß, aber passend */
  .header-inner { padding-inline: 0.75rem; gap: 0.5rem; }
}

/* Screenreader-only text */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 1.1rem;
}

.logo-sub {
  font-weight: 600;
  font-size: 0.9em;
  color: var(--muted);
}

.nav-toggle {
  border: none;
  background: transparent;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.4rem;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e5ec;
  padding: 0.5rem 1.25rem 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

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

/* Nav sichtbar, wenn Burger aktiv */

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

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--accent-soft), #ffffff);
  color: var(--text); /* statt weiß */
}

.hero-grid {
  padding: 2.5rem 0;
}

.hero .container {
  padding-inline: 1.75rem;
}

.hero-main {
  max-width: 38rem;
}

/* Kleine Infobadges unter den Buttons */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;          /* mehr Abstand zu den Buttons */
  font-size: 0.8rem;
}

.hero-badge {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--primary);
}

/* Lead-Text im Hero minimal größer und besser lesbar */
.hero .lead {
  font-size: 1rem;
  max-width: 38rem;
}

/* Hero: Zweiter Button (Sprechstunden) besser sichtbar machen */
.hero .hero-actions {
  margin-top: 1.5rem;
  gap: 0.75rem;
}

.hero .button.ghost {
  background: transparent;
  color: var(--primary);                 /* statt weiß */
  border-color: rgba(45, 108, 121, 0.35);
  box-shadow: none;
}

.hero .button.ghost:hover {
  background: #ffffff;                   /* weißer Hover */
  box-shadow: var(--shadow-soft);        /* leicht angehoben */
  transform: translateY(-1px);
}

.eyebrow {
  font-size: 0.875rem;           /* 14px */
  font-weight: 600;              /* Semi-Bold */
  letter-spacing: 0.05em;        /* Leicht erhöhter Buchstabenabstand */
  text-transform: uppercase;     /* Großbuchstaben */
  color: var(--primary);         /* Primärfarbe */
  margin: 0 0 0.5rem 0;          /* Abstand nach unten */
  display: block;
}

/* Lead-Text im Hero etwas dezenter, aber gut lesbar */
.hero .lead {
  color: var(--text-muted);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.button.primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.button.primary:hover {
  background: #f3f4ff;
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  border-color: #e5e7eb;
  color: #ffffff;
}

.button.ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Tastatur-/Screenreader-Fokus sichtbar machen */
.button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Allgemeine Section-Styles */

.section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

/* ÜBERSCHRIFTEN — EINHEITLICH & MODERN */

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-top: 0;          /* oben kein langsamer Start */
}

/* Seitentitel */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Karten-Titel & Abschnittsüberschriften */
h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

/* Unter-Überschriften */
h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

/* Moderne Linie unter h1 */
h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin-top: 0.5rem;
}

.info-banner {
  background: var(--accent-strong);
  border: 1px solid rgba(45, 108, 121, 0.25);
  box-shadow: 0 16px 36px rgba(45, 108, 121, 0.16);
}

/* Tabelle Sprechzeiten – mobil scroll-freundlich */

.table-wrapper {
  width: 100%;
  max-width: 650px;
  margin-top: 1.25rem;
  border-radius: 0.9rem;
  overflow: hidden;                /* damit die Rundung greift */
  box-shadow: var(--shadow-soft);  /* gleiche Schatten wie bei .card */
  background: #ffffff;
}

.sprechzeiten {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sprechzeiten th,
.sprechzeiten td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

/* Wochentage optisch hervorheben */
.sprechzeiten th {
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  background: #f9fafb;
}

/* Zebra-Streifen für bessere Lesbarkeit */
.sprechzeiten tr:nth-child(even) td {
  background: #f7f9fc;
}

/* letzte Zeile ohne untere Linie */
.sprechzeiten tr:last-child th,
.sprechzeiten tr:last-child td {
  border-bottom: none;
}

.sprechzeiten + .barrierefrei-hinweis,
.table-wrapper + p {
  margin-top: 1rem;
}

.hint {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Notfall-Karten (grid) */

.notfall-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

/* Allgemeines Karten-Grid für Unterseiten (Leistungen, Team, Kontakt, etc.) */
.card-grid {
  display: grid;
  gap: 1.6rem;        /* Abstand zwischen den Boxen */
  margin-top: 1.5rem; /* Abstand nach Überschrift/Text */
}

.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Team-Bereiche */

.team-section {
  margin-top: 2rem;
}

.team-section h2 {
  margin-bottom: 1rem;
}

.team-grid {
  gap: 1.5rem;
}

/* einzelne Teamkarten mit "Foto" + Text nebeneinander */
.team-member-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Platzhalter-Foto (Initialen) */
.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.team-photo-img {
  width: 100px;
  height: 100px;
  border-radius: 999px;      /* rund */
  object-fit: cover;        /* Foto automatisch zentrieren + zuschneiden */
  object-position: center;  /* Fokus in die Mitte */
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

/* Textbereich neben dem Bild */
.team-text h3 {
  margin: 0;
  font-size: 1.05rem;
}

.team-role {
  margin-top: 0.25rem;
  margin-bottom: 0;
  color: var(--muted);
}

/* Beschreibungstext für Teammitglieder */
.team-bio {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #6b7280; /* deutlich heller als var(--muted) */
  max-width: 60ch;
}

/* Auf schmalen Bildschirmen Bild über dem Text zentrieren */
@media (max-width: 480px) {
  .team-member-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-image { height: 40px; }
}

/* Footer */

.site-footer {
  border-top: 1px solid #e2e5ec;
  background: #ffffff;
  padding: 1rem 0;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--primary);
}

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

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Kontakt-Grid */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

/* Boxen im Kontaktbereich */
.contact-box {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.25rem;
}

.contact-box h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

/* Kartenplatzhalter */
.map-placeholder {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 0.8rem;
  text-align: center;
}

#map-container {
  width: 100%;
  height: 340px;
  margin-top: 1rem;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hidden {
  display: none;
}

/* 🧱 Breakpoint: ab Tablet / mittlere Monitore */

@media (min-width: 768px) {
  .header-inner {
    padding-inline: 1.75rem;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    border-bottom: none;
    padding: 0;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 2rem;
    padding: 3rem 0 3.5rem;
  }

  .hero .container {
    padding-inline: 1.25rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.9rem;  /* auf größeren Screens noch etwas mehr Luft */
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;          /* etwas mehr Luft */
  }
}

/* 🖥️ Breakpoint: große Monitore */

@media (min-width: 1024px) {
  .hero-grid {
    padding: 3.5rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .notfall-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-grid {
    gap: 2rem;             /* großzügiger Abstand */
  }

  /* LEISTUNGEN → 3 Spalten auf großen Displays */
  #leistungen-page .card-grid,
  #leistungen .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* TEAM / KONTAKT → 2 Spalten */
  #team-page .card-grid,
  #kontakt-page .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Allgemeines Karten-Grid für Unterseiten (Leistungen, Team, Kontakt) */
.card-grid {
  display: grid;
  gap: 1.5rem;              /* Abstand zwischen den Karten */
  margin-top: 1.5rem;
}

/* --- HZV Banner -------------------------------------------------- */

.hzv-banner {
  margin-block: 0;     /* entfernt Außenabstand, damit kein Untergrund durchscheint */
  padding-block: 2rem; /* Innenabstand oben/unten */
  border-radius: 1rem; /* gewünschte Rundung beibehalten */
  overflow: visible;
}

.hzv-banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.hzv-text {
  max-width: 40rem;
}

.hzv-banner h2 {
  margin-bottom: 1rem;
}

.hzv-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.hzv-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.hzv-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}

.hzv-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: #4f6dfb;
}

.hzv-actions {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.hzv-note {
  font-size: 0.9rem;
  color: #555;
}

/* rechte Seite: Kreisgrafik */
.hzv-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hzv-circle {
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hzv-circle-outer {
  background: #cfe8ea; /* helles Petrol für Kontrast zur Seitenfläche */
  padding: 2.5rem;
  max-width: 260px;
  width: 100%;
  aspect-ratio: 1 / 1;
  box-shadow: 0 14px 30px rgba(45, 108, 121, 0.18);
}

.hzv-circle-inner {
  background: #244f59; /* sattes Petrol aus dem Brand-Spektrum */
  color: #fff;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.35rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.hzv-circle-main {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.hzv-circle-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.9;
}

/* Responsiv */
@media (max-width: 900px) {
  .hzv-banner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hzv-visual {
    order: -1;
  }

  .hzv-banner {
    border-radius: 0.75rem;
  }
}

.anfahrt-image {
  max-width: 100%;  /* Bild passt sich der Breite des Containers an */
  height: auto;      /* Höhe wird proportional angepasst */
  margin-top: 1rem;  /* Abstand zum oberen Inhalt */
}

/* Hero-Image Container */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero-Bild */
.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* Auf großen Bildschirmen: Bild neben dem Text */
@media (min-width: 768px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
  }

  .hero-img {
    max-width: 100%;
    height: auto;
  }
}

/* Auf kleinen Bildschirmen: Bild unter dem Text */
@media (max-width: 767px) {
  .hero-grid {
    display: block;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .hero-img {
    max-width: 100%;
    height: auto;
  }
}

/* Optional: alle Sektionen gleich behandeln */
.section {
  scroll-margin-top: var(--scroll-offset);
}

/* Listen in .card: kein zusätzlicher Einzug */
.card ul {
  margin: 0.5rem 0 0 0;    /* Abstand über Liste */
  padding-left: 1rem;      /* Einzug für Aufzählungszeichen */
  list-style-position: outside;
}
/* Wenn du Bullet-Position noch weiter nach links willst: */
/* .card ul { padding-left: 0.5rem; } */
