/* NLA Studio · nla-trade.ch Eigenbau, Fassung «Strich»
 * Eigener Code. NLA (Film, Graphit, Archivo, ein Salbei-Button) verschmolzen mit den Prinzipien von Obys
 * (wenige Schriftgrössen, viel Fläche, Farbe nur am Aktiven, langsam erscheinen, schnell verschwinden).
 * Eigener Charakter: Der Strich der Wortmarke NLA | STUDIO steht auf der Mittelachse.
 * Bilder öffnen sich aus diesem Strich wie ein Fenster, Text beginnt an dieser Achse,
 * Seitenwechsel und Menü laufen über den Strich. Keine Scroll-Szenen. */

@font-face { font-family: Archivo; src: url(/assets/fonts/archivo-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

@view-transition { navigation: auto; }

:root {
  --graphit: #0B191A; --kalk: #F5F6F3; --salbei: #92CBB6; --hellgruen: #BBDACA;
  --linie: rgba(245, 246, 243, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --auf: 1.2s; --zu: .3s;             /* erscheinen langsam, verschwinden schnell */
  --rand: clamp(18px, 2.2vw, 32px);
  --abstand: clamp(96px, 13vw, 190px);
  --kopf: 64px;
  --gross: clamp(40px, 8.1vw, 168px);  /* Titel und Namen */
  --mittel: clamp(22px, 2.5vw, 38px);  /* Aussagen */
  --lese: 17px;                        /* Fliesstext */
  --klein: 14px;                       /* Beschriftungen */
  --fw: min(49.6svh, 34vw);            /* Breite des Hero-Fensters, Format 4:5 */
  --f-seite: calc(50% - var(--fw) / 2); --f-oben: 13%; /* mittig auf der Achse */
}

*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 24px); scrollbar-gutter: stable; scrollbar-color: rgba(245, 246, 243, .32) var(--graphit); }
html:has(.menue:popover-open) { overflow: hidden; }
body { margin: 0; background: var(--graphit); color: var(--kalk); font: 400 var(--klein)/1.35 Archivo, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--salbei); outline-offset: 4px; }
::selection { background: var(--salbei); color: var(--graphit); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 50; padding: 10px 14px; background: var(--salbei); color: var(--graphit); }
.skip:focus { top: 12px; }

