/* =====================================================
   Die Behandler — Website
   Design-Werte 1:1 aus Figma: diebehandler-programmierung
   ===================================================== */

/* Barlow lokal eingebunden (DSGVO — kein Laden von Google-Servern).
   Dateien: assets/fonts/, latin-Subset, WOFF2 */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/barlow-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/barlow-700.woff2') format('woff2');
}

:root {
  --blau: #1a73e8;
  --rose: #fde7e3;
  --hellblau: #eef9ff;
  --hellgruen: #e7f1d3;
  --text: #000000;
  --text-grau: rgba(0, 0, 0, 0.55);
  --border: rgba(0, 0, 0, 0.1);
  --feld: rgba(0, 0, 0, 0.05);
  --radius-karte: 16px;
  --radius-button: 12px;
  --schatten-karte: 0px 4px 8px 0px rgba(0, 0, 0, 0.02), 0px 6px 12px 0px rgba(0, 0, 0, 0.03);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--text);
  background: #ffffff;
}

img { display: block; }

section[id], footer[id] { scroll-margin-top: 120px; }
#praxis, #oeffnungszeiten, #team, #anfahrt, #kontakt, #leistungen { scroll-margin-top: 120px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-button);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.09px;
  line-height: 1.45;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--blau);
  color: #ffffff;
}
.btn-primary:hover { background: #1663c7; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--blau);
}
.btn-secondary:hover { border-color: #1663c7; background: rgba(26, 115, 232, 0.06); }

.btn-hero { width: 190px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 24px 40px;
  pointer-events: none;
}

.menu {
  pointer-events: auto;
  width: min(1200px, 100%);
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border-radius: 16px;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.15);
}

.company {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark { width: 50px; height: 30px; object-fit: contain; }
.logo-text { width: 160px; height: 30px; object-fit: contain; }

.menu-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-nav a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.08px;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.menu-nav a:hover { opacity: 0.65; }

.menu-nav a.btn-header {
  width: 135px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.08px;
  color: #ffffff;
}
.menu-nav a.btn-header:hover { opacity: 1; color: #ffffff; }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.hero-content {
  flex: 1 1 50%;
  min-width: 0;
  height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 120px 64px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.12px;
  line-height: 1.1;
}

.hero-sub {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.12px;
  line-height: 1.45;
  color: var(--text-grau);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-image {
  flex: 1 1 50%;
  min-width: 0;
  height: 720px;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Behandeln / Trainieren ---------- */

.praxis-section {
  background: var(--rose);
  padding: 112px 0;
}

.praxis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.praxis-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 587px;
}

.praxis-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-karte);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.praxis-card h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.48px;
  line-height: 1.2;
}

.praxis-card p {
  font-size: 18px;
  letter-spacing: -0.09px;
  line-height: 1.45;
  color: var(--text-grau);
}

.praxis-image {
  background: var(--hellblau);
  border-radius: var(--radius-karte);
  overflow: hidden;
  min-height: 587px;
}
.praxis-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Öffnungszeiten ---------- */

.oeffnungszeiten-section {
  padding: 80px 64px 30px;
  display: flex;
  justify-content: center;
}

.oz-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 800px;
  min-width: 640px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-karte);
  overflow: hidden;
}

.oz-image { flex: 1 0 0; min-width: 200px; }
.oz-image img { width: 100%; height: 100%; object-fit: cover; }

.oz-body {
  width: 540px;
  flex-shrink: 0;
  padding: 50px 24px 50px 34px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.oz-body h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.96px;
  line-height: 1.45;
}

.oz-intro, .oz-hinweis {
  font-size: 18px;
  letter-spacing: -0.09px;
  line-height: 1.45;
  color: var(--text-grau);
}

.oz-liste p {
  font-size: 18px;
  letter-spacing: -0.09px;
  line-height: 1.45;
}
.oz-day { font-weight: 400; }
.oz-time { font-weight: 700; }

