/* VONIER demo — layout. Brand tokens (colours, font) live in brand.css; screens render from data.js. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--stone); }
body { margin: 0; font: 400 var(--t-body)/1.55 var(--sans); color: var(--ink); background: var(--stone); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
b, strong { font-weight: 600; }
p, h1, h2, h3, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

:root {
  --hdr-h: 64px; --gut: clamp(16px, 4vw, 56px); --maxw: 1320px;
  --t-lab: 11.5px; --t-cap: 11px; --t-lead: 18px; --t-body: 16px; --t-small: 14px;
  --h1: clamp(2.6rem, min(4.4vw, 8svh), 4.4rem);
  --h3s: clamp(1.2rem, min(1.5vw, 2.6svh), 1.42rem);
}
@media (max-width: 719px) { :root { --hdr-h: 56px; --t-lab: 11px; --t-cap: 10.5px; --t-lead: 16px; --t-body: 15px; --t-small: 13.5px; --h3s: 1.18rem; } }

/* ---------- type roles ---------- */
.lab { font: 600 var(--t-lab)/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--blue-d); }
.scr--stone .lab, .hero .lab { color: var(--blue); }
.cap { font: 500 var(--t-cap)/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.scr--stone .cap, .con--dark .cap { color: var(--grey-2); }
.lead { font: 400 var(--t-lead)/1.5 var(--sans); color: var(--ink-2); }
.scr--stone .lead, .hero .lead { color: var(--grey-2); }
.small { font: 400 var(--t-small)/1.5 var(--sans); }
.h2, .hero__title { font-weight: 500; letter-spacing: -.012em; line-height: 1.06; }
.h2 em, .hero__title em { font-style: normal; color: var(--accent); }
.scr--stone .h2 em, .hero__title em { color: var(--accent-l); }
.h2 > span, .hero__title > span { display: block; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border: 1px solid var(--blue); border-radius: var(--r); background: var(--blue); color: #10202b; font: 500 15px/1.1 var(--sans); letter-spacing: .01em;
  text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .18s ease, background-color .25s ease;
  -webkit-touch-callout: none; user-select: none; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: 0; transition: opacity .25s ease; }
.btn:hover::after { opacity: .16; }
.btn:active { transform: scale(.97); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line::after { background: currentColor; }
.btn--line:hover::after { opacity: .14; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--hdr-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--gut);
  background: rgba(36, 32, 28, .97); color: var(--grey); border-bottom: 1px solid rgba(221, 221, 221, .08); transition: transform .35s ease; }
.hdr.is-up { transform: translateY(-100%); }
.hdr__logo { display: block; width: 128px; transition: opacity .35s ease, transform .35s ease; }
.hdr.has-crest .hdr__logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.hdr__nav { display: flex; gap: 26px; margin-left: auto; }
.hdr__nav a { text-decoration: none; font: 500 14px/1 var(--sans); color: var(--grey-2); padding: 10px 0; transition: color .2s ease; }
.hdr__nav a:hover { color: var(--grey); }
.hdr__call { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(0, 153, 223, .7); border-radius: var(--r);
  text-decoration: none; font: 500 14px/1 var(--sans); color: var(--grey); white-space: nowrap; }
.hdr__call svg { width: 17px; height: 17px; color: var(--blue); }
.hdr__call:hover { background: rgba(0, 153, 223, .14); }
@media (max-width: 899px) { .hdr__nav { display: none; } .hdr__call { margin-left: auto; } }
@media (max-width: 719px) { .hdr__call span { display: none; } .hdr__call { width: 44px; height: 44px; padding: 0; justify-content: center; } .hdr__logo { width: 112px; } }

.logo { width: 100%; height: auto; overflow: visible; }
.logo .lg-grey { fill: var(--logo-grey); } .logo .lg-blue { fill: var(--logo-blue); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: var(--hdr-h) var(--gut) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; column-gap: clamp(24px, 4vw, 72px); background: var(--stone); color: var(--grey); overflow: hidden; overflow-anchor: none; }
.hero__say { max-width: 600px; padding: 28px 0; }
.crest__logo { width: clamp(240px, 25vw, 400px); }
.hero__label { margin-top: clamp(26px, 5svh, 52px); }
.hero__title { font-size: var(--h1); margin-top: 10px; }
.hero__line { max-width: 38ch; margin-top: 18px; }
.hero__status { margin-top: 12px; color: var(--blue); font: 500 var(--t-small)/1.4 var(--sans); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4.4svh, 40px); }
.hero__btns .btn--line { color: var(--grey); }
.dev { --dev: min(calc(100svh - var(--hdr-h) - 20px), 52vw, 940px); position: relative; width: var(--dev); height: var(--dev); align-self: end; justify-self: end; margin-right: calc(var(--gut) * -.5); }
.dev picture { display: contents; }
.dev__still, .dev__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dev__vid { opacity: 0; transition: opacity .25s linear;
  /* decoders shift the dark ground by 1–2 levels: the edges fade into the exact still underneath */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 2.5%, #000 97.5%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 2.5%, #000 97.5%, transparent); mask-composite: intersect; }
.dev.has-vid .dev__vid { opacity: 1; }
.dev__ui { position: absolute; inset: 0; pointer-events: none; }
.dev__ui > * { pointer-events: auto; }
.dev__valve { position: absolute; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: none; padding: 0; }
.dev__valve i { position: absolute; inset: 22%; border-radius: 50%; border: 1.5px solid rgba(0, 153, 223, .0); }
.dev__valve i::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid var(--blue); opacity: 0; transform: scale(.7); }
.dev.is-ready .dev__valve i::after { animation: ring 1.8s ease-out 3; }
.dev.is-ready.is-off .dev__valve i::after { animation-play-state: paused; }
@keyframes ring { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: .9; } 100% { opacity: 0; transform: scale(1.35); } }
.dev__valve:hover i::after { opacity: .9; transform: scale(1.05); transition: transform .3s ease, opacity .3s ease; }
.dev__hint { position: absolute; font: 500 var(--t-cap)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.dev.is-ready .dev__hint { opacity: 1; }
@media (max-width: 899px) { .dev__hint { display: none; } }

.out { position: absolute; border: 0; padding: 0; background: none; text-align: left; color: rgba(221, 221, 221, .34); transition: color .45s ease; }
.out__txt { position: absolute; left: 0; display: flex; flex-direction: column; gap: 3px; }
.out__t { font: 500 clamp(15px, calc(var(--dev) * .024), 20px)/1.1 var(--sans); letter-spacing: .005em; }
.out__s { font: 500 clamp(9.5px, calc(var(--dev) * .0128), 11.5px)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(168, 161, 153, .5); transition: color .45s ease; white-space: nowrap; }
.out__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 1.5px solid rgba(221, 221, 221, .35); transition: border-color .4s ease, background-color .4s ease, transform .3s ease; }
.out__dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: var(--blue); opacity: 0; transform: scale(.4); }
.out.is-on { color: var(--grey); }
.out.is-on .out__s { color: var(--blue); }
.out.is-on .out__dot { border-color: var(--blue); background: var(--blue); }
.out.is-on .out__dot::after { animation: drop .9s ease-out 1; }
.out--cust .out__t { color: inherit; }
@keyframes drop { 0% { opacity: .55; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
@media (hover: hover) and (pointer: fine) {
  .out:hover .out__t { text-decoration: underline 1px; text-underline-offset: 5px; }
  .out:hover .out__dot { transform: scale(1.35); }
}

/* phone + portrait tablet: logo, the device with the title in its free corner, two doors */
@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "dev" "btns"; padding: calc(var(--hdr-h) + 6px) 0 16px; align-content: start; row-gap: 0; }
  .hero__say { display: contents; }
  .crest { grid-area: logo; padding: 0 var(--gut); }
  .crest__logo { width: min(50vw, 240px); }
  .hero__line { display: none; }
  .hero__label { grid-area: logo; justify-self: end; align-self: center; max-width: 40%; margin: 0 var(--gut) 0 0; text-align: right; font-size: 10px; line-height: 1.5; letter-spacing: .16em; }
  .hero__title { grid-area: dev; z-index: 2; justify-self: end; align-self: start; width: 52%; margin: 6% var(--gut) 0 0; font-size: clamp(1.6rem, 7.2vw, 2.6rem); }
  .hero__status { grid-area: btns; margin: 0 var(--gut) 8px; }
  .dev { grid-area: dev; --dev: min(100vw, calc(100svh - var(--hdr-h) - 186px)); justify-self: center; align-self: start; margin: 2px 0 0; }
  .hero__btns { grid-area: btns; display: grid; grid-template-columns: 1fr 1fr; padding: 0 var(--gut); margin-top: 6px; }
  .hero__btns .btn { padding: 0 12px; }
}

