/* ==========================================================================
   Logopädische Praxis B. Szczepanski – Nachbau logo-homburg.de
   Maße/Farben aus dem Original vermessen (Viewport 1920px)
   ========================================================================== */

:root {
  --green-heading: #4BA947;      /* rgb(75,169,71) – Überschriften, aktive Links */
  --green-brand: #47AB42;        /* rgb(71,171,66) – Logo-Schriftzug */
  --green-band: #28A745;         /* rgb(40,167,69) – grüne Sektionen, Kontakt-H2 */
  --green-overlay: rgba(71, 171, 66, 0.75); /* Slider-Textbox */
  --card-bg: #D9E6BF;            /* rgb(217,230,191) – Kontakt-Karten */
  --pink: #F0506E;               /* rgb(240,80,110) – Umzugs-Hinweis */
  --pink-bg: #FEF4F6;
  --pink-border: #F5C6CB;
  --heading: #404040;
  --text: #666666;
  --font: 'Quicksand', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: var(--text);
  background: #fff;
  border-top: 5px solid var(--green-band);
}

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

a { color: var(--green-heading); text-decoration: none; transition: color .2s ease; }
a:hover { color: #3a8a37; }

h1, h2, h3, h4 { font-weight: 300; color: var(--heading); line-height: 1.2; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.container-wide { max-width: 1200px; margin: 0 auto; }

/* ==========================================================================
   Header  (Höhe 158px: 20 oben + 123 Logo + 15 unten)
   ========================================================================== */

.site-header { background: #fff; position: relative; z-index: 100; }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 20px 8px 15px;
}

.brand { display: flex; align-items: center; gap: 20px; }

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

.brand-text { line-height: 1.35; }
.brand-text .brand-line1 { font-size: 26px; font-weight: 300; color: var(--heading); display: block; }
.brand-text .brand-line2 { font-size: 30px; font-weight: 300; color: var(--green-brand); display: block; }

.main-nav { margin-left: auto; }

.main-nav ul { list-style: none; display: flex; align-items: center; }

.main-nav > ul > li > a {
  color: var(--heading);
  font-size: 18px;
  padding: 10px 20px;
  display: inline-block;
}

.main-nav li.active > a,
.main-nav > ul > li > a:hover { color: var(--green-heading); }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  display: block !important;
  z-index: 120;
}

.dropdown li { display: block; }
.dropdown a { display: block; padding: 10px 20px; font-size: 17px; color: var(--heading); }
.dropdown a:hover { color: var(--green-heading); }

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Burger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  margin-left: auto;
  position: relative;
  z-index: 210;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-heading);
  margin: 5px auto;
  border-radius: 2px;
  transition: all .3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero-Slider (630px, horizontale Slide-Animation)
   ========================================================================== */

.hero-slider { position: relative; height: 630px; overflow: hidden; }

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 2s ease;
  will-change: transform;
}

.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  right: 0;
  bottom: 49px;
  width: 47%;
  min-width: 320px;
  background: var(--green-overlay);
  color: #fff;
  padding: 40px 45px;
}

.slide-content h2 { color: #fff; font-size: 47px; font-weight: 300; margin-bottom: 20px; }

.slide-content p { font-size: 23px; line-height: 1.5; margin-bottom: 25px; }

.btn-outline-light {
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 1px;
  color: #fff;
  padding: 15px 30px;
  font-size: 18px;
  font-family: var(--font);
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-outline-light:hover { background: #fff; color: var(--green-heading); }

/* Punkte-Navigation (15px, Abstand 12px, 30px über Unterkante) */
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 6;
}

.slider-dots button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  background: #EEEEEE;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease;
}

.slider-dots button.active { background: rgba(102, 102, 102, 0.6); }

/* Pfeile – nur bei Hover sichtbar */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(102, 102, 102, 0.5);
  padding: 10px;
  z-index: 6;
  opacity: 0;
  transition: opacity .25s ease, color .2s ease;
}

.slider-arrow:hover { color: rgba(60, 60, 60, 0.8); }
.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }

.hero-slider:hover .slider-arrow { opacity: 1; }

.slider-arrow svg { display: block; }

