/* PhysioFokus – layout matched to the original practice site. */

@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/raleway-latin-300-normal.woff2") format("woff2");
}

@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/raleway-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2");
}

:root {
  --sage: #5b7260;
  --ink: #111111;
  --muted: #6f6f6f;
  --paper: #fcfcfc;
  --white: #ffffff;
  --line: #c9d1cb;
  --header: 138px;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Raleway, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 30px;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--sage);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 80;
  text-decoration: none;
}

.skip:focus { top: 0.5rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

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

h1, h2, h3, .sage {
  color: var(--sage);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 0.7rem;
  font-size: 34px;
  line-height: 1.25;
}

h2 {
  margin: 0 0 1.2rem;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 400;
}

h3 {
  margin: 0 0 0.7rem;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}

p { margin: 0 0 1rem; }

/* Header */

.site-header {
  background: var(--white);
  min-height: var(--header);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header);
}

.logo img {
  width: 104px;
  height: 104px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1.35rem;
}

.nav a {
  color: #6d6d6d;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
}

.nav a:hover { color: var(--sage); }

.services-label {
  margin: 0;
  text-align: right;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-transform: uppercase;
}

.nav-check,
.nav-toggle { display: none; }

.nav-check {
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #444;
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before { top: -6px; }
.bars::after { top: 6px; }

/* Hero */

.hero {
  height: 305px;
  overflow: hidden;
  background: #e8e8e8;
}

.hero img {
  width: 100%;
  height: 305px;
  object-fit: cover;
  object-position: center 46%;
}

/* Praxis */

.praxis {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 3.5rem;
  padding: 3.4rem 0 3.6rem;
}

.side h2,
.side h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.side .block { margin-bottom: 1.35rem; }

.side a { text-decoration: none; }
.side a:hover { text-decoration: underline; }

.tri {
  list-style: none;
  margin: 0.4rem 0 1.2rem;
  padding: 0;
}

.tri li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.15rem;
}

.tri li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #2a2a2a;
}

/* Angebot */

.section-pad { padding: 2.6rem 0 3rem; }

#kontakt { padding-bottom: 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.carousel-nav {
  display: flex;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.carousel-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #555;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}

.carousel-nav svg { width: 16px; height: 16px; }

.carousel-nav button:hover { color: var(--sage); }

.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 calc((100% - 66px) / 4);
  scroll-snap-align: start;
  background: #fff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
  min-width: 0;
}

.card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.card-body { padding: 0.85rem 0.95rem 1.1rem; }

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.card p {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 2.6rem;
}

.photo-strip img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

/* Über mich */

.about-top {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 2.5rem;
  align-items: start;
}

.about-top img { width: 100%; }

.quote-box {
  margin: 2.4rem auto 0;
  max-width: 860px;
  border: 1px solid var(--sage);
  border-right-width: 4px;
  border-bottom-width: 4px;
  padding: 1.35rem 1.5rem 0.6rem;
}

.quote-box .motto {
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

/* Termine */

.prices { margin: 1.1rem 0 1.4rem; }

.prices p {
  color: var(--sage);
  font-weight: 600;
  margin: 0.15rem 0;
}

.anfahrt h3 { margin-top: 0.4rem; }

/* Contact band */

.contact-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  margin-top: 2.8rem;
  background: var(--sage);
  color: #fff;
}

.band-info {
  padding: 2.1rem 8% 2rem;
  font-size: 16px;
  line-height: 1.45;
}

.band-label {
  margin: 0 0 0.35rem;
  font-weight: 500;
}

.with-icon {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.55rem;
  align-items: start;
  margin: 0 0 1rem;
}

.with-icon svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.with-icon a { color: #fff; text-decoration: none; }
.with-icon a:hover { text-decoration: underline; }

.map-pane {
  position: relative;
  min-height: 280px;
  background: #e6e6e6;
}

.map-pane img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.map-credit {
  position: absolute;
  right: 6px;
  bottom: 4px;
  margin: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #333;
  font-size: 11px;
  line-height: 1.3;
  padding: 2px 6px;
}

.map-credit a { color: #333; }

/* Aktuelles */

.aktuelles {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: center;
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 3.2rem 0;
}

.aktuelles h2 { margin: 0; }

.news-note:empty { display: none; }

.aktuelles img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

/* Footer */

.footer {
  background: #1c1c1c;
  color: #fff;
  min-height: 60px;
}

.footer-inner {
  width: min(100% - 88px, 1400px);
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 15px;
  font-weight: 300;
}

.footer p { margin: 0; }

.legal-btn {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  background: var(--sage);
  color: #fff;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
}

.legal-btn a { color: #fff; text-decoration: none; }
.legal-btn a:hover { text-decoration: underline; }

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  background: var(--sage);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 30;
}

.to-top svg { width: 14px; height: 14px; }

/* Subpages */

.page {
  padding: 2.6rem 0 4rem;
}

.page h1 {
  font-size: 36px;
  font-weight: 400;
}

.prose { max-width: 46rem; }

.prose h2 {
  font-size: 26px;
  margin-top: 1.8rem;
}

.prose a { color: var(--sage); }

/* Responsive */

@media (max-width: 1100px) {
  .card { flex-basis: calc((100% - 22px) / 2); }
  .services-label { display: none; }
}

@media (max-width: 860px) {
  body { overflow-x: hidden; }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 92px;
    position: relative;
  }

  .logo img { width: 76px; height: 76px; }

  .header-inner { align-items: center; }

  .nav-check {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    z-index: 3;
    cursor: pointer;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    background: #fff;
    position: relative;
    z-index: 2;
  }

  .header-end { position: relative; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(50% - 50vw);
    width: 100vw;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    align-items: stretch;
    padding: 0.2rem 1.3rem 0.8rem;
    z-index: 20;
  }

  .nav-check:checked ~ .nav { display: flex; }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 18px;
  }

  .nav-check:checked + .nav-toggle .bars { background: transparent; }
  .nav-check:checked + .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
  .nav-check:checked + .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

  .site-header { position: relative; }

  .praxis,
  .about-top,
  .contact-band,
  .aktuelles,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero img { height: 210px; }

  .card { flex-basis: 86%; }
  .card img { height: 190px; }
  .photo-strip img { height: 190px; }
  .quote-box { margin-top: 1.6rem; }
  .band-info { padding: 1.6rem 1.3rem; }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { scroll-behavior: auto; }
}
