/* =====================================================================
   Mira Mobilis Tiertherapie — Onepager
   Design-System: Waldgrün #304836 · Creme · Fraunces + Mulish
   ===================================================================== */

:root {
  /* Farben (aus dem Logo abgeleitet) */
  --forest: #304836;
  --forest-700: #263a2c;
  --forest-400: #5b7362;
  --sage-100: #e7ebe3;
  --sage-50: #eff2eb;
  --cream: #f6f2e9;
  --paper: #fcfaf4;
  --ink: #2c2e2a;
  --muted: #6f726a;
  --clay: #c08b62;

  --line: rgba(48, 72, 54, 0.14);
  --shadow: 0 20px 45px -28px rgba(48, 72, 54, 0.55);
  --shadow-sm: 0 10px 26px -20px rgba(48, 72, 54, 0.5);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;

  --ff-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-sans: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--forest); }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:where(section)[id], .hero { scroll-margin-top: 92px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--forest);
  color: var(--cream);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow / small labels ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--forest-400);
  margin: 0 0 0.7rem;
}
.eyebrow--light { color: rgba(246, 242, 233, 0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1.5px solid var(--forest);
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--forest-700); border-color: var(--forest-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: rgba(48, 72, 54, 0.35);
}
.btn--ghost:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn--small { padding: 0.6em 1.1em; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 233, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 34px; width: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}
.site-nav a:not(.btn):hover { color: var(--forest-400); }
.site-nav__cta a { color: var(--cream); }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--sage { background: var(--sage-50); }
.section--forest { background: var(--forest); color: rgba(246, 242, 233, 0.9); }
.section--forest h2 { color: var(--cream); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { margin-bottom: 1rem; }
.section__intro { color: var(--muted); font-size: 1.08rem; }
.section--forest .section__intro { color: rgba(246, 242, 233, 0.78); }

h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: 1.2rem;
}
.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: #45473f;
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.hero__trust { font-size: 0.9rem; color: var(--muted); }
.hero__media { aspect-ratio: 5 / 4; }

/* ---------- Split layout (Text + Media) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split--reverse .split__media { order: 2; }
.split__text > h2 { margin-bottom: 1.1rem; }
.split__text p + p { margin-top: 0; }
.split__media .media { aspect-ratio: 4 / 5; }

/* ---------- Media (Fotos) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--sage-100), var(--forest-400));
  box-shadow: var(--shadow);
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(0.98);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 72, 54, 0.04), rgba(48, 72, 54, 0.12));
  pointer-events: none;
}
.media--fallback::before {
  content: "Beispielbild folgt";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 242, 233, 0.85);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Foto-Platzhalter (z. B. Foto von Mira) */
.media--placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #eef1e9, #dbe2d4);
  box-shadow: var(--shadow-sm);
  border: 1px dashed rgba(48, 72, 54, 0.28);
}
.media--placeholder::after { display: none; }
.placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.placeholder-mark { width: 72px; height: auto; opacity: 0.55; margin-bottom: 1rem; }
.placeholder-label { font-family: var(--ff-serif); font-size: 1.25rem; color: var(--forest); }
.placeholder-sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- Tiles (Für wen) ---------- */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(48, 72, 54, 0.3); }
.tile h3 { font-size: 1.15rem; color: var(--forest); margin-bottom: 0.45rem; }
.tile p { color: var(--muted); font-size: 0.96rem; }
.tile--muted {
  background: transparent;
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tile--muted p { color: var(--ink); }

.disclaimer {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 1.6rem;
  max-width: 62ch;
}
.split__text .disclaimer { margin-top: 1.3rem; }

/* ---------- Cards (Angebot) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; color: var(--forest); margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

.note-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.4rem;
}
.note {
  background: var(--forest);
  color: var(--cream);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  font-size: 0.98rem;
}
.note strong { display: block; }
.note em { color: var(--sage-100); font-style: normal; }
.outlook { max-width: 46ch; color: var(--muted); font-size: 0.92rem; font-style: italic; margin: 0; }

/* ---------- Ruhe-Band ---------- */
.band {
  position: relative;
  min-height: clamp(240px, 38vw, 420px);
  overflow: hidden;
  background: linear-gradient(155deg, var(--forest-400), var(--forest-700));
  display: flex;
}
.band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.9);
}
.band__overlay {
  position: relative;
  margin: auto;
  padding: 2rem;
  max-width: 34ch;
  text-align: center;
}
.band__overlay p {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--cream);
  margin: 0;
  text-shadow: 0 2px 20px rgba(38, 58, 44, 0.5);
}

/* ---------- Steps (Ablauf) ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem 2.6rem;
  counter-reset: step;
}
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step__num {
  font-family: var(--ff-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--forest-400);
  line-height: 1;
  min-width: 2.4rem;
}
.step h3 { font-size: 1.08rem; color: var(--forest); margin-bottom: 0.25rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Pills / Area (Mobil) ---------- */
.pills {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pills li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--forest);
}
.area { font-size: 0.96rem; margin-top: 1.4rem; }
.area strong { color: var(--forest); }
.credentials {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- Fortbildungen / Qualifikation ---------- */
.quals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.qual {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.qual__meta {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--forest-400);
  margin-bottom: 0.35rem;
}
.qual h3 { font-size: 1.2rem; color: var(--forest); margin-bottom: 0.55rem; }
.qual p:last-child { color: var(--muted); font-size: 0.97rem; margin: 0; }
.quals__note { margin-top: 1.6rem; font-style: italic; color: var(--muted); font-size: 0.95rem; }

/* ---------- Kontakt ---------- */
.contact__intro { color: rgba(246, 242, 233, 0.82); max-width: 42ch; }
.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(246, 242, 233, 0.55);
  margin-bottom: 0.15rem;
}
.contact-list a, .contact-list li > span:not(.contact-list__label) { color: var(--cream); font-size: 1.05rem; }
.contact-list a {
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 242, 233, 0.35);
  transition: border-color 0.2s ease;
}
.contact-list a:hover { border-color: var(--clay); }

.contact-form {
  background: var(--paper);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--forest); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(48, 72, 54, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(48, 72, 54, 0.15);
}
.contact-form .btn { width: 100%; margin-top: 0.3rem; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; line-height: 1.5; }
.form-hint a { color: var(--forest); }
.form-status { margin-top: 0.6rem; font-weight: 600; color: var(--forest); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(246, 242, 233, 0.82); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__logo { height: 78px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 1rem; }
.footer__brand p { color: rgba(246, 242, 233, 0.7); font-size: 0.95rem; line-height: 1.6; }
.footer__nav h4, .footer__legal h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(246, 242, 233, 0.55);
  margin-bottom: 0.9rem;
  font-family: var(--ff-sans);
  font-weight: 700;
}
.footer__nav ul, .footer__legal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__nav a, .footer__legal a {
  color: rgba(246, 242, 233, 0.82);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}
.footer__nav a:hover, .footer__legal a:hover { color: var(--cream); }
.footer__bar { border-top: 1px solid rgba(246, 242, 233, 0.15); padding-block: 1.4rem; }
.footer__bar p { font-size: 0.8rem; color: rgba(246, 242, 233, 0.55); text-align: center; margin: 0; }

/* ---------- Reveal-Animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; max-height: 340px; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__media { order: 0; }
  .split__media .media, .media--placeholder { aspect-ratio: 16 / 11; max-height: 360px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem clamp(1.25rem, 5vw, 2rem) 1.4rem;
  }
  .site-nav li a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__cta { margin-top: 1rem; }
  .site-nav__cta a { width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand { grid-column: auto; }
  .note-row { gap: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
