/* ==========================================================================
   Praxis am Falkenplatz — Design System
   Apple-artig: viel Weißraum, große leichte Typografie, Logo-Amber als Akzent
   ========================================================================== */

:root {
  /* Farben */
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-surface-tint: #f9f6f3;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-border: #e5e5e0;

  /* Amber-Skala, abgeleitet vom Logo-Punkt (#ee9e4c) */
  --color-amber-50: #faf4ed;
  --color-amber-100: #f1decb;
  --color-amber-300: #e6b889;
  --color-amber-500: #ee9e4c;
  --color-amber-600: #ac6215;
  --color-amber-700: #884d11;

  --color-accent: var(--color-amber-600);
  --color-accent-hover: var(--color-amber-700);
  --color-accent-soft: var(--color-amber-50);
  --color-accent-vivid: var(--color-amber-500);

  /* Typografie */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --lh-tight: 1.1;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Layout */
  --container-w: 1120px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow-m: 0 8px 30px rgba(20, 30, 22, 0.08);
  --shadow-l: 0 20px 60px rgba(20, 30, 22, 0.12);
  --nav-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-normal: 280ms;
}

/* Bewusst kein automatischer Dunkelmodus: Seite bleibt immer hell (Kundenwunsch). */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1.1em; color: var(--color-text); }
ul, ol { padding-left: 1.25em; }
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--color-accent); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius-s); transition: top var(--dur-fast) var(--ease);
  z-index: 200;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: inherit; font-size: 1rem; font-weight: 500;
  padding: 0.85em 1.6em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-accent-vivid); color: var(--color-text); }
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; box-shadow: var(--shadow-m); }
.btn-secondary { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.05rem; }
.brand img { height: 28px; width: auto; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  font-size: 0.95rem; color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease);
  padding: 0.4rem 0;
  position: relative;
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--color-text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--color-accent); border-radius: 2px;
}
.nav-cta { display: none; }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none; background: none; border: none; padding: 0.5rem; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (min-width: 861px) {
  .nav-cta { display: inline-flex; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0; height: calc(100dvh - var(--nav-h));
    background: var(--color-bg); flex-direction: column; justify-content: flex-start;
    padding: 2rem var(--container-pad); gap: 0.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease), visibility var(--dur-normal);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav-links a { font-size: 1.25rem; padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); width: 100%; }
  .nav-links .nav-cta-mobile { display: inline-flex; margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-amber-700);
  background: var(--color-accent-soft); padding: 0.35em 0.9em; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero p.lead { font-size: var(--fs-lead); color: var(--color-text-muted); max-width: 46ch; }
.hero-media { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); aspect-ratio: 4/3; background: var(--color-surface-tint); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.75rem; align-items: flex-start; }
.btn-note-group { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.btn-note-group .form-note { margin: 0; }

/* Inline content figures: like .hero-media, but shown at the image's own true
   aspect ratio (no forced box, no crop) — so photos with baked-in captions/
   labels are always fully visible AND fill the rounded frame edge-to-edge,
   with no letterbox gap where a square photo corner could show through. */
.figure { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); align-self: center; }
.figure img { width: 100%; height: auto; display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-tight { padding-block: clamp(1.5rem, 4vw, 3rem); }
.section-alt { background: var(--color-surface-tint); }
.section-head { max-width: 65ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--color-text-muted); font-size: var(--fs-lead); }
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--color-text-muted); line-height: var(--lh-relaxed); }
.prose h2, .prose h3 { color: var(--color-text); margin-top: 1.6em; }
.prose ul { margin: 0 0 1.2em; }

/* Split block: heading sits narrow, above just the text column; the image
   (left or right) is vertically centered against the body text only, not
   against the heading. */
.split { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: clamp(1.5rem, 4vw, 3rem); }
.split > .figure { grid-column: 1; grid-row: 2; align-self: center; }
.split > h2 { grid-column: 2; grid-row: 1; margin: 0 0 1rem; }
.split > .prose { grid-column: 2; grid-row: 2; align-self: center; max-width: none; }
.split.split-reverse > .figure { grid-column: 2; }
.split.split-reverse > h2, .split.split-reverse > .prose { grid-column: 1; }
@media (max-width: 620px) {
  .split { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 1.25rem; }
  .split > .figure, .split > h2, .split > .prose { grid-column: 1; }
  .split > h2 { grid-row: 1; }
  .split > .figure { grid-row: 2; }
  .split > .prose { grid-row: 3; }
}

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-m); padding: 1.75rem;
  transition: transform var(--dur-normal) var(--ease), box-shadow var(--dur-normal) var(--ease), border-color var(--dur-normal) var(--ease);
}
a.card:hover, .card.is-linked:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: var(--color-accent);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--color-text-muted); font-size: 0.98rem; margin-bottom: 0; }

.team-card { text-align: left; }
.team-card .photo {
  aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; margin-bottom: 1rem;
  background: var(--color-surface-tint);
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .role { color: var(--color-accent); font-size: 0.9rem; font-weight: 500; margin-bottom: 0.2em; }

.highlight-box {
  background: var(--color-accent-soft); border-radius: var(--radius-m);
  padding: 1.75rem 2rem; border: 1px solid var(--color-amber-100);
}
.highlight-box p:last-child { margin-bottom: 0; }

.info-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.info-table th, .info-table td {
  text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--color-border);
}
.info-table th { color: var(--color-text-muted); font-weight: 500; width: 45%; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem; color: var(--color-text-muted);
  padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 1.25rem 0; }
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-accent); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { color: var(--color-text-muted); margin-top: 0.9rem; line-height: var(--lh-relaxed); }

/* ---------- Form ---------- */
.form-field { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.9rem; font-weight: 500; }
.form-field input, .form-field textarea {
  font-family: inherit; font-size: 1rem; padding: 0.8em 1em;
  border: 1px solid var(--color-border); border-radius: var(--radius-s);
  background: var(--color-surface); color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent);
}
.form-note { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Notice banner ---------- */
.notice {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--color-accent-soft); border-radius: var(--radius-m);
  padding: 1rem 1.25rem; font-size: 0.95rem; margin-bottom: 1.5rem;
}
.notice strong { color: var(--color-accent-hover); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.3fr 1fr 1fr 1fr; margin-bottom: 2.5rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 1rem; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { color: var(--color-text); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1.75rem; border-top: 1px solid var(--color-border);
  font-size: 0.85rem; color: var(--color-text-muted);
}
.footer-bottom ul { list-style: none; display: flex; gap: 1.25rem; padding: 0; margin: 0; }
.footer-bottom a:hover { color: var(--color-accent); }

/* ---------- Scroll reveal ---------- */
/* Ohne (oder bei fehlschlagendem) JavaScript bleibt der Inhalt sichtbar. */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
