/* ==========================================================================
   Praxis für Physiotherapie & Krankengymnastik – Kai Kratzmann
   Statische Seite · Masterlayout: FireShot-Captures 418–423
   ========================================================================== */

:root {
  --rot: #9d0104;
  --creme: #fafaf0;
  --linie: #cdcbb7;
  --grau: #f3f3f3;
  --text: #000;
  --spalte: 550px;
  --gap: 18px;
  --font: Helvetica, Arial, "Liberation Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;            /* Fließtext Desktop */
  line-height: 25px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-decoration: none; }
a.tel { color: inherit; text-decoration: none; }
a.tel:hover { text-decoration: underline; }
a:hover, a:focus-visible { text-decoration: underline; }
p { margin: 0 0 13px; }
strong, b { font-weight: 700; }

.container { width: var(--spalte); max-width: 100%; margin: 0 auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 6px 10px; z-index: 100; }

/* ---------- Header ---------- */
.site-header { background: #fff; height: 133px; }
.site-header .logo { display: block; width: 250px; height: 133px; margin: 0 auto; }
.site-header .logo img { width: 250px; height: 133px; }

.main-nav {
  background: var(--rot);
  border-bottom: 3px solid var(--linie);
}
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center;
}
.main-nav a {
  display: block;
  height: 33px; line-height: 33px;
  padding: 0 8px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}
.main-nav a:hover { text-decoration: none; background: rgba(255,255,255,.08); }
.main-nav a[aria-current="page"] { background: var(--creme); color: var(--rot); }
.nav-toggle { display: none; }

/* ---------- Inhalt ---------- */
main { padding: 33px 0 34px; }

.h-page {
  margin: 0 0 19px;
  color: var(--rot);
  font-size: 20px; line-height: 22px;
  font-weight: 400;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-align: center;
}
.h-page.left { text-align: left; }
.h-page.tight { margin-bottom: 13px; }
.legal .h-page.bold { font-size: 20px; line-height: 22px; font-weight: 700; letter-spacing: .6px; margin: -6px 0 12px; }

.h-sec {
  margin: 0 0 15px;
  color: var(--rot);
  font-size: 15.5px; line-height: 22px;
  font-weight: 400;
  letter-spacing: .8px;
}
.h-sec.upper { font-size: 19px; text-transform: uppercase; margin-bottom: 18px; }

.center { text-align: center; }
.spacer { height: 21px; }
.spacer-2 { height: 39px; }
.spacer-w { height: 62px; }
.spacer-g { height: 78px; }
.spacer-l { height: 69px; }
.spacer-t { height: 55px; }