.mittel { font-size: var(--mittel); line-height: 1.1; letter-spacing: -.03em; text-wrap: pretty; }
.leise { opacity: .6; }
.link { display: inline-block; padding: 6px 0 4px; border-bottom: 1px solid currentColor; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.kopf a, .kopf button, .hero-rechts button, .buehne-rechts button, .link, .fuss a, .weiter, .brot a, .menue a, .menue button { transition: opacity var(--zu) var(--ease); }
@media (hover: hover) {
  .kopf nav a:hover, .kopf-kontakt:hover, .kopf-menue:hover, .hero-rechts button:hover, .buehne-rechts button:hover, .link:hover, .fuss a:hover, .weiter:hover, .brot a:hover, .menue a:hover, .menue button:hover { opacity: .5; }
}

/* Kopfzeile: deckender Grund, damit nichts durch sie hindurchläuft. Der Strich steht exakt auf der Seitenmitte. */
.kopf { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: var(--kopf); padding-inline: var(--rand); background: var(--graphit); view-transition-name: kopf; }
.kopf nav { display: flex; gap: 26px; }
.kopf nav a, .kopf-kontakt, .kopf-menue { padding-block: 10px; }
.kopf [aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.kopf-menue { display: none; justify-self: start; padding-right: 16px; }
.kopf-kontakt { grid-column: 3; justify-self: end; }
/* Wortmarke: beide Hälften gleich breit */
.marke { grid-column: 2; padding-block: 8px; display: grid; grid-template-columns: 4.6em 1px 4.6em; column-gap: 11px; align-items: center; font-size: 15px; }
.marke b { justify-self: end; font-weight: 800; font-stretch: 112%; font-size: 17px; letter-spacing: -.01em; }
.marke i { height: 20px; background: currentColor; }
.marke span { letter-spacing: .2em; font-size: 12px; }
@media (max-width: 799px) { .kopf nav { display: none; } .kopf-menue { display: block; } }

/* Menü (Handy): öffnet sich aus dem Strich */
.menue { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0 var(--rand) 26px; border: 0; background: var(--graphit); color: var(--kalk); flex-direction: column;
  clip-path: inset(0 50%); transition: clip-path var(--zu) var(--ease), display var(--zu) allow-discrete, overlay var(--zu) allow-discrete; }
.menue:popover-open { display: flex; clip-path: inset(0); transition-duration: var(--auf); }
@starting-style { .menue:popover-open { clip-path: inset(0 50%); } }
.menue-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: var(--kopf); flex: none; }
.menue-kopf button { justify-self: start; padding: 10px 0; white-space: nowrap; }
.menue nav { display: grid; align-content: center; flex: 1; gap: 2px; }
.menue nav a { font-size: clamp(44px, 13.4vw, 84px); font-weight: 500; font-stretch: 96%; line-height: 1.04; letter-spacing: -.045em; }
.menue p { display: flex; flex-wrap: wrap; gap: 0 22px; }
.menue p a { padding-block: 10px; }
.menue p a[href^="tel:"] { flex-basis: 100%; }
.menue nav [aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Hero der Startseite: ein Bildschirm. Der Film steht im Fenster und lässt sich auf die ganze Fläche öffnen. */
.hero { position: relative; height: 100svh; min-height: 500px; overflow: hidden; }
.film { position: absolute; left: var(--f-seite); top: var(--f-oben); width: var(--fw); height: calc(var(--fw) * 1.25); object-fit: cover; cursor: zoom-in; animation: fenster 1.6s var(--ease) both; }
.offen .film { left: 0; top: 0; width: 100%; height: 100%; cursor: zoom-out; animation: fenster-ganz var(--auf) var(--ease) both; }
/* Offener Film: Der Film ist der Inhalt. Einleitung und Ort treten zurück, die Bedienung steht auf Graphit, der Titel bekommt Grund. */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(11, 25, 26, 0) 55%, rgba(11, 25, 26, .82)); opacity: 0; transition: opacity var(--zu) var(--ease); }
.hero.offen::after { opacity: 1; transition-duration: var(--auf); }
.hero-links, .hero-rechts span { transition: opacity var(--zu) var(--ease); }
.hero.offen .hero-links, .hero.offen .hero-rechts span { opacity: 0; pointer-events: none; visibility: hidden; }
.hero.offen .hero-rechts button { padding: 10px 14px; background: var(--graphit); }
@media (hover: hover) { .hero.offen .hero-rechts button:hover { opacity: 1; color: var(--salbei); } }
.hero-links, .hero-rechts, .hero h1, .buehne-links, .buehne-rechts { position: absolute; z-index: 2; }
.hero-links, .buehne-links { left: var(--rand); top: 50%; transform: translateY(-62%); width: min(27em, calc(var(--f-seite) - var(--rand) - 3vw)); display: grid; gap: 20px; justify-items: start; }
.hero-links p, .buehne-links p { font-size: var(--lese); line-height: 1.4; text-wrap: balance; }
.hero-rechts, .buehne-rechts { right: var(--rand); top: 50%; transform: translateY(-62%); display: grid; gap: 4px; justify-items: end; text-align: right; }
.hero-rechts button, .buehne-rechts button, .hero-rechts span { padding-block: 12px; }
.hero h1, .buehne :is(h1, h2) { font-size: var(--gross); font-weight: 500; font-stretch: 96%; line-height: 1.02; letter-spacing: -.045em; }
.hero h1 { left: var(--rand); right: var(--rand); bottom: clamp(14px, 2.2vw, 30px); white-space: nowrap; }

