/* ==========================================================================
   physioFit360° – Stylesheet (statische Website, kein JavaScript nötig)
   Mobile-First: Basis = Smartphone, größere Bildschirme per min-width.
   Farben und Schriften stehen oben unter :root und lassen sich dort ändern.
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Advent Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/advent-pro-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Advent Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/advent-pro-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Advent Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/advent-pro-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2");
}

/* ---------- Design-Variablen ---------- */
:root {
  --blue: #1772c9;          /* Markenfarbe */
  --blue-dark: #11599f;     /* Hover */
  --blue-tint: #f1f6fc;     /* heller Abschnittshintergrund */
  --blue-line: #d5e4f4;
  --text: #3d3d3d;          /* Fließtext */
  --heading: #404042;       /* Überschriften */
  --white: #fff;
  --warn-bg: #fff7d6;
  --warn-line: #e6c200;

  --font-text: "Advent Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-head: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 2px 14px rgb(23 114 201 / .12);
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  /* Platz für die feste Anruf-Leiste am Handy */
  padding-bottom: 4.75rem;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1.3rem;       /* Advent Pro ist schmal und klein, daher etwas größer */
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 3.2vw, 1.4rem); }

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .3em; }
strong { font-weight: 700; }

a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: .5rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--white);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: .5rem; }

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

/* ---------- Layout-Bausteine ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 3rem; }
.section--tint { background: var(--blue-tint); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue h2,
.section--blue h3 { color: var(--white); }
.section--blue a:not(.btn) { color: var(--white); }

.eyebrow {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.section--blue .eyebrow { color: #cfe4fb; }

.lead { font-size: 1.08em; }
@media (min-width: 62rem) { .lead { font-size: 1.15em; } }
.center { text-align: center; }
.narrow { max-width: 46rem; }
.center.narrow { margin-inline: auto; }

.grid {
  display: grid;
  gap: 1.25rem;
}
.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .7rem 1.5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--white { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--white:hover { background: var(--blue-tint); color: var(--blue-dark); border-color: var(--blue-tint); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.section--blue .btn--ghost,
.hero .btn--ghost { color: var(--white); border-color: var(--white); }
.section--blue .btn--ghost:hover,
.hero .btn--ghost:hover { background: var(--white); color: var(--blue); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ---------- Kopfzeile & Navigation (ohne JavaScript) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--blue-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .1em;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--blue); }
.brand small {
  font-size: .62em;
  font-weight: 400;
  color: #5b94d3;
}
.brand img { height: 48px; width: auto; }

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 3rem;
  height: 3rem;
  padding: 0 .75rem;
  cursor: pointer;
  border-radius: 10px;
  background: var(--blue-tint);
}
.burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .2s, opacity .2s;
}
.nav-toggle:focus-visible + .burger { outline: 3px solid #ffb703; outline-offset: 2px; }
.nav-toggle:checked + .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--blue-line);
  box-shadow: 0 10px 20px rgb(0 0 0 / .08);
}
.nav-toggle:checked ~ .main-nav { display: block; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: .5rem 1.25rem 1rem;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: .85rem .25rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  border-bottom: 1px solid var(--blue-tint);
}
.main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); }

.header-cta { display: none; }

@media (min-width: 62rem) {
  .burger { display: none; }
  .main-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    margin-left: auto;
  }
  .main-nav ul {
    display: flex;
    gap: .25rem;
    padding: 0;
  }
  .main-nav a {
    padding: .5rem .8rem;
    border: 0;
    border-radius: 999px;
    font-size: .98rem;
  }
  .main-nav a:hover { background: var(--blue-tint); }
  .main-nav a[aria-current="page"] { background: var(--blue-tint); }
  .header-cta { display: inline-flex; min-height: 2.6rem; padding: .5rem 1.2rem; }
}

/* ---------- Anruf-Leiste (nur Smartphone/Tablet) ---------- */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  box-shadow: 0 -3px 14px rgb(0 0 0 / .18);
}
.call-bar .btn { width: 100%; min-height: 3.2rem; font-size: 1.1rem; }

@media (min-width: 62rem) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
}