/* ---------- screens layer ---------- */
: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.1rem, min(3.4vw, 5.6svh), 3.6rem);
}
@media (max-width: 899px) { :root { --scr-b: 28px; } }
@media (max-width: 719px) { main > section { scroll-margin-top: var(--hdr-h); } :root { --scr-t: 26px; --h2s: clamp(1.9rem, 8.4vw, 2.4rem); } }
main .h2 { font-size: var(--h2s); }
main > section.scr { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) { main > section.scr { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.scr--paper { background: var(--paper); color: var(--ink); }
.scr--stone { background: var(--stone); color: var(--grey); }
.scr .h2 { margin-top: 8px; }
.scr .lead { margin-top: 14px; max-width: 44ch; }

.ticks li { position: relative; padding-left: 26px; margin-top: 8px; font: 400 var(--t-body)/1.45 var(--sans); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; background: var(--blue-d);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.5 4.8 4.8L19.5 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.5 4.8 4.8L19.5 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ticks--dark li::before, .scr--stone .ticks li::before { background: var(--blue); }

/* ---------- console (jobs + inquiry) ---------- */
.con { position: relative; border-radius: var(--r); padding: 20px 22px 22px; display: flex; flex-direction: column; min-height: 360px; }
.con--dark { background: var(--stone); color: var(--grey); box-shadow: 0 30px 60px -30px rgba(36, 32, 28, .55); }
.con--light { background: #fff; color: var(--ink); border: 1px solid var(--paper-2); box-shadow: 0 30px 60px -36px rgba(36, 32, 28, .35); }
.con__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 36px; }
.con__back { width: 36px; height: 36px; margin-left: -8px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.con__back svg { width: 20px; height: 20px; }
.con__back:hover { background: rgba(128, 128, 128, .16); }
.con__back[hidden] + .con__role { grid-column: 1 / 3; }
.con__role { font: 500 var(--h3s)/1.2 var(--sans); min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.con__step { white-space: nowrap; }
.pipe { position: relative; height: 14px; margin: 14px 0 16px; border-radius: 7px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .05) 40%, rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .14) 100%);
  box-shadow: inset 0 0 0 1px rgba(221, 221, 221, .2); }
.pipe::after { content: ''; position: absolute; left: 6px; right: 6px; top: 3px; height: 1.5px; border-radius: 1px; background: rgba(255, 255, 255, .5); }
.pipe--light { background: linear-gradient(180deg, #fff 0, #eef1f3 45%, #e3e8eb 70%, #f8f9fa 100%); box-shadow: inset 0 0 0 1px #d5dce0; }
.pipe__w { position: absolute; left: 3px; right: 3px; top: 3px; bottom: 3px; border-radius: 4px; background: linear-gradient(180deg, #3fb7ee 0, #0099df 55%, #0084c2 100%);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.con__body { flex: 1; display: flex; flex-direction: column; }
.con__q { font: 500 var(--h3s)/1.25 var(--sans); }
.con__hint { margin-top: 6px; font: 400 var(--t-small)/1.45 var(--sans); color: var(--grey-2); }
.con--light .con__hint { color: var(--ink-2); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.opt { min-height: 52px; padding: 12px 14px; text-align: left; border-radius: var(--r); font: 400 15px/1.3 var(--sans);
  border: 1px solid rgba(221, 221, 221, .2); background: rgba(221, 221, 221, .04); transition: border-color .2s ease, background-color .2s ease; }
.opt:hover { border-color: rgba(0, 153, 223, .7); }
.opt.is-on { border-color: var(--blue); background: rgba(0, 153, 223, .16); }
.con--light .opt { border-color: var(--paper-2); background: var(--paper); }
.con--light .opt:hover { border-color: var(--blue-d); }
.con--light .opt.is-on { border-color: var(--blue-d); background: rgba(0, 153, 223, .1); }
.opts--one { grid-template-columns: minmax(0, 1fr); }
.form { display: grid; gap: 14px; margin-top: 14px; }
.field { display: grid; gap: 4px; }
.field > span { font: 500 var(--t-cap)/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); }
.con--light .field > span { color: var(--ink-2); }
.field input { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid rgba(221, 221, 221, .35); background: transparent; padding: 8px 0 9px; font: 400 17px/1.3 var(--sans); border-radius: 0; }
.con--light .field input { border-bottom-color: #cfc8c0; }
.field input:focus { outline: 0; border-bottom-color: var(--blue); }
.con__go { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.con__go .btn { flex: 1 1 auto; }
.con__err { font: 400 var(--t-small)/1.4 var(--sans); color: var(--blue); flex-basis: 100%; }
.con--light .con__err { color: var(--blue-d); }
.ticket { border: 1px dashed rgba(221, 221, 221, .35); border-radius: var(--r); padding: 14px 16px; }
.con--light .ticket { border-color: #cfc8c0; }
.ticket__t { display: flex; align-items: center; gap: 10px; font: 500 var(--h3s)/1.25 var(--sans); }
.ticket__t svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.ticket dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin-top: 12px; font: 400 var(--t-small)/1.4 var(--sans); }
.ticket dt { color: var(--grey-2); }
.con--light .ticket dt { color: var(--ink-2); }
.ticket dd { min-width: 0; overflow-wrap: anywhere; }
.ticket__note { margin-top: 12px; font: 400 var(--t-small)/1.45 var(--sans); color: var(--grey-2); }
.con--light .ticket__note { color: var(--ink-2); }
.ticket__note b { color: var(--grey); font-weight: 500; }
.con--light .ticket__note b { color: var(--ink); }

/* ---------- jobs ---------- */
.jobs__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(28px, 5vw, 88px); align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 3.4svh, 30px); }
.tab { min-height: 42px; padding: 0 15px; border: 1px solid #d3ccc4; border-radius: var(--r); background: transparent; font: 500 14px/1 var(--sans); color: var(--ink); white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.role { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: clamp(18px, 3.4svh, 30px); }
.role .ticks { margin-top: 2px; }
.jobs .lead-s { display: none; }

/* ---------- Lehre ---------- */
.lehre__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.lehre__perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: clamp(16px, 3svh, 26px); }
.lehre__perks li { font-size: var(--t-small); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; min-width: 0; }
.lehre__parents { margin-top: 16px; color: var(--grey-2); }
.lehre__say .btn { margin-top: clamp(18px, 3.4svh, 30px); }
.trio { position: relative; }
.trio__stage { position: relative; aspect-ratio: 16 / 9; }
.trio__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trio__shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 22% 40% at var(--sx, 50%) var(--sy, 50%), rgba(36, 32, 28, 0) 45%, rgba(36, 32, 28, .5) 100%); }
.trio__spots { position: absolute; inset: 0; }
.trio__spot { position: absolute; width: 26%; height: 52%; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; border-radius: 6px; }
.trio__spot::after { content: ''; position: absolute; left: 50%; bottom: -4%; width: 34%; height: 2px; margin-left: -17%; background: var(--blue); transform: scaleX(0); transition: transform .4s ease; }
.trio__spot.is-on::after { transform: scaleX(1); }
.trio__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 4px; border-top: 1px solid var(--stone-3); }
.trio__tab { min-height: 48px; border: 0; background: none; font: 500 15px/1.2 var(--sans); color: var(--grey-2); border-top: 2px solid transparent; margin-top: -1px; transition: color .2s ease, border-color .2s ease; }
.trio__tab:hover { color: var(--grey); }
.trio__tab[aria-selected="true"] { color: var(--grey); border-top-color: var(--blue); }
.trio__line { margin-top: 10px; min-height: 3em; text-align: center; font: 400 var(--t-lead)/1.5 var(--sans); color: var(--grey); }

/* ---------- Anfrage ---------- */
.anfrage__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(28px, 5vw, 88px); align-items: center; }
.svc { margin-top: clamp(16px, 3svh, 28px); }
.svc__frame { position: relative; height: clamp(180px, calc(var(--scr-h) - 330px), 420px); overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.svc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.svc__img.is-out { opacity: 0; }
.svc__cap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 10px; }
.svc__cap .small { color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.tile { position: relative; height: clamp(92px, 13svh, 128px); border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--paper-2); text-align: left; color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(36, 32, 28, 0) 35%, rgba(36, 32, 28, .78)); }
.tile span { position: absolute; z-index: 2; left: 12px; right: 10px; bottom: 9px; font: 500 15px/1.2 var(--sans); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: 3; border: 2px solid transparent; border-radius: var(--r); transition: border-color .2s ease; }
.tile.is-on::after { border-color: var(--blue); }
.tile:hover img { transform: scale(1.04); }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.photos__add { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 1px dashed #bdb5ac; border-radius: var(--r); background: var(--paper); cursor: pointer; font: 500 15px/1.2 var(--sans); }
.photos__add svg { width: 22px; height: 22px; color: var(--blue-d); }
.photos__add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photos__th { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; background: var(--paper-2); }
.photos__note { margin-top: 10px; font: 400 var(--t-small)/1.45 var(--sans); color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---------- Kontakt ---------- */
.kontakt { position: relative; }
.kontakt__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.valve { position: relative; width: min(100%, calc(var(--scr-h) - 10px), 620px); aspect-ratio: 1; justify-self: center; }
.valve__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
.valve__img--open { opacity: 0; }
.valve.is-open .valve__img--open { opacity: 1; }
.kontakt__who { margin-top: 12px; }
.hours { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin-top: clamp(16px, 3svh, 26px); font: 400 var(--t-body)/1.45 var(--sans); }
.hours dt { color: var(--grey-2); }
.hours dd span { white-space: nowrap; }
.hours .is-today { color: var(--grey); }
.kontakt__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.6svh, 34px); }
.kontakt__btns .btn--line { color: var(--grey); }

/* ---------- footer ---------- */
.ftr { background: var(--stone); color: var(--grey-2); padding-top: 8px; }
.ftr__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--stone-3); }
.ftr__links { display: flex; gap: 22px; }
.ftr a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(168, 161, 153, .5); }
.ftr a:hover { color: var(--grey); }
.ftr .vc-credit-row { margin-top: 18px; }

