/* OA Dr. Gerald Wagner – statische Website, keine externen Ressourcen */
:root {
  --blue: #1b7fbf;
  --blue-dark: #145f8f;
  --orange: #ef8a17;
  --ink: #23292e;
  --muted: #5b6670;
  --line: #e2e7eb;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --radius: 10px;
  --wrap: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0 0 .6em; }
h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: auto; }
.brand strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.25rem; line-height: 1.2; }
.brand span { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav a:hover { background: var(--bg-soft); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); }
}

/* Hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 48px; padding-bottom: 48px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--orange); font-weight: 600; margin-bottom: .6em; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 6px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn.ghost:hover { background: var(--blue); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2em; }

/* Layout */
main { padding: 40px 0 64px; }
.page-head { margin-bottom: 1.2em; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 32px; } }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 8px 0 40px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--ink); }
.card img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }
.card div { padding: 16px 18px 18px; }
.card h3 { margin: 0 0 .3em; color: var(--blue); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.box { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.box h3 { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }

.check { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check li { position: relative; padding-left: 28px; margin-bottom: .4em; }
.check li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

.service { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h2 { margin-top: 0; }
.service img { border-radius: var(--radius); }
@media (max-width: 700px) { .service { grid-template-columns: 1fr; gap: 16px; } .service img { max-width: 260px; } }

.portrait { float: right; width: 280px; margin: 0 0 20px 32px; border-radius: var(--radius); }
@media (max-width: 600px) { .portrait { float: none; width: 220px; margin: 0 0 20px; } }

.locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .locations { grid-template-columns: 1fr; } }
.location img { border-radius: var(--radius); margin-bottom: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.location h2 { margin-top: 0; }

.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: block; padding: 12px 0; text-decoration: none; }
.linklist a::after { content: " ↗"; color: var(--muted); }

.legal { max-width: 52em; }
.legal h2 { font-size: 1.25rem; }

/* Footer */
.site-footer { background: #23292e; color: #c9d1d7; font-size: .92rem; }
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-weight: 600; margin: 0 0 .5em; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .6em; }
.footer-bottom { border-top: 1px solid #3a4248; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; grid-template-columns: none; }
.footer-bottom a { color: #c9d1d7; margin-right: 16px; }

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
}

@media (max-width: 480px) {
  .site-header .wrap { min-height: 68px; }
  .brand img { width: 40px; }
  .brand strong { font-size: 1.1rem; }
  .brand span span { display: none; }
}