/* ==========================================================================
   Startseite – Inhalte
   ========================================================================== */

/* Umzugs-Hinweis: 116px unter Slider, volle Containerbreite */
.notice-box {
  background: var(--pink-bg);
  border: 1px solid var(--pink-border);
  border-radius: 4px;
  text-align: center;
  color: var(--pink);
  padding: 20px;
  margin: 116px auto 0;
  font-size: 20px;
  line-height: 32px;
}

.notice-box strong { display: block; font-weight: 400; margin-bottom: 6px; }

.welcome-section { padding: 49px 0 80px; }

.section-heading {
  font-size: 63px;
  color: var(--green-heading);
  font-weight: 300;
  margin-bottom: 20px;
}

.section-subheading {
  font-size: 43px;
  color: var(--heading);
  font-weight: 300;
  margin-bottom: 20px;
}

.lead-note {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  color: #47823E;
  margin-top: 35px;
}

/* ==========================================================================
   Wellen-Trenner (Original-Quix-Pfade, 100px, weiße Wellen auf Grün)
   ========================================================================== */

.shape-wrap { position: relative; line-height: 0; }

.shape-top { position: absolute; top: -1px; left: 0; width: 100%; height: 100px; pointer-events: none; }
.shape-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; height: 100px; pointer-events: none; transform: scaleY(-1); }

.shape-top svg, .shape-bottom svg { width: 100%; height: 100%; display: block; }

/* Grünes Band „Wir betreiben zwei Standorte" */
.green-band {
  position: relative;
  background: var(--green-band);
  color: #fff;
  text-align: center;
  padding: 120px 0 50px;
}