/* ---------- draft note + dock ---------- */
.note__tab { position: fixed; left: 0; top: 50%; z-index: 45; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; padding: 14px 7px; border: 0; border-radius: 0 var(--r) var(--r) 0;
  background: var(--stone-3); color: var(--grey); font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.note__tab:hover { background: #4a433b; }
.note { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(20, 18, 16, .55); }
.note__panel { position: relative; width: min(440px, 100%); padding: 26px 24px 22px; border-radius: var(--r); background: var(--paper); color: var(--ink); display: grid; gap: 16px; justify-items: start; font: 400 var(--t-body)/1.55 var(--sans); }
.note__panel .btn--line { color: var(--ink); }
.note__fine { color: var(--ink-2); }
.note__x { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); }
.note__x::before, .note__x::after { content: ''; position: absolute; left: 13px; right: 13px; top: 21px; height: 1.6px; background: var(--ink); transform: rotate(45deg); }
.note__x::after { transform: rotate(-45deg); }
.dock { display: none; }
@media (max-width: 899px) {
  .note__tab { display: none; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 42; display: grid; grid-template-columns: minmax(0, 1fr) 52px auto; gap: 8px; align-items: center;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(36, 32, 28, .97); border-top: 1px solid var(--stone-3);
    transform: translateY(110%); transition: transform .35s ease; }
  .dock.is-on { transform: none; }
  .dock__main { min-height: 48px; border: 0; border-radius: var(--r); background: var(--blue); color: #10202b; font: 500 15px/1 var(--sans); }
  .dock__call { display: grid; place-items: center; height: 48px; border: 1px solid var(--blue); border-radius: var(--r); color: var(--grey); }
  .dock__call svg { width: 20px; height: 20px; }
  .dock__note { min-height: 48px; padding: 0 10px; border: 0; background: none; color: var(--grey-2); font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
  main > section:last-of-type { padding-bottom: calc(var(--scr-b) + 20px); }
  .ftr { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1100px) and (min-width: 900px) {
  .jobs__grid, .anfrage__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .role { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 899px) {
  .jobs__grid, .anfrage__grid, .lehre__grid, .kontakt__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .con { min-height: 0; }
  .svc { display: none; }
  .valve { width: 100%; aspect-ratio: auto; height: clamp(150px, 26svh, 260px); justify-self: stretch; }
  .valve__img { object-position: 30% 40%; }
}
@media (max-width: 719px) {
  .jobs__lead, .anfrage__lead { display: none; }
  .jobs .lead-s { display: block; margin-top: 8px; max-width: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 16px calc(var(--gut) * -1) 0; padding: 0 var(--gut); scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { scroll-snap-align: start; min-height: 40px; padding: 0 13px; }
  .role { display: none; }
  .con { padding: 16px 16px 18px; }
  .lehre__grid { gap: 11px; }
  .lehre__say { display: contents; }
  .lehre__say > .lab { order: 1; } .lehre__say > .h2 { order: 2; margin-top: 4px; } .trio { order: 3; } .lehre__say > .lead { display: none; }
  .lehre__perks { order: 4; margin-top: 0; } .lehre__parents { display: none; } .lehre__say > .btn { order: 5; margin-top: 0; justify-self: start; }
  .trio__line { min-height: 0; font-size: var(--t-body); }
  .lehre__perks li { margin-top: 4px; }
  .kontakt__who { margin-top: 8px; }
  .hours { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin-top: 12px; font-size: var(--t-small); }
  .kontakt__btns { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 16px; }
  .kontakt__btns .btn { padding: 0 10px; }
  .kontakt__grid > .valve { order: 0; height: clamp(120px, 21svh, 200px); }
  .kontakt__grid { gap: 14px; }
  .lehre__perks li:nth-child(n+3) { display: none; }
  .trio__tab { min-height: 40px; }
  .trio__line { margin-top: 6px; }
  .tabs { margin-top: 12px; }
  .tile { height: clamp(84px, 12.5svh, 112px); }
  .ftr__row { flex-direction: column; }
}

/* ---------- motion states ---------- */
.js .crest__logo, .js .hero__label, .js .hero__title, .js .hero__line, .js .hero__btns { opacity: 0; }
.no-anim .crest__logo, .no-anim .hero__label, .no-anim .hero__title, .no-anim .hero__line, .no-anim .hero__btns,
.is-static .crest__logo, .is-static .hero__label, .is-static .hero__title, .is-static .hero__line, .is-static .hero__btns { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* VCSLV credit — one quiet line under the footer. Takes the footer's colour and font; the mark is vector
   (Onest 700 outlines, no font download). Only the dot carries our terracotta. */
.vc-credit-row {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  display: flex; justify-content: center;
  /* always a full-width line of its own, even inside a footer grid or flex row */
  grid-column: 1 / -1; flex: 0 0 100%; width: 100%; box-sizing: border-box;
}
.vc-credit {
  --vc-dot: #D2664A;
  display: inline-flex; align-items: center; gap: .7em; min-height: 44px; padding: 0 6px;
  color: inherit; text-decoration: none; font-size: 12px; line-height: 1; letter-spacing: .04em;
  opacity: .72; transition: opacity .4s ease;
}
.vc-credit--light { --vc-dot: #A8452F; }
.vc-credit__mark { display: block; height: .92em; width: auto; overflow: visible; }
.vc-credit__dot { fill: var(--vc-dot); transform-box: fill-box; transform-origin: center; transition: transform .8s cubic-bezier(.2, .9, .25, 1.35) .15s, filter .4s ease; }
.vc-credit__line { padding-left: .7em; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.vc-credit.is-arm .vc-credit__dot { transform: scale(0); }
.vc-credit.is-arm.is-in .vc-credit__dot { transform: scale(1); }
.vc-credit:hover, .vc-credit:focus-visible { opacity: 1; }
.vc-credit:hover .vc-credit__dot, .vc-credit:focus-visible .vc-credit__dot { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--vc-dot) 80%, transparent)); }
.vc-credit:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 520px) {
  .vc-credit { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 10px 6px; }
  .vc-credit__line { flex-basis: 100%; text-align: center; padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .vc-credit.is-arm .vc-credit__dot { transform: none; transition: none; } }
.opts--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--sm .opt { min-height: 44px; padding: 9px 12px; font-size: 14px; }

.show-s { display: none; }
@media (max-width: 719px) { .hide-s { display: none; } .show-s { display: inline; } }