/* Raster wie Enfold-Spalten */
.grid { display: grid; gap: 0 var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.rounded { border-radius: 3px; }

/* Startseite – Teaser */
.teaser { text-align: center; }
.teaser img { width: 100%; aspect-ratio: 280 / 180; object-fit: cover; border-radius: 3px; }
.teaser h2 { margin: 4px 0 10px; color: var(--rot); font-size: 16px; line-height: 22px; font-weight: 400; letter-spacing: 1px; }
.teaser p { font-size: 13px; line-height: 21.5px; margin-bottom: 10px; }
.btn {
  display: inline-block;
  background: var(--rot); color: #fff;
  font-size: 10px; line-height: 20px;
  padding: 0 6px;
  border-radius: 2px;
}
.btn:hover { text-decoration: none; background: #7d0003; }

/* Team */
.team-photo { width: 100%; border-radius: 3px; }
.member img { width: 100%; aspect-ratio: 204 / 305; object-fit: cover; border-radius: 3px; }
.member h3 { margin: 7px 0 12px; color: var(--rot); font-size: 13px; line-height: 14px; font-weight: 700; }
.member p { font-size: 11px; line-height: 19.5px; margin: 0; }

/* Therapieangebot – Listen */
.offer { margin-top: 29px; }
.offer h2 { margin: 0 0 8px; color: var(--rot); font-size: 16px; line-height: 17.5px; font-weight: 400; letter-spacing: 1px; }
.offer ul { list-style: none; margin: 0 0 7px; padding: 0; font-size: 12px; line-height: 19px; }
.offer li { position: relative; margin: 0 0 5px; padding-left: 17px; }
.offer li::before { content: "•"; position: absolute; left: 6px; top: 0; }
.offer .note { font-size: 12px; line-height: 19px; }

.symptoms { list-style: none; margin: 19px 0 14px; padding: 0; }
.symptoms li { position: relative; margin: 0 0 4.5px; padding-left: 20px; }
.symptoms li::before { content: "•"; position: absolute; left: 7px; top: 0; }
.h-sec.sp { margin: 25px 0 7px; }
.offer .note { margin-top: 17px; }
.gallery { margin-bottom: 8px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; aspect-ratio: 130 / 131; overflow: hidden; border-radius: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }

/* Kontakt */
.box { background: var(--grau); }
.contact-info { display: grid; grid-template-columns: 183px 1fr 1fr; gap: 0 13px; padding-right: 0; }
.contact-info .col { padding: 10px 0 12px; font-size: 11.3px; line-height: 19px; }
.contact-info h2 { margin: 3px 0 13px; color: var(--rot); font-size: 15px; line-height: 20px; font-weight: 400; letter-spacing: 1px; }
.contact-info p { margin: 0 0 9px; }
.contact-info b { color: var(--rot); }

.map { position: relative; min-height: 255px; background: var(--grau); overflow: hidden; }
.map-consent {
  position: absolute; inset: 0;
  background: var(--grau) url(../img/karte.jpg) 0 0 / 100% auto no-repeat;
}
.map-consent .card {
  position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%);
  width: 132px; padding: 6px 6px 5px;
  background: rgba(255,255,255,.93); border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.25);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; font-size: 8px; line-height: 10px; color: #333;
}
.map-consent .open-maps { position: absolute; left: 5px; top: 5px; width: 92px; height: 23px; }
.map-consent button {
  font: inherit; font-size: 10px; color: #fff; background: var(--rot);
  border: 0; border-radius: 2px; padding: 5px 10px; cursor: pointer;
}
.map-consent a { color: var(--rot); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.form-box { padding: 12px 13px 22px; font-size: 13px; line-height: 17px; }
.form-box h2 { margin: 0 0 10px; color: var(--rot); font-size: 15px; line-height: 20px; font-weight: 400; letter-spacing: 1px; }
.form-box .field { margin: 0 0 11px; }
.form-box label.sr { position: absolute; left: -9999px; }
.form-box input[type=text], .form-box input[type=email], .form-box textarea {
  display: block; width: 100%;
  border: 0; border-radius: 0; background: #fff;
  font: inherit; font-size: 11px; color: #000;
  padding: 0 9px; height: 32px;
}
.form-box textarea { height: 142px; padding-top: 8px; resize: vertical; }
.form-box ::placeholder { color: #bbb; }
.form-box .check { display: flex; align-items: center; gap: 6px; margin: 14px 0 14px; font-size: 13px; line-height: 18px; }
.form-box .check input { width: 10px; height: 10px; margin: 0 0 0 2px; }
.form-box .check abbr { color: var(--rot); text-decoration: none; border: 0; }
.form-box .consent { margin: 0 0 11px; }
.form-box .submit {
  font: inherit; font-size: 13px; color: #fff; background: var(--rot);
  border: 0; border-radius: 0; height: 38px; padding: 0 15px; cursor: pointer;
}
.form-box .submit:hover { background: #7d0003; }
.form-box .hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 10px; font-size: 13px; }
.form-msg.ok { color: #1a6b1a; } .form-msg.err { color: var(--rot); }

/* Rechtstexte */
.legal strong { color: var(--rot); }
.legal h2 { margin: 26px 0 8px; color: var(--rot); font-size: 15px; line-height: 20px; font-weight: 400; letter-spacing: 1px; }
.legal .sub { color: var(--rot); font-weight: 400; }
.legal ul { margin: 0 0 13px; padding-left: 20px; }
.legal p { overflow-wrap: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--rot); color: #fff; font-size: 12px; line-height: 20px; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a.tel { text-decoration: none; }
.footer-cols { padding: 12px 0 18px; }
.footer-cols p { margin: 0; }
.footer-cols p { overflow-wrap: anywhere; }
.socket { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 0 14px; font-size: 9.25px; line-height: 14px; }
.socket ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 14px; }
.socket a { text-decoration: none; }
.socket a:hover { text-decoration: underline; }
.socket .copy { padding-top: 6px; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 50; padding: 30px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; box-shadow: 0 0 30px rgba(0,0,0,.6); }
.lb button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lb .prev, .lb .next { top: 50%; transform: translateY(-50%); font-size: 46px; }
.lb .prev { left: 10px; right: auto; } .lb .next { right: 10px; }

/* ==========================================================================
   Tablet / Mobil
   ========================================================================== */
@media (max-width: 767px) {
  body { font-size: 17px; line-height: 27px; }      /* Fließtext Mobil */
  .container { width: auto; padding: 0 20px; }
  .site-header { height: auto; padding: 4px 0 2px; }
  .site-header .logo, .site-header .logo img { width: 220px; height: 117px; }

  .main-nav ul { display: none; flex-direction: column; }
  .main-nav.open ul { display: flex; }
  .main-nav a { height: auto; line-height: 24px; padding: 11px 20px; font-size: 17px; border-top: 1px solid rgba(255,255,255,.15); }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 44px; border: 0; background: var(--rot); color: #fff;
    font: inherit; font-size: 17px; cursor: pointer;
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 20px; height: 2px; background: #fff; position: relative; content: "";
  }
  .nav-toggle .bars::before { position: absolute; top: -6px; }
  .nav-toggle .bars::after { position: absolute; top: 6px; }

  main { padding: 28px 0 30px; }
  p { margin-bottom: 15px; }
  .h-page { font-size: 21px; line-height: 26px; }
  .h-sec { font-size: 19px; line-height: 25px; }
  .center { text-align: left; }
  .h-page { text-align: center; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 30px; }
  .grid-4.members { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .teaser h2 { font-size: 20px; }
  .teaser p { font-size: 17px; line-height: 27px; text-align: center; }
  .spacer-l, .spacer-t, .spacer-w, .spacer-g { height: 40px; }
  .btn { font-size: 15px; line-height: 36px; padding: 0 16px; }

  .member h3 { font-size: 16px; line-height: 20px; }
  .member p { font-size: 15px; line-height: 22px; }

  .offer h2 { font-size: 19px; line-height: 24px; }
  .offer ul, .offer .note { font-size: 17px; line-height: 27px; padding-left: 0; }
  .offer li { padding-left: 20px; } .offer li::before { left: 6px; }
  .offer ul { margin-bottom: 0; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .contact-info { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .contact-info .col { padding: 14px 16px 6px; font-size: 17px; line-height: 27px; }
  .contact-info h2 { font-size: 19px; }
  .map { min-height: 260px; }
  .map-consent { background-size: cover; background-position: center 42%; }
  .map-consent .card { width: 200px; bottom: 14px; font-size: 12px; line-height: 16px; }
  .map-consent .open-maps { display: none; }
  .map-consent button { font-size: 15px; padding: 9px 14px; }

  .form-box { padding: 14px 16px 22px; font-size: 15px; line-height: 23px; }
  .form-box h2 { font-size: 19px; }
  .form-box input[type=text], .form-box input[type=email], .form-box textarea { font-size: 17px; height: 46px; }
  .form-box textarea { height: 170px; }
  .form-box .check { font-size: 17px; }
  .form-box .check input { width: 18px; height: 18px; }
  .form-box .submit { font-size: 17px; height: 46px; }

  .legal h2 { font-size: 19px; line-height: 25px; }

  .site-footer { font-size: 15px; line-height: 23px; }
  .footer-cols { padding: 24px 0 10px; }
  .footer-cols.grid-3 { gap: 18px; }
  .socket { flex-direction: column-reverse; align-items: flex-start; gap: 12px; padding-bottom: 22px; font-size: 13px; line-height: 18px; }
  .socket ul { flex-wrap: wrap; gap: 6px 18px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
