/* ============================================================
   GGW Homburg – Design System
   Cornelia Schneider & Ute Fechner · Gesundheit, Führung, Entwicklung
   ============================================================ */

:root {
  /* Farben 1:1 aus den CSS-Variablen der Original-Joomla-Seite (Helix Ultimate
     Template, :root{--sppb-...}) übernommen, nicht approximiert. */
  --teal: #5a5a5a;
  --teal-deep: #474747;
  --teal-pale: #ececec;
  --sand: #f3f3f2;
  --sand-deep: #e4e4e2;
  --coral: #eb6811;
  --coral-deep: #c25606;
  --ink: #252525;
  --ink-soft: #63625f;
  --paper: #ffffff;
  --line: #e2e0dd;
  --topbar-text: #AAAAAA;

  /* Original nutzt keine eigenen Webfonts, nur die System-Schriftart. */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: 24px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -25px rgba(60, 60, 60, .3);
  --ease: cubic-bezier(.22,.9,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--teal-deep); }
h2 { color: var(--coral); }
/* H3-Zwischenüberschriften in Fließtext-Bereichen ebenfalls orange (wie im Original);
   Card-Titel (Team, Leistungen-Kacheln, Blog-Karten etc.) bleiben bewusst grau,
   damit dichte Grids nicht überladen wirken. */
.container--narrow h3, .article-body h3 { color: var(--coral); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1.3em; }
ul, ol { padding-left: 1.2em; }
.container { width: min(100% - 2*var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2*var(--gutter), 780px); margin-inline: auto; }