/* ---------- Karten-Reihen (grün + Team) ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.feature-cards-section { padding: 60px 0; }

.green-card {
  background: var(--hellgruen);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-karte);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.card-image {
  height: 240px;
  overflow: hidden;
  background: #ffffff;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-image.pos-5 img { object-position: 50% 5%; }
.card-image.pos-8 img { object-position: 50% 8%; }
.card-image.pos-10 img { object-position: 50% 10%; }
.card-image.pos-15 img { object-position: 50% 15%; }
.card-image.pos-18 img { object-position: 50% 18%; }
.card-image.pos-25 img { object-position: 50% 25%; }
.card-image.pos-30 img { object-position: 50% 30%; }
.card-image.pos-32 img { object-position: 50% 32%; }
.card-image.pos-35 img { object-position: 50% 35%; }
.card-image.pos-40 img { object-position: 50% 40%; }
.card-image.contain img { object-fit: contain; }

.card-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* Grüne Karten: Inhalt oben ausrichten, damit die Titel aller drei Kästen auf einer Höhe sitzen */
.green-card .card-body { justify-content: flex-start; }

.card-body h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.48px;
  line-height: 1.2;
}

.card-body p {
  font-size: 18px;
  letter-spacing: -0.09px;
  line-height: 1.4;
  color: var(--text-grau);
}

/* ---------- Leistungen ---------- */

.leistungen-section { background: var(--hellblau); }

.leistung-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.leistung-row.row-first { padding-top: 120px; }
.leistung-row.row-last { padding-bottom: 120px; }

.leistung-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.leistung-text h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.72px;
  line-height: 1.2;
}

.leistung-text p {
  font-size: 18px;
  letter-spacing: -0.09px;
  line-height: 1.45;
  color: var(--text-grau);
}

.leistung-text p + p { margin-top: -4px; }

.kassen-satz { padding-top: 6px; }

.leistung-image {
  border-radius: var(--radius-karte);
  overflow: hidden;
}
.leistung-image img { width: 100%; height: 100%; object-fit: cover; }
.leistung-image.h-432 { height: 432px; }
.leistung-image.h-500 { height: 500px; }
.leistung-image.h-620 { height: 620px; }

/* ---------- Kontakt ---------- */

.kontakt-section { padding: 120px 0 80px; }

.kontakt-grid {
  display: grid;
  grid-template-columns: 552px 552px;
  gap: 48px;
  justify-content: center;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kontakt-info h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.96px;
  line-height: 1.2;
}

.kontakt-intro, .kontakt-adresse {
  font-size: 20px;
  letter-spacing: -0.1px;
  line-height: 1.45;
  color: var(--text-grau);
}

.kontakt-telefon {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1.45;
  color: var(--text);
}

.kontakt-image {
  height: 520px;
  border-radius: var(--radius-karte);
  overflow: hidden;
}
.kontakt-image img { width: 100%; height: 100%; object-fit: cover; }

/* Formular */

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.kontakt-form label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.09px;
  line-height: 1.45;
  color: var(--text-grau);
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  height: 60px;
  background: var(--feld);
  border: 2px solid transparent;
  border-radius: var(--radius-karte);
  padding: 0 20px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.kontakt-form textarea {
  height: 140px;
  padding: 16px 20px;
  resize: none;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--blau);
  background: #ffffff;
}

.upload-desc {
  display: block;
  font-weight: 400;
}

