/* ==========================================================================
   Embody Movement – Physiotherapie & Training
   Statisches Stylesheet · Design "Ink & Signal" (Entwurf B)
   Struktur: 1 Tokens · 2 Basis · 3 Bausteine · 4 Header/Footer · 5 Sektionen
   Hinweis WordPress-Migration: Jede Sektion (BEM-Präfix em-*) ist ein
   in sich geschlossener Block und kann 1:1 als Template-Part übernommen werden.
   ========================================================================== */

/* 1 ─ Design-Tokens ------------------------------------------------------- */
:root {
  --ink: #1a1816;
  --paper: #ece1c9;  /* creme (Nutzerwunsch 2026-08-29, urspr. Briefing #f4f1ea) */
  --muted: #5f5a54;  /* nachgedunkelt fuer AA-Kontrast auf Creme */
  --wire-red: #c5402c;
  /* abgeleitete Töne */
  --wire-red-deep: #a93520;      /* Rot für Text/Buttons (Kontrast ≥ 4.5:1 auf Paper) */
  --paper-muted: #b3aca2;        /* Sekundärtext auf Ink */
  --wire-red-bright: #de5f43;    /* Rot für kleinen Text auf Ink (Kontrast >= 4.5:1) */
  --hairline: rgba(26, 24, 22, .22);
  --hairline-inv: rgba(236, 225, 201, .25);
  --ph-bg: rgba(26, 24, 22, .07);
  /* Typografie */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, "Segoe UI", Arial, sans-serif;
  /* Rhythmus */
  --space-s: 60px;
  --space-m: 100px;
  --wrap: 1200px;
}

/* 2 ─ Basis --------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--wire-red); color: #ece1c9; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
main a:not([class]) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--wire-red); }
main a:not([class]):hover { color: var(--wire-red-deep); }
img, svg { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 2px solid var(--wire-red-deep); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--paper); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
  font-size: 12px; letter-spacing: .1em;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.spacer { height: var(--space-m); }
.spacer.s { height: var(--space-s); }

.dark { background: var(--ink); color: var(--paper); }

/* 3 ─ Bausteine ----------------------------------------------------------- */
.overline {
  font-size: 10px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.dark .overline { color: var(--paper-muted); }

h1, h2, h3 { font-weight: 400; }
.sec {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.12;
}
.sec em { font-style: italic; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto; }
.sec-head .overline { display: block; margin-bottom: 18px; }

.lead { color: var(--muted); max-width: 640px; }
.dark .lead { color: var(--paper-muted); }

.btn {
  display: inline-block; padding: 15px 34px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--wire-red-deep); cursor: pointer;
  background: transparent; font-family: var(--sans);
  transition: background .3s, color .3s, border-color .3s;
}
.btn.fill { background: var(--wire-red-deep); color: #fff; }
.btn.fill:hover { background: transparent; color: var(--wire-red-deep); }
.dark .btn.fill:hover { color: var(--paper); border-color: var(--paper); }
.btn.line { color: var(--paper); border-color: var(--paper); }
.btn.line:hover { background: var(--paper); color: var(--ink); }
.btn.line-ink { color: var(--ink); border-color: var(--ink); }
.btn.line-ink:hover { background: var(--ink); color: var(--paper); }

.ph { background: var(--ph-bg); position: relative; overflow: hidden; }
.dark .ph { background: rgba(244, 241, 234, .08); }
.ph::after {
  content: "Bild folgt"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted);
}
.r32 { aspect-ratio: 3 / 2; } .r45 { aspect-ratio: 4 / 5; }
.r23 { aspect-ratio: 2 / 3; } .r11 { aspect-ratio: 1 / 1; }

/* Fotos: fuellen ihren Rahmen, ohne das Layout springen zu lassen */
.em-photo { position: relative; overflow: hidden; background: var(--ph-bg); }
.em-photo picture { display: block; width: 100%; height: 100%; }
.em-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.accentline { width: 72px; height: 3px; background: var(--wire-red); margin: 34px 0; }

/* Scroll-Reveal (JS setzt .in; ohne JS sichtbar) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* 4 ─ Header & Footer ----------------------------------------------------- */
.em-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.em-header.on-dark { color: var(--paper); }
.em-header.solid { position: static; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.em-mast { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.em-mast .logo svg, .em-mast .logo img { height: 52px; width: auto; }
.em-header.solid .logo svg, .em-header.solid .logo img { height: 46px; }

.em-nav { display: flex; gap: 18px; align-items: center; }
.em-nav a {
  position: relative; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 500; padding: 4px 0;
  white-space: nowrap;
}
.em-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--wire-red); transition: width .3s;
}
.em-nav a:hover::after, .em-nav a[aria-current="page"]::after { width: 100%; }
.em-nav a.cta { color: var(--wire-red-deep); }
.dark .em-nav a.cta, .em-header.on-dark .em-nav a.cta { color: var(--wire-red-bright); }