section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal-deep); color: #f2f2f1; }
.section--teal h1, .section--teal h2, .section--teal h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--coral); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-deep); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: var(--teal-deep); color: var(--teal-deep); }
.btn--ghost:hover { background: var(--teal-deep); color: #fff; }
.btn--on-teal { background: var(--coral); color: #fff; }
.btn--on-teal:hover { background: var(--coral-deep); }
.btn--sm { padding: .6em 1.2em; font-size: .86rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--teal-deep); color: var(--topbar-text); font-size: .8125rem; padding: .55rem 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.social-icons { display: flex; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.social-icons svg { width: 15px; height: 15px; display: block; }
.social-icons a { color: var(--topbar-text); display: flex; }
.social-icons a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-contact a { color: var(--topbar-text); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar-contact a:hover { color: #fff; }
.topbar-contact svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .topbar-inner { justify-content: center; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; color: var(--teal-deep); font-size: 1.15rem; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { font-family: var(--font-display); font-weight: 500; font-size: .93rem; text-decoration: none; color: var(--ink); position: relative; padding: .3em 0; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--coral); }
.mobile-menu a[aria-current="page"] { color: var(--coral); }
/* padding-bottom + gleich große negative margin: verlängert die hoverbare Fläche
   von ".has-sub" bis an das Untermenü heran, ohne die Nav-Zeile höher zu machen.
   Ohne das schließt sich das Menü beim Runterfahren mit der Maus durch die Lücke. */
.nav .has-sub { position: relative; padding-bottom: .9rem; margin-bottom: -.9rem; }
.nav .sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); min-width: 220px; padding: .5rem;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; pointer-events: auto; }
.nav .sub a { display: block; padding: .55em .7em; border-radius: 8px; font-size: .88rem; }
.nav .sub a:hover { background: var(--sand); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.burger { display: none; background: none; border: none; width: 30px; height: 22px; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }

.mobile-menu {
  position: fixed; inset: 0; background: var(--teal-deep); z-index: 50;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 2rem clamp(1.5rem, 8vw, 4rem); gap: .3rem;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; transition: transform .45s var(--ease); }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(1.6rem, 8vw, 2.4rem); font-weight: 600; color: #fff; text-decoration: none; padding: .25em 0; }
.mobile-menu .mm-close { position: absolute; top: 1.6rem; right: clamp(1.5rem, 8vw, 4rem); background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* Das Original zeigt die horizontale Nav erst ab ca. 1200px, darunter nur das
   Hamburger-/Offcanvas-Menü (per Live-Check an der alten Seite verifiziert). */
.nav-caret { width: 10px; height: 10px; margin-left: .25em; vertical-align: -1px; }
@media (max-width: 1200px) {
  .nav { display: none; }
  .header-cta .btn { display: none; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.hero--page {
  /* Default-Hintergrund; einzelne Seiten überschreiben --hero-bg-image / --hero-bg-position inline,
     um ihr eigenes Themenbild statt des generischen Fotos zu zeigen. */
  --hero-bg-image: url("/assets/img/images/2020/08/27/lov_99341.jpg");
  --hero-bg-position: center 30%;
  background-color: var(--teal-deep);
  background-image:
    linear-gradient(115deg, rgba(71,71,71,.92) 0%, rgba(71,71,71,.78) 45%, rgba(71,71,71,.5) 100%),
    var(--hero-bg-image);
  background-position: center, var(--hero-bg-position);
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  color: #f2f2f1; padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.hero--full-bg {
  /* Default-Hintergrund; einzelne Sites/Seiten können --hero-bg-image / --hero-bg-position
     inline überschreiben (gleiches Muster wie .hero--page), damit alle drei GGW-Seiten
     denselben Titelbild-Look teilen. */
  --hero-bg-image: url("/assets/img/images/2021/02/03/ggw-homburg.jpg");
  --hero-bg-position: center 60%;
  position: relative; overflow: hidden;
  background-color: var(--teal-deep);
  /* gleichmäßiger dunkler Schleier statt Verlauf: sorgt an JEDER Stelle des Fotos
     (auch im hellen Himmel oben) für genug Kontrast zum weißen/hellen Text */
  background-image:
    linear-gradient(rgba(71,71,71,.68), rgba(71,71,71,.68)),
    var(--hero-bg-image);
  background-position: center, var(--hero-bg-position);
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  /* Original-Seite: das Titelfoto ist deutlich größer/höher als ein normaler Hero-Abschnitt. */
  padding: clamp(3.5rem, 6vw, 4rem) 0 clamp(8rem, 18vw, 14rem);
}
.hero--full-bg .eyebrow { color: var(--coral); text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.hero--full-bg h1, .hero--full-bg .lead { color: #fff; }
.hero--full-bg p { color: #ededec; }

/* Laufband-Effekt für die Eyebrow-Zeile im Titelfoto (Original nutzt eine
   durchlaufende Marquee-Animation statt statischem Text). */
.marquee { overflow: hidden; white-space: nowrap; margin-bottom: 1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee-scroll 22s linear infinite; }
.marquee-track span { flex-shrink: 0; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.hero--full-bg .hero-quote { color: #fff; border-left-color: var(--coral); }
.hero--full-bg .hero-quote cite { color: #d9d8d6; }
.hero--full-bg p.hero-signature { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.15rem; color: var(--coral); margin: 1.2em 0 1.6em; }
.intro-stamp { float: right; width: 150px; height: 150px; margin: 0 0 1rem 1.5rem; }
@media (max-width: 700px) { .intro-stamp { width: 96px; height: 96px; margin-left: 1rem; } }
.hero-signature-img { height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin: 1.2em 0 .5em; display: block; }
.hero--page h1 { color: #fff; }
.hero--page .lead { color: #d4d3d1; }
.breadcrumb { font-size: .84rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover { text-decoration: underline; }
.hero--page .breadcrumb, .hero--page .breadcrumb a { color: #b0b0ae; }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-portrait { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Startseiten-Intro: Portrait links (rund, wie im Original), Zitat + Text rechts */
.hero-intro-grid { display: grid; grid-template-columns: 200px 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; padding-top: clamp(2rem, 5vw, 3rem); }
@media (max-width: 700px) { .hero-intro-grid { grid-template-columns: 1fr; } }
.hero-portrait-col { text-align: center; }
.hero-portrait--round { width: 180px; height: 180px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 1rem; box-shadow: var(--shadow); }
.hero-portrait-name { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: .3em; }
.hero-portrait-col a { color: var(--coral); font-size: .85rem; text-decoration: none; }
.hero-portrait-col a:hover { text-decoration: underline; }
.hero-portrait-col .cred { margin: .6em 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.6; }
.hero-intro-grid .hero-quote { font-style: italic; color: var(--coral); border-left: none; padding-left: 0; margin-top: 0; }
.hero-intro-grid .hero-quote cite { color: var(--ink-soft); }
.hero-quote { font-family: var(--font-display); font-size: 1.15rem; color: var(--teal-deep); border-left: 3px solid var(--coral); padding-left: 1em; margin: 1.8em 0; }
.hero-quote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .85rem; color: var(--ink-soft); margin-top: .4em; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin-bottom: 0; }
.card-body .card-sub { font-family: var(--font-display); font-weight: 500; color: var(--coral); font-size: .88rem; }
.card-body p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; flex: 1; }
.card-link { margin-top: .6rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--teal); }

/* Runde Bild-Links (1:1 wie im Original bei "Über uns" etc.) */
.circle-link-grid { justify-items: center; text-align: center; }
.circle-link { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-decoration: none; }
.circle-link-img { width: 100%; max-width: 280px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); }
.circle-link-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.circle-link:hover .circle-link-img img { transform: scale(1.06); }

/* Team */
.team-card { text-align: left; }
.team-card img { aspect-ratio: 1/1; object-fit: cover; }
.team-card .card-body ul { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--ink-soft); }
.team-card .card-body li { padding-left: 1em; position: relative; margin-bottom: .25em; }
.team-card .card-body li::before { content: "–"; position: absolute; left: 0; color: var(--coral); }

/* Testimonials */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.testimonial p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; flex: 1; }
.testimonial p::before { content: "\201C"; }
.testimonial p::after { content: "\201D"; }
.testimonial-who { display: flex; align-items: center; gap: .8rem; }
.testimonial-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-who strong { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--teal-deep); }
.testimonial-who span { font-size: .8rem; color: var(--ink-soft); }

/* Service list pages */
.topic-list { list-style: none; padding: 0; margin: 0 0 2.75rem; display: grid; gap: .7rem; }
.topic-list li { background: var(--sand); border-radius: var(--radius-sm); padding: .9em 1.2em; font-size: .95rem; line-height: 1.5; }
.topic-list:last-child { margin-bottom: 0; }
/* Schlichte Aufzählung mit Bulletpoints, ohne graue Kästen (1:1 wie im Original bei Fließtext-Listen) */
.plain-list { list-style: disc; padding-left: 1.3em; margin: 0 0 1.5rem; display: grid; gap: .4rem; }
.plain-list li { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.kicker-block { background: var(--sand); color: var(--ink); border-radius: var(--radius); padding: 1.8rem; margin: 2.25rem 0; }
.kicker-block h3 { margin-bottom: .5rem; }

/* Article / Blog typography */
.article-meta { display: flex; gap: 1rem; align-items: center; color: var(--ink-soft); font-size: .85rem; margin-bottom: 1.4rem; }
.article-body { max-width: 720px; }
/* Fließtext-Kontexte (Leistungen-Detail, Blog, Impressum/Datenschutz, Cornelia Schneider):
   Überschriften brauchen sichtbaren Abstand zum vorherigen Block, unabhängig davon,
   was davor steht (Liste, Absatz, Bild …). Card-Komponenten bleiben davon unberührt. */
.container--narrow h2, .container--narrow h3,
.article-body h2, .article-body h3 { margin-top: 2.4em; }
.container--narrow h2:first-child, .container--narrow h3:first-child,
.article-body h2:first-child, .article-body h3:first-child { margin-top: 0; }
.container--narrow p, .article-body p { margin-bottom: 1.5em; }
.container--narrow strong, .article-body strong { color: var(--coral); font-weight: 700; }
.article-body img { border-radius: var(--radius); margin: 1.6rem 0; }
.article-body h2 { margin-top: 1.6em; }
.article-body p { color: var(--ink-soft); }
.article-table-wrap { overflow-x: auto; margin: 1.6rem 0 2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.article-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.article-table td, .article-table th { padding: .9em 1.1em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.article-table tr:last-child td { border-bottom: none; }
.article-table thead th, .article-table tr:first-child td { font-family: var(--font-display); font-weight: 700; color: var(--teal-deep); background: var(--sand); }
.article-author { display: flex; align-items: center; gap: .8rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-author img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.tag { display: inline-block; background: var(--teal-pale); color: var(--teal-deep); font-size: .78rem; font-family: var(--font-display); font-weight: 600; padding: .3em .8em; border-radius: 999px; }

/* Downloads / publications */
.pub-item { display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.pub-item img { border-radius: var(--radius-sm); aspect-ratio: 3/4; object-fit: cover; width: 100%; height: 100%; }
.card--book img { aspect-ratio: 3/4; object-fit: cover; }

/* Bücher: Original zeigt sie gestapelt (Cover links, Text rechts), nicht als
   gleich breite Karten-Grid-Spalten (bei langen Texten sonst sehr schmal/hässlich). */
.book-rows { display: grid; gap: 3rem; }
.book-row { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: start; }
.book-row img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.book-row h3 { margin-bottom: .6rem; }
.book-row ul { margin: 1rem 0; padding-left: 1.3em; }
@media (max-width: 640px) { .book-row { grid-template-columns: 120px 1fr; gap: 1.2rem; } }
.pub-item h3 { margin-bottom: .2em; font-size: 1.05rem; }
.pub-item .pub-meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: .5em; }
.pub-item p { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 560px) { .pub-item { grid-template-columns: 1fr; } .pub-item img { width: 120px; } }

/* Forms */
.form-field { display: flex; flex-direction: column; gap: .4em; margin-bottom: 1.1em; }
.form-field label { font-family: var(--font-display); font-weight: 500; font-size: .9rem; }
.form-field input, .form-field textarea {
  font: inherit; padding: .75em .9em; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: flex-start; gap: .6em; font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.2em; }
.form-check input { margin-top: .3em; }
.form-status { font-size: .88rem; margin-top: 1em; padding: .8em 1em; border-radius: var(--radius-sm); display: none; }
.form-status.ok { display: block; background: var(--teal-pale); color: var(--teal-deep); }
.form-status.err { display: block; background: #fbe6e0; color: var(--coral-deep); }

/* Login placeholder box */
.login-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; max-width: 380px; }
.login-box .btn { width: 100%; justify-content: center; }
.login-hint { font-size: .78rem; color: var(--ink-soft); margin-top: 1em; }
.login-pass-wrap { display: flex; }
.login-pass-wrap input { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; }
.login-pass-toggle {
  border: 1px solid var(--line); border-left: none; background: var(--teal);
  border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm);
  width: 2.6em; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff;
}
.login-check { display: flex; align-items: center; gap: .6em; font-size: .88rem; color: var(--ink-soft); margin: .2em 0 1.3em; }
.login-divider { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: 1.2em 0; position: relative; }
.login-divider::before, .login-divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--line); }
.login-divider::before { left: 0; } .login-divider::after { right: 0; }
.login-links { list-style: none; margin: 1.4em 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.login-links li + li { border-top: 1px solid var(--line); }
.login-links a { display: block; padding: .8em 1em; font-size: .88rem; color: var(--ink); text-decoration: none; }
.login-links a:hover { background: var(--sand); }

/* Übungen: Audio-Player-Liste */
.audio-list { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
.audio-item { background: var(--sand); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.audio-item h3 { font-size: 1rem; margin-bottom: .7rem; color: var(--teal-deep); }
.audio-item audio { width: 100%; display: block; }

/* Übungen zum Mitmachen: Kategorien + Einzelübungen */
.exercise-category { margin: 3rem 0 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.exercise-category:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.exercise-category > img { border-radius: var(--radius); margin-bottom: 1.5rem; max-width: 320px; }
.exercise-item { background: var(--sand); border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin-bottom: 1rem; }
.exercise-item h4 { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); margin-bottom: .6em; }
.exercise-item p { font-size: .92rem; color: var(--ink-soft); margin-bottom: .5em; }
.exercise-item p:last-child { margin-bottom: 0; }
.exercise-item strong { color: var(--ink); }

/* Contact info card */
.contact-card { background: var(--teal-deep); color: #f2f2f1; border-radius: var(--radius); padding: 2rem; }
.contact-card a { color: #fff; text-decoration: none; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8em; align-items: center; font-size: .95rem; }
.contact-list svg { width: 1.2em; height: 1.2em; flex-shrink: 0; color: var(--coral); }
.social-row { display: flex; gap: .8rem; margin-top: 1.4rem; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.social-row svg { width: 1.1em; height: 1.1em; }

/* Client logos / customer list */
.client-columns { columns: 4; column-gap: 2rem; font-size: .92rem; }
.client-columns h4 { font-family: var(--font-display); color: var(--coral); font-size: .85rem; margin: 1em 0 .3em; break-after: avoid; }
.client-columns p { margin: 0 0 .3em; break-inside: avoid; color: var(--ink-soft); }
@media (max-width: 900px) { .client-columns { columns: 2; } }
@media (max-width: 560px) { .client-columns { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: #d6d5d3; padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-display); color: #fff; font-size: .9rem; margin-bottom: 1rem; }
.footer-grid a { display: block; color: #d6d5d3; text-decoration: none; font-size: .92rem; margin-bottom: .6em; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: .84rem; color: #9a9a97; }
.footer-bottom a { color: #9a9a97; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Cookie banner: volle Leiste unten, 1:1 wie im Original (Web357 Cookie-Plugin) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #323a45; color: #f1f1f3;
  padding: 1rem 1.5rem; display: none; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: .8rem; color: #f1f1f3; margin: 0; flex: 1; min-width: 240px; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions .btn { font-size: .8rem; padding: .5em 1em; background: var(--coral); border-color: var(--coral); color: #fff; }
.cookie-actions .btn:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; } .cookie-actions { flex-direction: column; } }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.text-center { margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.divider { height: 1px; background: var(--line); margin: 2.5rem 0; border: none; }
.back-link { margin-top: 2.5rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal-deep); color: #fff; padding: .8em 1.2em; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Accordion (z.B. Seminar-/Termine-Liste) */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:first-child { border-top: 1px solid var(--line); }
.accordion-head {
  display: flex; align-items: center; gap: .9em; padding: 1.1em .25em; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  list-style: none;
}
.accordion-head::-webkit-details-marker { display: none; }
.accordion-head::marker { content: ""; }
.accordion-head:hover { color: var(--coral); }
.accordion-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--coral); }
.accordion-head span { flex: 1; }
.accordion-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-soft); transition: transform .2s ease; }
.accordion-item[open] .accordion-chevron { transform: rotate(180deg); }
.accordion-body { padding: 0 .25em 1.8em 2.8em; }
.accordion-body h4 { font-family: var(--font-display); font-weight: 600; color: var(--coral); font-size: .95rem; margin: 1.4em 0 .5em; }
.accordion-body h4:first-child { margin-top: 0; }
.accordion-body .lead { font-weight: 500; }
.accordion-body .referent { font-size: .9rem; color: var(--ink-soft); }
.accordion-body a { color: var(--teal); }
.termine-year { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink-soft); margin: 1.2em 0 .5em; text-transform: uppercase; letter-spacing: .02em; }
.termine-list { list-style: none; padding: 0; margin: 0 0 .5em; display: grid; gap: .6rem; }
.termin-entry { background: var(--sand); border-radius: var(--radius-sm); padding: .8em 1.1em; }
.termin-entry strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .2em; }
.termin-info { display: block; font-size: .82rem; color: var(--ink-soft); line-height: 1.6; }
.termine-note { font-size: .9rem; color: var(--ink-soft); font-style: italic; }
@media (max-width: 560px) { .accordion-body { padding-left: .25em; } }

/* Kundenstimmen-Slider (1:1 wie im Original bei "Unsere Kunden": voller
   orangener Hintergrund, Zitat + rundes Portrait + Name, Pfeile + Punkte) */
.testi-slider-section { background: var(--coral); padding: clamp(3rem, 7vw, 5rem) 0; }
.testi-slider { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.testi-slides { position: relative; min-height: 420px; }
.testi-slide { display: none; }
.testi-slide.is-active { display: block; animation: testi-fade .4s ease; }
@keyframes testi-fade { from { opacity: 0; } to { opacity: 1; } }
.testi-slide-quote { font-style: italic; font-size: 1.15rem; line-height: 1.7; color: var(--ink); margin: 0 auto 2rem; max-width: 760px; }
.testi-slide-img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.2rem; display: block; box-shadow: var(--shadow); }
.testi-slide-name { font-weight: 700; color: var(--ink); margin: 0; }
.testi-slide-role { font-weight: 700; color: var(--ink); margin: 0; }
.testi-arrow {
  position: absolute; top: 45%; transform: translateY(-50%); background: none; border: none;
  color: var(--ink); cursor: pointer; padding: .5rem; opacity: .7; transition: opacity .2s;
}
.testi-arrow:hover { opacity: 1; }
.testi-arrow--prev { left: -2.5rem; }
.testi-arrow--next { right: -2.5rem; }
.testi-arrow svg { width: 28px; height: 28px; }
.testi-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.testi-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(37,37,37,.3); padding: 0; cursor: pointer; }
.testi-dot.is-active { background: var(--ink); }
@media (max-width: 720px) {
  .testi-arrow--prev { left: 0; }
  .testi-arrow--next { right: 0; }
  .testi-slider { padding: 0 3rem; }
}

/* Vollflächiger Beratungs-CTA-Banner am Ende jeder Leistungen-Unterseite (1:1 wie im Original) */
.cta-banner {
  position: relative; background-color: var(--teal-deep);
  background-image: linear-gradient(rgba(37,37,37,.45), rgba(37,37,37,.45)), var(--cta-bg-image);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  padding: clamp(4rem, 12vw, 9rem) 0;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.cta-banner .btn { font-size: 1.05rem; padding: .9em 1.8em; }

/* Themen-Auswahl im Kontaktformular */
.chips { border: 0; padding: 0; margin: 0 0 1.2em; min-width: 0; }
.chips legend { padding: 0; margin-bottom: .5em; font-size: .9rem; font-weight: 600; }
.chips-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .45em 1em; border: 1.5px solid var(--line); border-radius: 999px; font-size: .85rem; background: #fff; transition: background .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: var(--coral); }
.chip input:checked + span { background: var(--coral); border-color: var(--coral); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---------- Physio-spezifische Farb-Overrides (1:1 aus physio.ggw-homburg.de :root) ---------- */
:root {
  --coral: #e96a18;
  --coral-deep: #c2560d;
  --teal-deep: #333333; /* Topbar-Hintergrund */
}
.site-footer { background: #171717; }

/* ---------- Startseite: Aufbau wie physio.ggw-homburg.de ---------- */
.phy-hero { min-height: clamp(260px, 26vw, 380px); padding: 0; }
.phy-intro { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.phy-intro h1 { font-size: clamp(2.2rem, 3.5vw, 3.125rem); font-weight: 500; color: #e96a18; line-height: 1.34; margin-bottom: 1.2rem; }
.phy-intro .container { max-width: 76rem; }
.phy-intro p { color: #464855; font-size: 1.125rem; line-height: 1.6; margin-bottom: 1.4rem; }
.phy-intro strong, .phy-intro em { color: inherit; }
.phy-small { font-size: .85rem; font-style: normal; }
.phy-signature { display: block; text-align: center; margin: .5rem auto 0; }
.phy-signature img { display: block; width: min(100%, 420px); height: auto; margin: 0 auto; }

.phy-orange { background: #e96a18; color: #fff; padding: 50px 0; }
.phy-orange h2 { color: #fff; font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; margin: 0; letter-spacing: 0; }
.phy-orange-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; align-items: center; }
.phy-testimonial { border: 2px solid #fff; border-radius: 6px; padding: 2rem; font-size: 1rem; line-height: 1.55; }
.phy-testimonial p { color: #fff; margin: 0 0 .8rem; }
.phy-testimonial-who { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; font-size: .9rem; }
.phy-testimonial-who img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }
.phy-btn-outline { display: block; text-align: center; border: 1px solid #fff; border-radius: 4px; color: #fff; padding: .8rem 1.2rem; font-size: 1rem; text-decoration: none; transition: background .2s, color .2s; }
.phy-btn-outline:hover { background: #fff; color: #e96a18; }
.phy-orange--bar { padding: 50px 0; }
.phy-bar { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: center; }

.phy-termine-title { text-align: left; margin: 2.5rem 0 1rem; color: var(--ink); font-weight: 500; }

.phy-grey { background: #d8d8d8; padding: 50px 0; }
.phy-beratung-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.phy-beratung-grid img { width: 100%; height: auto; display: block; }
.phy-beratung-grid h2 { margin-bottom: 1rem; color: #464855; font-weight: 500; font-size: 1.9rem; }
.phy-beratung-grid p, .phy-beratung-grid li { color: #464855; }
.phy-beratung-grid ul { padding-left: 1.3rem; margin: 0 0 1.2rem; list-style: disc; }
.phy-beratung-grid a { color: #e96a18; }

.phy-newsletter { color: #fff; padding: 110px 0 90px; background-color: #1d4f9c; background-image: var(--nl-bg); background-size: cover; background-position: center; }
.phy-newsletter h2 { color: #fff; font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.phy-newsletter p { color: #fff; }
.phy-nl-form { text-align: left; margin-top: 1.5rem; display: grid; gap: .9rem; }
.phy-nl-form input[type="text"], .phy-nl-form input[type="email"] { width: 100%; border: 0; border-radius: 3px; padding: .65rem .8rem; font: inherit; font-size: .9rem; }
.phy-nl-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: #fff; }
.phy-nl-check input { margin-top: .3rem; }
.phy-nl-check a { color: #fff; text-decoration: underline; }
.phy-nl-btn { justify-self: center; background: transparent; color: #fff; border: 1px solid #fff; border-radius: 30px; padding: .7rem 2.4rem; font: inherit; cursor: pointer; }
.phy-nl-btn:hover { background: #fff; color: #1d4f9c; }

@media (max-width: 820px) {
  .phy-orange-grid, .phy-bar, .phy-beratung-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.accordion-head { color: #4b5981; font-size: .875rem; font-weight: 700; }

/* ---------- Termine-Akkordeon: kompakt und übersichtlich ---------- */
.accordion-body.acc { padding: .2rem .5rem 1.6rem 2.6rem; max-width: 62rem; }
.acc p { margin: 0 0 .7em; font-size: .95rem; line-height: 1.65; color: #464855; }
.acc .acc-lead { font-weight: 600; font-size: 1.02rem; color: #2f3140; }
.acc .acc-quote { margin: .9rem 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid #e96a18; font-style: italic; color: #5a5c6b; font-size: .95rem; }
.acc h4 { font-family: var(--font-display); color: #e96a18; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 1.5rem 0 .55rem; }
.acc h5 { font-size: .93rem; font-weight: 700; color: #2f3140; margin: 1rem 0 .35rem; }
.acc-list { list-style: none; padding: 0; margin: 0 0 .9rem; column-count: 2; column-gap: 2.5rem; }
.acc-list li { position: relative; padding-left: 1.15rem; margin-bottom: .4rem; font-size: .92rem; line-height: 1.5; color: #464855; break-inside: avoid; }
.acc-list li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #e96a18; }
.acc-list li strong { display: block; color: #2f3140; font-weight: 600; }
.acc-list li span { display: block; color: #6b6d7b; font-size: .88rem; }
.acc-phases { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .25rem; }
.acc-phases li { display: flex; gap: .8rem; font-size: .92rem; line-height: 1.5; }
.acc-phases strong { flex: 0 0 4.2rem; color: #e96a18; font-weight: 700; }
.acc-phases span { color: #464855; }
.acc .acc-ref { font-size: .88rem; color: #6b6d7b; margin-top: 1rem; }
.acc .acc-ref a, .acc-reg a, .acc-none a { color: #e96a18; }
.acc-tech { margin-top: 1.2rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.acc-tech h4 { display: inline; margin: 0 .5rem 0 0; font-size: .7rem; color: #6b6d7b; }
.acc-tech p { display: inline; font-size: .84rem; color: #6b6d7b; line-height: 1.55; }
.acc-termine { margin-top: 1.5rem; padding: 0; }
.acc-termine h4 { margin: 0 0 .6rem; }
.acc-dates { list-style: none; padding: 0; margin: 0 0 .9rem; display: grid; gap: .45rem; }
.acc-dates li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; background: var(--sand); border-radius: 10px; padding: .65rem 1rem; line-height: 1.45; }
.acc-dates .acc-date-group { background: none; padding: .5rem 0 0; font-size: .78rem; font-weight: 700; color: #6b6d7b; text-transform: uppercase; letter-spacing: .06em; }
.acc-date { font-weight: 700; color: #2f3140; font-size: .95rem; }
.acc-meta { color: #464855; font-size: .9rem; }
.acc-org { font-size: .72rem; color: #6b6d7b; background: #fff; border-radius: 20px; padding: .1rem .6rem; }
.acc-reg { font-size: .82rem; line-height: 1.6; color: #6b6d7b; }
.acc-none { font-style: italic; color: #6b6d7b !important; }
.acc-info { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .92rem; word-break: break-word; }
@media (max-width: 560px) { .accordion-body.acc { padding-left: .3rem; padding-right: .3rem; } .acc-list { column-count: 1; } }

.phy-consent { max-width: 36rem; margin: 1.5rem auto 0; padding: 1.5rem; background: var(--sand); border-radius: 12px; }
.phy-consent p { font-size: .92rem; color: #464855; }
.phy-consent a { color: #e96a18; }
.phy-nl-btn--dark { color: #fff; background: #e96a18; border: 0; margin-top: .5rem; }
.phy-nl-btn--dark:hover { background: #c2560d; color: #fff; }
.phy-consent-alt { margin: 1rem 0 0; }
#jotform-wrap { margin-top: 1.5rem; }

/* ---------- Beratungs-Formular ---------- */
.phy-contact { margin: 2rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; background: var(--sand); padding: 2rem; border-radius: 14px; }
.phy-field { display: flex; flex-direction: column; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.phy-field--full { grid-column: 1 / -1; }
.phy-field label, .phy-choices legend { font-size: .88rem; font-weight: 600; color: #2f3140; padding: 0; }
.phy-field abbr { color: #e96a18; text-decoration: none; }
.phy-field input[type="text"], .phy-field input[type="email"], .phy-field input[type="tel"], .phy-field select, .phy-field textarea { width: 100%; border: 1px solid #d6d6d3; border-radius: 8px; padding: .7rem .85rem; font: inherit; font-size: .95rem; background: #fff; color: #2f3140; }
.phy-field input:focus, .phy-field select:focus, .phy-field textarea:focus { outline: 2px solid #e96a18; outline-offset: 1px; border-color: transparent; }
.phy-tel { display: grid; grid-template-columns: 7rem 1fr; gap: .6rem; }
.phy-choices { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; }
.phy-choices legend { float: left; margin-right: 1.4rem; }
.phy-choices label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; font-size: .95rem; }
.phy-consent-check { flex-direction: row; align-items: flex-start; gap: .7rem; font-weight: 400 !important; font-size: .85rem !important; line-height: 1.5; color: #464855 !important; }
.phy-consent-check input { margin-top: .25rem; }
.phy-consent-check a { color: #e96a18; }
.phy-consent-check em { display: block; margin-top: .3rem; font-style: normal; color: #6b6d7b; }
.phy-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.phy-submit .form-status { margin: 0; font-size: .92rem; }
.phy-submit .form-status.ok { color: #2e7d32; }
.phy-submit .form-status.err { color: #c62828; }
@media (max-width: 640px) { .phy-contact { grid-template-columns: 1fr; padding: 1.3rem; } .phy-tel { grid-template-columns: 6rem 1fr; } }

.phy-nl-names { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .phy-nl-names { grid-template-columns: 1fr; } }

/* Menue: engerer Abstand */
.nav { gap: 1.1rem; }
