/* =========================================================
   Küng Spenglerei & Dachdeckerei, Ludesch — Konzeptentwurf (VCSLV)
   Manrope (variabel) für Überschriften, Text und Bedienung,
   Instrument Serif kursiv nur für das Akzentwort. Zwei Familien.
   Schiefer-Dunkel, Küng-Petrol aus dem Logo, Orange aus dem Ü-Balken,
   Zink als Metall. Stehfalz-Linien als leises Motiv.
   ========================================================= */

@font-face { font-family: 'Manrope'; src: url('../fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --night: #0b181c;
  --slate: #0f2329;
  --slate-2: #142d35;
  --slate-3: #1e3d47;
  --ink: #10222a;
  --paper: #efefea;
  --paper-2: #e3e5e0;
  --paper-3: #fafaf7;
  --teal: #0a7d99;
  --teal-d: #075f75;
  --teal-l: #5cbfd6;
  --or: #ef9a33;
  --or-l: #f7b765;
  --or-d: #a5561a;
  --zinc: #dce6e8;
  --ok: #6fd3a0;
  --muted: #54636a;
  --line: rgba(16, 34, 42, .13);
  --line-2: rgba(16, 34, 42, .26);
  --line-inv: rgba(239, 239, 234, .13);
  --line-inv-2: rgba(239, 239, 234, .3);
  --muted-inv: rgba(239, 239, 234, .7);

  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --seams: repeating-linear-gradient(90deg, transparent 0 71px, rgba(220, 230, 232, .045) 71px 72px);

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1440px;
  --hdr-h: 76px;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-anchor: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-anchor: none;
  font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip; font-variant-numeric: lining-nums tabular-nums;
}
img, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { padding: 0; }
::selection { background: var(--or-l); color: var(--ink); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 16px; }
@media (max-width: 719px) { .hide-s { display: none !important; } }
@media (min-width: 720px) { .show-s { display: none !important; } }

/* ---------- Type ---------- */
.h2 { font-family: var(--sans); font-weight: 700; line-height: 1.02; letter-spacing: -.028em; text-wrap: balance; }
.h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; color: var(--or-d); font-size: 1.12em; line-height: .9; }
[data-theme="dark"] .h2 em { color: var(--or); }
.ln { padding-bottom: .14em; margin-bottom: -.14em; }
.h-label { display: inline-flex; align-items: center; gap: 12px; color: var(--teal); }
.h-label::before { content: ''; width: 22px; height: 6px; background: linear-gradient(var(--or), var(--or)) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.h-label--inv { color: var(--teal-l); }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 20px 0 22px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; letter-spacing: .005em; white-space: nowrap;
  border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.btn:hover::after { transform: scaleX(1); }
.btn--teal { background: linear-gradient(135deg, #1595b3, var(--teal) 55%, var(--teal-d)); color: #fff; }
.btn--teal::after { background: var(--teal-d); }
.btn--dark { background: var(--slate); color: var(--paper); }
.btn--dark::after { background: var(--slate-3); }
/* the wipe is a light tint of the button's own colour and the label keeps its colour, so it reads on any ground */
.btn--line { border-color: currentColor; }
.btn--line::after { background: currentColor; opacity: .14; }
.dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(111, 211, 160, .5); animation: pulse 2.4s 3; }  /* a few beats, then still */
.dot.is-closed { background: var(--or); }
.dot.is-closed::after { background: rgba(239, 154, 51, .45); }
.dot.is-off::after { animation-play-state: paused; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3.4); opacity: 0; } }

