/* Praxis Petra Rechberger – Stylesheet
   Schriften lokal eingebunden (keine Verbindung zu Google-Servern). */

@font-face { font-family: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/alegreya-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/alegreya-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Farben aus dem Praxislogo */
  --orange: #f7931e;
  --orange-text: #a8570a;
  --lime: #d9e021;
  --lime-text: #6f7a0c;
  --green: #8dc548;
  --green-text: #457019;
  --ink: #2c3327;
  --muted: #5b6455;
  --wash: #f4f7ee;
  --line: #dfe5d6;
  --paper: #ffffff;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 68rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--green-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; margin-top: 1.6em; }
p { margin: 0 0 1em; max-width: 38em; }
ul { margin: 0 0 1em; padding-left: 1.2em; max-width: 38em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--muted); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- Kopfbereich ---------- */
.site-header { padding: 1.25rem 0 0; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.logo img { width: 240px; }
.header-call {
  font-weight: 700; text-decoration: none; color: var(--ink);
  border: 2px solid var(--orange); border-radius: 999px; padding: .45rem 1.1rem; white-space: nowrap;
}
.header-call:hover { background: var(--orange); color: #fff; }

.site-nav { border-bottom: 1px solid var(--line); margin-top: 1rem; }
.site-nav ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: none;
  display: flex; gap: 0.25rem 1.5rem; overflow-x: auto; scrollbar-width: none;
}
.site-nav li { margin: 0; flex: 0 0 auto; }
.site-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .8rem 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.site-nav a:hover { color: var(--green-text); }
.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; flex: none; }
.dot.physio { background: var(--orange); }
.dot.cranio { background: var(--lime); }
.dot.hippo { background: var(--green); }

/* ---------- Einstieg: Portrait in den Ringen des Logos ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-text p { font-size: 1.25rem; }
.hero-text p.lead { font-family: var(--serif); font-weight: 500; font-size: clamp(1.45rem, 2.6vw, 1.75rem); line-height: 1.35; }
.hero-sub { color: var(--muted); font-size: 1.15rem; margin-top: -.4em; }

.rings {
  --size: min(78vw, 380px);
  width: var(--size); aspect-ratio: 1; margin-inline: auto; position: relative;
  border-radius: 50%;
  /* Ringe wie im Logo: innen Gelbgrün, dann Grün, außen Orange */
  background:
    radial-gradient(circle closest-side,
      transparent 0 66%,
      var(--lime) 66% 75%,
      #fff 75% 78%,
      var(--green) 78% 87%,
      #fff 87% 90%,
      var(--orange) 90% 100%,
      transparent 100%);
}
.rings img {
  position: absolute; inset: 0; margin: auto; width: 67%; height: 67%;
  border-radius: 50%; object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .rings { animation: settle 1.1s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: rotate(-25deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
  .rings img { animation: unrotate 1.1s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes unrotate { from { transform: rotate(25deg); } to { transform: none; } }
}

/* ---------- Therapieangebote ---------- */
.therapy { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.therapy .wrap { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4.5rem); }
.therapy-head { position: relative; padding-top: 4.6rem; }
.therapy-head::before {
  content: ""; position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: .55rem solid var(--accent); box-shadow: 0 0 0 .3rem var(--bg, #fff), 0 0 0 .55rem var(--accent);
  margin: .55rem;
}
.therapy-head h2 { color: var(--accent-text); }
.therapy-head p { color: var(--muted); font-size: 1.05rem; }
.therapy-body h3:first-child { margin-top: 0; }

.therapy.physio { --accent: var(--orange); --accent-text: var(--orange-text); }
.therapy.cranio { --accent: var(--lime); --accent-text: var(--lime-text); --bg: var(--wash); background: var(--wash); }
.therapy.hippo  { --accent: var(--green); --accent-text: var(--green-text); }

.columns { columns: 2 16rem; column-gap: 2.5rem; }
.columns li { break-inside: avoid; }

.note {
  border-left: 4px solid var(--accent, var(--green)); padding: .2rem 0 .2rem 1rem; color: var(--muted);
}

.horses { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem 2rem; margin-top: .5rem; }
.horses h4 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 .3rem; }
.horses p { font-size: 1.05rem; }

/* ---------- Fotos ---------- */
.therapy-photo, .wide-photo, .photo-row img, .side-photo, .horse-photo, .about-photo, .gallery img {
  display: block; width: 100%; object-fit: cover; border-radius: 6px; background: var(--line);
}
.therapy-photo { aspect-ratio: 4 / 5; margin-top: 1.5rem; border-bottom: 5px solid var(--accent); }
.wide-photo { aspect-ratio: 16 / 9; margin: 1.75rem 0 .5rem; }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 .5rem; }
.photo-row img { aspect-ratio: 4 / 3; }
.side-photo { float: right; width: min(36%, 15rem); aspect-ratio: 3 / 4; margin: .3rem 0 1rem 1.75rem; }
.clear { clear: both; }
.photo-figure { margin: 0 0 1.5rem; }
.photo-figure .wide-photo { margin-bottom: .5rem; }
.photo-figure figcaption { font-size: 1rem; color: var(--muted); }
.about-photo { aspect-ratio: 4 / 5; max-width: 17rem; margin-bottom: 1.75rem; object-position: 50% 30%; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.gallery a { display: block; }
.gallery img { height: 20rem; }
.gallery a:hover img { opacity: .9; }

/* ---------- Über mich, Praxis ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(2rem, 5vw, 4.5rem); }

.cv { list-style: none; padding: 0; margin: 0; }
a[href^="tel:"] { white-space: nowrap; }
.split > div + div { padding-top: .9rem; }
.cv li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.cv li:last-child { border-bottom: 0; }
.cv .year { font-family: var(--serif); font-weight: 600; color: var(--green-text); }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: #f3f5ef; padding: clamp(3rem, 7vw, 5rem) 0; }
.contact h2 { color: #fff; }
.contact a { color: #fff; }
.contact .split p { max-width: 30em; }
.address { font-style: normal; font-size: 1.25rem; line-height: 1.5; margin-bottom: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.btn {
  display: inline-block; font-weight: 700; text-decoration: none; border-radius: 999px; padding: .65rem 1.3rem;
  border: 2px solid var(--orange); color: #fff;
}
.btn.primary { background: var(--orange); color: var(--ink); }
.btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.contact .muted { color: #c3cbb9; font-size: 1rem; }

/* ---------- Fußzeile ---------- */
.site-footer { padding: 1.5rem 0 2rem; font-size: 1rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer nav a { margin-right: 1.25rem; color: var(--muted); }

/* ---------- Rechtstexte ---------- */
.legal { padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0 0 1rem; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
.todo { background: #fff3b0; padding: 0 .25em; border-radius: 3px; }

/* ---------- Mobil ---------- */
@media (max-width: 52rem) {
  .hero .wrap, .therapy .wrap, .split { grid-template-columns: 1fr; }
  .split > div + div { padding-top: 1rem; }
  .hero-visual { order: -1; }
  .therapy-photo { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:first-child { grid-column: 1 / -1; }
  .gallery img { height: 14rem; }
  .rings { --size: min(72vw, 300px); }
  .logo img { width: 200px; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: .6rem; }
}
@media (max-width: 26rem) {
  .side-photo { float: none; width: 100%; aspect-ratio: 4 / 3; margin: 0 0 1rem; }
  .photo-row { grid-template-columns: 1fr; }
  .header-call { font-size: .95rem; padding: .4rem .9rem; }
}