.em-burger {
  display: none; background: none; border: 1px solid currentColor;
  color: inherit; padding: 12px 16px; font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; font-family: var(--sans); font-weight: 600; cursor: pointer;
}

.em-footer { border-top: 1px solid var(--hairline); }
.em-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px;
}
.em-footer .logo svg, .em-footer .logo img { height: 44px; width: auto; }
.em-footer h3 { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.em-footer ul { list-style: none; padding: 0; font-size: 13px; line-height: 2.1; }
.em-footer a:hover { color: var(--wire-red-deep); }
.em-footer .legal {
  border-top: 1px solid var(--hairline); padding: 20px 0 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* 5 ─ Sektionen ----------------------------------------------------------- */

/* Start: Hero */
.em-hero {
  position: relative; min-height: clamp(560px, 92vh, 840px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 150px; padding-bottom: 110px; /* seitliches Padding kommt von .wrap */
}
.em-hero h1 {
  font-family: var(--serif); font-size: clamp(42px, 6.8vw, 92px); line-height: 1.05;
}
.em-hero h1 em { font-style: italic; }
.em-hero .sub { max-width: 560px; color: var(--paper-muted); font-size: 17px; }
.em-hero .ctas { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; }
.em-herofoot { border-top: 1px solid var(--hairline-inv); }
.em-herofoot .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 16px; padding-bottom: 16px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-muted);
}

/* Start: Stat-Band */
.em-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--hairline); }
.em-stats > div { padding: 34px 24px; text-align: center; }
.em-stats > div + div { border-left: 1px solid var(--hairline); }
.em-stats .big { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1.1; }
.em-stats .big span { color: var(--wire-red-deep); }
.em-stats .lbl { margin-top: 8px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* Leistungs-Karten */
.em-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.em-cards.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.em-card {
  border: 1px solid var(--hairline); padding: 28px 22px 24px;
  display: flex; flex-direction: column; gap: 14px; min-height: 200px;
  transition: background .3s, color .3s, border-color .3s;
}
a.em-card:hover, a.em-card:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.em-card .no { font-size: 11px; color: var(--wire-red-deep); letter-spacing: .2em; }
a.em-card:hover .no { color: var(--wire-red-bright); }
.em-card h3 { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.em-card p { font-size: 14px; color: var(--muted); margin-top: auto; }
a.em-card:hover p { color: var(--paper-muted); }

/* Bildergalerie (Über uns) */
.em-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.em-gallery figure { margin: 0; }
.em-gallery figcaption {
  margin-top: 10px; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

/* Split-Layout */
.em-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.em-split .persona { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.em-split .persona .late { padding-top: 40px; }
.em-split .caption { margin-top: 10px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Dunkles CTA-Band */
.em-band { padding: 110px 0; text-align: center; }
.em-band .tel {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(34px, 5vw, 64px); color: var(--paper);
}
.em-band .tel:hover { color: var(--wire-red); }
.em-band .meta { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--paper-muted); }

/* Unterseiten-Kopf */
.em-pagehead { padding: 72px 0 0; }
.em-pagehead h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); line-height: 1.1; overflow-wrap: break-word; hyphens: auto; }
.em-pagehead h1 em { font-style: italic; }
.em-pagehead .lead { margin-top: 22px; }

/* Inhaltsraster Unterseiten */
.em-prose { max-width: 720px; }
.em-prose h2 { font-family: var(--serif); font-size: 30px; margin: 48px 0 16px; }
.em-prose h2:first-child { margin-top: 0; }
.em-prose h3 { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin: 30px 0 10px; }
.em-prose p + p { margin-top: 12px; }
.em-prose ul { margin: 12px 0; }
.em-prose li + li { margin-top: 6px; }

/* Leistungs-Detailliste */
.em-svclist { border-top: 1px solid var(--hairline); }
.em-svc { border-bottom: 1px solid var(--hairline); padding: 34px 0; display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.em-svc .no { font-size: 11px; color: var(--wire-red-deep); padding-top: 4px; }
.em-svc h3 { font-size: 16px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; }
.tag {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--hairline); padding: 4px 10px; color: var(--muted);
}
.dark .tag { border-color: var(--hairline-inv); color: var(--paper-muted); }
.em-svc p { color: var(--muted); max-width: 640px; }

/* Hairline-Zeilenliste */
.em-rows { list-style: none; padding: 0; border-top: 1px solid var(--hairline); max-width: 640px; }
.em-rows > li {
  border-bottom: 1px solid var(--hairline); padding: 15px 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
}

/* Tabellen (Preise) */
.em-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.em-table caption { text-align: left; padding-bottom: 12px; }
.em-table th, .em-table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hairline); }
.em-table th { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.em-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.em-table th.num { text-align: right; }
.table-scroll { overflow-x: auto; }

/* FAQ / Akkordeon */
.em-faq details { border-bottom: 1px solid var(--hairline); }
.em-faq details:first-of-type { border-top: 1px solid var(--hairline); }
.em-faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 22px; color: var(--wire-red-deep); transition: transform .25s;
}
.em-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.em-faq .a { padding: 0 0 24px; color: var(--muted); max-width: 680px; }