/* chips (on the light console) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 42px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--ink); background: rgba(255, 255, 255, .55); transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: var(--paper);
  transition: color .5s var(--ease), transform .6s var(--ease), height .5s var(--ease), box-shadow .5s;
}
.hdr::before { content: ''; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background-color .5s var(--ease); }
.hdr.is-solid { --hdr-h: 64px; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid::before { background: rgba(239, 239, 234, .95); }
.hdr.is-solid.on-dark { color: var(--paper); box-shadow: 0 1px 0 var(--line-inv); }
.hdr.is-solid.on-dark::before { background: var(--hdr-dark, rgba(15, 35, 41, .95)); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__brand { display: flex; align-items: center; gap: 14px; flex: none; transition: opacity .6s var(--ease); }
.hdr__mark { width: 84px; height: 25px; --kg-a: var(--zinc); --kg-b: var(--or); }
.hdr.is-solid:not(.on-dark) .hdr__mark { --kg-a: var(--teal); --kg-b: var(--or); }
.hdr__word { font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.hdr__word span { color: var(--or); }
.hdr.has-crest .hdr__brand { opacity: 0; pointer-events: none; }
.hdr:not(.is-solid) { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hdr__nav { display: flex; gap: clamp(18px, 2.2vw, 36px); font-size: 14.5px; font-weight: 600; }
.hdr__nav a { position: relative; padding: 6px 0; opacity: .92; }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--or); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.hdr__call { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.hdr__call svg { width: 17px; height: 17px; color: var(--or); }
.hdr__book { --h: 42px; font-size: 14px; padding: 0 16px 0 18px; }
.hdr__book svg { width: 15px; height: 15px; }
.hdr__menu { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 4px 0 10px; font-size: 14px; font-weight: 600; }
.hdr__burger { width: 26px; height: 10px; position: relative; display: block; }
.hdr__burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.hdr__burger i:first-child { top: 0; }
.hdr__burger i:last-child { top: 8.5px; }
.menu-open .hdr__burger i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .hdr__burger i:last-child { top: 4.25px; transform: rotate(-45deg); }
.menu-open .hdr { color: var(--paper); }
.menu-open .hdr::before { background: var(--night) !important; }
.menu-open .hdr.is-solid { box-shadow: none; }
.menu-open .hdr .hdr__mark { --kg-a: var(--zinc); }
.menu-open .hdr__brand { opacity: 1 !important; pointer-events: auto !important; }
.menu-open .hdr__nav, .menu-open .hdr__book, .menu-open .hdr__call { opacity: 0; pointer-events: none; }
@media (max-width: 1240px) { .hdr__nav { display: none; } }
@media (max-width: 719px) {
  :root { --hdr-h: 62px; }
  .hdr.is-solid { --hdr-h: 56px; }
  .hdr__book, .hdr__word { display: none; }
  .hdr__mark { width: 74px; height: 22px; }
  .hdr__menu-label { display: none; }
  .hdr__menu { width: 44px; justify-content: center; padding: 0; }
  .hdr__call { height: 40px; padding: 0 12px; border: 1px solid var(--line-inv-2); border-radius: var(--r); font-size: 13.5px; }
  .hdr.is-solid:not(.on-dark) .hdr__call { border-color: var(--line-2); }
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--night) var(--seams); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: 1fr auto;
  padding: calc(var(--hdr-h) + 24px) var(--gutter) 28px; gap: 0 6vw; clip-path: inset(0 0 100% 0);
}
.menu__media { position: relative; grid-row: 1 / 3; overflow: hidden; border-radius: var(--r); }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.menu__media img.is-on { opacity: 1; transform: scale(1); }
.menu__nav { align-self: center; }
.menu__nav li { overflow: hidden; border-bottom: 1px solid var(--line-inv); }
.menu__nav a { display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; font-weight: 700; font-size: clamp(2rem, min(3vw, 5.4svh), 3.2rem); line-height: 1.05; letter-spacing: -.025em; transition: color .4s, padding .5s var(--ease); }
.menu__nav a:hover { padding-left: 14px; color: var(--or); }
.menu__no { font-size: 12px; letter-spacing: .14em; color: var(--muted-inv); font-weight: 600; }
.menu__nav em { font-style: normal; font-weight: 500; font-size: 13px; letter-spacing: .02em; color: var(--muted-inv); text-align: right; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 15px; padding-top: 24px; }
.menu__foot a:not(.btn) { display: inline-flex; align-items: center; gap: 10px; }
.menu__foot svg { width: 18px; height: 18px; }
.menu__foot .btn { margin-left: auto; }
@media (max-width: 899px) {
  .menu { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding-top: calc(var(--hdr-h) + 8px); overflow-y: auto; overscroll-behavior: contain; }
  .menu__media { grid-row: auto; height: 16vh; min-height: 90px; }
  .menu__nav a { grid-template-columns: 34px 1fr; font-size: clamp(1.8rem, 8vw, 2.5rem); padding: 9px 0; }
  .menu__nav em { grid-column: 2; text-align: left; margin-top: -2px; }
  .menu__foot { gap: 10px 20px; padding-top: 16px; }
  .menu__foot .btn { margin-left: 0; width: 100%; }
}

/* =========================================================
   Hero: the KÜNG mark draws itself over their copper roof
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--hdr-h); background: var(--night); color: var(--paper); overflow: hidden; overflow-anchor: none; isolation: isolate; }
.hero__scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__fg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 50% 50%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(48% 34% at 50% var(--crest-y, 36%), rgba(7, 18, 22, .72), rgba(7, 18, 22, .42) 62%, rgba(7, 18, 22, .06) 100%),
  linear-gradient(180deg, rgba(7, 18, 22, .84) 0%, rgba(7, 18, 22, .5) 20%, rgba(7, 18, 22, .36) 44%, rgba(7, 18, 22, .5) 62%, rgba(7, 18, 22, .86) 82%, rgba(7, 18, 22, .95) 100%); }
.crest { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(10px, 3svh, 40px) 20px clamp(14px, 3svh, 34px); text-align: center; }
.kg { width: clamp(260px, min(40vw, 58svh), 600px); height: auto; overflow: visible; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); }
.kg__draw { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.crest__trade { margin-top: clamp(14px, 2.4svh, 26px); font-size: 13px; font-weight: 700; letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--zinc); }
.crest__trade span { color: var(--or); }
.crest__since { display: flex; align-items: center; gap: 16px; margin-top: clamp(10px, 1.8svh, 18px); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(239, 239, 234, .82); padding-left: .24em; }
.crest__since em { font-style: normal; color: var(--or); }
.crest__since i { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--or)); }
.crest__since i:last-child { background: linear-gradient(90deg, var(--or), transparent); }
.js .hero__fg, .js .hero__shade, .js .crest__trade, .js .crest__since, .js .svc, .js .kg { opacity: 0; }
.no-anim .hero__fg, .no-anim .hero__shade, .no-anim .crest__trade, .no-anim .crest__since, .no-anim .svc, .no-anim .kg,
.is-static .hero__fg, .is-static .hero__shade, .is-static .crest__trade, .is-static .crest__since, .is-static .svc, .is-static .kg { opacity: 1 !important; }
.no-anim .kg__draw, .is-static .kg__draw { stroke-dashoffset: 0 !important; }

/* ---------- Dachanfrage console: a light sheet over the dark photo ---------- */
.svc { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 1000px); margin: 0 auto clamp(16px, 4svh, 46px); background: rgba(244, 244, 240, .97); color: var(--ink); border-radius: 6px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.svc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, var(--teal) 0 70%, var(--or) 70% 100%); }
.svc__top { display: flex; align-items: center; gap: 18px; padding: 13px 18px 11px; border-bottom: 1px solid var(--line); }
.svc__lab { color: var(--teal); white-space: nowrap; }
.svc__office { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.svc__steps { display: flex; gap: 4px; margin-left: auto; flex: none; }
.svc__steps li { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background-color .4s, color .4s; }
.svc__steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; border: 1px solid var(--line-2); transition: background-color .4s, color .4s, border-color .4s; }
.svc__steps li em { font-style: normal; }
.svc__steps li.is-on { background: rgba(10, 125, 153, .1); color: var(--ink); }
.svc__steps li.is-on span { background: var(--teal); border-color: var(--teal); color: #fff; }
.svc__steps li.is-done span { border-color: var(--or); color: var(--or-d); }
.svc__body { padding: 16px 18px 6px; min-height: 140px; }
.svc__q { font-size: var(--h3s); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; margin-bottom: 12px; }
.roofs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.roof { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 66px; padding: 6px 4px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 600; line-height: 1.1; text-align: center; transition: background-color .35s var(--ease), border-color .35s, color .35s; }
.roof svg { width: 36px; height: 25px; color: var(--teal); transition: color .35s; }
.roof span { white-space: nowrap; overflow: hidden; max-width: 100%; }
.roof:hover { border-color: var(--teal); }
.roof[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.roof[aria-pressed="true"] svg { color: #fff; }
.svc__more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.svc__photo { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: var(--r); border: 1px dashed var(--teal); color: var(--teal-d); font-size: 14px; font-weight: 700; max-width: 100%; }
.svc__photo svg { width: 18px; height: 18px; }
.svc__photo.has-img { border-style: solid; color: var(--ink); background: rgba(10, 125, 153, .1); }
.svc__photo img { width: 26px; height: 26px; object-fit: cover; border-radius: 2px; }
.svc__in { flex: 1 1 160px; min-width: 0; }
.svc__in input { width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 15px; }
.svc__in input::placeholder { color: rgba(16, 34, 42, .5); }
.svc__hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.svc__who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.svc__nav { display: flex; align-items: center; gap: 14px; padding: 10px 18px 14px; }
.svc__back { width: 46px; height: 46px; flex: none; border-radius: var(--r); border: 1px solid var(--line-2); display: grid; place-items: center; transition: opacity .3s; }
.svc__back svg { width: 18px; height: 18px; }
.svc__back:disabled { opacity: .3; cursor: default; }
.svc__sum { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.svc__sum b { color: var(--ink); font-weight: 700; }
.svc__next { --h: 46px; flex: none; }
.svc__next[aria-disabled="true"] { filter: saturate(.35) brightness(.95); }
.svc.is-shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- Ticket: the inquiry as it would arrive ---------- */
.ticket { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(7, 18, 22, .7); }
.ticket__card { position: relative; width: min(660px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 128px; background: var(--paper-3); color: var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 0 50px 110px -30px rgba(0, 0, 0, .7); max-height: calc(100svh - 40px); overflow-y: auto; }
.ticket__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(239, 239, 234, .14); color: #fff; }
.ticket__x svg { width: 16px; height: 16px; }
.ticket__main { padding: 22px 24px 18px; min-width: 0; }
.ticket__brand { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.ticket__mark { width: 74px; height: 22px; flex: none; --kg-a: var(--teal); --kg-b: var(--or); }
.ticket__brand span { display: grid; font-size: 16px; font-weight: 700; line-height: 1.2; }
.ticket__brand small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ticket__prio { display: inline-block; margin-top: 14px; color: var(--teal); }
.ticket__prio.is-hot { color: #fff; background: var(--or-d); padding: 3px 8px; border-radius: 2px; }
.ticket__title { margin-top: 6px; font-weight: 700; letter-spacing: -.025em; font-size: 1.9rem; line-height: 1.05; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 14px; }
.ticket__grid dt { color: var(--muted); }
.ticket__grid dd { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ticket__grid dd img { width: 64px; height: 48px; object-fit: cover; border-radius: 2px; margin-top: 3px; }
.ticket__grid .is-wide { grid-column: 1 / -1; }
.ticket__when { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 8px; background: var(--slate) var(--seams); color: var(--paper); text-align: center; }
.ticket__when::before { content: ''; position: absolute; left: -6px; top: 0; bottom: 0; width: 12px; background: radial-gradient(circle at 6px 8px, var(--paper-3) 4px, transparent 4.5px) 0 0 / 12px 16px repeat-y; }
.ticket__day { font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; color: var(--or); }
.ticket__time { font-size: 1.15rem; font-weight: 700; }
.ticket__id { margin-top: 14px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; opacity: .7; }
.ticket__foot { grid-column: 1 / -1; padding: 14px 24px 20px; background: var(--paper-2); }
.ticket__note { font-size: 13.5px; line-height: 1.5; color: #39474d; }
.ticket__note b { color: var(--ink); }
.ticket__go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ticket__go .btn { --h: 46px; flex: 1 1 180px; }
.ticket__go .btn--line { color: var(--ink); }
.ticket__go svg { width: 17px; height: 17px; }
.ticket-open { overflow: hidden; }

/* =========================================================
   1 Dachwetter — board, week chart and tip
   ========================================================= */
.today { background: var(--slate) var(--seams); color: var(--paper); }
.today__head { margin-bottom: clamp(16px, 3svh, 34px); }
.today__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: stretch; }
.board { background: var(--night); border: 1px solid var(--line-inv); border-radius: 6px; display: flex; flex-direction: column; }
.board__top { display: flex; align-items: baseline; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-inv); }
.board__title { font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.board__date { color: var(--muted-inv); }
.board__clock { margin-left: auto; font-weight: 700; font-size: 1.5rem; color: var(--or); }
.board__rows { padding: 6px 0; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.brow { display: grid; grid-template-columns: 112px minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 20px; }
.brow + .brow { border-top: 1px solid rgba(239, 239, 234, .07); }
.brow__lab { color: var(--muted-inv); }
.plate { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r); background: linear-gradient(180deg, #1a343c, #13282f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .3); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; color: var(--zinc); }
.plate span { display: block; }
.plate--side { font-size: .95rem; font-weight: 500; color: var(--muted-inv); background: transparent; box-shadow: inset 0 0 0 1px var(--line-inv); }
.plate.is-new span { animation: plateIn .7s var(--ease); }
@keyframes plateIn { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
.plate.is-warn, .plate.is-warn + .plate--side { color: var(--or-l); }
[data-b="office"].is-open { color: var(--ok); }
.board__src { padding: 10px 20px 12px; border-top: 1px solid var(--line-inv); font-size: 12px; color: var(--muted-inv); }
.week { display: flex; flex-direction: column; min-width: 0; }
.week__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.week__lab { color: var(--muted-inv); }
.week__key { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-inv); }
.week__key i { width: 12px; height: 8px; border-radius: 1px; display: inline-block; }
.k-rain { background: var(--teal-l); }
.k-gust { height: 2px !important; background: var(--or); margin-left: 8px; }
.week__chart { width: 100%; flex: 1 1 auto; min-height: 120px; height: clamp(120px, 22svh, 240px); overflow: visible; }
.week__chart .grid { stroke: rgba(239, 239, 234, .08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.week__chart .storm { stroke: var(--or); stroke-opacity: .5; stroke-dasharray: 4 5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.week__chart .storm__t { fill: var(--or); fill-opacity: .8; font-size: 12px; font-weight: 600; text-anchor: end; }
.week__chart .bar { fill: var(--teal-l); fill-opacity: .75; }
.week__chart .bar.is-hard { fill: var(--teal-l); fill-opacity: 1; }
.week__chart .bar__t { fill: var(--teal-l); font-size: 13px; font-weight: 700; text-anchor: middle; }
.week__chart .gust { fill: none; stroke: var(--or); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.week__chart .gdot { fill: var(--slate); stroke: var(--or); stroke-width: 2; vector-effect: non-scaling-stroke; }
.week__chart .gdot.is-warn { fill: var(--or); }
.week__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 6px; text-align: center; font-size: 13px; line-height: 1.25; }
.week__days b { display: block; font-weight: 700; }
.week__days span { display: block; color: var(--or-l); font-weight: 600; }
.week__days span small { font-size: 10.5px; font-weight: 500; color: var(--muted-inv); }
.week__days > div > small { display: block; font-size: 11.5px; color: var(--muted-inv); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.week__days .is-warn b { color: var(--or); }
.tip { margin-top: clamp(12px, 2svh, 22px); padding: 16px 18px; border-radius: 6px; background: var(--slate-2); border-left: 3px solid var(--teal-l); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; }
.tip.is-warn { border-left-color: var(--or); }
.tip__lab { color: var(--teal-l); grid-column: 1; }
.tip.is-warn .tip__lab { color: var(--or); }
.tip__t { grid-column: 1; font-size: var(--h3s); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.tip__d { grid-column: 1; font-size: var(--t-small); color: var(--muted-inv); }
.tip__go { --h: 44px; grid-column: 2; grid-row: 1 / 4; }

/* =========================================================
   2 Leistungen
   ========================================================= */
.lst { background: var(--paper); }
.lst__grid { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.45fr) minmax(0, .78fr); gap: clamp(20px, 2.6vw, 44px); align-items: center; }
.lst__head { margin-bottom: clamp(16px, 3svh, 32px); }
.lst__nav { display: flex; flex-direction: column; }
.lst__nav button { display: flex; align-items: baseline; gap: 14px; padding: 9px 0 9px 14px; border-left: 2px solid var(--line); font-size: 1.08rem; font-weight: 600; color: var(--muted); transition: color .35s, border-color .35s, padding .45s var(--ease); }
.lst__nav button span { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.lst__nav button:hover { color: var(--ink); padding-left: 18px; }
.lst__nav button[aria-selected="true"] { color: var(--ink); border-left-color: var(--or); }
.lst__nav button[aria-selected="true"] span { color: var(--or-d); }
.lst__fig { position: relative; height: clamp(320px, min(var(--scr-h) - 10px, 44vw), 700px); border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.lst__fig > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.lst__fig > img.is-on { opacity: 1; }
.lst__fig::after { content: ''; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(180deg, transparent, rgba(7, 18, 22, .72)); pointer-events: none; }
.lst__cap { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 84px; font-size: 13px; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.lst__thumbs { position: absolute; z-index: 1; left: 18px; bottom: 16px; display: flex; gap: 8px; }
.lst__thumbs button { width: 76px; height: 54px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); opacity: .75; transition: opacity .3s, box-shadow .3s, transform .4s var(--ease); }
.lst__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lst__thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.lst__thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--or); }
.lst__body { min-width: 0; }
.lst__no { color: var(--muted); }
.lst__t { margin-top: 8px; font-size: var(--h3m); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.lst__lead { margin-top: 12px; font-size: var(--t-lead); line-height: 1.5; }
.lst__list { margin-top: 14px; display: grid; gap: 8px; }
.lst__list li { position: relative; padding-left: 20px; font-size: var(--t-body); line-height: 1.45; color: #2c3c43; }
.lst__list li::before { content: ''; position: absolute; left: 0; top: .52em; width: 9px; height: 9px; border: 2px solid var(--teal); border-radius: 1px; }
.lst__go { margin-top: clamp(16px, 2.6svh, 26px); }

/* =========================================================
   3 Referenz: Villa Falkenhorst
   ========================================================= */
.ref { background: var(--night) var(--seams); color: var(--paper); }
.ref__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 3.4vw, 60px); align-items: center; }
.ref__fig { position: relative; height: clamp(320px, var(--scr-h), 700px); border-radius: var(--r); }
.ref__fig > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; border-radius: var(--r); }
.ref__cap { position: absolute; left: 16px; top: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: 2px; background: rgba(7, 18, 22, .66); color: var(--paper); }
.ref__step { position: absolute; right: clamp(-28px, -2vw, -12px); bottom: clamp(-24px, -3svh, -12px); width: clamp(170px, 36%, 310px); padding: 8px 8px 30px; background: var(--paper-3); border-radius: 2px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); transform: rotate(-2.5deg); }
.ref__step img { width: 100%; height: auto; aspect-ratio: 358 / 310; object-fit: cover; }
.ref__stepno { position: absolute; left: 10px; bottom: 7px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink); }
.ref__body { min-width: 0; }
.ref__lead { margin-top: clamp(12px, 2svh, 20px); font-size: var(--t-lead); line-height: 1.55; color: rgba(239, 239, 234, .86); max-width: 46ch; }
.ref__nums { display: flex; gap: clamp(22px, 3vw, 44px); margin-top: clamp(14px, 2.4svh, 26px); }
.ref__nums dd { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, min(4vw, 7svh), 3.8rem); line-height: 1; color: var(--or); }
.ref__nums dd small { font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted-inv); }
.ref__nums dt { color: var(--muted-inv); margin-bottom: 6px; }
.ref__nums div { display: flex; flex-direction: column-reverse; }
.ref__steps { display: flex; gap: 6px; margin-top: clamp(16px, 2.6svh, 28px); }
.ref__steps button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0 0; border-top: 2px solid var(--line-inv-2); font-size: 13.5px; font-weight: 600; color: var(--muted-inv); transition: color .35s, border-color .35s; }
.ref__steps button i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.ref__steps button span { white-space: nowrap; }
.ref__steps button:hover { color: var(--paper); }
.ref__steps button.is-done { border-top-color: rgba(239, 154, 51, .5); }
.ref__steps button[aria-selected="true"] { color: var(--paper); border-top-color: var(--or); }
.ref__steps button[aria-selected="true"] i { color: var(--or); }
.ref__card { margin-top: 14px; min-height: 7.4em; }
.ref__t { font-size: var(--h3s); font-weight: 700; letter-spacing: -.015em; }
.ref__d { margin-top: 6px; font-size: var(--t-body); line-height: 1.55; color: rgba(239, 239, 234, .8); }
.ref__pdf { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--paper); border-bottom: 1px solid var(--or); padding-bottom: 2px; }
.ref__pdf svg { width: 18px; height: 18px; color: var(--or); }

/* =========================================================
   4 Team & Lehre
   ========================================================= */
.team { background: var(--paper); }
.team__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 3.4vw, 60px); align-items: center; }
.team__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: clamp(16px, 3svh, 30px); }
.team__list button { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 1.02rem; transition: color .3s, border-color .3s; color: var(--muted); }
.team__list b { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.team__list small { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.team__list button:hover b { color: var(--teal-d); }
.team__list button[aria-selected="true"] { border-bottom-color: var(--or); }
.team__list button[aria-selected="true"] b { color: var(--teal-d); }
.team__role { margin-top: clamp(14px, 2.4svh, 24px); min-height: 4.4em; display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--teal); }
.team__role b { font-size: var(--h3s); font-weight: 700; letter-spacing: -.015em; }
.team__role span { font-size: var(--t-body); color: #39474d; }
.team__visual { display: grid; gap: clamp(12px, 2svh, 22px); min-width: 0; }
.team__fig { position: relative; width: min(100%, calc((var(--scr-h) - 150px) * 816 / 558)); justify-self: center; aspect-ratio: 816 / 558; border-radius: var(--r); overflow: hidden; background: #fff; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.team__fig > img { width: 100%; height: 100%; object-fit: contain; }
.team__spot { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(239, 239, 234, .8); opacity: var(--spot, 0); transition: opacity .5s var(--ease); pointer-events: none; }
.lehre { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px; border-radius: 6px; background: var(--paper-3); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .35s; }
.lehre:hover { box-shadow: 0 0 0 1px var(--teal); }
.lehre__badge { width: 64px; height: auto; }
.lehre__lab { color: var(--or-d); }
.lehre__t { margin-top: 2px; font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.lehre__d { margin-top: 4px; font-size: var(--t-small); color: #39474d; line-height: 1.45; }

/* =========================================================
   5 Kontakt
   ========================================================= */
.contact { background: var(--slate) var(--seams); color: var(--paper); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 3.4vw, 60px); align-items: center; }
.contact__big { margin-top: clamp(14px, 2.6svh, 28px); }
.contact__big li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-inv); }
.contact__big a, .contact__big span:not(.contact__cap) { font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 700; letter-spacing: -.015em; }
.contact__big li:first-child a { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.contact__big a { background: linear-gradient(var(--or), var(--or)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.contact__big a:hover { background-size: 100% 2px; }
.contact__cap { color: var(--muted-inv); }
.hours { margin-top: clamp(16px, 2.8svh, 28px); padding: 14px 18px; border-radius: 6px; background: var(--night); border: 1px solid var(--line-inv); }
.hours__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hours__lab { color: var(--muted-inv); }
.hours__now { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.hours__grid { display: grid; gap: 5px; }
.hrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px; align-items: center; gap: 12px; font-size: 13px; }
.hrow b { font-weight: 700; color: var(--muted-inv); }
.hrow em { font-style: normal; font-size: 12.5px; color: var(--muted-inv); text-align: right; }
.hrow.is-today b, .hrow.is-today em { color: var(--paper); }
.htrack { position: relative; height: 12px; border-radius: 2px; background: rgba(239, 239, 234, .06); }
.htrack i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--teal); }
.hrow.is-today .htrack i { background: var(--teal-l); }
.htrack .now { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--or); border-radius: 1px; }
.hours__axis { display: flex; justify-content: space-between; margin: 6px 76px 0 42px; font-size: 11px; color: var(--muted-inv); }
.contact__go { margin-top: clamp(16px, 2.8svh, 28px); }
.contact__map { min-width: 0; display: grid; gap: 12px; justify-items: start; }
.map { position: relative; width: 100%; height: clamp(300px, calc(var(--scr-h) - 64px), 660px); border-radius: var(--r); overflow: hidden; background: #c8cfcf; }
.map > img { width: 100%; height: 100%; object-fit: cover; }
.map__pin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.map__pin i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(0, 0, 0, .35); }
.map__pin i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(239, 154, 51, .5); animation: pulse 2.6s infinite; }
.map__pin.is-off i::after { animation-play-state: paused; }
.map__pin b { position: absolute; left: 18px; top: -46px; display: block; width: max-content; padding: 7px 9px; border-radius: 3px; background: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
.map__pin svg { max-width: none; width: 70px; height: 21px; --kg-a: var(--teal); --kg-b: var(--or); }
.map__src { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--ink); background: rgba(255, 255, 255, .75); padding: 1px 6px; border-radius: 2px; }
.map__route { --h: 44px; color: var(--paper); }

/* ---------- Footer ---------- */
.foot { background: var(--night) var(--seams); color: var(--paper); padding: clamp(64px, 8vw, 120px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot__big { display: flex; align-items: center; gap: .45em; font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 3.4vw, 4.8rem); line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.foot__big span { color: rgba(239, 239, 234, .9); }
.foot__mark { width: 3.33em; height: 1em; flex: none; --kg-a: var(--zinc); --kg-b: var(--or); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 80px); padding-top: 32px; border-top: 1px solid var(--line-inv); }
.foot__cols h4 { color: var(--muted-inv); margin-bottom: 14px; }
.foot__cols a, .foot__cols p { display: block; font-size: 15px; padding: 3px 0; color: rgba(239, 239, 234, .86); }
.foot__cols a:hover { color: var(--or); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; font-size: 13px; color: var(--muted-inv); }
.foot__base a { border-bottom: 1px solid var(--line-inv-2); }
@media (max-width: 899px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) { .foot__big { font-size: clamp(.8rem, 3.9vw, 1.4rem); } }

/* ---------- Dock (phones) ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .dock {
    display: flex; gap: 6px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
    padding: 6px; border-radius: 8px; background: rgba(11, 24, 28, .95);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); transform: translateY(140%); transition: transform .6s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock__book { flex: 1; display: grid; place-items: center; height: 48px; border-radius: 5px; background: linear-gradient(135deg, #1595b3, var(--teal) 55%, var(--teal-d)); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; min-width: 0; }
  .dock__ico, .dock__note { width: 48px; height: 48px; border-radius: 5px; display: grid; place-items: center; color: var(--paper); border: 1px solid var(--line-inv-2); flex: none; }
  .dock__ico svg { width: 20px; height: 20px; color: var(--or); }
  .dock__note i { width: 7px; height: 7px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(239, 154, 51, .2); }
  .menu-open .dock, .ticket-open .dock { transform: translateY(140%); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Concept note ---------- */
.note { position: fixed; left: max(10px, calc(var(--gutter) / 2 - 14px)); top: 50%; z-index: 52; font-size: 14px; opacity: 0; visibility: hidden; transform: translate(-6px, -50%); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.note.is-shown, .note.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.note__btn { display: inline-flex; align-items: center; gap: 10px; writing-mode: vertical-rl; transform: rotate(180deg); width: 28px; padding: 14px 0 12px; border-radius: 4px; background: rgba(11, 24, 28, .86); color: var(--paper); box-shadow: 0 0 0 1px var(--line-inv); }
.note__btn i { width: 6px; height: 6px; border-radius: 50%; background: var(--or); }
.note__panel { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); width: min(340px, calc(100vw - 32px)); background: var(--paper-3); color: var(--ink); border-radius: 6px; padding: 22px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.note__panel b { font-weight: 700; letter-spacing: -.02em; font-size: 1.5rem; }
.note__panel .btn { --h: 44px; margin-top: 6px; justify-self: start; }
.note__fine { font-size: 12px; line-height: 1.45; color: var(--muted); }
.note__fine a { text-decoration: underline; text-underline-offset: 2px; }
.ticket-open .note { opacity: 0; visibility: hidden; }
@media (max-width: 899px) {
  .note { left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateY(8px); }
  .note.is-open { transform: none; }
  .note.is-shown:not(.is-open) { opacity: 0; visibility: hidden; }
  .note__btn { display: none; }
  .note__panel { position: static; width: auto; transform: none; }
}

[data-img-reveal] { overflow: hidden; }
.ref__fig[data-img-reveal] { overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Screens: every section fits one viewport. Big visuals take
   the height that is left; phones subtract the dock.
   ========================================================= */
:root {
  --scr-t: calc(var(--hdr-h) + clamp(14px, 3.4svh, 46px));
  --scr-b: clamp(18px, 3.8svh, 50px);
  --scr-h: calc(100svh - var(--scr-t) - var(--scr-b));
  --h2s: clamp(2.2rem, min(3.6vw, 6.2svh), 4.2rem);
}
@media (max-width: 899px) { :root { --scr-b: calc(86px + env(safe-area-inset-bottom)); } }
@media (max-width: 719px) { :root { --scr-t: calc(var(--hdr-h) + 12px); --h2s: clamp(1.95rem, 8.6vw, 2.4rem); } }
main .h2 { font-size: var(--h2s); }
main .h-label { margin-bottom: clamp(8px, 1.6svh, 16px); }
main > section:not(.hero) { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) {
  main > section:not(.hero) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}

/* ---- short viewports: small laptops ---- */
@media (min-width: 900px) and (max-height: 820px) {
  .board__src { display: none; }
  .brow { padding-block: 5px; }
  .plate { min-height: 40px; }
  .tip__d { display: none; }
  .lst__list { gap: 5px; }
  .ref__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ref__card { min-height: 6.2em; }
  .team__list button { padding-block: 7px; }
  .lehre__d { display: none; }
  .hours__axis { display: none; }
  .contact__big li { padding-block: 7px; }
}
@media (min-width: 900px) and (max-height: 740px) {
  .ref__lead { display: none; }
  .lst__lead { font-size: var(--t-body); }
  .hrow { font-size: 12px; }
  .hours__grid { gap: 3px; }
  .htrack { height: 9px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .lst__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .lst__side { grid-row: 1 / 3; }
  .lst__fig { height: clamp(260px, calc(var(--scr-h) * .5), 520px); }
  .lst__body { grid-column: 2; }
  .brow { grid-template-columns: 92px minmax(0, 1.25fr) minmax(0, 1fr); padding-inline: 14px; }
  .tip { grid-template-columns: minmax(0, 1fr); }
  .tip__go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .tip__d { display: none; }
  .ref__steps button span { font-size: 12px; }
  .team__list { grid-template-columns: 1fr; }
}

/* =========================================================
   Type system — one voice
   Manrope 700: headlines, figures, plates. Manrope 400–600: text and
   controls, plus two label tiers — LABEL 700 · .18em (names a block) ·
   CAPTION 600 · .14em (names a value). Instrument Serif italic only for
   the accent word and the big reference numbers. Lockups keep their own set.
   ========================================================= */
:root {
  --t-lab: 11.5px; --t-cap: 11px; --t-lead: 17px; --t-body: 15px; --t-small: 14px;
  --h3m: clamp(1.8rem, 2.4vw, 2.6rem);
  --h3s: clamp(1.2rem, min(1.6vw, 2.8svh), 1.5rem);
}
@media (max-width: 719px) {
  :root { --t-lab: 11px; --t-cap: 10.5px; --t-lead: 15px; --t-body: 14.5px; --t-small: 13.5px; --h3m: 1.65rem; --h3s: 1.2rem; }
}
body { font-synthesis: none; }
b, strong { font-weight: 700; }
/* LABEL */
.h-label, .svc__lab, .brow__lab, .week__lab, .tip__lab, .hours__lab, .foot__cols h4, .note__btn, .ticket__prio, .ticket__wl, .lehre__lab {
  font-family: var(--sans); font-size: var(--t-lab); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-style: normal;
}
/* CAPTION */
.board__date, .lst__no, .ref__nums dt, .contact__cap, .ticket__grid dt {
  font-family: var(--sans); font-size: var(--t-cap); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-style: normal;
}
.ticket__wl { font-size: 10px; letter-spacing: .16em; opacity: .75; }

/* ---------- Phone hero ---------- */
@media (max-width: 719px) {
  .hero__fg { object-position: 40% 50%; }
  .hero__shade { background:
    radial-gradient(90% 22% at 50% var(--crest-y, 30%), rgba(7, 18, 22, .7), rgba(7, 18, 22, .36) 62%, rgba(7, 18, 22, 0) 100%),
    linear-gradient(180deg, rgba(7, 18, 22, .8) 0%, rgba(7, 18, 22, .4) 20%, rgba(7, 18, 22, .22) 44%, rgba(7, 18, 22, .2) 56%, rgba(7, 18, 22, .7) 66%, rgba(7, 18, 22, .92) 78%); }
  .crest { padding: clamp(6px, 2svh, 22px) 16px clamp(10px, 2svh, 20px); }
  .kg { width: min(84vw, 330px, 44svh * 3.33); }
  .crest__trade { margin-top: 14px; font-size: 11px; letter-spacing: .3em; padding-left: .3em; }
  .crest__since { margin-top: 9px; gap: 10px; font-size: 10px; letter-spacing: .16em; padding-left: .16em; }
  .crest__since i { width: 18px; }
  .svc { width: auto; margin: 0 10px 10px; }
  .svc__top { gap: 10px; padding: 11px 12px 9px; }
  .svc__office { font-size: 12.5px; }
  .svc__steps li { padding: 0; }
  .svc__steps li em { display: none; }
  .svc__steps li.is-on { background: none; }
  .svc__body { padding: 12px 12px 4px; min-height: 0; }
  .svc__q { margin-bottom: 10px; }
  .chips[data-group="issue"] { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .chips[data-group="issue"] .chip { padding: 0 10px; font-size: 14px; height: 42px; white-space: normal; line-height: 1.15; text-align: center; }
  .chips[data-group="issue"] .chip:first-child { grid-column: 1 / -1; }
  .roofs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .roof { height: 58px; font-size: 11.5px; padding-inline: 2px; }
  .roof svg { width: 30px; height: 21px; }
  .svc__more { margin-top: 8px; }
  .svc__photo { flex: 1 1 auto; justify-content: center; }
  .svc__in--ort { flex: 1 1 120px; }
  .chips--slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .chips--slots .chip { padding: 0 8px; font-size: 13.5px; }
  .svc__who { margin-top: 8px; }
  .svc__in { flex: 1 1 120px; }
  .svc__nav { padding: 8px 12px 12px; gap: 10px; }
  .svc__sum { font-size: 12.5px; line-height: 1.3; }
  .svc__next { padding: 0 14px 0 16px; font-size: 14.5px; }
  .ticket { place-items: end center; padding: 0; }
  .ticket__card { grid-template-columns: minmax(0, 1fr) 88px; border-radius: 14px 14px 0 0; max-height: 92svh; }
  .ticket__main { padding: 16px 14px 12px; }
  .ticket__brand span { font-size: 14.5px; }
  .ticket__title { font-size: 1.5rem; padding-right: 8px; }
  .ticket__grid { gap: 8px 12px; margin-top: 10px; }
  .ticket__grid dd { font-size: 13.5px; }
  .ticket__day { font-size: 1.12rem; }
  .ticket__time { font-size: 1rem; }
  .ticket__id { font-size: 9px; letter-spacing: .06em; }
  .ticket__foot { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
  .ticket__note { font-size: 12.5px; }
  .ticket__x { top: 10px; right: 98px; background: rgba(16, 34, 42, .08); color: var(--ink); }
}
@media (max-width: 719px) and (max-height: 700px) { .crest__since { display: none; } }

/* ---------- Phone and tablet screens: keep each one above the dock ---------- */
@media (max-width: 899px) {
  .today__grid, .lst__grid, .ref__grid, .team__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .today__grid { gap: 12px; }
  .lst__grid { gap: 12px; }
  .lst__head { margin-bottom: 12px; }
  .lst__fig { height: clamp(170px, 27svh, 420px); }
  .lst__nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .lst__nav::-webkit-scrollbar { display: none; }
  .lst__nav button { flex: none; height: 38px; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 14.5px; white-space: nowrap; }
  .lst__nav button span { display: none; }
  .lst__nav button:hover { padding-left: 12px; }
  .lst__nav button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .lst__thumbs button { width: 54px; height: 40px; }
  .lst__cap { display: none; }
  .ref__fig { height: clamp(170px, 26svh, 420px); margin-right: 18px; }
  .ref__step { width: clamp(110px, 34%, 220px); padding: 5px 5px 20px; right: -16px; bottom: -14px; }
  .ref__stepno { font-size: 10px; bottom: 4px; left: 7px; }
  .ref__cap { display: none; }
  .team__fig { width: 100%; }
  .map { height: clamp(180px, 30svh, 420px); }
  .contact__map { order: 2; }
}
@media (max-width: 719px) {
  .today__head { margin-bottom: 12px; }
  .board__top { padding: 9px 14px; }
  .board__title { font-size: 1.2rem; }
  .board__date, .board__src { display: none; }
  .board__clock { font-size: 1.2rem; }
  .board__rows { padding: 2px 0; }
  .brow { grid-template-columns: 62px minmax(0, 1.2fr) minmax(0, 1fr); gap: 6px; padding: 4px 12px; }
  .brow__lab { font-size: 9.5px; letter-spacing: .12em; }
  .plate { min-height: 34px; padding: 0 9px; font-size: 15px; }
  .plate--side { font-size: 12.5px; }
  .week__head { display: none; }
  .week__chart { flex: none; height: 76px; min-height: 0; }
  .week__chart .storm__t, .week__chart .bar__t { display: none; }
  .week__days { font-size: 11.5px; margin-top: 2px; }
  .week__days > div > small { display: none; }
  .tip { margin-top: 8px; padding: 11px 14px; grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .tip__d { display: none; }
  .tip__go { --h: 42px; grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .lst__t { font-size: 1.55rem; margin-top: 4px; }
  .lst__lead { margin-top: 6px; font-size: 14px; }
  .lst__list { margin-top: 8px; gap: 4px; }
  .lst__list li { font-size: 13.5px; }
  .lst__list li:nth-child(n+3) { display: none; }
  .lst__go { --h: 44px; margin-top: 12px; }
  .ref__lead { display: none; }
  .ref__nums { margin-top: 10px; gap: 22px; }
  .ref__nums dd { font-size: 2.2rem; }
  .ref__nums dt { font-size: 9.5px; letter-spacing: .1em; }
  .ref__steps { margin-top: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); gap: 14px; }
  .ref__steps::-webkit-scrollbar { display: none; }
  .ref__steps button { flex: none; }
  .ref__card { min-height: 6.8em; margin-top: 10px; }
  .ref__d { font-size: 13.5px; }
  .ref__pdf { margin-top: 6px; font-size: 13px; }
  .team__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; margin-top: 10px; }
  .team__list button { padding: 8px 0; font-size: .92rem; }
  .team__list small { display: none; }
  .team__list b { font-size: .92rem; }
  .team__role { margin-top: 10px; min-height: 3.9em; padding-left: 10px; }
  .team__role b { font-size: 1.05rem; }
  .team__role span { font-size: 13px; line-height: 1.4; }
  .lehre { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 9px 12px; }
  .lehre__badge { width: 40px; }
  .lehre__t { font-size: .95rem; }
  .lehre__d { display: none; }
  .contact { min-height: 100vh; min-height: 100svh; }
  .contact__big { margin-top: 10px; }
  .contact__big li { grid-template-columns: 64px minmax(0, 1fr); padding: 7px 0; }
  .contact__big a, .contact__big span:not(.contact__cap) { font-size: 1.02rem; }
  .contact__big li:first-child a { font-size: 1.35rem; }
  .hours { margin-top: 12px; padding: 10px 12px; }
  .hours__head { margin-bottom: 6px; }
  .hours__grid { gap: 3px; }
  .hrow { grid-template-columns: 24px minmax(0, 1fr) 52px; gap: 8px; font-size: 11.5px; }
  .htrack { height: 8px; }
  .hrow em { font-size: 11px; }
  .hours__axis { display: none; }
  .hours__head { flex-wrap: wrap; gap: 4px 12px; }
  .hours__now { font-size: 12.5px; }
  .contact__go { --h: 44px; margin-top: 12px; }
  .map { height: clamp(150px, 22svh, 260px); }
  .map__route { --h: 40px; font-size: 14px; }
  .map__pin b { padding: 5px 7px; top: -38px; }
  .map__pin svg { width: 56px; height: 17px; }
}
/* short phones (iPhone SE, Safari with toolbars) */
@media (max-width: 719px) and (max-height: 760px) {
  .lst__fig { height: 22svh; }
  .lst__lead { display: none; }
  .ref__fig { height: 21svh; }
  .ref__nums { display: none; }
  .team__role { min-height: 0; }
  .lehre { display: none; }
  .hours__grid { display: none; }
  .map { height: 18svh; }
  .week__chart { height: 60px; }
  .brow { padding-block: 3px; }
  .tip { padding-block: 9px; }
}
@media (max-width: 719px) and (max-height: 880px) { .hours__grid { display: none; } .hours__head { margin-bottom: 0; } }

/* gate 23.10: italic overhang is not cut by the SplitText line masks; «Kamin/Rinne» may wrap on small phones; the open-menu label «Schließen» stays inside the header */
.ln-mask { padding: 0 .16em .14em; margin: 0 -.16em -.14em; } /* (2) italic J reaches left, italic f below the line box */
@media (max-width: 719px) { .roof span { white-space: normal; overflow: visible; line-height: 1.05; text-align: center; } }
.menu-open .hdr__book, .menu-open .hdr__call { display: none; }
