/* =========================================================
   Praxis Michael Weber · Designsystem "Tactical Minimalism"
   ========================================================= */

:root {
  --bg: #F4F2EE;
  --fg: #2B2B2B;
  --muted: #595959;
  --rule: rgba(43, 43, 43, .12);
  --btn-bg: #2A9D8F; /* Helleres, frisches Petrol */
  --btn-fg: #FFFFFF; /* Weiße Schrift für Kontrast */
  --font: Inter, "Inter var", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Typografie: Fließende Skalierung */
  --step--1: clamp(.875rem, .85rem + .15vw, 1rem);
  --step-0: clamp(1rem, .95rem + .25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --step-3: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --step-4: clamp(3.2rem, 2.2rem + 4vw, 5.5rem);

  /* Whitespace */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --space-s: clamp(1rem, 3vw, 2rem);
  --space-m: clamp(2.5rem, 6vw, 5rem);
  --space-l: clamp(4rem, 10vw, 10rem);
  --max: 82rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

::selection { background: var(--fg); color: var(--bg); }

/* ---------- Utilities ---------- */

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--fg);
  color: var(--bg);
  padding: .75rem 1rem;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Raster: Alle Inhalte starten auf einer harten, linken Linie */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.grid > * { grid-column: 1 / -1; }

@media (min-width: 60rem) {
  .col-aside { grid-column: 1 / -1; }
  .col-main  { grid-column: 1 / span 9; }
  .col-wide  { grid-column: 1 / span 10; }
}

/* ---------- Header (Sticky) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--bg);
  padding-block: 1.25rem;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  flex-wrap: wrap;
}
.brand {
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand span { font-weight: 400; color: var(--muted); }

.nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
  padding: 0;
  font-size: var(--step--1);
}
.nav a {
  text-decoration: none;
  padding-block: .5rem;
  display: inline-block;
}
.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: var(--space-l) var(--space-m);
}
.hero_title {
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.hero_sub {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 38ch;
  line-height: 1.5;
}

.tategaki {
  display: none;
}
@media (min-width: 60rem) {
  .tategaki {
    display: block;
    position: absolute;
    right: var(--gutter);
    top: var(--space-l);
    writing-mode: vertical-rl;
    font-size: var(--step--1);
    letter-spacing: .18em;
    color: var(--muted);
    border-left: 1px solid var(--rule);
    padding-left: .9rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-top: var(--space-m);
  padding: 1.05rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover {
  background: #218276; /* Etwas dunkleres Petrol beim Hover */
  color: var(--btn-fg);
  border-color: #218276;
}
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Sections ---------- */

.section {
  padding-block: var(--space-l);
}
.section__label {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1rem;
}
.section__title {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 24ch;
  margin-bottom: var(--space-m);
}
.prose p {
  max-width: 62ch;
}
.prose p + p { margin-top: 1.5em; }
.prose .lead {
  font-size: var(--step-1);
  line-height: 1.5;
  letter-spacing: -.01em;
}

/* ---------- Media / Images (Bio & Praxisraum) ---------- */
.bio,
.room-shot {
  margin-top: var(--space-m);
  width: 100%;
  max-width: 26rem; 
}

.bio img,
.room-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4; 
  object-fit: cover;
  margin-bottom: 1rem;
}

.trust {
  margin-top: 0;
  padding-top: 0;
  font-size: var(--step--1);
}
.trust strong { 
  display: block; 
  font-size: var(--step-0); 
  font-weight: 600; 
  margin-bottom: .25rem; 
}

/* ---------- Silos: große typografische Links ---------- */

.silos {
  list-style: none;
  padding: 0;
}
.silos a {
  display: grid;
  gap: .5rem;
  padding-block: clamp(2rem, 5vw, 4rem);
  text-decoration: none;
}
.silos li:first-child a {
  padding-top: 0; 
}
.silos__word {
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
  transition: letter-spacing .35s ease;
}
.silos__desc {
  color: var(--muted);
  max-width: 48ch;
  margin-top: 0.5rem;
}
.silos a:hover .silos__word,
.silos a:focus-visible .silos__word {
  letter-spacing: -.01em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .12em;
}

/* ---------- Kontakt / Footer ---------- */

.contact {
  padding-block: var(--space-l) var(--space-m);
}
.contact__title {
  font-size: var(--step-3);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: var(--space-m);
}

.contact__grid {
  display: grid;
  gap: var(--space-m);
}
@media (min-width: 60rem) {
  .contact__grid { grid-template-columns: minmax(auto, 40rem) 1fr; }
  .contact__info { grid-column: 2; margin-left: var(--space-m); }
}

.form { display: grid; gap: 2rem; }
.form .hp { position: absolute; left: -9999px; }

.field { display: grid; gap: .45rem; }
.field label { font-size: var(--step--1); font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field small { color: var(--muted); font-size: var(--step--1); margin-top: 0.25rem; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: .7rem 0;
  appearance: none;
  transition: border-color 0.2s ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--fg);
  border-bottom-width: 2px;
  padding-bottom: calc(.7rem - 1px);
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
}
.field--check input {
  width: 1.15rem; height: 1.15rem;
  margin: .25rem 0 0;
  accent-color: var(--fg);
  appearance: auto;
}
.field--check label { font-weight: 400; color: var(--muted); line-height: 1.5; }

.form .btn { margin-top: 0.5rem; justify-self: start; }

.contact__info address {
  font-style: normal;
  line-height: 1.7;
}
.contact__info p + p,
.contact__info address + p { margin-top: 1.4rem; }
.contact__info .muted { color: var(--muted); font-size: var(--step--1); }

.legal {
  margin-top: var(--space-l);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.legal ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; }
.legal a { display: inline-block; padding-block: .25rem; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- FORCE IMAGE SYMMETRY ---------- */
.bio,
.room-shot {
  margin: var(--space-m) 0 0 0 !important;
  width: 100% !important;
  max-width: 26rem !important; 
}

.bio img,
.room-shot img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important; 
  object-fit: cover !important;
  margin-bottom: 1rem !important;
}