/* Bühne: Kopf der Unterseiten. Das Bild öffnet sich aus dem Strich, der Titel steht unten. */
.buehne { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; row-gap: clamp(10px, 1.4vw, 20px); height: 88svh; min-height: 560px; padding: calc(var(--kopf) + 4svh) var(--rand) clamp(14px, 2.2vw, 30px); }
.buehne.ohne-bild { height: auto; min-height: 0; grid-template-rows: auto auto auto; }
.buehne.ohne-bild .strich { position: static; grid-area: 1 / 1; justify-self: center; align-self: start; height: clamp(110px, 20svh, 200px); }
.buehne.ohne-bild :is(.buehne-links, .buehne-rechts) { position: static; transform: none; width: auto; grid-area: 2 / 1; align-self: baseline; }
.buehne.ohne-bild .buehne-links { justify-self: start; }
.buehne.ohne-bild .buehne-rechts { justify-self: end; }
/* Fenster und Titel stehen untereinander im Raster: Ein zweizeiliger Titel macht das Fenster niedriger, statt hineinzuragen */
.buehne .fenster { grid-area: 1 / 1; justify-self: center; position: relative; width: calc((100% + 2 * var(--rand)) * .24); height: 100%; overflow: hidden; animation: fenster 1.6s var(--ease) both; }
.fenster { outline: 1px solid var(--linie); outline-offset: -1px; }
@keyframes fenster { from { clip-path: inset(0 50%); } to { clip-path: inset(0); } }
@keyframes fenster-ganz { from { clip-path: inset(0 50%); } to { clip-path: inset(0); } }
.fenster img { width: 100%; height: 100%; object-fit: cover; }
.fenster img:is([src*="mobil-f"], [src*="live-f"], [src*="werkzeug-check"], [src*="signatur-vorschau"]) { object-position: top; }
.buehne :is(h1, h2) { grid-area: 3 / 1; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; min-width: 0; }
.brot { display: flex !important; gap: 8px; align-items: baseline; }
.brot a { padding-block: 10px; }
.brot span { opacity: .6; }
.legende { grid-area: 2 / 1; justify-self: center; width: var(--fb); opacity: .7; }
/* 404: Das Fenster bleibt zu, nur der Strich steht */
.strich { position: absolute; left: calc(50% - .5px); top: 16%; bottom: 34%; width: 1px; background: var(--kalk); }

/* Alle Fenster haben das Format 4:5 ihrer Bilder. So wird bei keiner Bildschirmform Text am Rand eines Bildschirmfotos abgeschnitten. */
.buehne { height: auto; min-height: max(88svh, 560px); grid-template-rows: minmax(min-content, 1fr) auto auto; }
.buehne { --fb: max(200px, min(calc((100% + 2 * var(--rand)) * .24), calc((96svh - 1.02 * var(--gross) - 183px) * .8))); }
.buehne .fenster { align-self: start; width: var(--fb); height: auto; aspect-ratio: 4 / 5; }
.buehne :is(.buehne-links, .buehne-rechts) { position: static; transform: none; grid-area: 2 / 1; align-self: baseline; }
.buehne .buehne-links { justify-self: start; width: min(27em, calc(38% - var(--rand) - 3vw)); }
.buehne .brot { width: auto; }
.buehne .buehne-rechts { justify-self: end; }
.buehne .legende { align-self: baseline; text-wrap: balance; }
@media (min-width: 800px) and (min-aspect-ratio: 1001/1000) {
  .buehne .buehne-rechts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 28px; }
  .buehne-rechts button { padding-block: 10px; }
}

/* Film im Fenster: liegt über dem Standbild und erscheint erst, wenn er läuft */
.fenster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--zu) var(--ease); }
.fenster video.laeuft { opacity: 1; transition-duration: var(--auf); }

.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 3px; background: var(--salbei); color: var(--graphit); font-weight: 600; transition: background-color var(--zu) var(--ease); }
@media (hover: hover) { .btn:hover { background: var(--hellgruen); } }
.btn.nla-glow { --nla-glow-radius: 8px; }