.upload-box {
  width: 100%;
  height: 120px;
  background: var(--feld);
  border-radius: var(--radius-karte);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.upload-box:hover { background: rgba(0, 0, 0, 0.08); }

.upload-icon { width: 30px; height: 30px; }

.upload-box p {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.065px;
  line-height: 1.45;
  color: var(--text-grau);
}

.upload-link { text-decoration: underline; }

.datenschutz-hinweis {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.065px;
  line-height: 1.45;
  color: var(--text-grau);
}
.datenschutz-hinweis a { color: inherit; }

/* ---------- Großes Praxisbild ---------- */

.praxisbild-section { padding: 60px 0 40px; }

.praxisbild {
  aspect-ratio: 1152 / 648;
  border-radius: var(--radius-karte);
  overflow: hidden;
}
.praxisbild img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team ---------- */

.team-row-first { padding-top: 100px; padding-bottom: 20px; }
.team-row { padding-top: 20px; padding-bottom: 20px; }
.team-row-last { padding-top: 20px; padding-bottom: 100px; }

.team-intro {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.team-intro h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.96px;
  line-height: 1.45;
}

.team-intro p {
  font-size: 18px;
  letter-spacing: -0.09px;
  line-height: 1.45;
  color: var(--text-grau);
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-karte);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card .card-body { flex: 0 0 auto; justify-content: flex-start; }

.team-card h3 { line-height: 1.45; }

/* Team-Fotos: etwas höherer Bildbereich, damit auch eng
   fotografierte Porträts komplett ins Bild passen (28.09.) */
.team-grid .team-card .card-image { height: 280px; }

/* ---------- Anfahrt ---------- */

.anfahrt-grid {
  display: grid;
  grid-template-columns: 1fr 756px;
  gap: 64px;
  align-items: center;
}

.anfahrt-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
}

.anfahrt-text h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.96px;
  line-height: 1.2;
  max-width: 340px;
}

.anfahrt-text p {
  font-size: 18px;
  letter-spacing: -0.09px;
  line-height: 1.45;
  color: var(--text-grau);
}

.anfahrt-text .btn { margin-top: 24px; font-weight: 600; }

.anfahrt-map {
  display: block;
  padding: 80px 0;
}

.karten-vorschau {
  position: relative;
  border-radius: var(--radius-karte);
  overflow: hidden;
}
.karten-vorschau img {
  width: 100%;
  height: auto;
  display: block;
}

.karten-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.karten-overlay p {
  font-size: 14px;
  letter-spacing: -0.07px;
  line-height: 1.5;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  border-radius: 10px;
  max-width: 440px;
}
.karten-overlay a { color: var(--blau); }

.karten-iframe {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
  border-radius: var(--radius-karte);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-company {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-size: 16px;
  letter-spacing: -0.08px;
  line-height: 1.45;
  color: var(--text-grau);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--text); }

.footer-social { display: block; width: 24px; height: 24px; }
.footer-social img { width: 100%; height: 100%; }

/* ---------- Demo-Toast ---------- */

.demo-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(17, 17, 17, 0.92);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
  max-width: 80vw;
  text-align: center;
}

.demo-toast.sichtbar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   Rechtstexte (Impressum / Datenschutz)
   ===================================================== */

.rechtstext-section {
  padding: 180px 0 100px;
}

.rechtstext {
  max-width: 800px;
}

.rechtstext h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.96px;
  line-height: 1.2;
  margin-bottom: 40px;
}

.rechtstext h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.56px;
  line-height: 1.25;
  margin: 48px 0 16px;
}

.rechtstext h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 32px 0 12px;
}

.rechtstext p,
.rechtstext li {
  font-size: 17px;
  letter-spacing: -0.08px;
  line-height: 1.55;
  color: var(--text-grau);
  margin-bottom: 14px;
}

.rechtstext ul { padding-left: 22px; margin-bottom: 14px; }
.rechtstext li { margin-bottom: 6px; }

.rechtstext a { color: var(--blau); word-break: break-all; }

.rechtstext .adresse {
  color: var(--text);
  line-height: 1.6;
}

mark.platzhalter {
  background: #ffe58a;
  padding: 1px 6px;
  border-radius: 4px;
  color: #4a3b00;
}

@media (max-width: 940px) {
  .rechtstext-section { padding: 140px 0 64px; }
  .rechtstext h1 { font-size: 36px; }
  .rechtstext h2 { font-size: 24px; }
}

/* =====================================================
   Responsive
   Desktop (ab 1280px) bleibt unverändert designgetreu.
   ===================================================== */

