/* Supervision Passau – Josef Feigl
   Keine externen Schriften oder Skripte: alles wird vom eigenen Server geladen. */

:root {
  --teal: #2c7e82;
  --teal-dark: #1d5c5f;
  --teal-light: #e8f2f2;
  --ink: #1f2a2b;
  --muted: #5b6869;
  --line: #d9e2e2;
  --bg: #fbfaf7;
  --card: #ffffff;
  --radius: 10px;
  --max: 68rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--teal-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--teal-dark); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--teal-dark); letter-spacing: 0.02em; }
.brand span { font-size: 0.85rem; color: var(--muted); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav a { display: block; padding: 0.4rem 0.7rem; text-decoration: none; color: var(--ink); border-radius: 6px; font-size: 0.95rem; }
.nav a:hover { background: var(--teal-light); color: var(--teal-dark); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.45rem 0.7rem; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer;
}

@media (max-width: 52rem) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
  .nav a { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}
/* Ohne JavaScript bleibt das Menü sichtbar */
.no-js .nav-toggle { display: none; }
.no-js .nav { display: block; position: static; border: 0; }

/* Einstieg */
.hero { background: var(--teal); color: #fff; padding: clamp(3rem, 9vw, 6rem) 0; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lead { font-size: 1.2rem; max-width: 40rem; color: #e6f1f1; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: #bfe0e0; margin-bottom: 0.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-block; padding: 0.75rem 1.3rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; border: 2px solid #fff;
}
.btn-primary { background: #fff; color: var(--teal-dark); }
.btn-primary:hover { background: var(--teal-light); color: var(--teal-dark); }
.btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Abschnitte */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 44rem; color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; align-items: start; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
section.alt .card { background: var(--bg); }
.card h3 { color: var(--teal-dark); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

ul.ticks { padding-left: 1.2rem; margin: 0 0 1rem; }
ul.ticks li { margin-bottom: 0.4rem; }
ul.ticks li::marker { color: var(--teal); }

details.more { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }
details.more summary { cursor: pointer; color: var(--teal-dark); font-weight: 600; }
details.more[open] summary { margin-bottom: 0.75rem; }

.pillars { counter-reset: p; }
.pillars .card { position: relative; padding-top: 3.6rem; }
.pillars .card::before {
  counter-increment: p; content: counter(p);
  position: absolute; top: 1rem; left: 1.5rem;
  font-family: var(--serif); font-size: 1.1rem; color: #fff; background: var(--teal);
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
}

figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; }
figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.5rem; }

.methods { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.methods figure img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Person */
.person { display: grid; gap: 2.5rem; grid-template-columns: minmax(12rem, 18rem) 1fr; align-items: start; }
@media (max-width: 44rem) { .person { grid-template-columns: 1fr; } .person figure { max-width: 16rem; } }
.timeline { list-style: none; margin: 0 0 2rem; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1rem 1.25rem; }
.timeline li::before {
  content: ""; position: absolute; left: -0.45rem; top: 0.5rem;
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--teal); border: 2px solid var(--bg);
}
.timeline .year { display: block; font-size: 0.88rem; font-weight: 600; color: var(--teal-dark); }

/* Honorar */
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--teal-light); color: var(--teal-dark); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.price-table td.num { white-space: nowrap; font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }
@media (max-width: 34rem) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  .price-table td { border: 0; padding: 0.2rem 1rem; }
  .price-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
}
.note { font-size: 0.95rem; color: var(--muted); }

/* Kontakt */
.contact { background: var(--teal-dark); color: #fff; }
.contact h2, .contact h3 { color: #fff; }
.contact a { color: #fff; }
.contact .card { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.contact .card h3 { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; font-size: 1.15rem; }
.contact-list li { margin-bottom: 0.6rem; }
.contact-list .label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #bfe0e0; }
.contact .section-intro { color: #d6e9e9; }

/* Fußzeile */
.site-footer { padding: 2rem 0; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }

/* Rechtstexte */
.legal { padding: 3rem 0 4rem; }
.legal .wrap { max-width: 46rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }

/* Platzhalter für Angaben, die noch geliefert werden müssen */
.todo { background: #fff3c4; border: 1px dashed #c99a00; padding: 0 0.3em; border-radius: 4px; font-weight: 600; color: #6b5000; }

@media print {
  .site-header, .nav-toggle, .actions { display: none; }
  .hero, .contact { background: none; color: var(--ink); }
  .hero h1, .contact h2, .contact a { color: var(--ink); }
}

/* Abstände */
.after { margin-top: 2rem; max-width: 46rem; }
.after-sm { margin-top: 1rem; }
.spaced { margin-top: 3rem; }
address { font-style: normal; }
