/* =========================================================
   Praxis Martfeld – Theme "ruhig & hell"
   Keine externen Schriften (Datenschutz): System-Schriften.
   ========================================================= */

:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --text: #1c2a26;
  --muted: #5a6b66;
  --accent: #3f7d6e;
  --accent-dark: #2e5f53;
  --accent-soft: #e4efea;
  --sand: #f3efe7;
  --border: #e1e9e5;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 42, 38, .04), 0 8px 28px rgba(28, 42, 38, .07);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { font-size: 17px; scroll-behavior: smooth; scroll-padding-top: 112px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .container { padding: 0 32px; } }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
  text-decoration: none;
}
.brand-logo { height: 64px; width: auto; }
@media (min-width: 900px) { .brand-logo { height: 80px; } }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.menu a {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.menu a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.menu a[aria-current="page"] { background: var(--accent); color: #fff; }

/* ---------- Startseite: Hero ---------- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 800px) { .hero { min-height: min(78vh, 720px); } }
@media (max-width: 599px) {
  .menu a { padding: 6px 11px; }
  /* Kopfzeile mit Logo ist auf dem Handy hoch: dort nicht mitscrollen */
  .site-header { position: static; }
  html { scroll-padding-top: 0; }
}
.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--sand) 100%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 248, 246, .92) 0%, rgba(245, 248, 246, .55) 45%, rgba(245, 248, 246, 0) 75%);
}
.hero-inner { position: relative; padding-top: 48px; padding-bottom: 48px; }
.hero-card {
  max-width: 580px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .85rem;
  font-weight: 600;
}
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--accent-dark); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------- Schnellkontakt ---------- */
.quick {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin-top: -36px;
}
@media (min-width: 800px) { .quick { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, border-color .2s;
}
.quick-item:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.quick-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.quick-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-label { display: block; font-size: .82rem; color: var(--muted); }
.quick-value { display: block; font-weight: 600; }

/* ---------- Abschnitte ---------- */
.section { padding-top: 64px; }
.section:last-child { padding-bottom: 72px; }
.intro { padding-top: 48px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; }

.cards { display: grid; gap: 16px; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 800px) { .cards-list { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
  overflow-wrap: anywhere;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h2, .card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.stretched { color: var(--text); text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:hover .stretched { color: var(--accent-dark); }

.datum {
  margin: 0 0 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}

.split { display: grid; gap: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 24px; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.panel-accent { background: var(--accent-soft); border-color: transparent; }
.panel-accent .btn { margin-top: 8px; }

.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand);
  font-weight: 600;
  font-size: .92rem;
}

.zeiten { margin: 0; }
.zeiten-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.zeiten-row:last-child { border-bottom: 0; }
.zeiten dt { font-weight: 600; }
.zeiten dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 600px) { .zeiten-row { grid-template-columns: 9rem 1fr; } }
.split > .panel-accent { align-self: start; }
.zeiten-seite { max-width: 560px; font-size: 1.05rem; }

/* ---------- Unterseiten ---------- */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--sand) 100%);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(245, 248, 246, 1) 0%, rgba(245, 248, 246, .7) 35%, rgba(245, 248, 246, 0) 80%);
}
.page-hero-inner { position: relative; padding-top: 80px; padding-bottom: 28px; }
.page-hero h1 { margin: 0; }
.page-hero h1.title-long { font-size: clamp(1.3rem, 2.6vw, 1.8rem); max-width: 48ch; }
.page-hero .datum { margin-top: 10px; }

.page-body { padding-top: 8px; padding-bottom: 72px; }

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 48px);
  box-shadow: var(--shadow);
}

.prose { max-width: 75ch; overflow-wrap: anywhere; }
.content-card.prose { max-width: none; }
.content-card > * { max-width: 75ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.back { margin-top: 2rem; }

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--text);
  color: #d7e2de;
  font-size: .94rem;
}
.site-footer a { color: #fff; }
.footer-inner {
  display: grid;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.2fr 1fr auto; align-items: start; } }
.footer-inner p { margin: 4px 0 0; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.copyright { color: #9fb1ab; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