/* Burger-Button (nur mobil sichtbar) */
.menu-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 39px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu.open .menu-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu.open .menu-burger span:nth-child(2) { opacity: 0; }
.menu.open .menu-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Breite Tablets / kleine Desktops --- */
@media (max-width: 1240px) {
  .kontakt-grid {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
    gap: 40px;
  }
  .anfahrt-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .anfahrt-text h2 { max-width: none; }
  .anfahrt-map { padding: 8px 0 48px; }
}

/* --- Tablet --- */
@media (max-width: 1000px) {
  .container { padding-left: 40px; padding-right: 40px; }

  .hero { flex-direction: column; }
  .hero-content { height: auto; padding: 150px 40px 56px; }
  .hero-image { flex: none; width: 100%; height: 420px; }
  .hero h1 { font-size: 46px; letter-spacing: -0.9px; }

  .praxis-section { padding: 72px 0; }
  .praxis-grid { grid-template-columns: minmax(0, 1fr); }
  .praxis-column { min-height: 0; }
  .praxis-image { min-height: 0; height: 380px; }

  .cards-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

  .leistung-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .leistung-row .leistung-text { order: -1; }
  .leistung-row.row-first { padding-top: 72px; }
  .leistung-row.row-last { padding-bottom: 72px; }
  .leistung-image.h-432, .leistung-image.h-500, .leistung-image.h-620 { height: 380px; }

  .kontakt-section { padding: 72px 0 56px; }
  .team-row-first { padding-top: 64px; }
  .team-row-last { padding-bottom: 64px; }
}

/* --- Menü klappt zum Burger --- */
@media (max-width: 940px) {
  .site-header { padding: 12px 16px; }
  .menu-burger { display: flex; }
  .menu-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 12px;
  }
  .menu.open .menu-nav { display: flex; }
  .menu-nav a { padding: 10px 8px; }
  .menu-nav a.btn-header { width: 100%; margin-top: 6px; padding: 10px 12px; }
}

/* --- Öffnungszeiten-Karte stapelt --- */
@media (max-width: 820px) {
  .oeffnungszeiten-section { padding: 56px 24px 16px; }
  .oz-card { flex-direction: column; min-width: 0; }
  .oz-image { min-width: 0; flex: none; height: 220px; }
  .oz-body { width: 100%; padding: 32px 24px; gap: 20px; }
  .oz-body h2 { font-size: 34px; line-height: 1.2; }
}

/* --- Mobil --- */
@media (max-width: 760px) {
  .container { padding-left: 24px; padding-right: 24px; }

  .hero-content { padding: 130px 24px 40px; gap: 24px; }
  .hero h1 { font-size: 38px; letter-spacing: -0.6px; }
  .hero-sub { font-size: 20px; }
  .hero-image { height: 300px; }

  .praxis-section { padding: 56px 0; }
  .praxis-card { padding: 24px; }
  .praxis-image { height: 300px; }

  .feature-cards-section { padding: 40px 0; }
  .green-card { min-height: 0; }

  .leistung-text h2 { font-size: 28px; }
  .leistung-image.h-432, .leistung-image.h-500, .leistung-image.h-620 { height: 300px; }
  .leistung-row.row-first { padding-top: 56px; }
  .leistung-row.row-last { padding-bottom: 56px; }

  .kontakt-section { padding: 56px 0 40px; }
  .kontakt-info h2 { font-size: 34px; }
  .kontakt-intro, .kontakt-adresse { font-size: 18px; }
  .kontakt-telefon { font-size: 18px; }
  .kontakt-image { height: 320px; }

  .praxisbild-section { padding: 40px 0 24px; }

  .team-row-first { padding-top: 48px; }
  .team-row-last { padding-bottom: 48px; }
  .team-intro { padding: 8px 0 16px; }
  .team-intro h2 { font-size: 36px; line-height: 1.2; }

  .anfahrt-text h2 { font-size: 32px; }
  .anfahrt-map { padding: 0 0 40px; }
  .karten-iframe { height: 380px; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 24px;
  }
  .footer-left { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =====================================================
   Team: Desktop 3 pro Reihe (wie Original) —
   nur am Handy 2 nebeneinander (kompakt)
   ===================================================== */

.team-grid {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 1000px) {
  .team-grid { padding-top: 64px; padding-bottom: 64px; }
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .team-grid .team-intro { grid-column: 1 / -1; padding: 8px 0 12px; }
  .team-grid .team-card .card-image { height: 150px; }
  .team-grid .team-card .card-body { padding: 14px; gap: 4px; }
  .team-grid .team-card h3 { font-size: 17px; letter-spacing: -0.2px; }
  .team-grid .team-card .card-body p { font-size: 14px; line-height: 1.35; }
}

/* ---------- Kontaktformular (echter Versand) ---------- */

/* Honeypot: für Menschen unsichtbar, für Spam-Bots ein normales Feld */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.datei-input { display: none; }

.upload-box.drag {
  background: rgba(26, 115, 232, 0.08);
  outline: 2px dashed var(--blau);
  outline-offset: -8px;
}

.upload-limit {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-grau);
  margin-top: -8px;
}

.datei-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.datei-liste:empty { display: none; }

.datei-liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--feld);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

