/* Praxis Michael Bartscherer – schlichtes Stylesheet, keine externen Ressourcen */
:root {
  --bg: #ffffff;
  --bg-soft: #f2f6fb;
  --text: #1d2629;
  --muted: #55636a;
  --accent: #1a6bbf;
  --accent-dark: #124f8f;
  --line: #dbe4ee;
  --alert-bg: #fdf1ee;
  --alert-line: #c0392b;
  --maxw: 60rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181a;
    --bg-soft: #1b2326;
    --text: #e6eced;
    --muted: #a3b1b6;
    --accent: #5aa9ff;
    --accent-dark: #93c6ff;
    --line: #2c373b;
    --alert-bg: #2a1a18;
    --alert-line: #e07a6c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }

/* Kopf */
.site-header { border-top: 5px solid #3399ff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.25rem; padding-bottom: 1rem; }
.brand { text-decoration: none; color: var(--text); }
.brand { display: block; }
.brand .logo { display: block; width: 290px; max-width: 100%; height: auto; }
.brand span { display: block; color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.header-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }

nav.main { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
nav.main ul { list-style: none; margin: 0 auto; padding: 0 .5rem; max-width: var(--maxw); display: flex; flex-wrap: wrap; }
nav.main a { display: block; padding: .7rem .6rem; color: var(--text); text-decoration: none; font-size: .98rem; }
nav.main a:hover { color: var(--accent); }
nav.main a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -3px 0 var(--accent); }

/* Inhalt */
main { padding: 2rem 0 3rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
p, ul, ol, table { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.lead.wide { max-width: none; }
.small { font-size: .92rem; color: var(--muted); }
.highlight { font-size: 1.2rem; line-height: 1.5; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.5rem 0; }
.card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: .5rem; padding: 1.1rem 1.25rem; }
.card h2, .card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.notice { border-left: 4px solid var(--alert-line); background: var(--alert-bg); padding: 1rem 1.25rem; border-radius: 0 .5rem .5rem 0; margin: 1.5rem 0; }
.notice > :last-child { margin-bottom: 0; }
.notice strong.big { font-size: 1.25rem; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
td.time { white-space: nowrap; }

dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; }
dl.contact dt { font-weight: 600; }
dl.contact dd { margin: 0; }

.team { list-style: none; padding: 0; }
.team li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.team strong { display: block; }

.tel { white-space: nowrap; font-weight: 600; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .93rem; color: var(--muted); }
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 30rem) {
  .brand .logo { width: 230px; }
  dl.contact { grid-template-columns: 1fr; }
  dl.contact dd { margin-bottom: .5rem; }
  th, td { padding: .45rem .3rem; }
}

@media print {
  nav.main, .skip, .header-phone { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: none; }
  .card, .notice { border: 1px solid #999; background: none; }
  figure.map figcaption a::after { content: " (openstreetmap.org)"; }
}

/* Karte (lokal gespeichertes Bild, keine Verbindung zu fremden Servern) */
figure.map { margin: 1.5rem 0; }
figure.map img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .5rem; background: var(--bg-soft); }
figure.map figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }

/* Platzhalter, die vor der Veröffentlichung ausgefüllt werden müssen */
.todo { background: #fff3a8; color: #000; padding: 0 .25em; border-radius: .2em; font-weight: 600; }

/* ===== Gestaltung: weniger flach, leichte Schatten, blau getönter Hintergrund ===== */
:root {
  --page-bg: linear-gradient(180deg, #e6f1fd 0, #f3f8fe 28rem, #f6f9fd 100%);
  --surface: #ffffff;
  --shadow: 0 2px 4px rgba(20, 60, 110, .10), 0 10px 28px rgba(20, 60, 110, .18);
  --nav-bg: linear-gradient(180deg, #2a80d8 0%, #1d68b8 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: linear-gradient(180deg, #0f2236 0, #12191f 28rem, #12181a 100%);
    --surface: #1a2329;
    --shadow: 0 2px 4px rgba(0, 0, 0, .5), 0 10px 28px rgba(0, 0, 0, .5);
    --nav-bg: linear-gradient(180deg, #1d5e9e 0%, #174c82 100%);
  }
}
body { background: var(--bg); background-image: var(--page-bg); background-attachment: fixed; }
.site-header { background: var(--surface); border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
nav.main { background: var(--nav-bg); border-bottom: 0; box-shadow: 0 3px 10px rgba(20, 60, 110, .18); }
nav.main a { color: #fff; }
nav.main a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
nav.main a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 #fff; background: rgba(255, 255, 255, .1); }
nav.main a:focus-visible { outline-color: #fff; }
.card { background: var(--surface); border: 0; border-radius: .75rem; box-shadow: var(--shadow); padding: 1.25rem 1.4rem; }
.notice { box-shadow: var(--shadow); border-radius: 0 .75rem .75rem 0; }
main table { background: var(--surface); border-radius: .75rem; box-shadow: var(--shadow); overflow: hidden; }
figure.map img { border: 0; border-radius: .75rem; box-shadow: var(--shadow); }
.site-footer { background: transparent; border-top: 1px solid var(--line); }
@media print {
  body { background: #fff; }
  .card, .notice, main table { box-shadow: none; }
}

/* ===== TESTVARIANTE: Kopf und Menü bleiben beim Scrollen stehen (nur CSS) ===== */
.topbar { position: sticky; top: 0; z-index: 50; }
.site-header .wrap { padding-top: .7rem; padding-bottom: .6rem; }
.brand .logo { width: 230px; }
.brand span { font-size: .88rem; margin-top: .15rem; }
html { scroll-padding-top: 11rem; }
/* Auf dem Handy: nur die Menüleiste bleibt stehen, das Logo scrollt mit */
@media (max-width: 48rem) {
  .topbar { display: contents; }
  nav.main { position: sticky; top: 0; z-index: 50; }
  html { scroll-padding-top: 8rem; }
}
@media print { .topbar, nav.main { position: static; } }
/* Handy: Menü als eine wischbare Zeile */
@media (max-width: 48rem) {
  nav.main ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 2rem;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  nav.main ul::-webkit-scrollbar { display: none; }
  nav.main li { flex: 0 0 auto; }
  html { scroll-padding-top: 4rem; }
}

/* ===== TESTVARIANTE HANDY-MENÜ: auf dem Handy ausklappbares Menü (☰), ohne JavaScript ===== */
.menu-toggle, .menu-btn { display: none; }
@media (max-width: 48rem) {
  .menu-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
  .menu-btn { display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem; color: #fff; font-weight: 600; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
  .menu-btn .burger { font-size: 1.35rem; line-height: 1; }
  .menu-btn .menu-cur { margin-left: auto; font-weight: 400; opacity: .85; }
  .menu-toggle:focus-visible + .menu-btn { outline: 2px solid #fff; outline-offset: -4px; }
  .menu-toggle:checked + .menu-btn .burger { font-size: 0; }
  .menu-toggle:checked + .menu-btn .burger::before { content: "✕"; font-size: 1.2rem; }
  nav.main ul { display: none; flex-wrap: wrap; overflow: visible; padding: 0 0 .5rem; -webkit-mask-image: none; mask-image: none;
    max-height: calc(100vh - 3rem); overflow-y: auto; border-top: 1px solid rgba(255,255,255,.2); }
  .menu-toggle:checked ~ ul { display: block; }
  nav.main li { flex: none; }
  nav.main a { padding: .8rem 1rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  nav.main a[aria-current="page"] { box-shadow: inset 4px 0 0 #fff; }
  html { scroll-padding-top: 3.5rem; }
}
@media print { .menu-btn, .menu-toggle { display: none; } }
/* Testweise: Name/Fachrichtung rechts neben dem Logo, auf Höhe der Telefonnummer */
.site-header .wrap { flex-wrap: nowrap; }
.header-name { margin-right: auto; font-size: 1rem; color: var(--text); white-space: nowrap; }
.header-phone { font-size: 1rem; }
@media (max-width: 62rem) {
  .site-header .wrap { flex-wrap: wrap; gap: .3rem 1.5rem; }
  .header-name { flex-basis: 100%; order: 2; font-size: .92rem; color: var(--muted); white-space: normal; }
  .header-phone { order: 3; }
}