/* Liste: Namen in der grossen Schrift. Nur der aktive Eintrag steht vor dem Fenster und zeigt sein Bild. */
.liste { position: relative; isolation: isolate; padding: var(--abstand) var(--rand) 0; }
.buehne + .liste { padding-top: calc(var(--abstand) * .5); }
.liste-kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: clamp(28px, 4vw, 56px); }
.liste-kopf h2, .zeile > h2, .weitere > h2, .ansichten > h2, .bilder > h2 { font: inherit; }
.liste ul { position: relative; }
.liste a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.name { position: relative; z-index: 0; font-size: var(--gross); font-weight: 500; font-stretch: 96%; line-height: 1.02; letter-spacing: -.045em; }
.art { position: relative; z-index: 0; text-align: right; }
.name, .art { transition: opacity var(--zu) var(--ease); }
/* Das Fenster ist so hoch wie die Liste und steht auf der Seitenmitte */
.liste .fenster { position: absolute; z-index: 1; left: 50%; top: 0; bottom: 0; aspect-ratio: 4 / 5; transform: translateX(-50%); overflow: hidden; clip-path: inset(0 50%); transition: clip-path var(--zu) var(--ease); pointer-events: none; }
@media (min-width: 800px) and (hover: hover) {
  /* Aktiv ist, was überfahren oder fokussiert wird. In kurzen Listen ist es sonst der erste Eintrag. */
  .liste ul:has(a:hover, a:focus-visible) a:not(:hover, :focus-visible) :is(.name, .art),
  .liste:not(.lang) ul:not(:has(a:hover, a:focus-visible)) li:not(:first-child) :is(.name, .art) { opacity: .5; }
  .liste ul:has(a:hover, a:focus-visible) a:not(:hover, :focus-visible) .name,
  .liste:not(.lang) ul:not(:has(a:hover, a:focus-visible)) li:not(:first-child) .name { --kante: calc(50vw - var(--rand) - .408 * var(--n, 4) * var(--gross)); -webkit-mask-image: linear-gradient(to right, #000 calc(var(--kante) - .75 * var(--gross)), transparent var(--kante)); mask-image: linear-gradient(to right, #000 calc(var(--kante) - .75 * var(--gross)), transparent var(--kante)); }
  .liste a:is(:hover, :focus-visible) :is(.name, .art),
  .liste:not(.lang) ul:not(:has(a:hover, a:focus-visible)) li:first-child :is(.name, .art) { z-index: 2; }
  .liste a:is(:hover, :focus-visible) .name::before,
  .liste:not(.lang) ul:not(:has(a:hover, a:focus-visible)) li:first-child .name::before { content: ""; position: absolute; z-index: -1; inset: -6% -.1em -6% 0; background: rgba(11, 25, 26, .52);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - .45em), transparent), linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 calc(100% - .45em), transparent), linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent); mask-composite: intersect; }
  /* Tastaturfokus am Namen, damit der Rahmen vor dem Fenster steht */
  .liste a:focus-visible { outline: none; }
  .liste a:focus-visible .name { outline: 2px solid var(--salbei); outline-offset: 4px; }
  .liste a:has(img[src*="werkzeug-check"]) .name::before { content: none; } /* dieses Bild hat links freien Grund */
  .liste a:is(:hover, :focus-visible) .fenster,
  .liste:not(.lang) ul:not(:has(a:hover, a:focus-visible)) li:first-child .fenster { clip-path: inset(0); transition-duration: var(--auf); }
}

/* Weitere Arbeiten ohne Bild: ruhige Textliste an der Achse */
.weitere { padding: var(--abstand) var(--rand) 0; }
.weitere > h2 { margin-bottom: clamp(28px, 4vw, 56px); }
.weitere a { display: grid; grid-template-columns: 1fr 1fr; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--linie); }
.weitere li:last-child a { border-bottom: 1px solid var(--linie); }
.weitere a > span:last-child { max-width: 40em; font-size: var(--lese); line-height: 1.5; opacity: .75; }
.weitere a { transition: opacity var(--zu) var(--ease); }
@media (hover: hover) { .weitere ul:has(a:hover) a:not(:hover) { opacity: .5; } }

/* Zeile: links die Bezeichnung, der Inhalt beginnt an der Mittelachse */
.zeile { display: grid; grid-template-columns: 1fr 1fr; align-items: baseline; padding: var(--abstand) var(--rand) 0; }
.zeile + .zeile, .buehne + .zeile { padding-top: calc(var(--abstand) * .5); }
.zeile > div { display: grid; gap: 20px; justify-items: start; align-content: start; max-width: 40em; min-width: 0; }
.zeile > div p:not(.mittel, .leise, .punkte, .aktionen), .text { font-size: var(--lese); line-height: 1.5; text-wrap: pretty; }
.text { display: grid; gap: 16px; }
.zeile > .text { max-width: 33em; } /* gleiche Spaltenbreite wie die übrigen Seiten (dort 40em bei 14 px) */
.text a:not(.link) { border-bottom: 1px solid currentColor; }
.weiter { display: inline-block; padding-block: 6px; }

