/* ==========================================================================
   Praxis für Ergotherapie Hartmut Rupp — 1:1-Nachbau
   Original: https://ergotherapie-hrupp.de/ | Design: Werbeagentur Hoffmann
   Alle Werte stammen aus den Original-Quellen (Ordner Template + Website):
   - templates/rupp/css/template.css  (Typo, Farben, Navi, Footer)
   - custom91.css                     (DJ-MegaMenu inkl. Dropdown)
   - Quix-Inline-Styles je Seite      (Sektions-Paddings in vh, Spalten)
   - quixtrap.css / foundation.css    (Grid: Row 1200px, Container 1170px,
                                       15px-Gutter, Breakpoints 768/992/1200)
   Typo:   h1 Alegreya 40px #336550 (mobil 35px) | h2 Alegreya 35px #4A4A4A
           Body Open Sans 25px Light #474747 | Navi Assistant 18px
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --green: #336550;
  --text: #474747;
  --h2-color: #4a4a4a;
  --line: #ddd;
  --blue: #1779ba;
  --blue-hover: #1468a0;
  --nav-color: #403d38;
  --white: #fff;
  --font-serif: 'Alegreya', Georgia, serif;
  --font-sans: 'Open Sans', Helvetica, Arial, sans-serif;
  --font-nav: 'Assistant', Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Original: body 25px / Open Sans Light / #474747 */
body {
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

a { color: var(--blue); text-decoration: none; cursor: pointer; transition: color .2s ease-out; }
a:hover { color: var(--blue-hover); }

/* Inhaltslinks sind grün (Original: .inhalt a) */
main a { color: var(--green); }
main a:hover { color: var(--green); }

/* Klickbare Telefonnummern: optisch wie umgebender Text, aber tap-/klickbar */
.tel-link { color: inherit; text-decoration: none; white-space: nowrap; }
.tel-link:hover { text-decoration: underline; color: inherit; }

h1, h2 { font-family: var(--font-serif); font-weight: 400; }

h1 { font-size: 40px; line-height: 56px; color: var(--green); padding-bottom: 10px; }
h2 { font-size: 35px; line-height: 1.25; color: var(--h2-color); padding: 15px 0; }

@media (max-width: 500px) {
  h1 { font-size: 35px; line-height: 45px; }
  h2 { font-size: 30px; line-height: 40px; }
}

/* Foundation-Defaults */
p { margin: 0 0 16px; font-size: inherit; line-height: 1.6; }
p:last-child { margin-bottom: 0; }
/* Foundation: Listen haben eigenen Zeilenabstand 1.6 (gilt auch in den grünen Kästen) */
ul, ol { margin: 0 0 16px 25px; line-height: 1.6; }

strong { font-weight: 600; }

::selection { background: var(--green); color: #fff; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Row = Foundation-Row (max. 1200px) mit 15px Columns-Padding → 1170px Inhalt */
.row { max-width: 1200px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }

.center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff;
  padding: 10px 18px; z-index: 1300; font-size: 16px;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* ---------- Header (Original: Section 25px, Logo-Spalte 1/3, Navi 2/3) ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }

.site-header .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  max-width: 1200px; margin: 0 auto;
  padding: 25px 15px;
}

.brand { display: block; text-align: center; padding: 15px; }
.brand img { width: 398px; max-width: 100%; height: auto; display: inline-block; }

.main-nav { display: none; }
.nav-toggle { display: none; }

