/* Gemeinsames Stylesheet · Website tonbuero.ch · AP-W · keine Abhängigkeiten, keine Webfonts */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1c1f23;
  --muted: #5b626b;
  --line: #e1e3e6;
  --accent: #0f766e;
  --accent-text: #ffffff;
  --notice-bg: #fff6e0;
  --notice-line: #e2c36b;
  --ok: #1a7f37;
  --info: #0f6aa6;
  --warn: #b45309;
  --down: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101214;
    --surface: #181b1e;
    --text: #e8eaed;
    --muted: #a0a7b0;
    --line: #2b3035;
    --accent: #2dd4bf;
    --accent-text: #06201d;
    --notice-bg: #2a2412;
    --notice-line: #6b5a1f;
    --ok: #4ade80;
    --info: #60b0f0;
    --warn: #fbbf24;
    --down: #f87171;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 60rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: 8px 12px; }
.skip:focus { left: 0; z-index: 10; }

header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.main { display: flex; gap: 4px 18px; flex-wrap: wrap; }
nav.main a { color: var(--muted); text-decoration: none; padding: 6px 0; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

main { padding: 32px 0 56px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 40px 0 12px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.4rem; margin: 0 0 14px; }
li { margin-bottom: 8px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }

.hero { padding: 24px 0 8px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.btn.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 8px 16px; }
.btn:hover { filter: brightness(1.08); }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 16px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

.notice { background: var(--notice-bg); border: 1px solid var(--notice-line); border-radius: 8px; padding: 10px 14px; font-size: 0.95rem; margin-bottom: 24px; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: color-mix(in srgb, var(--line) 45%, transparent); font-weight: 600; }
.prices th:not(:first-child), .prices td:not(:first-child) { text-align: right; white-space: nowrap; }

.status { border-left: 6px solid var(--info); background: var(--surface); border-radius: 8px; padding: 14px 18px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status h2 { margin: 0 0 6px; }
.status p { margin: 0; }
.status-ok { border-left-color: var(--ok); }
.status-info { border-left-color: var(--info); }
.status-warn { border-left-color: var(--warn); }
.status-down { border-left-color: var(--down); }
.small { color: var(--muted); font-size: 0.9rem; }

footer.site { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0 28px; color: var(--muted); font-size: 0.92rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
footer.site a { color: var(--muted); }
footer.site p { margin: 0; }

/* Bau-Hinweis: Overlay mit Unschärfe; ohne backdrop-filter dunkler Hintergrund statt Blur */
.bau { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16, 18, 20, 0.88); }
.bau[hidden] { display: none; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bau { background: rgba(16, 18, 20, 0.45); -webkit-backdrop-filter: blur(8px) grayscale(1); backdrop-filter: blur(8px) grayscale(1); }
}
.bau-box { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 24px; max-width: 24rem; width: 100%; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.bau-box p { font-size: 1.1rem; margin-bottom: 18px; }
.bau-box .btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; min-width: 6rem; }
body.bau-open { overflow: hidden; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  main { padding-top: 20px; }
  table { font-size: 0.85rem; }
  th, td { padding: 8px 6px; }
  .prices td:not(:first-child), .prices th:not(:first-child) { white-space: normal; }
}
@media print {
  header.site nav, footer.site nav, .cta { display: none; }
  body { background: #fff; color: #000; }
}