.umfang { width: 100%; font-size: var(--lese); }
.umfang li { padding: 10px 0; border-top: 1px solid var(--linie); }
.umfang li:last-child { border-bottom: 1px solid var(--linie); }
/* Erklärte Punkte: Begriff und eine Zeile dazu */
.erklaert li, .erklaert li > a { display: grid; gap: 2px; }
.erklaert li > a { transition: opacity var(--zu) var(--ease); }
@media (hover: hover) { .erklaert li > a:hover { opacity: .5; } }
.erklaert b { font-weight: 600; }
.erklaert span { font-size: var(--klein); opacity: .75; }
.schritte { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; width: 100%; margin-top: 12px; counter-reset: schritt; }
.schritte li { display: grid; gap: 4px; align-content: start; }
.schritte li::before { counter-increment: schritt; content: "0" counter(schritt); opacity: .6; }
.schritte b { font-size: var(--lese); font-weight: 600; }
.schritte span { opacity: .75; }

/* Website-Check */
.pruefen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; width: 100%; }
.pruefen input { flex: 1 1 230px; min-width: 0; height: 50px; padding: 0; border: 0; border-bottom: 1px solid var(--kalk); border-radius: 0; background: none; color: var(--kalk); font: inherit; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; }
.pruefen input::placeholder { color: var(--kalk); opacity: .5; }
.status:empty { display: none; }
.status[data-error="true"] { color: #E09A4F; }
.ergebnis { display: grid; gap: 18px; justify-items: start; width: 100%; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--linie); scroll-margin-top: calc(var(--kopf) + 24px); }
.ergebnis[hidden] { display: none; }
.punkte b { font-size: var(--gross); font-weight: 500; line-height: .9; letter-spacing: -.045em; }
.punkte span { margin-left: 12px; }
.bereiche { display: grid; gap: 28px; width: 100%; }
.bereiche + .mittel { margin-top: 28px; }
.bereiche h3 { margin-bottom: 6px; font-size: var(--lese); font-weight: 600; }
.bereiche li { display: grid; grid-template-columns: 1.7em 1fr; padding: 10px 0; border-top: 1px solid var(--linie); font-size: var(--lese); }
.bereiche small { display: block; font-size: var(--klein); opacity: .7; }
.bereiche li[data-pass="false"] > span:first-child { color: #E09A4F; }

/* Fragen */
.fragen { gap: 0 !important; width: 100%; max-width: 40em; }
.fragen details { width: 100%; border-top: 1px solid var(--linie); }
.fragen details:last-child { border-bottom: 1px solid var(--linie); }
.fragen summary { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -.02em; list-style: none; cursor: pointer; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; opacity: .6; }
.fragen [open] summary::after { content: "–"; }
.fragen details p { padding-bottom: 22px; max-width: 34em; opacity: .85; }

/* Fallseite: echte Live-Ansichten und die Bildwelt */
.ansichten { display: grid; gap: clamp(28px, 4vw, 64px); padding: var(--abstand) var(--rand) 0; }
.ansichten > h2, .bilder > h2 { opacity: .7; }
/* Keine Ansicht ist höher als der Schirm. Die Breite folgt aus dem Bildformat (--r), der Platz steht vor dem Laden fest. */
.ansichten figure { justify-self: center; width: min(100%, calc((100svh - var(--kopf) - 90px) * var(--r))); }
.ansichten img { width: 100%; height: auto; }
.ansichten figcaption { margin-top: 10px; opacity: .7; }
.ansichten .hoch { width: min(26%, calc((100svh - var(--kopf) - 90px) * var(--r))); } /* Handy-Ansicht steht wie das Fenster auf der Achse */
.bilder { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rand); padding: var(--abstand) var(--rand) 0; }
.bilder > h2, .bilder .voll { grid-column: 1 / -1; }
.bilder img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bilder .voll img { aspect-ratio: 16 / 8; }

