/* =========================================================
   Krankengymnastik Janzing – Stylesheet
   Farben & Schriften aus der bisherigen Website übernommen:
   Grün #74B26E · Grau #5B5B5B · Weiß
   Überschriften/Navigation: Effra (Adobe Fonts) · Fließtext: Georgia
   ========================================================= */

:root {
  --green: #74b26e;          /* Hausfarbe */
  --green-dark: #4f8a4a;     /* für kleine grüne Schrift auf Weiß (besserer Kontrast) */
  --green-deep: #3d6f39;
  --green-tint: #eef6ed;
  --gray: #5b5b5b;           /* Textfarbe */
  --gray-light: #8a8a8a;
  --line: #e4e9e3;
  --white: #fff;
  --bg: #fafbf9;

  --font-head: effra, "Effra", "Helvetica Neue", Arial, sans-serif;
  --font-body: Georgia, "Times New Roman", serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(40, 60, 38, .12);
  --max: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
html, body { overflow-x: clip; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: .02em;
}
h1, h2 { text-transform: uppercase; color: var(--green); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; color: var(--gray); }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--green);
  height: var(--header-h);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gray); }
.brand img { height: 54px; width: auto; }
.brand-text { font-family: var(--font-head); line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.15rem; text-transform: uppercase; color: var(--green); letter-spacing: .04em; }
.brand-text span { font-size: .85rem; color: var(--gray-light); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  font-size: .95rem; color: var(--gray); text-decoration: none;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green-dark); background: var(--green-tint); }
.main-nav .nav-cta a { background: var(--green); color: #fff; margin-left: 8px; }
.main-nav .nav-cta a:hover { background: var(--green-dark); color: #fff; }

/* Dropdown */
.has-sub { position: relative; }
.has-sub > ul {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  display: block; background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.has-sub:hover > ul, .has-sub:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub > ul a { text-transform: none; letter-spacing: 0; font-size: .95rem; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  width: 48px; height: 48px; border-radius: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 3px; background: var(--green); border-radius: 2px; position: relative; transition: .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; overflow: hidden; color: #fff;
}
.hero-media, .page-hero-media { position: absolute; inset: 0; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,45,28,.45) 0%, rgba(30,45,28,.15) 55%, rgba(0,0,0,0) 100%);
}
.hero .container { position: relative; z-index: 2; padding-block: 60px; }
.hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 16px; margin-bottom: 16px; }
.card {
  border-radius: var(--radius); padding: 24px 24px 20px; box-shadow: var(--shadow);
  font-family: var(--font-head); font-size: 1rem; line-height: 1.55;
}
.card h2 { font-size: 1.35rem; margin-bottom: .5em; }
.card-green { background: rgba(116,178,110,.95); color: #fff; }
.card-green h2 { color: #fff; }
.card-green a { color: #fff; }
.card-white { background: rgba(255,255,255,.93); color: var(--gray); }
.card-white h2 { color: var(--green); }
.card .lead { font-size: 1.3rem; font-weight: 700; line-height: 1.25; margin-top: 18px; }
.hours { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours td { padding: 3px 0; vertical-align: top; }
.hours td:last-child { text-align: right; white-space: nowrap; }
.hours small { color: var(--gray-light); }
.welcome { max-width: 552px; padding: 34px 34px 22px; font-family: var(--font-body); font-size: 1.02rem; line-height: 1.75; }
.welcome h1 { font-size: 1.7rem; }

/* ---------- Unterseiten-Hero ---------- */
.page-hero {
  position: relative; height: clamp(320px, 62vh, 640px); display: flex; align-items: flex-end; overflow: hidden;
}
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,30,20,.45), rgba(0,0,0,0) 55%); }
.page-hero .container { position: relative; z-index: 2; padding-bottom: 44px; }
.page-title {
  display: inline-block; background: var(--green); color: #fff; padding: 18px 28px 14px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.page-title small { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; opacity: .9; }
.page-title h1 { color: #fff; margin: 0; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section-white { background: #fff; }
.section-tint { background: var(--green-tint); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--green-dark); margin-bottom: .6em; display: block; }
.intro { max-width: 760px; font-size: 1.12rem; }
.intro-center { margin-inline: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Leistungs-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px;
  background: var(--green); color: #fff; text-decoration: none; border-radius: var(--radius); padding: 22px;
  font-family: var(--font-head); position: relative; overflow: hidden; transition: transform .2s, background .2s;
}
.tile::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px;
  background: url("../bilder/button-icon.png") center/cover; opacity: .35;
}
.tile strong { font-size: 1.2rem; hyphens: auto; overflow-wrap: break-word; text-transform: uppercase; letter-spacing: .04em; position: relative; }
.tile span { font-size: .92rem; opacity: .95; position: relative; }
.tile:hover { transform: translateY(-4px); background: var(--green-dark); color: #fff; }

/* Leistung (Detail) */
.service { padding-block: clamp(48px, 7vw, 84px); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service h2 { display: flex; align-items: center; gap: 14px; }
.service h2::before { content: ""; width: 34px; height: 4px; background: var(--green); border-radius: 2px; flex: none; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.gallery img { border-radius: 10px; aspect-ratio: 2/3; object-fit: cover; width: 100%; }

/* Team */
.team-lead { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: start; }
.team-lead .portrait { border-radius: 50%; box-shadow: var(--shadow); width: 200px; height: 200px; object-fit: cover; border: 6px solid #fff; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.member { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 18px rgba(40,60,38,.07); overflow: hidden; display: flex; flex-direction: column; }
.member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 24px 22px 0; border: 4px solid var(--green-tint); }
.member-body { padding: 22px 22px 10px; flex: 1; }
.member h3 { margin-bottom: .2em; }
.member .focus { font-family: var(--font-head); color: var(--green-dark); font-size: .98rem; line-height: 1.4; margin-bottom: .8em; }
.member .edu { font-size: .92rem; line-height: 1.6; }
.member details { border-top: 1px solid var(--line); padding: 0 22px; }
.member summary {
  cursor: pointer; padding: 14px 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  font-size: .85rem; color: var(--green-dark); list-style: none; display: flex; justify-content: space-between;
}
.member summary::-webkit-details-marker { display: none; }
.member summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.member details[open] summary::after { content: "–"; }
.timeline { list-style: none; margin: 0 0 18px; padding: 0; font-size: .9rem; line-height: 1.55; }
.timeline li { padding: 6px 0 6px 16px; border-left: 2px solid var(--green-tint); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Kontakt / Anfahrt */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-grid .card { font-family: var(--font-head); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; text-decoration: none;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.map {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--green-tint); min-height: 420px;
  display: grid; place-items: center; text-align: center; box-shadow: var(--shadow);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { padding: 30px; max-width: 460px; font-size: .95rem; }

.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-family: var(--font-head); font-size: .9rem; display: block; margin-bottom: 4px; }
.form input, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d5ddd4; border-radius: 10px; font: inherit; font-size: 1rem; color: var(--gray); background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.form .check input { width: auto; margin-top: 4px; }

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--green); color: #fff; padding-block: 54px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -40px; bottom: -40px; width: 340px; background: url("../bilder/button-icon.png") center/cover; opacity: .25; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; font-family: var(--font-head); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #3f4a3e; color: #dfe6de; font-family: var(--font-head); font-size: .97rem; padding-top: 60px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.site-footer h3 { color: var(--green); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer .hours td { padding: 1px 0; }
.site-footer .hours td:last-child { text-align: left; padding-left: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; padding: 20px;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 16px 8px; font-size: 1.1rem; }
  .has-sub > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 10px 14px; min-width: 0; }
  .has-sub > ul a { padding: 9px 8px; font-size: 1rem; color: var(--gray-light); }
  .main-nav .nav-cta { border: 0; margin-top: 20px; }
  .main-nav .nav-cta a { margin: 0; text-align: center; border-radius: 999px; }

  .hero { min-height: 0; display: block; }
  .hero-media { position: relative; height: 58vh; min-height: 300px; }
  .hero-media img { object-position: 70% center; }
  .hero-media::after { background: linear-gradient(0deg, rgba(250,251,249,1) 0%, rgba(250,251,249,0) 30%); }
  .hero .container { margin-top: -90px; padding-top: 0; padding-bottom: 50px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid .card:first-child { grid-column: 1 / -1; }
  .welcome { max-width: none; }

  .split, .team-lead { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .team-lead .portrait { width: 160px; height: 160px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-text span { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .welcome { padding: 26px 22px 14px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { min-height: 120px; padding: 16px; }
  .tile strong { font-size: 1rem; }
  .tile span { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-title { padding: 14px 20px 10px; }
  .cta-band .btn { width: 100%; justify-content: center; }
}
