/* ===================================================================
   Zeit für Bewegung – Praxis für Physiotherapie Rehm
   =================================================================== */

:root {
  --white:      #ffffff;
  --paper:      #fbfaf8;
  --green:      #718373;
  --green-dark: #55654f;
  --tan:        #baa58f;
  --ink:        #3a3a3a;
  --ink-soft:   #767671;
  --line:       #e6e2da;

  --font-head: "Century Gothic", "Futura", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;

  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.06rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 400; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 500; }
h3 {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

p { margin: 0 0 1.1em; max-width: 62ch; }

.lede {
  font-family: var(--font-head);
  font-size: 1.28rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 46ch;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* ---------- divider: line – dot – line, echoing the logo mark ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2.6rem 0;
  max-width: 420px;
}
.divider .rule { flex: 1; height: 1px; background: var(--tan); }
.divider .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); flex-shrink: 0; }
.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(6px);
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-text { font-family: var(--font-head); font-size: 0.98rem; color: var(--ink); line-height: 1.15; }
.brand-text strong { display: block; font-weight: 500; color: var(--green); font-size: 1.02rem; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 0.3rem 0.05rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--green-dark);
  border-color: var(--tan);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--ink);
}

@media (max-width: 720px) {
  nav.main-nav {
    display: none;
    width: 100%;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0 1rem;
  }
  nav.main-nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .site-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
}

/* ---------- hero ---------- */
.hero {
  padding: 4.2rem 0 3.4rem;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.2rem;
  align-items: center;
}
.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 50% / 42%;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; margin: 0 auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border: 1px solid var(--green); color: var(--green-dark); }
.btn-ghost:hover { background: var(--green); color: var(--white); }

.cta-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.9rem;
}

/* ---------- sections ---------- */
section { padding: 3.2rem 0; }
section.alt { background: var(--paper); }
.section-head { max-width: 56ch; margin-bottom: 2.2rem; }

.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
@media (max-width: 780px) {
  .three-up { grid-template-columns: 1fr; }
}
.two-up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
  margin-top: 1.4rem;
}
@media (max-width: 780px) {
  .two-up { grid-template-columns: 1fr; }
}
.point h3 { margin-bottom: 0.5rem; }
.point p { margin-bottom: 0; }

/* ---------- services list ---------- */
.service {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service h2 { margin-bottom: 0.3rem; font-size: 1.2rem; }
.service p { margin: 0; }
@media (max-width: 640px) {
  .service { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- photo placeholder (for future room photos) ---------- */
.photo-slot {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--tan);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-size: 0.9rem;
  padding: 1rem;
  background: var(--paper);
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2.4rem;
}
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* ---------- about page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.about-hero .hero-portrait { aspect-ratio: 4/5; border-radius: 50% / 42%; }
@media (max-width: 820px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero .hero-portrait { max-width: 300px; margin: 0 auto 1rem; }
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.4rem;
}
.facts li {
  break-inside: avoid;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
@media (max-width: 560px) { .facts { columns: 1; } }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-details dt {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 1.3rem;
}
.contact-details dd { margin: 0.2rem 0 0; }

form.kontakt-form { display: grid; gap: 1rem; max-width: 480px; }
form.kontakt-form label {
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.35rem;
}
form.kontakt-form input,
form.kontakt-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
form.kontakt-form input:focus,
form.kontakt-form textarea:focus {
  outline: 2px solid var(--tan);
  outline-offset: 1px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0;
  margin-top: 2rem;
  background: var(--paper);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer strong { color: var(--ink); font-weight: 500; }

.footer-links {
  padding-top: 0;
  gap: 1.4rem;
}
.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-size: 0.86rem;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: var(--green-dark); border-color: var(--tan); }

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

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