.datei-liste .datei-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.datei-liste .datei-groesse {
  color: var(--text-grau);
  font-size: 13px;
  flex-shrink: 0;
}

.datei-liste .datei-entfernen {
  flex-shrink: 0;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.datei-liste .datei-entfernen:hover { background: #c0392b; color: #fff; }

.datenschutz-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.datenschutz-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--blau);
  cursor: pointer;
}

.datenschutz-check input[type="checkbox"].feld-fehler {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
  border-radius: 3px;
}

.kontakt-form .feld-fehler {
  border-color: #c0392b;
}

.form-status {
  display: none;
  width: 100%;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.45;
}
.form-status.fehler {
  display: block;
  background: #fdeaea;
  border: 1px solid #f0b9b9;
  color: #a33;
}

.form-erfolg {
  width: 100%;
  background: #e6f6e6;
  border: 1px solid #b5e0b5;
  border-radius: var(--radius-karte);
  padding: 28px 26px;
  font-size: 16px;
  line-height: 1.5;
}
.form-erfolg strong { font-size: 19px; }
.form-erfolg p { margin: 8px 0 0; color: var(--text-grau); }

/* ---------- Einwilligungs-Banner (Cookie-Banner) ---------- */

.consent-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 5000;
  width: min(460px, calc(100vw - 40px));
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-karte);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 22px 22px 18px;
  font-family: 'Barlow', sans-serif;
  animation: consent-rein 0.3s ease;
}
.consent-banner.zu { opacity: 0; transform: translateY(12px); transition: 0.25s ease; }

@keyframes consent-rein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.consent-titel {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.consent-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-grau);
  margin: 0 0 12px;
}
.consent-text a { color: var(--blau); }

.consent-kategorien {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  background: var(--feld);
  border-radius: 10px;
}
.consent-kategorien.offen { display: flex; }

.consent-kat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-grau);
  cursor: pointer;
}
.consent-kat strong { color: var(--text); font-size: 13px; }
.consent-kat input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--blau);
}

.consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.consent-btn {
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  font: 600 14px 'Barlow', sans-serif;
  cursor: pointer;
  color: #ffffff;
}
.consent-alle { background: var(--blau); }
.consent-alle:hover { background: #1663c7; }
.consent-notwendig { background: #3a3a3a; }
.consent-notwendig:hover { background: #2a2a2a; }
.consent-auswahl { background: #1e8e3e; }
.consent-auswahl:hover { background: #187433; }

.consent-mehr {
  background: none;
  border: none;
  padding: 10px 6px;
  font: 600 13.5px 'Barlow', sans-serif;
  color: var(--text-grau);
  text-decoration: underline;
  cursor: pointer;
}
.consent-mehr:hover { color: var(--text); }

.verborgen { display: none !important; }

.footer-consent {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.footer-consent:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .consent-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 16px 14px; }
  .consent-buttons .consent-btn { flex: 1 1 auto; text-align: center; }
}
