/* objektbuch.app – Erscheinungsbild wie die App: Beschilderung, Türschild, Sicherheitsgrün */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #e9edef; --surface: #fff; --sunken: #f3f5f6; --line: #dce2e5; --line-strong: #b9c3c9;
  --ink: #15212a; --fg: #26333b; --muted: #50606a;
  --accent: #1f7a4d; --accent-hover: #155c39; --accent-soft: #e4f0ea;
  --plate: #15212a; --plate-2: #1c2b36; --plate-ink: #fff; --plate-muted: #c6d0d5; --plate-line: #2e3d47;
  --info: #1d5a8c; --info-bg: #e3eef7; --warn: #7a5200; --warn-bg: #fff1cc; --sign: #f9a800; --crit: #a72920; --crit-bg: #fbe7e5;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 10px; --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .86em; background: var(--sunken); border: 1px solid var(--line); border-radius: 5px; padding: .08em .36em; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; }

/* ---------- Kopf ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(233, 237, 239, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.6rem/1 var(--display); }
.brand img { width: 36px; height: 36px; }
.brand small { font: 500 .78rem/1 var(--body); color: var(--muted); display: block; margin-top: 3px; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--fg); font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .cta { background: var(--accent); color: #fff; margin-left: 8px; }
.nav .cta:hover { background: var(--accent-hover); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; stroke: var(--ink); }
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Schilder ---------- */
.plate { background: var(--plate); color: var(--plate-ink); border-radius: 14px; position: relative; }
.plate h1, .plate h2, .plate h3 { color: var(--plate-ink); }
.plate .screws::before, .plate .screws::after, .plate.screwed::before, .plate.screwed::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #7d8b94, #3b4a54); top: 14px; }
.plate.screwed::before { left: 14px; } .plate.screwed::after { right: 14px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 .9rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.plate .kicker { color: #6fcf9b; }
.kicker::before { content: ""; width: 22px; height: 3px; background: currentColor; }
.roomno { font: 700 .95rem/1 var(--display); letter-spacing: .06em; color: var(--muted); }
.stripe { height: 10px; background: repeating-linear-gradient(-45deg, var(--sign) 0 14px, var(--ink) 14px 28px); border-radius: 3px; }

/* ---------- Bereiche ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.plate .lead { color: var(--plate-muted); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--r); font: 600 1.05rem/1 var(--body); text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); color: #fff; }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.plate .btn.ghost { background: transparent; color: #fff; border-color: var(--plate-line); }
.plate .btn.ghost:hover { border-color: var(--plate-muted); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Hero */
.hero { padding: 40px 0 0; }
.hero .plate { padding: clamp(32px, 5vw, 64px); overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 560px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: #6fcf9b; }
.hero .facts { display: flex; gap: 22px 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--plate-line); flex-wrap: wrap; }
.hero .facts b { display: block; font: 700 1.6rem/1 var(--display); color: #fff; }
.hero .facts span { font-size: .9rem; color: var(--plate-muted); }
.hero .stage { position: relative; height: 100%; min-height: 460px; }
.hero .stage .desk { position: absolute; right: -120px; top: 20px; width: 640px; border-radius: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); border: 1px solid #2e3d47; }
.hero .stage .phone { position: absolute; left: 0; bottom: -40px; width: 230px; }
@media (max-width: 980px) { .hero .plate { grid-template-columns: 1fr; } .hero .stage { min-height: 420px; } .hero .stage .desk { right: -200px; width: 560px; } }
@media (max-width: 560px) { .hero .stage { min-height: 360px; } .hero .stage .phone { width: 190px; } .hero .stage .desk { right: -260px; } }

/* Handy-Rahmen */
.phone { background: #0b1116; border-radius: 34px; padding: 9px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px #2e3d47; }
.phone img { border-radius: 26px; }
.desk { background: #0b1116; }
.shot-desk { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(21, 33, 42, .14); background: #fff; }

/* Module als Piktogramm-Schilder */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; position: relative; }
.card h3 { margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: var(--fg); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
a.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 30px rgba(21, 33, 42, .08); color: var(--fg); }
.pikto { width: 56px; height: 56px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 1px var(--accent); }
.pikto svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pikto.warn { background: var(--sign); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 1px var(--sign); } .pikto.warn svg { stroke: var(--ink); }
.pikto.blue { background: var(--info); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 1px var(--info); }
.pikto.dark { background: var(--plate); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 1px var(--plate); }
.card .roomno { position: absolute; top: 26px; right: 26px; }
.more { display: inline-block; margin-top: 10px; font-weight: 600; }

/* Feature-Zeilen */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip > :first-child { order: 2; }
.feature .phones { display: flex; gap: 18px; justify-content: center; }
.feature .phones .phone { width: 250px; }
.feature .phones .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature.flip > :first-child { order: 0; } .feature .phones .phone { width: 46%; } }
ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { padding-left: 30px; position: relative; margin: 8px 0; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 4px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Ablauf / Statuskette */
.flow { display: flex; flex-wrap: wrap; gap: 0; margin: 24px 0; counter-reset: s; }
.flow span { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 10px 22px 10px 30px; font: 600 1.05rem/1 var(--display); color: var(--ink); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); margin-right: -6px; }
.flow span:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 18px; }
.flow span.hm { background: var(--accent-soft); color: var(--accent); }
.flow span.fa { background: var(--info-bg); color: var(--info); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }

/* Hinweisschilder */
.note { border-radius: 10px; padding: 16px 20px 16px 58px; position: relative; margin: 20px 0; background: var(--info-bg); color: #163f61; }
.note::before { content: "i"; position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--info); color: #fff; font: 700 16px/26px var(--display); text-align: center; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.warn::before { content: "!"; background: var(--sign); color: var(--ink); border-radius: 3px; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 28px; line-height: 30px; }
.note.ok { background: var(--accent-soft); color: #14512f; }
.note.ok::before { content: "✓"; background: var(--accent); }
.note.crit { background: var(--crit-bg); color: var(--crit); }
.note.crit::before { content: "!"; background: var(--crit); }
.note p:last-child { margin: 0; }

/* Chips wie in der App */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .86rem; font-weight: 500; background: var(--sunken); border: 1px solid var(--line); color: var(--fg); white-space: nowrap; }
.chip.ok { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.crit { background: var(--crit-bg); color: var(--crit); border-color: transparent; }
.chip.info { background: var(--info-bg); color: var(--info); border-color: transparent; }

/* Tabellen */
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .95rem; margin: 16px 0 24px; }
.tbl th { text-align: left; background: var(--sunken); font: 600 .95rem/1.2 var(--body); color: var(--ink); padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.tbl-scroll { overflow-x: auto; }
.tbl-scroll .tbl { min-width: 640px; }

/* Handbuch-Layout mit Wegweiser */
.doc { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 40px 0 96px; align-items: start; }
.sign { position: sticky; top: 92px; background: var(--plate); border-radius: 12px; padding: 18px 10px 14px; color: var(--plate-ink); max-height: calc(100vh - 110px); overflow: auto; }
.sign h2 { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--plate-muted); padding: 0 12px; margin-bottom: 10px; }
.sign a { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; text-decoration: none; color: var(--plate-ink); padding: 7px 12px; border-radius: 7px; font-weight: 500; font-size: .98rem; }
.sign a span { font: 700 .9rem/1 var(--display); color: #6fcf9b; letter-spacing: .04em; }
.sign a:hover { background: var(--plate-2); color: #fff; }
.sign a[aria-current="page"] { background: var(--accent); color: #fff; }
.sign a[aria-current="page"] span { color: #fff; }
.sign .sub { margin: 2px 0 8px 56px; border-left: 1px solid var(--plate-line); }
.sign .sub a { grid-template-columns: 1fr; font-size: .88rem; padding: 4px 12px; color: var(--plate-muted); }
.prose { min-width: 0; max-width: 820px; }
.prose h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); }
.prose h2 { font-size: 2rem; margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.8em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose figure { margin: 28px 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.prose .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.prose .duo .phone { max-width: 300px; margin: 0 auto; }
.steps { counter-reset: st; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: st; position: relative; padding: 4px 0 6px 52px; margin: 14px 0; }
.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 8px; background: var(--plate); color: #fff; font: 700 1.1rem/34px var(--display); text-align: center; }
.chapnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.chapnav a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font-weight: 600; color: var(--ink); max-width: 48%; }
.chapnav a small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }
.chapnav a:hover { border-color: var(--accent); }
.doc-head { padding: 48px 0 0; }
.menu-doc { display: none; }
@media (max-width: 980px) {
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .sign { position: static; max-height: none; display: none; }
  .sign.open { display: block; }
  .menu-doc { display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--plate); color: #fff; border: 0; border-radius: 10px; padding: 14px 18px; font: 600 1.1rem/1 var(--display); letter-spacing: .06em; cursor: pointer; }
  .prose .duo { grid-template-columns: 1fr; }
}

/* API */
.ep { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 18px 0; overflow: hidden; }
.ep > header { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--sunken); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ep > header code { background: none; border: 0; font-size: 1rem; padding: 0; font-weight: 600; }
.ep > div { padding: 16px 18px; }
.ep > div > :last-child { margin-bottom: 0; }
.m { font: 700 .8rem/1 var(--mono); padding: 6px 8px; border-radius: 5px; color: #fff; letter-spacing: .04em; }
.m.get { background: var(--info); } .m.post { background: var(--accent); }
.auth { margin-left: auto; font-size: .82rem; }
pre { background: #0f171c; color: #d3dbdf; border-radius: 10px; padding: 18px 20px; overflow-x: auto; font: 400 .86rem/1.6 var(--mono); margin: 14px 0 22px; border: 1px solid #26343d; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
pre .k { color: #7fb4e0; } pre .s { color: #9fd8b3; } pre .c { color: #7d8b94; } pre .n { color: #f3b63c; }

/* Galerie */
.gal { columns: 3 280px; column-gap: 18px; }
.gal figure { break-inside: avoid; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.gal figure img { border-radius: 8px; cursor: zoom-in; }
.gal figcaption { font-size: .88rem; color: var(--muted); padding: 10px 4px 2px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.tabs button { font: 600 1rem/1 var(--body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lb::backdrop { background: rgba(7, 13, 17, .86); }
dialog.lb img { max-width: 96vw; max-height: 88vh; border-radius: 10px; }
dialog.lb p { color: #fff; text-align: center; margin: 10px 0 0; }
dialog.lb button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer; }
.zoom { cursor: zoom-in; }

/* Fuß */
footer { background: var(--plate); color: var(--plate-muted); padding: 56px 0 32px; margin-top: 0; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; }
footer a { color: var(--plate-ink); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: #6fcf9b; }
footer .base { border-top: 1px solid var(--plate-line); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; }
footer .brand { color: #fff; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* Kleinkram */
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.mt0 { margin-top: 0; } .muted { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.badge-beta { display: inline-block; background: var(--sign); color: var(--ink); font: 700 .8rem/1 var(--display); letter-spacing: .12em; padding: 5px 9px; border-radius: 4px; text-transform: uppercase; vertical-align: middle; margin-left: 10px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.anon { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 14px 18px; font-size: .92rem; color: var(--muted); margin-top: 24px; }
.anon b { color: var(--ink); }

/* Nachschärfung */
.flow span { background: var(--sunken); }
.flow span.hm { background: #cde5d8; color: #14512f; }
.flow span.fa { background: #cfe0f0; color: #163f61; }
.phone-sm { width: 280px; max-width: 80%; }
ul.todo { list-style: none; padding: 0; margin: 0 0 1em; }
ul.todo li { padding-left: 30px; position: relative; margin: 8px 0; }
ul.todo li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; border: 2px dashed var(--sign); }
.doc > div:first-child { position: sticky; top: 92px; align-self: start; }
.doc .sign { position: static; }
@media (max-width: 980px) { .doc > div:first-child { position: static; } }
/* Handys nebeneinander nicht auf gleiche Höhe strecken (sonst dicker schwarzer Rand unter dem linken) */
.feature .phones { align-items: flex-start; }
.phone { align-self: flex-start; height: auto; }
/* Handys nebeneinander auf einer Linie */
.feature .phones .phone:nth-child(2) { margin-top: 0; }
/* Integration: Kennzahlen und Datenfluss */
.facts3 > div b { display: block; font: 700 1.7rem/1.1 var(--display); color: #fff; margin-bottom: 6px; }
.facts3 > div span { color: var(--plate-muted); font-size: .98rem; }
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; counter-reset: p; }
.pipe > div { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; }
.pipe > div b { display: block; font: 700 1.35rem/1.1 var(--display); color: var(--ink); margin: 6px 0 4px; }
.pipe > div span:not(.roomno) { font-size: .93rem; color: var(--muted); }
.pipe > div:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.pipe > div.hl { background: var(--accent-soft); border-color: var(--accent); }
@media (max-width: 800px) { .pipe { grid-template-columns: 1fr; } .pipe > div:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -13px; transform: translateX(-50%) rotate(135deg); } }

/* Unternavigation „Technik & IT“ */
.subnav { border-bottom: 1px solid var(--line); background: var(--surface); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.subnav a { flex: none; text-decoration: none; color: var(--fg); font-weight: 500; padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
.subnav a:hover { background: var(--sunken); color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
/* Startseite: Sicherheit als Liste statt Kacheln */
.facts-list li { margin: 0 0 14px; }
.it-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.it-note a { font-weight: 600; white-space: nowrap; }

/* Überschriften, die semantisch h3 sind, aber wie h4 aussehen */
.h4 { font-size: 1.2rem; font-weight: 600; }
.badge-row { margin: 0 0 14px; }
.badge-row .badge-beta { margin-left: 0; }
button.btn { cursor: pointer; }
/* Kurzfassung für den Schulträger: druckfreundlich */
.brief .tbl th { width: 30%; background: var(--sunken); vertical-align: top; border-top: 1px solid var(--line); }
.brief .tbl tr:first-child th { border-top: 0; }
@media print {
  .top, footer, .no-print, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .doc-head { padding: 0; }
  .prose h2 { break-after: avoid; margin-top: 1.2em; }
  a { color: inherit; text-decoration: none; }
  .tbl, .steps > li, ul.check li { break-inside: avoid; }
}