/* Schluss und Fusszeile */
.schluss { padding-top: var(--abstand); }
.schluss > h2 { padding-inline: var(--rand); font-size: var(--gross); font-weight: 500; font-stretch: 96%; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.schluss .zeile { padding-top: clamp(28px, 4vw, 56px); }
.fuss { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 40px; margin-top: var(--abstand); padding: 0 var(--rand) 26px; line-height: 2; }
.fuss nav { display: grid; justify-items: start; }
.fuss a { display: inline-block; }
.fuss-recht { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 28px; opacity: .7; }
.fuss-recht { line-height: 1.5; }
.fuss-recht > * { padding-block: 4px; }

/* Werkzeug Signatur-Editor: eigene Werkzeug-Stile, hier die Anbindung an die Schriftstufen der Seite */
.werkzeug { padding: calc(var(--abstand) * .5) var(--rand) 0; --nla-line: var(--linie); --nla-sage: var(--salbei); --nla-copper: #C77D2E; }
.werkzeug :is(.sig-kicker, .sig-copy, .sig-download, .sig-compare-link, .sig-designs-heading > button, .sig-design-card > button, .sig-design-card-heading > span, .sig-template-description, .sig-status, .sig-field label) { font-size: var(--klein); letter-spacing: 0; }
.werkzeug :is(.sig-template-heading small, .sig-field label span, small) { font-size: 12px; }
.werkzeug .sig-template-heading small { opacity: 1; color: var(--kalk); }
.werkzeug :is(.sig-panel-heading h2, .sig-designs h2, .sig-design-card h3) { font-size: var(--mittel); font-weight: 400; letter-spacing: -.03em; }
@media (min-width: 1101px) { .werkzeug .sig-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.werkzeug .sig-design-card { display: flex; flex-direction: column; }
.werkzeug .sig-design-card > button { margin-top: auto; }
.werkzeug :is(strong, b, h3) { font-weight: 600; }
.werkzeug .sig-template-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 34px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }

/* Seitenwechsel: Die alte Seite schliesst sich zum Strich, die neue öffnet sich aus ihm. Die Kopfzeile bleibt stehen. */
::view-transition { background: var(--graphit); }
::view-transition-old(root) { animation: wechsel-zu .32s var(--ease) both; }
::view-transition-new(root) { animation: wechsel-auf .9s var(--ease) .22s both; }
@keyframes wechsel-zu { to { clip-path: inset(0 50%); } }
@keyframes wechsel-auf { from { clip-path: inset(0 50%); } to { clip-path: inset(0); } }

/* Ohne Zeiger (Handy, Tablet) und auf schmalen Schirmen: kein Überfahren, jeder Eintrag zeigt sein Bild */
@media (max-width: 799px), (hover: none) {
  .liste ul { display: grid; grid-template-columns: 1fr 1fr; gap: 44px var(--rand); }
  .liste a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .liste .name { font-size: clamp(30px, 4.4vw, 56px); }
  .art { text-align: left; opacity: .7; }
  .liste .fenster { position: relative; inset: auto; transform: none; order: -1; width: 100%; height: auto; aspect-ratio: 4 / 5; margin-bottom: 10px; clip-path: none; }
  .liste .fenster video { display: none; }
}

/* Handy: abgebaut statt verkleinert */
@media (max-width: 799px) {
  :root { --gross: clamp(40px, 13.4vw, 84px); }
  .hero h1 { font-size: min(clamp(34px, 11.4vw, 84px), 17svh); }
  .buehne, .buehne.ohne-bild { display: flex; flex-direction: column; gap: 14px; height: auto; min-height: 0; padding: calc(var(--kopf) + 20px) var(--rand) 0; }
  .buehne.ohne-bild .strich { align-self: center; order: -5; height: 22svh; min-height: 110px; }
  .buehne > :not(.strich, .fenster) { position: static; transform: none; width: auto; }
  .buehne :is(.buehne-links, .buehne-rechts) { align-self: stretch; }
  .buehne .fenster { width: 66%; height: auto; aspect-ratio: 4 / 5; margin: 0 auto 6px; order: -3; }
  .buehne .brot { order: -4; }
  .buehne .legende { order: -2; width: 66%; margin: -6px auto 10px; }
  .buehne-rechts { order: -1; justify-items: start; text-align: left; opacity: .7; }
  .buehne-rechts span:empty { display: none; }
  .buehne :is(h1, h2) { order: 0; mix-blend-mode: normal; }
  .buehne-links { order: 1; }
  .weitere a { grid-template-columns: 1fr; row-gap: 8px; }
  .zeile { grid-template-columns: 1fr; row-gap: 14px; }
  .zeile > h2, .zeile > p:first-child { opacity: .7; }
  .ansichten .hoch { width: min(66%, calc((100svh - var(--kopf) - 90px) * var(--r))); }
  .bilder { grid-template-columns: 1fr; }
  .bilder img, .bilder .voll img { aspect-ratio: 16 / 9; }
  .fuss { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .fuss { line-height: 2.5; }
  .fuss-recht > *, .link { padding-block: 9px; }
  .fuss-recht span { flex-basis: 100%; padding-bottom: 0; }
  .link { padding-bottom: 6px; }
}

/* Hochkant (Handy, Tablet hochkant): Der Film steht als Fenster 4:5 über dem Titel und nimmt die Höhe, die der Text frei lässt */
@media (max-width: 799px), (max-aspect-ratio: 1/1) {
  .hero { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; height: auto; min-height: max(100svh, 520px); padding: calc(var(--kopf) + 12px) var(--rand) 22px; }
  .film { position: relative; inset: auto; order: -2; flex: 1 1 0; align-self: center; width: auto; height: auto; min-height: 150px; max-height: 95vw; aspect-ratio: 4 / 5; clip-path: none; animation-name: fenster; }
  .offen .film { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; min-height: 0; max-height: none; aspect-ratio: auto; clip-path: none; animation: fenster-ganz var(--auf) var(--ease) both; }
  .hero::after { background: linear-gradient(to bottom, rgba(11, 25, 26, 0) 26%, rgba(11, 25, 26, .5) 56%, rgba(11, 25, 26, .78)); }
  .hero h1, .hero-links, .hero-rechts { z-index: 2; }
  .hero h1, .hero-links { position: relative; inset: auto; transform: none; width: auto; max-width: 34em; }
  .hero h1 { order: -1; max-width: none; white-space: normal; text-wrap: balance; }
  .hero-links { padding-bottom: 24px; }
  .hero-rechts { top: auto; bottom: 16px; transform: none; }
  .hero-rechts span { display: none; }
}

@media (min-width: 800px) and (max-aspect-ratio: 1/1) {
  .buehne, .buehne.ohne-bild { display: flex; flex-direction: column; gap: 14px; height: auto; min-height: 0; padding: calc(var(--kopf) + 20px) var(--rand) 0; }
  .buehne > :not(.strich, .fenster) { position: static; transform: none; width: auto; }
  .buehne :is(.buehne-links, .buehne-rechts) { align-self: stretch; }
  .buehne .fenster { width: min(50%, 440px); margin: 0 auto 6px; order: -3; }
  .buehne .brot { order: -4; }
  .buehne .legende { order: -2; width: min(50%, 440px); margin: -6px auto 10px; }
  .buehne-rechts { order: -1; justify-items: start; text-align: left; opacity: .7; }
  .buehne :is(h1, h2) { order: 0; }
  .buehne-links { order: 1; }
  .buehne.ohne-bild .strich { align-self: center; order: -5; height: 22svh; min-height: 110px; }
  .ansichten .hoch { width: min(50%, calc((100svh - var(--kopf) - 90px) * var(--r))); }
}

/* Sehr breite Schirme: Lese- und Beschriftungsgrösse wachsen mit */
@media (min-width: 2000px) {
  :root { --lese: 20px; --klein: 16px; }
}

@media (max-width: 559px) {
  .liste ul { grid-template-columns: 1fr; }
  .liste .name { font-size: clamp(34px, 10.5vw, 60px); }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