/* Desktop-Navigation (DJ MegaMenu: Assistant 18px, Höhe 40px, Padding 0 20px) */
@media (min-width: 1024px) {
  .main-nav { display: block; padding: 40px 15px 0; }
  .main-nav > ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; }
  .main-nav > ul > li { position: relative; }
  .main-nav a {
    display: block; height: 40px; line-height: 40px;
    padding: 0 20px;
    font-family: var(--font-nav); font-size: 18px; font-weight: 300;
    color: var(--nav-color);
    transition: all .2s ease-out;
  }
  .main-nav a:hover, .main-nav a.active { color: var(--green); }
  .main-nav .has-sub > a i { font-size: 14px; margin-left: 8px; color: inherit; }

  .sub-menu {
    position: absolute; left: -9999px; top: -9999px;
    min-width: 200px; padding: 0 10px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
    list-style: none; margin: 0;
    z-index: 300;
  }
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu { left: 0; top: 100%; }
  .sub-menu li { border-top: 1px solid rgba(255, 255, 255, .93); }
  .sub-menu li:first-child { border-top: 0; }
  .sub-menu a {
    display: block; height: auto; margin: 0 -10px;
    padding: 12px 20px;
    font-size: 14px; font-weight: 400; line-height: 16px;
    color: #595959;
    transition: all .2s ease-out;
  }
  .sub-menu a:hover, .sub-menu a.active { color: var(--green); }
}