.green-band h2 { color: #fff; font-size: 45px; font-weight: 300; }

.green-band .divider {
  width: 125px;
  height: 1px;
  background: rgba(255,255,255,.6);
  margin: 40px auto 0;
}

/* CTA-Band (Unterseiten) */
.cta-band {
  position: relative;
  background: var(--green-band);
  color: #fff;
  padding: 150px 0 160px;
}

.cta-band h2 { color: #fff; font-size: 43px; font-weight: 300; margin-bottom: 25px; }
.cta-band p { max-width: 900px; margin-bottom: 16px; }
.cta-band .cta-btn-wrap { text-align: right; margin-top: 35px; }

/* Praxis-Fotos: 640x428, weit außen (Container 1602px) */
.praxis-grid {
  max-width: 1602px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 51px 0 0;
}

.praxis-grid figure { width: 640px; max-width: 44vw; }

.praxis-grid figure img { width: 100%; height: 428px; object-fit: cover; }

/* Kontakt-Überschrift 70px grün, zentriert */
.contact-heading {
  text-align: center;
  font-size: 70px;
  font-weight: 300;
  color: var(--green-band);
  margin: 30px 0 25px;
}

/* Kontakt-Karten: 590px, 10px Lücke, Container 1200 */
.card-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 40px;
}

.location-card {
  background: var(--card-bg);
  padding: 45px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.location-card .btn-outline-green { margin-top: auto; }

.location-card h3 { font-size: 50px; font-weight: 300; margin-bottom: 25px; }

.location-card p { margin-bottom: 16px; }

.btn-outline-green {
  display: inline-block;
  border: none;
  background: #fff;
  color: var(--green-band);
  padding: 15px 45px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 12px;
  transition: all .2s ease;
}

.btn-outline-green:hover { background: var(--green-band); color: #fff; }

/* ==========================================================================
   Unterseiten-Hero (grünes Band mit Welle unten)
   ========================================================================== */

.page-hero {
  position: relative;
  background: var(--green-band);
  color: #fff;
  padding: 120px 0 150px;
  overflow: hidden;
}

.page-hero.has-image { background-size: cover; background-position: center; }

.page-hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 167, 69, 0.72);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero .eyebrow {
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  display: block;
  margin-bottom: 10px;
}

.page-hero h1 { color: #fff; font-size: 63px; font-weight: 300; }

.page-hero.centered { text-align: center; padding: 80px 0 140px; }

.page-hero.centered h1 { font-size: 55px; }

.page-hero .hero-intro { max-width: 690px; margin: 20px auto 0; font-size: 16px; line-height: 1.6; }

.page-hero p.hero-sub { font-size: 33px; font-weight: 300; margin-top: 16px; color: #fff; }

/* ==========================================================================
   Team (Über uns)
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 105px 0 64px;
}

.team-member {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  align-items: start;
}

.member-card { border: 5px solid var(--green-band); padding: 10px; text-align: center; }

.member-card img { width: 100%; height: auto; margin-bottom: 14px; }

.member-card .member-name { font-size: 22px; color: #616161; margin: 12px 0 6px; }

.member-card .member-role { color: var(--green-heading); font-size: 16px; margin-bottom: 12px; }

.member-info .info-label { font-size: 16px; margin-bottom: 10px; }

.member-info ul { padding-left: 20px; font-size: 16px; line-height: 1.6; }

.member-info li { margin-bottom: 4px; }

.member-info .extra { margin-top: 16px; font-size: 16px; }

/* ==========================================================================
   Therapie-Karten + Akkordeon
   ========================================================================== */

.therapy-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 80px 0;
}

.therapy-card {
  border: 1px solid var(--green-band);
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Akkordeon immer am unteren Kartenrand, Text darueber */
.therapy-card > p { flex: 1 1 auto; }
.therapy-card .accordion-item { flex: 0 0 auto; }

.therapy-card h3 { color: var(--green-heading); font-size: 29px; font-weight: 400; margin-bottom: 12px; }

.therapy-card > p { font-size: 20px; line-height: 32px; margin-bottom: 16px; }

.accordion-item { border: 1px solid #ddd; margin-top: 8px; }

.accordion-trigger {
  width: 100%;
  background: #fff;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  color: #333;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-trigger::before { content: "+"; font-size: 18px; color: #999; line-height: 1; }

.accordion-item.open .accordion-trigger::before { content: "–"; }

.accordion-panel { display: none; padding: 4px 16px 16px; font-size: 16px; line-height: 1.6; }

.accordion-item.open .accordion-panel { display: block; }

.accordion-panel ul { padding-left: 18px; }
.accordion-panel li { margin-bottom: 4px; }

/* Wir bieten auch */
.offer-section { padding: 80px 0; }

.offer-section h2 { font-size: 45px; font-weight: 300; color: var(--heading); }

.offer-section .divider { width: 70px; height: 3px; background: var(--green-heading); margin: 24px 0 44px; }

.offer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }

.offer-cols h3 { font-size: 22px; font-weight: 600; color: #444; margin-bottom: 14px; }
.offer-cols p { margin-bottom: 16px; }

.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 80px 0; }

.info-cols h3 { font-size: 22px; font-weight: 600; color: #444; margin-bottom: 16px; }
.info-cols p { margin-bottom: 16px; }

/* ==========================================================================
   Aktuelles (Jobs)
   ========================================================================== */

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 64px 0;
  align-items: start;
}

.jobs-grid h2 { font-size: 43px; font-weight: 300; color: var(--green-band); margin-bottom: 24px; }
.jobs-grid p { margin-bottom: 16px; }

.green-box { background: var(--green-band); color: #fff; padding: 30px 34px; }

.green-box h3 { color: #fff; font-size: 29px; font-weight: 300; margin-bottom: 16px; }
.green-box ul { padding-left: 20px; font-size: 17px; line-height: 1.6; }
.green-box li { margin-bottom: 8px; }

.bordered-card { border: 1px solid #ddd; padding: 38px 34px; margin: 0 0 64px; }

.bordered-card h3 { color: var(--green-heading); font-size: 30px; font-weight: 300; margin-bottom: 14px; }

/* ==========================================================================
   Kontakt-Seite
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 0;
  align-items: center;
}

.contact-form-card { background: #fff; box-shadow: 0 4px 30px rgba(0,0,0,.09); padding: 44px 40px; }

.contact-form label {
  display: block;
  font-weight: 500;
  font-size: 17px;
  color: var(--heading);
  margin: 18px 0 6px;
  font-family: var(--font);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #C9D8B5;
  border-radius: 3px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 16px;
  color: #555;
  background: #fff;
  transition: border-color .2s ease;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--green-heading); box-shadow: 0 0 0 3px rgba(75,169,71,.12); }

/* Honeypot – unsichtbar fuer Menschen */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.captcha-row { display: flex; align-items: center; gap: 40px; margin-top: 24px; }

.captcha-question { font-size: 36px; font-family: 'Barlow', sans-serif; font-weight: 600; color: #111; }

.form-submit {
  width: 100%;
  margin-top: 24px;
  border: none;
  background: var(--green-band);
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  padding: 15px;
  cursor: pointer;
  transition: background .2s ease;
}

.form-submit:hover { background: #1E8535; }

.form-error { color: #c0392b; font-size: 14px; margin-top: 4px; display: none; }
.form-error.visible { display: block; }

.form-success,
.form-fail {
  display: none;
  padding: 14px 18px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 3px;
}

.form-success {
  background: #E6F4E3;
  border: 1px solid var(--green-heading);
  color: #3E7D3A;
}

.form-fail {
  background: #FDECEE;
  border: 1px solid #F5C6CB;
  color: #C0392B;
}

.form-success.visible,
.form-fail.visible { display: block; }

.form-submit:disabled { opacity: .65; cursor: progress; }

.contact-side h2 { font-size: 58px; font-weight: 300; color: var(--green-band); margin-bottom: 24px; }
.contact-side p { font-size: 18px; color: #444; }

.map-card { background: var(--card-bg); padding: 40px 34px; }
.map-card h3 { font-size: 51px; font-weight: 300; margin-bottom: 16px; }
.map-card p { margin-bottom: 24px; }
.map-card iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ==========================================================================
   Praxen-Seite
   ========================================================================== */

.praxis-section { padding: 64px 0; }

.praxis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.praxis-row .eyebrow-sm { font-size: 15px; color: #555; }

.praxis-row h2 { font-size: 63px; font-weight: 300; color: var(--green-heading); margin: 6px 0 24px; }

.praxis-row p { margin-bottom: 16px; }

.praxis-row iframe { width: 100%; height: 400px; border: 0; display: block; background: #e8e8e4; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.gallery-item {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform .35s ease, opacity .25s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); opacity: .9; }

.gallery-item:focus-visible { outline: 3px solid var(--green-band); outline-offset: 2px; }

/* Lupen-Symbol beim Hover */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 167, 69, 0) center/26px 26px no-repeat;
  transition: background-color .25s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background-color: rgba(40, 167, 69, .28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.35-4.35M11 8v6M8 11h6'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Lightbox (Ersatz fuer die defekte OSGallery-Fancybox des Originals)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(18, 30, 15, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 70px;
  /* Bewusst ohne Einblend-Animation auf dem Container: pausierte Animationen
     (z. B. in Hintergrund-Tabs) wuerden ihn sonst unsichtbar lassen. */
  opacity: 1;
}

.lightbox[hidden] { display: none; }

/* Nur das Bild zoomt sanft herein – wirkt sich bei Pause nicht auf die Sichtbarkeit aus */
.lightbox-figure { animation: lb-zoom .28s cubic-bezier(.2, .7, .3, 1); }

@keyframes lb-zoom {
  from { transform: scale(.96); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-figure { animation: none; }
}

.lightbox-figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  background: #fff;
}

.lightbox-counter { color: rgba(255,255,255,.8); font-size: 15px; letter-spacing: .04em; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 18px;
  right: 22px;
  font-size: 40px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.lightbox-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-close:hover,
.lightbox-nav:hover { color: #fff; background: rgba(255,255,255,.14); }

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; color: #fff; }

@media (max-width: 640px) {
  .lightbox { padding: 60px 12px 76px; }
  .lightbox-img { max-height: calc(100vh - 150px); }
  .lightbox-nav { top: auto; bottom: 14px; transform: none; width: 50px; height: 50px; }
  .lightbox-prev { left: 22%; }
  .lightbox-next { right: 22%; }
}

/* ==========================================================================
   Impressum / Datenschutz / 404
   ========================================================================== */

.legal-content { padding: 64px 15px; max-width: 900px; margin: 0 auto; }
.legal-content h1 { font-size: 55px; font-weight: 300; color: var(--green-heading); margin-bottom: 32px; }
.legal-content h2 { font-size: 28px; margin: 32px 0 16px; color: var(--heading); }
.legal-content h3 { font-size: 22px; margin: 24px 0 16px; color: var(--heading); font-weight: 500; }
.legal-content p { margin-bottom: 16px; font-size: 17px; line-height: 1.7; }
.legal-content ul { padding-left: 22px; margin-bottom: 16px; font-size: 17px; line-height: 1.7; }

.error-page { text-align: center; padding: 110px 20px; }

.error-page .error-code { font-size: 120px; color: var(--green-heading); font-weight: 300; line-height: 1; }

.error-page h1 { font-size: 36px; margin: 20px 0; }
.error-page p { margin-bottom: 30px; }

.btn-solid-green {
  display: inline-block;
  background: var(--green-heading);
  color: #fff;
  padding: 14px 32px;
  transition: background .2s ease;
}

.btn-solid-green:hover { background: #3a8a37; color: #fff; }

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

.site-footer { border-top: 1px solid #e5e5e5; margin-top: 40px; padding-top: 80px; }

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45.6% 21% 33.4%;
  padding: 0 8px 60px;
}

.footer-brand span { white-space: nowrap; }

.footer-brand { display: flex; align-items: center; gap: 26px; }

.footer-brand img { width: 160px; }

.footer-brand .brand-line1 { font-size: 26px; font-weight: 300; color: #333; display: block; }
.footer-brand .brand-line2 { font-size: 22px; font-weight: 300; color: var(--green-brand); display: block; }

.footer-col h3 { color: var(--green-brand); font-size: 29px; font-weight: 300; margin-bottom: 18px; }

.footer-col p { font-size: 16px; line-height: 1.6; color: #555; }

.footer-links { text-align: center; padding: 20px 0 4px; font-size: 18px; }

.footer-links a { color: var(--heading); margin: 0 8px; }
.footer-links a:hover { color: var(--green-heading); }

.footer-copyright { text-align: center; font-size: 14px; color: #999; padding: 4px 0 10px; }

.footer-copyright a { color: var(--green-heading); }

.agency-branding p { font-size: 14px; color: #777; }

/* ==========================================================================
   Cookie-Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: #eee;
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  z-index: 500;
  font-size: 15px;
  line-height: 1.5;
}

.cookie-banner.visible { display: flex; }

/* Solange der Banner eingeblendet ist, unten Platz schaffen –
   sonst verdeckt er die Footer-Links (Datenschutz / Impressum).
   Die Hoehe misst main.js und schreibt sie in --cookie-h. */
body.cookie-visible { padding-bottom: calc(var(--cookie-h, 90px) + 20px); }

.cookie-banner a { color: #9fd694; text-decoration: underline; }

.cookie-banner button {
  background: var(--green-band);
  color: #fff;
  border: none;
  padding: 10px 26px;
  font-family: var(--font);
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease;
}

.cookie-banner button:hover { background: #1e8535; }

/* ==========================================================================
   Responsive – Desktop → Tablet → Phone
   Breakpoints: 1200 (Layout schrumpft), 1024 (Burger-Menü), 640 (Phone)
   Schriftgrößen skalieren fluid per clamp(), damit nichts staucht.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fluid Typography – greift ab Tablet abwärts
   -------------------------------------------------------------------------- */

@media (max-width: 1279px) {
  body { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.65; }

  .section-heading   { font-size: clamp(30px, 4.6vw, 63px); }
  .section-subheading{ font-size: clamp(23px, 3.2vw, 43px); }
  .contact-heading   { font-size: clamp(34px, 5vw, 70px); }
  .location-card h3  { font-size: clamp(26px, 3.6vw, 50px); }
  .page-hero h1      { font-size: clamp(29px, 4.6vw, 63px); }
  .page-hero.centered h1 { font-size: clamp(29px, 4.4vw, 55px); }
  .page-hero p.hero-sub  { font-size: clamp(18px, 2.4vw, 33px); }
  .green-band h2, .cta-band h2, .jobs-grid h2,
  .offer-section h2  { font-size: clamp(26px, 3.4vw, 45px); }
  .praxis-row h2     { font-size: clamp(30px, 4.4vw, 63px); }
  .contact-side h2   { font-size: clamp(28px, 4vw, 58px); }
  .map-card h3       { font-size: clamp(26px, 3.6vw, 51px); }
  .legal-content h1  { font-size: clamp(30px, 4.4vw, 55px); }
  .therapy-card h3   { font-size: clamp(21px, 2.2vw, 29px); }
  .footer-col h3     { font-size: clamp(21px, 2.2vw, 29px); }
  .slide-content h2  { font-size: clamp(26px, 3.6vw, 47px); }
  .slide-content p   { font-size: clamp(16px, 1.7vw, 23px); }
}

/* --------------------------------------------------------------------------
   ≤ 1279px – Layout löst sich vom festen Raster
   -------------------------------------------------------------------------- */

@media (max-width: 1279px) {
  .container, .card-grid, .footer-top, .therapy-grid { padding-left: 24px; padding-right: 24px; }

  .header-inner { padding: 16px 24px; }

  .brand img { height: clamp(64px, 8vw, 110px); }
  .brand { gap: 16px; }
  .brand-text .brand-line1 { font-size: clamp(17px, 1.9vw, 26px); }
  .brand-text .brand-line2 { font-size: clamp(19px, 2.2vw, 30px); }

  .main-nav > ul > li > a { padding: 10px 13px; font-size: clamp(15px, 1.25vw, 18px); }

  .hero-slider { height: clamp(420px, 46vw, 630px); }
  .slide-content { width: 56%; padding: clamp(22px, 3vw, 40px) clamp(24px, 3.4vw, 45px); bottom: 40px; }

  .praxis-grid { padding: 40px 24px 0; gap: 24px; }
  .praxis-grid figure { width: 48%; max-width: none; }
  .praxis-grid figure img { height: auto; aspect-ratio: 640 / 428; }

  .welcome-section { padding: 40px 0 60px; }
  .notice-box { margin-top: 70px; }

  .team-grid { padding: 70px 24px; gap: 26px; }
  .team-member { grid-template-columns: 210px 1fr; gap: 22px; }

  .info-cols, .offer-cols { gap: 40px; }
  .contact-grid { gap: 40px; }
  .legal-content { padding: 60px 24px; }
}

/* --------------------------------------------------------------------------
   ≤ 1024px – Burger-Menü (Tablet & Phone)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .nav-toggle { display: block; }

  .header-inner { padding: 14px 22px; }

  /* Offcanvas-Panel */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 86vw);
    background: #fff;
    box-shadow: -12px 0 40px rgba(0,0,0,.18);
    transform: translateX(101%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 200;
    padding: 96px 32px 40px;
    overflow-y: auto;
    margin-left: 0;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav ul { flex-direction: column; align-items: stretch; }

  .main-nav > ul > li { border-bottom: 1px solid #EDF1E7; }
  .main-nav > ul > li:last-child { border-bottom: none; }

  .main-nav > ul > li > a {
    display: block;
    width: 100%;
    padding: 17px 4px;
    font-size: 19px;
    color: var(--heading);
  }

  .main-nav li.active > a { color: var(--green-heading); font-weight: 500; }

  /* Aufklappbares Untermenü mit Pfeil */
  .has-dropdown > a { position: relative; }

  .has-dropdown > a::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -6px;
    border-right: 2px solid #9AB88C;
    border-bottom: 2px solid #9AB88C;
    transform: rotate(45deg);
    transition: transform .25s ease;
  }

  .has-dropdown.open > a::after { transform: rotate(-135deg); margin-top: -2px; }

  .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none !important;
    min-width: 0;
    padding: 4px 0 12px 16px;
    border-left: 2px solid #E4EDD9;
    margin-bottom: 10px;
  }

  .has-dropdown.open > .dropdown { display: block !important; }

  .dropdown a { padding: 11px 4px; font-size: 17px; color: var(--text); }

  /* Abdunkelnder Hintergrund */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 45, 25, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 190;
  }

  .nav-overlay.visible { opacity: 1; visibility: visible; pointer-events: auto; }

  /* Header (und damit das Nav-Panel) muss ueber dem Overlay liegen,
     sonst faengt das Overlay alle Klicks ab. */
  .site-header { z-index: 300; }

  body.nav-locked { overflow: hidden; }

  /* Slider: Textbox über volle Breite unten */
  .hero-slider { height: clamp(400px, 56vw, 520px); }

  .slide-content {
    width: 100%;
    min-width: 0;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 26px 28px 52px;
  }

  .slider-dots { bottom: 18px; }
  .slider-arrow { display: none; }

  /* Zweispaltiges bleibt zweispaltig, wird aber luftiger */
  .card-grid, .therapy-grid { gap: 16px; }
  .location-card { padding: 34px 28px; }

  .team-grid { grid-template-columns: 1fr; gap: 40px; max-width: 700px; margin: 0 auto; }
  .team-member { grid-template-columns: 200px 1fr; gap: 24px; }
  .member-card { border-width: 4px; padding: 8px; }
  .member-card .member-name { font-size: 19px; }
  .member-card .member-role { font-size: 15px; }
  .member-info ul, .member-info .info-label { font-size: 16px; }

  .jobs-grid { gap: 26px; }
  .green-box { padding: 26px 28px; }

  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-form-card { padding: 34px 30px; }
  .contact-side { text-align: center; }

  .praxis-row { gap: 34px; }
  .praxis-row iframe, .map-card iframe { height: 340px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-brand { grid-column: 1 / -1; }

  .cta-band { padding: 120px 0 130px; }
  .cta-band .cta-btn-wrap { text-align: left; }

  .green-band { padding: 100px 0 44px; }
  .page-hero { padding: 90px 0 120px; }
  .page-hero.centered { padding: 70px 0 115px; }

  .shape-top, .shape-bottom { height: 70px; }
}

/* --------------------------------------------------------------------------
   ≤ 860px – Karten-Raster einspaltig, bevor die Spalten zu schmal werden
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .therapy-grid,
  .card-grid,
  .offer-cols,
  .info-cols,
  .jobs-grid,
  .praxis-row { grid-template-columns: 1fr; }

  .therapy-grid { gap: 14px; max-width: 620px; margin-left: auto; margin-right: auto; }
  .card-grid    { gap: 14px; max-width: 620px; }
  .praxis-row   { gap: 26px; }
  .jobs-grid    { gap: 24px; }
  .offer-cols, .info-cols { gap: 32px; }

  /* Karten ohne Akkordeon brauchen jetzt keinen Fuellraum mehr */
  .therapy-card > p { flex: 0 1 auto; }
}

/* --------------------------------------------------------------------------
   ≤ 640px – Phone: alles einspaltig
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.7; }

  .container, .card-grid, .footer-top, .therapy-grid,
  .team-grid, .legal-content { padding-left: 20px; padding-right: 20px; }

  .header-inner { padding: 12px 20px; }
  .brand img { height: 58px; }
  .brand { gap: 12px; }
  .brand-text .brand-line1 { font-size: 16px; }
  .brand-text .brand-line2 { font-size: 18px; }

  .nav-toggle { width: 46px; height: 46px; }

  /* Slider kompakter, Text bleibt lesbar */
  .hero-slider { height: 430px; }
  .slide-content { padding: 22px 20px 46px; }
  .slide-content h2 { font-size: 26px; margin-bottom: 12px; }
  .slide-content p { font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
  .btn-outline-light { padding: 12px 24px; font-size: 16px; }

  .notice-box { margin-top: 44px; padding: 20px 18px; font-size: 16px; line-height: 1.65; }

  .welcome-section { padding: 34px 0 48px; }
  .section-heading { font-size: 30px; margin-bottom: 14px; }
  .section-subheading { font-size: 23px; margin-bottom: 16px; }
  .lead-note { margin-top: 24px; font-size: 16px; }

  /* Alles einspaltig */
  .card-grid, .therapy-grid, .offer-cols, .info-cols,
  .jobs-grid, .contact-grid, .praxis-row, .footer-top,
  .team-grid { grid-template-columns: 1fr; }

  .praxis-grid { flex-direction: column; gap: 18px; padding: 34px 20px 0; }
  .praxis-grid figure { width: 100%; max-width: none; }

  .contact-heading { font-size: 34px; margin: 26px 0 20px; }
  .location-card { padding: 28px 24px; }
  .location-card h3 { font-size: 26px; margin-bottom: 16px; }
  .location-card p { margin-bottom: 14px; }
  .btn-outline-green { padding: 13px 30px; width: 100%; text-align: center; }

  .green-band { padding: 80px 0 36px; }
  .green-band .divider { margin-top: 24px; }
  .cta-band { padding: 95px 0 105px; }
  .cta-band .cta-btn-wrap { text-align: center; margin-top: 26px; }
  .cta-band .btn-outline-light { display: block; }

  .page-hero { padding: 60px 0 95px; }
  .page-hero.centered { padding: 52px 0 92px; }
  .page-hero .hero-intro { font-size: 15px; }
  .shape-top, .shape-bottom { height: 52px; }

  /* Team: Karte oben, Text darunter */
  .team-grid { padding: 44px 20px; gap: 40px; }
  .team-member { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .member-card { max-width: 250px; width: 100%; }
  .member-info { width: 100%; }
  .member-info ul { font-size: 16px; }

  .therapy-grid { padding: 44px 20px; }
  .therapy-card { padding: 22px 20px; }
  .therapy-card h3 { font-size: 21px; }
  .therapy-card > p { font-size: 16px; line-height: 1.6; }
  .accordion-trigger { padding: 15px 14px; font-size: 15px; }

  .offer-section { padding: 44px 0; }
  .offer-section .divider { margin: 18px 0 28px; }
  .offer-cols, .info-cols { gap: 30px; }
  .info-cols { padding: 44px 0; }

  .jobs-grid { padding: 44px 0; gap: 24px; }
  .green-box { padding: 24px 22px; }
  .green-box ul { font-size: 16px; }
  .bordered-card { padding: 26px 22px; margin-bottom: 44px; }

  /* Kontakt */
  .contact-grid { padding: 44px 0; }
  .contact-form-card { padding: 28px 22px; }
  .contact-form input, .contact-form textarea { font-size: 16px; padding: 12px 14px; }
  .form-submit { padding: 16px; }
  .map-card { padding: 28px 22px; }
  .map-card h3 { font-size: 26px; }
  .map-card iframe, .praxis-row iframe { height: 300px; }

  /* Praxen */
  .praxis-section { padding: 44px 0; }
  .praxis-row { margin-bottom: 44px; gap: 24px; }
  .praxis-row h2 { font-size: 30px; margin-bottom: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
  .gallery-item img { height: 120px; }

  /* Rechtstexte */
  .legal-content { padding: 44px 20px; }
  .legal-content h1 { font-size: 30px; margin-bottom: 22px; }
  .legal-content h2 { font-size: 22px; margin: 26px 0 12px; }
  .legal-content h3 { font-size: 18px; }
  .legal-content p, .legal-content ul { font-size: 16px; line-height: 1.7; }

  /* 404 */
  .error-page { padding: 70px 20px; }
  .error-page .error-code { font-size: 82px; }
  .error-page h1 { font-size: 26px; }

  /* Footer */
  .site-footer { padding-top: 50px; }
  .footer-top { gap: 30px; padding-bottom: 40px; text-align: center; }
  .footer-brand { flex-direction: column; gap: 14px; text-align: center; }
  .footer-brand img { width: 110px; }
  .footer-links { font-size: 16px; line-height: 2.2; }
  .footer-links a { display: inline-block; padding: 4px 10px; }

  /* Cookie-Banner gestapelt */
  .cookie-banner { flex-direction: column; gap: 14px; padding: 18px 20px; text-align: center; font-size: 14px; }
  .cookie-banner button { width: 100%; padding: 13px; }
}

/* --------------------------------------------------------------------------
   Touch-Geräte: Slider-Pfeile dauerhaft aus, Ziele min. 44px
   -------------------------------------------------------------------------- */

@media (hover: none) {
  .slider-arrow { display: none; }
  .slider-dots button { width: 12px; height: 12px; }
  .slider-dots { gap: 14px; }
}

/* --------------------------------------------------------------------------
   Reduzierte Bewegung
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider-track { transition: none; }
  .main-nav { transition: none; }
}
