/* memox Intranet
   Layout: Kiosk-Shell mit fixer Kopfzeile; Inhalte als ruhige Bänder auf warmem Papierweiss,
   memox-Gelb nur als Akzent und als steigender MOS-Keil. Zahlen und Marker als abgerundete Quadrate (das »o« aus memox.).
   Schrift laut Corporate Design: Noto Sans JP (v1.1). */
:root {
  --paper: #f8f6f1;
  --surface: #ffffff;
  --surface-2: #f1eee7;
  --ink: #171512;
  --ink-2: #47423b;
  --muted: #7a746a;
  --line: #e4dfd4;
  --yellow: #fdb934;
  --yellow-strong: #f2a516;
  --yellow-soft: #fff1d2;
  --on-yellow: #1b1608;
  --night: #171512;
  --on-night: #f5f1e8;
  --ok: #2e7a4d;
  --ok-soft: #e3f1e8;
  --plan: #8a8376;
  --plan-soft: #efece6;
  --warn: #a8472a;
  --warn-soft: #f8e6de;
  --shadow: 0 1px 2px rgb(23 21 18 / .06), 0 8px 24px rgb(23 21 18 / .06);
  --shadow-lift: 0 2px 4px rgb(23 21 18 / .08), 0 18px 40px rgb(23 21 18 / .12);

  --f-display: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Noto Sans JP", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-script: "Nothing You Could Do", "Segoe Script", "Bradley Hand", cursive;

  --r-s: 8px; --r-m: 14px; --r-l: 22px; --r-o: 28%;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  --topbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110; --surface: #1b1916; --surface-2: #24211d; --ink: #f3efe7; --ink-2: #cfc8bc; --muted: #9b9488;
    --line: #2f2b26; --yellow-soft: #3a2f14; --night: #0c0b0a; --on-night: #f5f1e8;
    --ok: #74c493; --ok-soft: #173325; --plan: #a59e92; --plan-soft: #2a2723; --warn: #ea8d6c; --warn-soft: #3a2119;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25); --shadow-lift: 0 2px 4px rgb(0 0 0 / .35), 0 18px 40px rgb(0 0 0 / .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121110; --surface: #1b1916; --surface-2: #24211d; --ink: #f3efe7; --ink-2: #cfc8bc; --muted: #9b9488;
  --line: #2f2b26; --yellow-soft: #3a2f14; --night: #0c0b0a; --on-night: #f5f1e8;
  --ok: #74c493; --ok-soft: #173325; --plan: #a59e92; --plan-soft: #2a2723; --warn: #ea8d6c; --warn-soft: #3a2119;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25); --shadow-lift: 0 2px 4px rgb(0 0 0 / .35), 0 18px 40px rgb(0 0 0 / .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16.5px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.kicker { font: 600 13px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker.on-y { color: var(--on-yellow); opacity: .75; }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; text-transform: none; }
/* v1.1: Textblöcke laufen über die ganze Seitenbreite */
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: none; }
.muted { color: var(--muted); }
.ico { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--night); color: var(--on-night);
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.topbar-in { max-width: calc(var(--maxw) + 48px); margin: 0 auto; height: var(--topbar-h); display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { flex: none; }
.brand img { height: 24px; width: auto; }
.brand-sep { width: 1px; height: 22px; background: rgb(255 255 255 / .22); }
.crumb { font: 600 15px/1.2 var(--f-display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgb(245 241 232 / .78); }
.topbar-nav { display: flex; gap: 6px; margin-left: 4px; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgb(255 255 255 / .16); background: transparent; color: var(--on-night); text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 15px;
}
.tb-btn:hover { background: rgb(255 255 255 / .08); }
.tb-btn.icon-only { width: 40px; padding: 0; justify-content: center; }
.tb-spacer { flex: 1; }
.clock { text-align: right; line-height: 1.1; font-variant-numeric: tabular-nums; }
.clock b { display: block; font: 700 20px/1 var(--f-display); letter-spacing: .02em; }
.clock span { font-size: 12.5px; color: rgb(245 241 232 / .65); }
.userchip {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 4px; border-radius: 12px;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); cursor: pointer; color: var(--on-night);
}
.avatar { width: 32px; height: 32px; border-radius: var(--r-o); background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font: 700 13px/1 var(--f-display); }
.userchip .uname { font-size: 14px; font-weight: 600; max-width: 18ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-pill { font: 700 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); color: var(--on-yellow); padding: 5px 7px; border-radius: 6px; }
@media (max-width: 480px) { .tb-btn.hide-s { display: none; } .topbar-in { gap: 8px; } .userchip .demo-pill { display: none; } }
@media (max-width: 760px) { .clock, .crumb, .brand-sep, .userchip .uname, .tb-btn .lbl { display: none; } .brand img { height: 20px; } }

main { min-height: calc(100vh - var(--topbar-h)); }
.view-enter { animation: rise .35s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section { padding-block: clamp(36px, 5vw, 72px); }
.section + .section { padding-top: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head > div { display: grid; gap: 8px; min-width: 0; }

/* ---------- Startseite ---------- */
.home-hero { padding-block: clamp(28px, 5vw, 64px) clamp(20px, 3vw, 36px); display: grid; gap: 14px; }
.home-hero h1 { font-size: clamp(32px, 4.6vw, 64px); font-weight: 800; max-width: none; text-wrap: wrap; } /* v1.1: Slogan über die ganze Breite */
.home-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .06em; }
.home-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 20px); padding-bottom: clamp(28px, 4vw, 56px); }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(260px, 38vh, 420px);
  border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: #fff; background: var(--night);
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; isolation: isolate;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .6s ease; }
.tile:hover .bg { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(10 9 8 / .78) 100%); }
.tile-body { padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 8px; }
.tile-title { font: 750 clamp(26px, 2.8vw, 38px)/1.02 var(--f-display); }
.tile-sub { font-size: 16.5px; color: rgb(255 255 255 / .86); max-width: 40ch; }
.tile-go { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: var(--r-o); background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; }
.tile-go .ico { width: 24px; height: 24px; stroke-width: 2.2; }
/* v1.1: Meetings und Regionen gleich gross */
.tile.t-meet { grid-column: span 6; }
.tile.t-reg { grid-column: span 6; }
.tile.t-mos { grid-column: span 12; min-height: 0; background: var(--yellow); color: var(--on-yellow); flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(20px, 2.6vw, 32px); }
.tile.t-mos::after { display: none; }
.tile.t-mos .mos-logo { height: clamp(52px, 6vw, 84px); width: auto; }
.t-mos .mos-txt { display: grid; gap: 6px; max-width: 54ch; }
.t-mos .mos-txt b { font: 800 clamp(24px, 2.6vw, 34px)/1.15 var(--f-display); }
.t-mos .lockline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.t-mos .tile-go { position: static; background: var(--night); color: var(--yellow); flex: none; }
@media (max-width: 860px) {
  .tile.t-meet, .tile.t-reg { grid-column: span 12; min-height: 240px; }
  .tile.t-mos { flex-direction: column; align-items: flex-start; }
  .t-mos .tile-go { position: absolute; top: 18px; right: 18px; }
}

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 650 16px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-2); }
.btn.yellow { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.btn.yellow:hover { background: var(--yellow-strong); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; font: 700 12px/1 var(--f-body); letter-spacing: .04em; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.badge.t-SOP { background: var(--ink); color: var(--paper); }
.badge.t-TMP { background: var(--yellow); color: var(--on-yellow); }
.badge.t-BPE { background: var(--yellow-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--yellow); }
.badge.t-ADT { background: var(--warn-soft); color: var(--warn); }
.badge.t-VIDEO { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.badge.t-DOK { background: var(--surface-2); color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: currentColor; }
.status.ok { color: var(--ok); }
.status.neu { color: var(--ink); }
.status.neu::before { background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.status.plan { color: var(--plan); }
.status.plan::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.status.fehlt { color: var(--warn); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.chip[aria-pressed="true"] .n { color: rgb(248 246 241 / .7); }
.sq .ico { width: 20px; height: 20px; }
.sq { width: 34px; height: 34px; border-radius: var(--r-o); background: var(--yellow); color: var(--on-yellow); display: inline-grid; place-items: center; font: 700 15px/1 var(--f-display); flex: none; }
.sq.dark { background: var(--ink); color: var(--yellow); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-m); background: var(--yellow-soft); color: var(--ink); font-size: 15.5px; }
.note .ico { color: var(--ink); margin-top: 2px; }
.note.plain { background: var(--surface-2); }

/* ---------- Seitenkopf (Bereiche) ---------- */
.pagehead { padding-block: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 36px); display: grid; gap: 12px; }
.pagehead .kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.photo { border-radius: var(--r-l); overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.figure-yellow { background: var(--yellow); border-radius: var(--r-l); overflow: hidden; }

/* Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts > div { padding: 18px 18px 6px 0; display: grid; gap: 4px; }
.facts b { font: 750 clamp(34px, 4vw, 54px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.facts span { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vier Punkte */
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.point { display: grid; gap: 12px; align-content: start; }
.point .photo { aspect-ratio: 4 / 4.3; }
.point p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 980px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .points { grid-template-columns: minmax(0, 1fr); } .point .photo { aspect-ratio: 16 / 10; } }

/* Formate – Etikett im Broschüren-Stil */
.formats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.fmt { grid-column: span 2; position: relative; display: block; text-decoration: none; border-radius: var(--r-l); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 10; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.fmt:nth-child(-n+2) { grid-column: span 3; }
.fmt:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.fmt img { width: 100%; height: 100%; object-fit: cover; }
.label-y { position: absolute; left: 0; bottom: 16px; display: grid; gap: 0; }
.label-y .script { background: var(--yellow); color: var(--on-yellow); font-size: 17px; padding: 6px 12px 0; width: max-content; border-radius: 0 8px 0 0; }
.label-y b { background: var(--yellow); color: var(--on-yellow); font: 750 clamp(20px, 2vw, 27px)/1 var(--f-display); padding: 2px 16px 10px 12px; width: max-content; border-radius: 0 10px 10px 0; }
@media (max-width: 860px) { .fmt, .fmt:nth-child(-n+2) { grid-column: span 3; } }
@media (max-width: 560px) { .formats { grid-template-columns: minmax(0, 1fr); } .fmt, .fmt:nth-child(-n+2) { grid-column: auto; } }

/* Pauschalen – v1.1: Inhalte und Aufbau wie auf memox.com, »Signature« gelb hervorgehoben */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); align-items: stretch; }
.pkg { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.pkg-head { display: grid; gap: 4px; }
.pkg-head h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; }
.pkg-head p { color: var(--ink-2); font-size: 16.5px; }
.pkg-basis { font: 700 16.5px/1.3 var(--f-display); }
.pkg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.pkg li { display: flex; gap: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.4; }
.pkg li .ico { color: var(--yellow-strong); margin-top: 1px; stroke-width: 2.4; }
.pkg-price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; justify-items: center; text-align: center; }
.pkg-price .price { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; font: 800 clamp(28px, 2.6vw, 36px)/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.pkg-price .price small { font: 600 15px var(--f-body); color: var(--muted); margin: 0 5px; }
.pkg-price .price small:first-child { margin-left: 0; }
.pkg-price > span { color: var(--ink-2); font-size: 15.5px; }
.pkg.hl { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); box-shadow: var(--shadow); }
.pkg.hl .pkg-head p, .pkg.hl li, .pkg.hl .pkg-price > span, .pkg.hl .pkg-price .price small { color: rgb(27 22 8 / .78); }
.pkg.hl li .ico { color: var(--on-yellow); }
.pkg.hl .pkg-price { border-top-color: rgb(27 22 8 / .18); }
.pkg-note { margin-top: 18px; text-align: center; font-weight: 600; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 820px) { .packages { grid-template-columns: minmax(0, 1fr); } }

/* Listen mit Haken */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--ink-2); }
.checks li .tick { width: 24px; height: 24px; border-radius: 8px; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; flex: none; margin-top: 1px; }
.checks li .tick .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.checks.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .checks { grid-template-columns: minmax(0, 1fr); } }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.duo > .card { padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 16px; align-content: start; }
@media (max-width: 820px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* ESG */
.esg { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.esg .photo { aspect-ratio: 3 / 4; max-height: 520px; max-width: 400px; }
@media (max-width: 900px) { .esg { grid-template-columns: minmax(0, 1fr); } .esg > .photo { display: none; } }
.esg-links { display: flex; flex-wrap: wrap; gap: 8px; }
.esg-links .btn .ico, .more .ico { width: 16px; height: 16px; }
.esg-cert { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-m); background: var(--ok-soft); color: var(--ink); text-decoration: none; width: max-content; max-width: 100%; }
.esg-cert span { display: grid; font-size: 14px; color: var(--ink-2); }
.esg-cert b { font: 700 15.5px/1.3 var(--f-display); color: var(--ink); }
.esg-cert > .ico:first-child { width: 26px; height: 26px; color: var(--ok); }
.esg-proj { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.proj { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; padding: 12px; text-decoration: none; align-items: start; transition: box-shadow .2s, border-color .2s; }
.proj:hover { box-shadow: var(--shadow-lift); border-color: var(--ink); }
.proj .photo { display: block; aspect-ratio: 4 / 3; border-radius: 10px; }
.proj .txt { display: grid; gap: 4px; padding-top: 2px; }
.proj b { font: 700 18px/1.25 var(--f-display); }
.proj .p { font-size: 15px; color: var(--ink-2); }
.proj .kicker { font-size: 12px; letter-spacing: .1em; }
@media (max-width: 760px) { .esg-proj { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .proj { grid-template-columns: 96px minmax(0, 1fr); } }

/* Technik und Services (v1.1) */
.card-h { display: flex; gap: 12px; align-items: center; }
.checks.extra li .tick { background: var(--ink); color: var(--yellow); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.svc { padding: 22px; display: grid; gap: 10px; align-content: start; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.svc:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--ink); }
.svc p { color: var(--ink-2); font-size: 15.5px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 650 18px/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); max-width: 70ch; }

/* Format-Detail */
.banner { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 3 / 1; background: var(--surface-2); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .label-y { bottom: 22px; }
@media (max-width: 640px) { .banner { aspect-ratio: 16 / 9; } }
.comps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.comp { display: grid; gap: 10px; align-content: start; }
.comp .photo { aspect-ratio: 1; position: relative; }
.comp .photo .sq { position: absolute; left: 10px; top: 10px; }
.comp b { font: 650 17px/1.25 var(--f-display); }
@media (orientation: portrait) and (max-width: 980px) { .comps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .comps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 12px; border-radius: 10px; background: var(--surface-2); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.fmt-nav { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Regionen ---------- */
.reg { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .reg { grid-template-columns: minmax(0, 1fr); } }
.map { position: sticky; top: calc(var(--topbar-h) + 20px); }
.map svg { width: 100%; height: auto; max-height: calc(100vh - var(--topbar-h) - 60px); display: block; }
@media (max-width: 900px) { .map { position: static; } .map svg { max-height: 62vh; } }
.map .land { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; }
.map .land.ch { fill: var(--yellow-soft); }
.map .pin { cursor: pointer; }
.map .pin rect { fill: var(--ink); transition: fill .15s; }
.map .pin text.num { fill: var(--yellow); font: 700 19px var(--f-display); text-anchor: middle; dominant-baseline: central; }
.map .pin text.name { fill: var(--ink); font: 700 25px var(--f-display); dominant-baseline: central; paint-order: stroke; stroke: var(--paper); stroke-width: 6px; }
.map .pin:hover rect, .map .pin.on rect, .map .pin:focus-visible rect { fill: var(--yellow); }
.map .pin:hover text.num, .map .pin.on text.num, .map .pin:focus-visible text.num { fill: var(--on-yellow); }
.map .pin:focus { outline: none; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 8px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.map-legend i.ch { background: var(--yellow-soft); }
.citylist { display: grid; gap: 10px; }
.city {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 14px 10px 10px;
  text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.city:hover, .city.on { border-color: var(--ink); box-shadow: var(--shadow); }
.city .photo { aspect-ratio: 4 / 3; border-radius: 10px; }
.city h3 { display: flex; align-items: center; gap: 10px; }
.city p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.city .cnt { text-align: right; font: 700 26px/1 var(--f-display); }
.city .cnt small { display: block; font: 600 12px var(--f-body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 520px) { .city { grid-template-columns: 84px minmax(0, 1fr); } .city .cnt { display: none; } }

.hero-img { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 21 / 8; background: var(--surface-2); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img .over { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 3vw, 36px); background: linear-gradient(180deg, transparent, rgb(10 9 8 / .72)); color: #fff; display: grid; gap: 6px; }
.hero-img .over .kicker { color: rgb(255 255 255 / .8); }
@media (max-width: 700px) { .hero-img { aspect-ratio: 4 / 3; } }

.locs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.loc { display: grid; text-decoration: none; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.loc:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.loc .photo { border-radius: 0; aspect-ratio: 16 / 9; }
.loc .body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.loc .addr { display: flex; gap: 8px; font-size: 15px; color: var(--muted); }
.kv { display: flex; flex-wrap: wrap; gap: 6px; }
.kv span { font-size: 13.5px; font-weight: 600; padding: 5px 9px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.loc .from { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.loc.noimg { border-top: 6px solid var(--yellow); align-content: start; }
@media (min-width: 700px) { .locs[data-n="2"], .locs[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.loc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(16px, 3vw, 36px); align-items: start; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: minmax(0, 1fr); } }
.factbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; }
.factbar > div { padding: 14px 14px 4px 0; }
.factbar b { display: block; font: 700 clamp(22px, 2.2vw, 30px)/1.1 var(--f-display); }
.factbar span { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.side { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar-h) + 20px); }
@media (max-width: 900px) { .side { position: static; } }
.contact { padding: 20px; display: grid; gap: 14px; }
.contact .row { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.contact .row .ico { color: var(--muted); margin-top: 3px; }
.copy { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.qr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; }
.qr .code { background: #fff; border-radius: 10px; padding: 8px; aspect-ratio: 1; }
.qr .code svg, .qr .code img { width: 100%; height: 100%; }
.qr p { font-size: 14.5px; color: var(--ink-2); }
.hl-list { display: grid; gap: 16px; }
.hl-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.hl-item p { color: var(--ink-2); margin-top: 4px; }
.pricebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pricebar > div { padding: 14px; border-radius: var(--r-m); background: var(--surface-2); display: grid; gap: 2px; }
.pricebar > div.hl { background: var(--yellow); color: var(--on-yellow); } /* v1.1: Signature gelb statt schwarz */
.pricebar b { font: 750 26px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.pricebar span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.room { display: grid; gap: 8px; }
.room .photo { aspect-ratio: 4 / 3; }
.room b { font: 650 17px var(--f-display); }
@media (max-width: 760px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
table.cap { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15.5px; min-width: 620px; }
table.cap th, table.cap td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.cap th:first-child, table.cap td:first-child, table.cap th:nth-child(2), table.cap td:nth-child(2) { text-align: left; }
table.cap thead th { font: 700 13px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
table.cap tbody tr:last-child td { border-bottom: 0; }
table.cap td:first-child b { display: inline-grid; place-items: center; min-width: 34px; height: 28px; border-radius: 8px; background: var(--yellow); color: var(--on-yellow); font-family: var(--f-display); }
table.cap tr.clickable { cursor: pointer; }
table.cap tr.clickable:hover td { background: var(--yellow-soft); }
.zoomable { cursor: zoom-in; }
.imgbtn { display: block; padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; border-radius: var(--r-l); overflow: hidden; }

/* ---------- MOS ---------- */
.mos-gate { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.wedge { position: absolute; inset: 0; background: var(--yellow); clip-path: polygon(0 100%, 100% 8%, 100% 100%); pointer-events: none; }
.mos-gate .wrap { position: relative; padding-block: clamp(40px, 7vw, 96px); display: grid; gap: 22px; }
.mos-gate .mos-logo { height: clamp(64px, 9vw, 120px); width: auto; }
.mos-gate .lead { color: var(--ink-2); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ms-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--ink); color: var(--paper); font: 700 17px/1 var(--f-body); cursor: pointer; box-shadow: var(--shadow); }
.ms-btn:hover { background: var(--ink-2); }
.ms-btn .ico { color: var(--yellow); width: 22px; height: 22px; }
.gate-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 980px; }
.gate-steps > div { padding: 18px; display: grid; gap: 8px; align-content: start; background: rgb(255 255 255 / .9); }
:root[data-theme="dark"] .gate-steps > div { background: rgb(27 25 22 / .92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gate-steps > div { background: rgb(27 25 22 / .92); } }
.gate-steps p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .gate-steps { grid-template-columns: minmax(0, 1fr); } .wedge { clip-path: polygon(0 100%, 100% 55%, 100% 100%); } }

.mos-top { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; justify-content: space-between; padding-block: clamp(24px, 3vw, 40px) 18px; }
.mos-top .hello { display: grid; gap: 6px; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; }
.searchbox { position: relative; flex: 1 1 320px; max-width: 460px; }
.searchbox input { width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px 0 46px; font: 500 17px var(--f-body); color: var(--ink); }
.searchbox input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-soft); }
.searchbox .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }

/* Das MOS-Haus */
.house { display: grid; gap: 14px; }
.roof { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 132px; padding: 28px clamp(18px, 3vw, 36px) 20px; text-decoration: none; color: var(--on-yellow); isolation: isolate; border-radius: var(--r-l) var(--r-l) 0 0; overflow: hidden; }
.roof::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.roof::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-l) var(--r-l) 0 0; }
.roof .mos-logo { height: 54px; width: auto; align-self: start; }
.roof .vision { grid-column: 3; text-align: right; display: grid; gap: 4px; justify-items: end; }
.roof .vision b { font: 750 clamp(20px, 2vw, 26px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.roof .vision span { font-size: 15.5px; }
.roof .rocket { width: 46px; height: 46px; stroke-width: 1.6; }
.roof:hover .vision b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 700px) { .roof { grid-template-columns: minmax(0, 1fr) auto; } .roof .mos-logo { display: none; } .roof .vision { grid-column: 1; } }

.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.pillar { position: relative; padding: 46px 18px 18px; margin-top: 30px; display: grid; gap: 10px; align-content: start; text-align: center; transition: border-color .2s, box-shadow .2s; }
.pillar .ring { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--surface); }
.pillar .ring .ico { width: 30px; height: 30px; stroke-width: 1.7; }
.pillar h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .02em; }
.pillar h3 small { display: block; font: 700 13px var(--f-body); color: var(--muted); letter-spacing: .12em; margin-bottom: 4px; }
.pillar .claim { font-size: 15px; color: var(--ink-2); }
.pillar .count { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pillar .opener { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; border-radius: inherit; }
.subs { display: grid; gap: 4px; text-align: left; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.pillar .subs { max-height: 0; overflow: hidden; opacity: 0; padding-top: 0; border-top-color: transparent; margin-top: 0; transition: max-height .35s ease, opacity .25s ease, padding .2s; }
.pillar[data-open="true"] .subs { max-height: 640px; opacity: 1; padding-top: 10px; border-top-color: var(--line); margin-top: 4px; }
.pillar[data-open="true"] { border-color: var(--ink); box-shadow: var(--shadow-lift); }
@media (hover: hover) and (pointer: fine) and (max-width: 720px) {
  .pillar:hover .subs { max-height: 640px; opacity: 1; padding-top: 10px; border-top-color: var(--line); margin-top: 4px; }
}
.sub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.sub:hover { background: var(--yellow-soft); }
.sub code { font: 700 13px var(--f-display); color: var(--muted); min-width: 2.4em; }
.sub .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sub.all { color: var(--ink-2); font-weight: 700; }

.foundation { background: var(--yellow); color: var(--on-yellow); border-radius: 0 0 var(--r-l) var(--r-l); padding: 14px clamp(12px, 2vw, 22px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin-top: 4px; align-items: start; }
@media (max-width: 900px) { .foundation { grid-template-columns: minmax(0, 1fr); } }
.fd { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border-radius: 14px; transition: background .2s; }
.fd .opener { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; border-radius: inherit; }
.fd .count { font-size: 13.5px; font-weight: 700; color: rgb(27 22 8 / .65); }
.fd .subs { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .25s ease; position: relative; z-index: 2; }
.fd[data-open="true"] { background: rgb(255 255 255 / .38); }
.fd[data-open="true"] .subs { max-height: 500px; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .fd:hover, .fd:focus-within { background: rgb(255 255 255 / .38); }
  .fd:hover .subs, .fd:focus-within .subs { max-height: 500px; opacity: 1; }
}
.fd .ico.big { width: 40px; height: 40px; stroke-width: 1.6; }
.fd h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.fd .subs { border-top: 0; padding-top: 4px; margin-top: 2px; }
.fd .sub { font-size: 14.5px; padding: 5px 8px; color: var(--on-yellow); }
.fd .sub:hover { background: rgb(255 255 255 / .45); }
.fd .sub code, .fd .sub .n { color: rgb(27 22 8 / .6); }

.tools { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.tool { padding: 22px; display: grid; gap: 10px; align-content: start; text-decoration: none; position: relative; transition: box-shadow .2s, transform .2s; min-height: 190px; }
a.tool:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.tool.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tool.dark p { color: rgb(248 246 241 / .76); }
.tool p { color: var(--ink-2); font-size: 15.5px; }
.tool .stage { font: 700 12.5px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tool.dark .stage { color: var(--yellow); }
.tool .big { font: 750 46px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.tool .ico.corner { position: absolute; right: 20px; top: 20px; width: 26px; height: 26px; }

.doclist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.docrow { display: grid; grid-template-columns: 74px 64px minmax(0, 1fr) 150px 112px 128px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 60px; }
.docrow:first-child { border-top: 0; }
a.docrow:hover { background: var(--yellow-soft); }
.docrow .nr { font: 700 15px var(--f-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.docrow .t { font-weight: 650; font-size: 16.5px; line-height: 1.3; }
.docrow .t small { display: block; font-weight: 500; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.docrow .zg, .docrow .rel { font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.docrow.planned { color: var(--muted); }
.docrow.planned .t { font-weight: 600; color: var(--ink-2); }
.dochead { display: grid; grid-template-columns: 74px 64px minmax(0, 1fr) 150px 112px 128px; gap: 14px; padding: 10px 16px; font: 700 12.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
@media (max-width: 860px) {
  .dochead { display: none; }
  .docrow { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "typ t" "nr meta"; gap: 4px 12px; }
  .docrow .typ { grid-area: typ; } .docrow .t { grid-area: t; } .docrow .nr { grid-area: nr; font-size: 13px; }
  .docrow .zg, .docrow .rel { display: none; }
  .docrow .st { grid-area: meta; }
}

.doclist.compact .dochead { display: none; }
.doclist.compact .docrow { grid-template-columns: 52px auto minmax(0, 1fr); grid-template-areas: "nr typ t" "nr typ st"; gap: 2px 12px; }
.doclist.compact .nr { grid-area: nr; font-size: 14px; } .doclist.compact .typ { grid-area: typ; } .doclist.compact .t { grid-area: t; } .doclist.compact .st { grid-area: st; }
.doclist.compact .zg, .doclist.compact .rel { display: none; }
.teil { display: grid; gap: 14px; padding-block: 22px; border-top: 1px solid var(--line); }
.teil:first-of-type { border-top: 0; }
.teil-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.teil-head > div { display: flex; gap: 12px; align-items: center; }
.punkte { display: flex; flex-wrap: wrap; gap: 6px; }
.punkte span { font-size: 13.5px; padding: 5px 9px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.empty { padding: 22px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font: 650 18px var(--f-display); margin-bottom: 4px; }

.filters { display: grid; gap: 12px; padding: 16px; position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 5; margin-bottom: 14px; box-shadow: var(--shadow); }
.f-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.f-row .searchbox { max-width: none; flex: 2 1 280px; }
.f-row .searchbox input { height: 46px; }
.sel { position: relative; flex: 1 1 170px; min-width: 0; }
.sel select { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 34px 0 12px; font: 600 15px var(--f-body); appearance: none; -webkit-appearance: none; cursor: pointer; }
.sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select:focus { outline: none; border-color: var(--ink); }
.f-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.f-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.linkbtn { border: 0; background: none; padding: 4px 2px; font: 600 15px var(--f-body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 15px; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .knob { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.toggle .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 7px; background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s; }
.toggle input:checked + .knob { background: var(--ink); }
.toggle input:checked + .knob::after { transform: translateX(18px); background: var(--yellow); }
.toggle input:focus-visible + .knob { outline: 3px solid var(--yellow); outline-offset: 2px; }

.docview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 32px); align-items: start; padding-block: 24px 56px; }
@media (max-width: 960px) { .docview { grid-template-columns: minmax(0, 1fr); } }
.meta { padding: 22px; display: grid; gap: 16px; }
.meta dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 15.5px; }
.meta dt { color: var(--muted); font-weight: 600; }
.meta dd { margin: 0; font-weight: 600; }
.viewer { min-height: 560px; display: grid; overflow: hidden; }
.viewer iframe { width: 100%; height: min(78vh, 900px); border: 0; background: #fff; }
.viewer-ph { display: grid; place-items: center; text-align: center; padding: 32px; gap: 14px; background:
  repeating-linear-gradient(0deg, var(--surface) 0 31px, var(--surface-2) 31px 32px); }
.viewer-ph .sheet { width: min(330px, 80%); aspect-ratio: 210 / 297; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lift); padding: 26px 22px; display: grid; align-content: start; gap: 10px; text-align: left; position: relative; }
.sheet .bar { height: 8px; border-radius: 4px; background: var(--surface-2); }
.sheet .bar.y { background: var(--yellow); width: 40%; height: 10px; }
.sheet .bar.s { width: 70%; } .sheet .bar.m { width: 86%; }
.sheet .lock { position: absolute; right: -14px; bottom: -14px; }
.viewer-ph p { max-width: 46ch; color: var(--ink-2); font-size: 15.5px; }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: st; }
.roadmap > div { padding: 18px 18px 18px 0; border-top: 4px solid var(--line); display: grid; gap: 6px; align-content: start; }
.roadmap > div.done { border-top-color: var(--ink); }
.roadmap > div.now { border-top-color: var(--yellow); }
.roadmap b { font: 700 18px var(--f-display); }
.roadmap p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 720px) { .roadmap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgb(12 11 10 / .55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter); animation: fade .2s ease; }
@keyframes fade { from { opacity: .001; } to { opacity: 1; } }
.sheetbox { width: min(720px, 100%); max-height: 100%; overflow: auto; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-lift); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.sheetbox header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.persona-list { display: grid; gap: 10px; }
.persona { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.persona:hover, .persona:focus-visible { border-color: var(--ink); background: var(--yellow-soft); }
.persona b { font: 650 17px var(--f-display); display: block; }
.persona span { font-size: 14.5px; color: var(--ink-2); }
.persona .cnt { font: 700 22px/1 var(--f-display); text-align: right; }
.persona .cnt small { display: block; font: 600 11.5px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(12 11 10 / .92); display: grid; place-items: center; overflow: auto; padding: 56px var(--gutter-r) 24px var(--gutter); }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 100px); width: auto; height: auto; border-radius: 10px; background: #fff; cursor: zoom-in; }
.lightbox.zoom { place-items: start; }
.lightbox.zoom img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.lightbox .close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 95; background: var(--ink); color: var(--paper); padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lift); font-weight: 600; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); animation: rise .25s ease; }
.toast .btn { min-height: 36px; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; }

footer.foot { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 24px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Unterpunkte als Aufklapp-Panel ohne Layoutsprung (ab Tablet-Breite).
   v1.1: ein Regelsatz für Antippen und Maus – das Panel hängt bündig unter der Säule. */
@media (min-width: 721px) {
  .pillar { z-index: 1; }
  .pillar .subs { position: absolute; left: -1px; right: -1px; top: calc(100% - 14px); max-height: none; overflow: visible; margin: 0; padding: 12px 10px; background: var(--surface); border: 1px solid var(--ink); border-top: 0; border-radius: 0 0 var(--r-m) var(--r-m); box-shadow: 0 18px 34px rgb(23 21 18 / .16); z-index: 20;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  .pillar .subs::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; border-top: 1px solid var(--line); }
  /* Panel mindestens 280 px breit, an den Rändern bündig nach innen ausgerichtet */
  .pillar .subs { min-width: 280px; right: auto; width: calc(100% + 2px); }
  .pillar:nth-child(n+4) .subs { left: auto; right: -1px; }
  .pillar:nth-child(3) .subs { left: 50%; transform: translate(-50%, -6px); }
  .pillar:nth-child(3)[data-open="true"] .subs { transform: translate(-50%, 0); }
  .pillar[data-open="true"] .subs { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .18s ease, transform .18s ease; padding-top: 12px; margin: 0; }
  .pillar[data-open="true"] { z-index: 30; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}
@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  .pillar:hover .subs, .pillar:focus-within .subs { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .18s ease, transform .18s ease; }
  .pillar:nth-child(3):hover .subs, .pillar:nth-child(3):focus-within .subs { transform: translate(-50%, 0); }
  .pillar:hover, .pillar:focus-within { z-index: 30; border-color: var(--ink); box-shadow: var(--shadow-lift); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}
@media (min-width: 901px) {
  .fd .subs, .fd[data-open="true"] .subs { position: absolute; left: 0; right: 0; top: calc(100% - 8px); background: var(--yellow); border-radius: 0 0 14px 14px; padding: 6px 10px 10px; box-shadow: var(--shadow-lift); z-index: 20; }
  .fd { z-index: 1; }
  .fd[data-open="true"], .fd:hover, .fd:focus-within { z-index: 30; background: var(--yellow); box-shadow: var(--shadow-lift); }
}
/* Einträge im Panel: Nummer als Marke, Titel, Anzahl – grössere Tippfläche */
.pillar .sub { min-height: 44px; padding: 8px 8px; border-radius: 10px; font-size: 14.5px; line-height: 1.25; }
.pillar .sub + .sub { border-top: 1px solid var(--surface-2); }
.pillar .sub code { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--yellow-soft); color: var(--ink); font: 700 12.5px var(--f-display); }
.pillar .sub .n { min-width: 26px; text-align: center; font-weight: 700; }
.pillar .sub .n:not(:empty) { background: var(--surface-2); border-radius: 7px; padding: 3px 6px; }
.pillar .sub.all { margin-top: 6px; border-top: 0; background: var(--ink); color: var(--paper); justify-content: center; }
.pillar .sub.all code { background: transparent; color: var(--yellow); min-width: 0; }
.pillar .sub.all:hover { background: var(--ink-2); }
.pillar .sub:hover { background: var(--yellow-soft); }
.pillar .sub.all:hover { background: var(--ink-2); }

/* Feedback (nur Vorschau) */
.fb-btn { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--yellow); color: var(--on-yellow); font: 700 16px/1 var(--f-body); box-shadow: var(--shadow-lift); cursor: pointer; }
.fb-btn:hover { background: var(--yellow-strong); }
.fb-btn .ico { width: 22px; height: 22px; }
.fb-n { background: var(--ink); color: var(--yellow); border-radius: 8px; padding: 3px 7px; font-size: 13px; font-variant-numeric: tabular-nums; }
.fb-area { width: 100%; min-height: 130px; resize: vertical; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 14px 16px; font: 400 17px/1.5 var(--f-body); }
.fb-area:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-soft); }
.fb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fb-actions .note { flex: 1 1 100%; }
.fb-block { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.fb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fb-item { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.fb-name { color: var(--ink); font-size: 14px; }
.fb-text { white-space: pre-wrap; font-size: 15.5px; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 480px) { .fb-btn span:not(.fb-n) { display: none; } .fb-btn { padding: 0 14px; } }
footer.foot { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* v1.1: Bildqualität – Formate als 2×2-Mosaik aus scharfen Einzelfotos statt hochskaliertem Ausschnitt */
.fmt .mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 3px; background: var(--surface); }
.fmt .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.fmt .label-y { z-index: 1; }
.label-y.static { position: static; }

/* v1.1: Stadt- und Standortseiten – geteilter Kopf und einheitlicher Aufbau */
.loc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: clamp(24px, 3.5vw, 48px) clamp(20px, 3vw, 36px); }
.loc-head-txt { display: grid; gap: 14px; align-content: center; }
.loc-head-txt h1 { font-size: clamp(30px, 3.6vw, 48px); }
.loc-head-img { aspect-ratio: 4 / 3; max-height: 480px; width: 100%; }
.loc-head-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .loc-head { grid-template-columns: minmax(0, 1fr); } .loc-head-img { order: -1; aspect-ratio: 16 / 10; } }
.loc-facts { padding-bottom: clamp(24px, 3vw, 36px); }
.loc-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4.5vw, 52px); align-content: start; }
.loc-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.loc-sec h2 { font-size: clamp(22px, 2.4vw, 30px); }
.loc-sec-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: space-between; }
.hl-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 20px; align-items: start; }
.hl-img { aspect-ratio: 3 / 4; }
.hl-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .hl-split { grid-template-columns: minmax(0, 1fr); } .hl-img { aspect-ratio: 16 / 10; } }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.rchip b { min-width: 34px; height: 28px; padding: 0 7px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--yellow); color: var(--on-yellow); font: 700 14px var(--f-display); }
a.rchip:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.rchip.ev b { background: var(--surface-2); color: var(--ink-2); }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.btnrow .btn .ico { width: 18px; height: 18px; }
.plan { padding: 14px; background: #fff; }
table.cap.simple { min-width: 0; }
table.cap td small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 6px; }
table.cap tr.ev td { color: var(--ink-2); }
table.cap td.go { width: 1%; color: var(--muted); }
table.cap td.go .ico { width: 18px; height: 18px; vertical-align: middle; }
.qr-tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.qr-tabs .chip { min-height: 36px; font-size: 14px; padding: 0 10px; }
.docs { padding: 18px; display: grid; gap: 2px; }
.docs h3 { font-size: 17px; margin-bottom: 6px; }
.doclink { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.doclink:hover { background: var(--yellow-soft); }
.doclink .ico:last-child { color: var(--muted); width: 18px; height: 18px; }
/* Raumseite */
.cap-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cap-tiles > div { padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); display: grid; gap: 2px; }
.cap-tiles span { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cap-tiles b { font: 750 28px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .cap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.room-badge { aspect-ratio: 4 / 3; border-radius: var(--r-l); background: var(--yellow-soft); display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; }
.room-badge .sq { width: 104px; height: 104px; font-size: 38px; }
.room-badge b { font: 750 32px/1.1 var(--f-display); }
.room-badge span:last-child { color: var(--ink-2); font-weight: 600; }
.room-top .imgbtn img { width: 100%; }
.room-nav { display: grid; gap: 12px; justify-items: start; }
.btn[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 520px) { .pricebar > div { padding: 12px 10px; } .pricebar b { font-size: 21px; } }

/* v1.1: MOS – Navigationsleiste links, Überblick, Bibliothek/Neu, GM-Feedback */
.mos-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); align-items: start; }
.mos-main { min-width: 0; }
.mos-side { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--topbar-h) - env(safe-area-inset-top, 0px)); overflow-y: auto; background: var(--night); color: var(--on-night); padding: 18px 12px 28px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgb(255 255 255 / .08); }
.mos-side a.mos-side-logo { display: block; min-height: 0; padding: 6px 12px 16px; margin-bottom: 8px; border-radius: 0; border-bottom: 1px solid rgb(255 255 255 / .12); }
.mos-side a.mos-side-logo:hover { background: none; }
.mos-side-logo img { height: 40px; width: auto; }
.mos-side > * { flex-shrink: 0; } /* auf niedrigen Bildschirmen nichts zusammenschieben, die Leiste scrollt */
.mos-side a, .side-btn { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: rgb(245 241 232 / .86); text-decoration: none; font: 600 15px/1.25 var(--f-body); border: 0; background: none; cursor: pointer; text-align: left; }
.mos-side a .ico, .side-btn .ico { width: 20px; height: 20px; flex: none; }
.mos-side a:hover, .side-btn:hover { background: rgb(255 255 255 / .08); color: #fff; }
.mos-side a[aria-current="page"] { background: var(--yellow); color: var(--on-yellow); }
.mos-side .n { margin-left: auto; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--yellow); color: var(--on-yellow); font: 700 12.5px/22px var(--f-body); text-align: center; }
.mos-side a[aria-current="page"] .n { background: var(--on-yellow); color: var(--yellow); }
.mos-side .lbl { font: 600 11.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgb(245 241 232 / .5); margin: 16px 12px 6px; }
.side-btn { margin-top: 14px; border: 1px solid rgb(255 255 255 / .18); }
@media (max-width: 1000px) {
  .mos-layout { grid-template-columns: minmax(0, 1fr); }
  .mos-side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 8px var(--gutter-r) 8px var(--gutter); gap: 6px; scrollbar-width: none; }
  .mos-side a.mos-side-logo, .mos-side .lbl { display: none; }
  .mos-side a, .side-btn { flex: none; white-space: nowrap; min-height: 40px; padding: 6px 12px; }
  .side-btn { margin: 0; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.stat { padding: 16px 18px; display: grid; gap: 6px; align-content: start; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
a.stat:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.stat-v { font: 750 clamp(30px, 3vw, 40px)/1.05 var(--f-display); font-variant-numeric: tabular-nums; }
.stat-v.txt { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.2; }
.stat-s { font-size: 14px; color: var(--muted); }
.stat.hot { background: var(--yellow); border-color: var(--yellow); }
.stat.hot .kicker, .stat.hot .stat-s { color: rgb(27 22 8 / .72); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mos-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-block: clamp(28px, 4vw, 44px) 20px; }
@media (max-width: 860px) { .mos-split { grid-template-columns: minmax(0, 1fr); } }
.lib-btn { position: relative; padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 10px; align-content: start; text-decoration: none; background: var(--ink); color: var(--paper); border-color: var(--ink); transition: box-shadow .2s, transform .2s; }
.lib-btn:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.lib-btn .kicker { color: var(--yellow); }
.lib-btn h2 { font-size: clamp(24px, 2.4vw, 32px); max-width: 18ch; }
.lib-btn p { color: rgb(248 246 241 / .76); }
.lib-btn .btn { width: max-content; margin-top: 6px; }
.lib-btn .ico.corner { position: absolute; right: 22px; top: 22px; width: 30px; height: 30px; color: var(--yellow); }
.news { padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 12px; align-content: start; }
.news-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news h2 { font-size: clamp(22px, 2.2vw, 28px); }
.news-list { display: grid; }
.news-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.3; }
.news-row:first-child { border-top: 0; }
.news-row:hover { background: var(--yellow-soft); }
.news-row .t b { color: var(--muted); font-weight: 700; }
.news-row small { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.news .btn { width: max-content; }
.gm-fb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 24px; }
.gm-fb p { color: var(--ink-2); font-size: 15.5px; margin-top: 2px; }
@media (max-width: 640px) { .gm-fb { grid-template-columns: auto minmax(0, 1fr); } .gm-fb .btn { grid-column: 1 / -1; } }
.fb-form { display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span:first-child { font-weight: 700; font-size: 14.5px; }

/* v1.2: Dokumente im Intranet lesen – Leser breit, Metadaten daneben (breite Bildschirme) oder darunter */
.docview { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1360px) { .docview { grid-template-columns: minmax(0, 1fr) 340px; } }
.docside { display: grid; gap: 14px; align-content: start; }
.viewer { min-height: 420px; }
.viewer-media { width: 100%; max-height: 80vh; background: #000; display: block; }
img.viewer-media { background: #fff; object-fit: contain; }
.pdfv { display: flex; flex-direction: column; background: var(--surface-2); min-width: 0; }
.pdfv-demo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; background: var(--yellow-soft); font-size: 14.5px; color: var(--ink); }
.pdfv-demo .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.pdfv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pdfv-info { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pdfv-btns { display: flex; align-items: center; gap: 6px; }
.pdfv-btns .chip { min-height: 40px; }
.pdfv-pages { height: min(80vh, 1100px); overflow: auto; -webkit-overflow-scrolling: touch; padding: 16px; display: grid; justify-items: center; align-content: start; gap: 16px; outline: none; }
.pdfv-page { background: #fff; box-shadow: 0 1px 3px rgb(23 21 18 / .18), 0 6px 18px rgb(23 21 18 / .08); max-width: none; }
.pdfv-page canvas { display: block; }
.pdfv.max { position: fixed; inset: 0; z-index: 90; height: 100dvh; padding-top: env(safe-area-inset-top, 0px); }
.pdfv.max .pdfv-pages { flex: 1; height: auto; min-height: 0; }
body.noscroll { overflow: hidden; }