/* Mobile Header (≤1023px, Original: DJ-Mobile-Menü) */
@media (max-width: 1023px) {
  .site-header .container { grid-template-columns: 1fr; padding: 0 15px 12px; }
  .brand { padding: 20px 0 10px; }
  .brand img { max-width: 398px; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    justify-self: center;
    height: 42px; padding: 8px 12px;
    background: #ddd; color: #333;
    border: 0; border-radius: 3px; cursor: pointer;
    transition: background-color .2s ease-out;
  }
  .nav-toggle:hover { background: #434343; }
  .nav-toggle:hover .bars span { background: #e4e4e4; }
  .nav-toggle .bars { display: flex; flex-direction: column; gap: 5px; }
  .nav-toggle .bars span { display: block; width: 24px; height: 3px; background: #333; transition: background .2s ease-out, transform .3s ease, opacity .3s ease; }
  .nav-toggle.open .bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open .bars span:nth-child(2) { opacity: 0; }
  .nav-toggle.open .bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle .label { display: none; }
}
@media (max-width: 500px) {
  .brand img { max-width: 300px; }
}

/* Offcanvas — hell, von links (Original: DJ-Mobile-Menü "light",
   Panel #f2f2f2, Kopfleiste #ebebeb, Einträge 14px #444) */
.nav-overlay {
  position: fixed; inset: 0; z-index: 1090;
  background: rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

.offcanvas {
  position: fixed; top: 0; left: 0; z-index: 1100;
  height: 100%; width: min(320px, 86vw);
  background: #f2f2f2; color: #444;
  transform: translateX(-100%); transition: transform .35s ease;
  padding: 40px 0 30px; overflow-y: auto;
}
.offcanvas.open { transform: none; }

/* Kopfleiste wie .dj-offcanvas-top */
.offcanvas::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 40px; background: #ebebeb;
}

.offcanvas ul { list-style: none; margin: 0; }
.offcanvas a {
  display: block; padding: 20px 15px;
  background: #f2f2f2; color: #444444;
  font-size: 14px; line-height: 1;
  border-top: 1px solid #e4e4e4;
  transition: background-color .2s ease-out;
}
.offcanvas a:hover, .offcanvas a.active { background: #ebebeb; color: #444444; }

.offcanvas .sub-label {
  padding: 20px 15px;
  font-size: 14px; line-height: 1; color: #444444;
  border-top: 1px solid #e4e4e4;
}

/* Unterpunkte wie 2. Ebene des DJ-Menüs */
.offcanvas .sub-items a {
  background: #ebebeb; color: #595959;
  border-top: 1px solid #f2f2f2;
  padding-left: 30px;
}
.offcanvas .sub-items a:hover,
.offcanvas .sub-items a.active { background: #e6e6e6; color: #444444; }

.offcanvas hr { border: 0; margin: 0; }

.offcanvas-close {
  position: absolute; top: 0; right: 0; z-index: 2;
  padding: 10px 12px;
  background: none; border: 0; cursor: pointer;
  font-size: 20px; color: #b8b8b8;
}

/* ---------- Sektionen (Original: Quix, Paddings in vh) ---------- */
.sec { padding: 10vh 0; }              /* Standard-Inhaltssektion */
.sec--b { padding: 0 0 10vh; }         /* nur unten */
.sec--none { padding: 0; }

/* Hero Startseite: 15vh, grün */
.hero {
  background: var(--green);
  color: #fff; text-align: center;
  padding: 15vh 15px;
}
.hero h1 { color: #fff; padding-bottom: 0; margin-bottom: 25px; }
.hero p { color: #fff; max-width: 1170px; margin-left: auto; margin-right: auto; }

/* Hero „Was ist Ergotherapie": 10vh */
.hero--tall { padding: 10vh 15px; }
.hero__kicker {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 31px; line-height: 1.4;
  color: #fff; margin: 0 0 25px; padding: 0;
}
.hero--tall h1 { max-width: 1170px; margin-left: auto; margin-right: auto; }

/* Überschriften-Stile wie Original */
.section-title {                        /* h1-Optik: Alegreya 40px grün */
  font-family: var(--font-serif); font-weight: 400;
  font-size: 40px; line-height: 56px;
  color: var(--green);
  padding: 0 0 10px; margin-bottom: 25px;
}
.section-title--dark {                  /* h2-Optik: Alegreya 35px #4A4A4A */
  font-size: 35px; line-height: 1.25;
  color: var(--h2-color) !important;
}
@media (max-width: 500px) {
  .section-title { font-size: 35px; line-height: 45px; }
  .section-title--dark { font-size: 30px; line-height: 40px; }
}

/* Spalten-Raster (Quix: 8/4, 4/8, 6/6 — Gutter 30px) */
.split { display: grid; gap: 30px; align-items: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: 2fr 1fr; }
  .split--img-left { grid-template-columns: 1fr 2fr; }
  .split--half { grid-template-columns: 1fr 1fr; align-items: start; }
}

.circle-img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: min(100%, 360px);
  margin: 0 auto;
  display: block;
}

/* Button (Original: .qx-btn-default via template.css) */
.btn-outline {
  display: inline-block;
  padding: 15px 20px;
  font-size: 18px; font-weight: 300; text-align: center;
  color: var(--green) !important;
  background-color: #fff;
  border: 1px solid var(--green);
  border-radius: 0;
  transition: all .1s ease-in-out;
}
.btn-outline:hover {
  color: #333 !important;
  background-color: #e6e6e6;
  border-color: #adadad;
}

/* Energie-Sektion: Text 50px Abstand, Bild ab Mobile 50px oben */
.energie-text { margin-bottom: 50px; }
@media (max-width: 767px) { .split .circle-img { margin-top: 50px; } }

/* Trennband (Original: Sektion #ddd, 15px oben + unten) */
.divider-band { height: 30px; background: #ddd; }

/* Fachbereich-Grid Startseite (4 × col-3) */
.fach-grid { display: grid; gap: 30px; margin-top: 25px; }
@media (min-width: 768px) { .fach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .fach-grid { grid-template-columns: repeat(4, 1fr); } }

.fach-item { text-align: center; }
.fach-item .circle-img { width: 100%; max-width: 360px; }
.fach-item .label { display: inline-block; margin-top: 20px; font-size: 25px; font-weight: 300; color: var(--green); }
.fach-item .label:hover { text-decoration: underline; }

h2.schritt-title {
  text-align: center;
  padding: 0; margin-bottom: 50px;
}

/* Standorte + Slider (Original: Smart Slider 900×900 + grüne Spalte, 50/50) */
.standorte { display: grid; align-items: stretch; }
@media (min-width: 992px) { .standorte { grid-template-columns: 1fr 1fr; } }

.slider { position: relative; overflow: hidden; aspect-ratio: 1 / 1; max-height: 900px; width: 100%; }

.slider .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.slider .slide.active { opacity: 1; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: none; border: 0; color: #fff;
  font-size: 30px; cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  transition: opacity .2s ease;
}
.slider-btn:hover { opacity: .75; }
.slider-btn--prev { left: 15px; }
.slider-btn--next { right: 15px; }

/* Grüne Standort-Box (Original #telefon: 100px oben/links, 50px rechts) */
.standorte-info {
  background: var(--green); color: #fff;
  padding: 100px 50px 60px 100px;
}
@media (max-width: 767px) { .standorte-info { padding: 20px; } }
.standorte-info h2 {
  font-size: 40px; line-height: 56px;
  color: #fff;
  padding: 0 0 10px; margin-bottom: 25px;
}
@media (max-width: 500px) { .standorte-info h2 { font-size: 35px; line-height: 45px; } }
.standorte-info p { color: #fff; margin-bottom: 16px; }

/* Grüne Box (Was ist Ergotherapie, Original: Spalte 50px Padding) */
.green-box { background: var(--green); color: #fff; padding: 50px; }
@media (max-width: 767px) { .green-box { padding: 20px; } }
.green-box p, .green-box li { color: #fff; line-height: 1.5; }
.green-box .lead { text-decoration: underline; }
.green-box ul { margin: 0 0 16px 25px; }
.text-15 p, .text-15 li { line-height: 1.5; }

/* Grüne Vollbreite-Sektion (Fachbereiche): 10vh, zwei 6er-Spalten */
.green-section { background: var(--green); color: #fff; }
.green-section .cols { display: grid; gap: 30px; }
@media (min-width: 768px) { .green-section .cols { grid-template-columns: 1fr 1fr; } }
.green-section h2 { color: #fff; line-height: 1.3; padding-top: 0; margin-bottom: 25px; }
.green-section p, .green-section li { color: #fff; }
.green-section ul { margin: 0 0 16px 25px; }
.green-section ul ul { margin: 0 0 0 25px; }
.list-gap { margin-top: 26px; }

/* CTA-Band (Infos): 10vh, grün, zentriert */
.cta-band { background: var(--green); text-align: center; padding: 10vh 15px; }
.cta-band h2 { color: #fff; padding-top: 0; margin-bottom: 25px; line-height: 1.3; }
.cta-band p { color: #fff; max-width: 1170px; margin: 0 auto; }

/* ---------- FAQ (Infos): Bild col-4 / Text col-8 ---------- */
.faq-row { display: grid; gap: 30px; align-items: center; }
@media (min-width: 768px) {
  .faq-row { grid-template-columns: 1fr 2fr; }
  .faq-row--reverse { grid-template-columns: 2fr 1fr; }
}
.faq-row h2 { padding-top: 0; margin-bottom: 25px; line-height: 1.3; }
.faq-row .circle-img { width: min(100%, 360px); }

/* ---------- Team ---------- */
.page-head { text-align: center; padding: 10vh 15px 0; }
.page-head h1 { padding-bottom: 10px; margin-bottom: 25px; }

.about { padding-bottom: 10vh; }
.about p { margin-bottom: 16px; }

/* Vollbreites 4-Spalten-Raster (Original: col-3 im Fluid-Container,
   30px Gutter, Reihenabstand 5vh, danach 10vh) */
.team-grid {
  display: grid; gap: 5vh 30px;
  padding: 0 15px 10vh;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-cell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }

.team-info {
  background: var(--green); color: #fff;
  padding: 100px 50px 50px;
  height: 100%;
}
@media (max-width: 1400px) { .team-info { padding: 60px 30px 30px; } }
.team-info h2 { color: #fff; font-size: 35px; line-height: 1.25; padding: 0; margin-bottom: 25px; }
@media (max-width: 1200px) { .team-info h2 { font-size: 28px; } }
.team-info p { color: #fff; margin: 0; }
.team-info .dash { display: block; width: 31px; height: 2px; background: #fff; margin-top: 30px; }
.team-info--right { text-align: right; }
.team-info--right .dash { margin-left: auto; }

.team-cell--text { padding: 50px; }
.team-cell--text h2 { padding-top: 0; margin-bottom: 25px; }
@media (min-width: 992px) { .team-cell--text { grid-column: span 2; } }

/* ---------- Kontakt (Original: 3 × col-4, drittes leer; Blurbs 30px) ---------- */
.kontakt-head h1 { text-align: center; padding-bottom: 10px; margin-bottom: 25px; }

.kontakt-grid { display: grid; gap: 30px; margin-top: 30px; }
@media (min-width: 768px) { .kontakt-grid { grid-template-columns: repeat(3, 1fr); } }

.blurb { display: flex; align-items: flex-start; }
.blurb i { color: var(--green); font-size: 30px; padding-right: 10px; line-height: 1.2; }
.blurb h2 {
  font-size: 30px; line-height: 1.25;
  padding: 0; margin: 0 0 16px;
}
.blurb p { margin-bottom: 16px; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 10vh 0; }
.legal h1 { padding-bottom: 10px; margin-bottom: 25px; }
/* Original: Zwischenüberschriften sind schlichte h4/Absätze in Textgröße */
.legal h2, .legal h3 {
  font-family: var(--font-sans); font-weight: 400;
  color: var(--text); font-size: 25px; line-height: 1.4;
  padding: 0; margin: 30px 0 8px;
}
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 16px 25px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 10vh 15px 15vh; }
.error-page .code { font-family: var(--font-serif); font-size: clamp(90px, 10vw, 140px); color: var(--green); line-height: 1; margin-bottom: 10px; }
.error-page h1 { padding-bottom: 10px; margin-bottom: 10px; }
.error-page p { max-width: 1000px; margin: 0 auto 30px; }

/* ---------- Footer (Original: weiß, 35px oben / 65px unten, Text 14px) ---------- */
.site-footer {
  background: #fff;
  padding: 35px 15px 65px;
  text-align: center;
}
.site-footer p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.footer-copy { color: var(--text); margin-bottom: 0 !important; }
.footer-legal { margin-bottom: 16px; }
.footer-legal a { color: var(--blue); }
.footer-legal a:hover { color: var(--blue-hover); }
.footer-legal span { color: var(--text); margin: 0 4px; }
.footer-design { color: var(--text); }
.agency-branding { padding: 0 !important; }
.agency-branding p { margin: 0; font-size: 12px; color: var(--text); }
.agency-branding a { color: var(--blue); }
.agency-branding a:hover { color: var(--blue-hover); text-decoration: underline; }

/* ---------- Cookie-Consent ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: rgba(51, 101, 80, .98); color: #fff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .18);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 1000px; margin: 0 auto; padding: 20px 22px; }
.cookie-title {
  font-family: var(--font-serif); font-weight: 400; font-size: 22px;
  color: #fff; padding: 0; margin: 0 0 8px; line-height: 1.2;
}
.cookie-text { margin: 0 0 14px; color: #fff; font-size: 15px; line-height: 1.5; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-options { margin: 0 0 14px; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 12px; }
.cookie-options[hidden] { display: none; }
.cookie-opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 8px 0; }
.cookie-opt-title { display: block; font-size: 15px; font-weight: 600; }
.cookie-opt-desc { display: block; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .85); margin-top: 2px; }
.cookie-opt input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: #fff; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-btn {
  font-family: var(--font-sans); font-size: 15px; padding: 10px 22px;
  border-radius: 0; border: 1px solid #fff; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.cookie-btn--ghost { background: transparent; color: #fff; }
.cookie-btn--ghost:hover { background: rgba(255, 255, 255, .15); }
.cookie-btn--solid { background: #fff; color: var(--green); font-weight: 600; }
.cookie-btn--solid:hover { background: #e6e6e6; }
.cookie-legal { margin: 12px 0 0; font-size: 13px; color: rgba(255, 255, 255, .9); }
.cookie-legal a { color: #fff; text-decoration: underline; }
.cookie-legal span { margin: 0 6px; opacity: .7; }
.cookie-banner[hidden] .cookie-inner { display: none; }
@media (max-width: 600px) {
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1 1 auto; text-align: center; }
  .cookie-title { font-size: 20px; }
}

/* ---------- Scroll-Reveal (Original: wow.js fadeInUp) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slider .slide { transition: none; }
  .nav-toggle .bars span, .offcanvas, .nav-overlay { transition: none; }
}