/* Anfahrtskarte: statisches, selbst gehostetes Bild (kein Drittanbieter-Request) */
.em-map { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ph-bg); }
.em-map picture { display: block; width: 100%; height: 100%; }
.em-map img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.em-map:hover img { transform: scale(1.02); }

/* Kontakt-Formular (mailto-Übergangslösung) */
.em-form { display: grid; gap: 18px; max-width: 560px; }
.em-form label { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 7px; font-weight: 500; }
.em-form input, .em-form textarea, .em-form select {
  width: 100%; border: 1px solid var(--hairline); background: transparent;
  padding: 13px 14px; font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.em-form input:focus, .em-form textarea:focus, .em-form select:focus { outline: 2px solid var(--wire-red-deep); outline-offset: 0; }
.em-form .check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.em-form .check input { width: auto; margin-top: 3px; accent-color: var(--wire-red-deep); }
.em-form .check span { font-size: 13px; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.em-form .note { font-size: 12px; color: var(--muted); }

/* Kontakt-Datenblock */
.em-contactgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.em-vcard { border-top: 1px solid var(--hairline); }
.em-vcard > div { border-bottom: 1px solid var(--hairline); padding: 16px 0; display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.em-vcard .k { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.em-vcard .v { font-size: 16px; }
.em-vcard .v a:hover { color: var(--wire-red-deep); }

/* Rechtstexte */
.em-legal h2 { font-family: var(--serif); font-size: 26px; margin: 44px 0 12px; }
.em-legal h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 26px 0 8px; }
.em-legal p + p { margin-top: 10px; }
.em-legal .todo { color: var(--wire-red-deep); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .em-cards, .em-cards.cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-gallery { grid-template-columns: 1fr 1fr; }
  .em-stats { grid-template-columns: 1fr 1fr; }
  .em-stats > div { border-left: 0 !important; border-top: 1px solid var(--hairline); }
  .em-stats > div:nth-child(-n+2) { border-top: 0; }
  .em-split, .em-contactgrid { grid-template-columns: 1fr; gap: 36px; }
  .em-footer .cols { grid-template-columns: 1fr 1fr; }
  .spacer { height: 72px; } .spacer.s { height: 48px; }
}
/* Navigation klappt frueher ins Menue: 8 Punkte + CTA brauchen Breite */
@media (max-width: 1100px) {
  .em-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--hairline);
    padding: 10px 24px 18px; z-index: 30;
  }
  .em-nav.open { display: flex; }
  .em-nav a { padding: 14px 0; font-size: 13px; letter-spacing: .16em; white-space: normal; }
  .em-header:not(.solid) .em-nav a.cta { color: var(--wire-red-deep); }
  .em-mast { position: relative; }
  .em-burger { display: block; }
}

@media (max-width: 820px) {
  .em-hero { padding-bottom: 150px; }
  .em-herofoot .wrap { flex-direction: column; gap: 4px; }
}
@media (max-width: 560px) {
  .em-cards, .em-cards.cols3, .em-stats, .em-gallery { grid-template-columns: 1fr; }
  .em-stats > div:nth-child(2) { border-top: 1px solid var(--hairline); }
  .em-footer .cols { grid-template-columns: 1fr; }
  .em-svc { grid-template-columns: 1fr; gap: 6px; }
  .em-vcard > div { grid-template-columns: 1fr; gap: 2px; }
}