/* ---------- Startseite: Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--blue);
  background-image:
    linear-gradient(115deg, rgb(10 70 140 / .95) 0%, rgb(23 114 201 / .55) 55%, rgb(23 114 201 / .3) 80%),
    url("../images/eingang.jpg");
  background-size: cover;
  background-position: center;
}
.hero .wrap { padding-block: 4rem 4.5rem; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero p { max-width: 34rem; font-size: 1.2em; }
.hero .note-small { font-size: .9em; opacity: .92; margin-top: 1rem; margin-bottom: 0; }

.page-head {
  background: var(--blue-tint);
  border-bottom: 1px solid var(--blue-line);
}
.page-head .wrap { padding-block: 2.5rem 2.25rem; }
.page-head h1 { margin-bottom: .35em; }
.page-head p { margin-bottom: 0; max-width: 46rem; }

/* ---------- Info-Leiste ---------- */
.infostrip { margin-top: -2rem; position: relative; z-index: 2; }
.infostrip .grid { gap: 1rem; }
.info-card {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card svg { flex: none; width: 1.7rem; height: 1.7rem; fill: var(--blue); margin-top: .15rem; }
.info-card h2 { font-size: 1.05rem; margin: 0 0 .25em; }
.info-card p { margin: 0; line-height: 1.4; }

/* ---------- Karten ---------- */
.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h2,
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: .6rem; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }

.card--link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgb(23 114 201 / .2); color: inherit; }
.card--link h3 { color: var(--blue); }
.card .icon {
  width: 3rem; height: 3rem;
  margin-bottom: .9rem;
  padding: .7rem;
  background: var(--blue-tint);
  border-radius: 12px;
  fill: var(--blue);
}

/* Leistungs-Karten (Physiotherapie) */
.service h3 { display: flex; align-items: center; gap: .6rem; }
.service h3::before {
  content: "";
  flex: none;
  width: .55rem; height: 1.4rem;
  border-radius: 3px;
  background: var(--blue);
}

/* Massage-Preisliste */
.price-card .price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--blue-line);
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--heading);
}
.price-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}

/* Hinweisbox */
.note {
  padding: 1.25rem 1.4rem;
  background: var(--blue-tint);
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note h2, .note h3 { font-size: 1.1rem; margin-bottom: .4em; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Bilder ---------- */
.photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption {
  padding: .55rem .9rem;
  font-size: .95rem;
  background: var(--white);
  border-top: 1px solid var(--blue-line);
}

.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.gallery .photo:first-child { grid-column: 1 / -1; }

.badges { display: grid; gap: 1.5rem; align-items: center; }
.badges figure { margin: 0; }
.badges .ifk { max-width: 170px; }
.badges .hinsehen img { width: 100%; border-radius: 10px; }
.badges figcaption { font-size: .95rem; margin-top: .4rem; }

/* ---------- Team ---------- */
.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.person { margin: 0; text-align: center; }
.avatar {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: .8rem;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #cfe2f7, #e8f1fb);
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
/* Initialen erscheinen, solange noch kein Foto vorhanden ist */
.avatar::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue);
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person h3 { font-size: 1.1rem; margin-bottom: .15em; }
.person p { margin: 0; font-size: 1rem; line-height: 1.35; }

/* ---------- Stimmen ---------- */
.quote {
  margin: 0;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote p { font-style: italic; }
.quote footer {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
}

/* ---------- Listen-Karten (Jobs) ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .55em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .9rem; height: .5rem;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}
.job-title {
  padding: 1rem 1.25rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  border-radius: var(--radius);
}

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: .8rem;
}
.contact-list svg { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .2rem; fill: var(--blue); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  padding: .6rem 0;
  text-align: left;
  border-bottom: 1px solid var(--blue-line);
}
.hours th { font-family: var(--font-head); font-weight: 700; color: var(--heading); padding-right: 1rem; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.todo {
  padding: .9rem 1.1rem;
  margin: 1rem 0;
  background: var(--warn-bg);
  border: 2px solid var(--warn-line);
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: .95rem;
  color: #5c4a00;
}
mark.todo-inline {
  background: var(--warn-bg);
  outline: 1px solid var(--warn-line);
  padding: 0 .25em;
  color: #5c4a00;
}

/* ---------- Fußzeile ---------- */
.site-footer {
  background: #26303b;
  color: #dfe6ee;
  font-size: 1.1rem;
}
.site-footer .wrap { padding-block: 2.5rem 1.5rem; }
.site-footer h2 {
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .7em;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #bcd9f6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer address { font-style: normal; }
.footer-grid { display: grid; gap: 1.8rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgb(255 255 255 / .15);
  font-size: .95rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Ab Tablet ---------- */
@media (min-width: 40rem) {
  .section { padding-block: 4rem; }
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .photo:first-child { grid-column: auto; }
  .badges { grid-template-columns: auto 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .avatar::before { font-size: 2.8rem; }
}

/* ---------- Ab Desktop ---------- */
@media (min-width: 62rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .infostrip .grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .split--reverse > :first-child { order: 2; }
  .team { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .hero .wrap { padding-block: 6rem 7rem; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .call-bar, .btn-row, .skip-link { display: none !important; }
  body { padding: 0; font-size: 12pt; color: #000; }
  .hero { background: none; color: #000; }
  .hero h1, .hero p { color: #000; }
  a { color: #000; text-decoration: none; }
}
