/* samirweber.com: photo first, glass on top, black around it, white and glass only (like Mirra). One column,
   built for the phone; wider screens get the same column centred. Company colours come from /firmen.css
   (generated from inhalt/karte.json). Tap targets are at least 44 x 44 px and no text is under 12 px
   (e2e/karte.spec.ts checks the public pages). */

/* Switzer (Indian Type Foundry, ITF Free Font License, fonts/FFL-switzer.txt): the official variable WOFF2,
   unmodified, self-hosted as the license allows. */
@font-face {
  font-family: "Switzer";
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/Switzer-Variable.woff2") format("woff2");
}

:root {
  --bg: #070809;
  --ink: #ffffff;
  --mut: rgba(255, 255, 255, 0.7);
  --glas: rgba(255, 255, 255, 0.1);
  --glas-hover: rgba(255, 255, 255, 0.18);
  --linie: rgba(255, 255, 255, 0.16);
  --glanz: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --tiefe: 0 28px 56px -28px rgba(0, 0, 0, 0.8);
  --feder: cubic-bezier(0.22, 1, 0.36, 1);
  --schrift: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rand: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px / 1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
}

/* Beats every display rule below (share buttons, slide controls until karte.js shows them). */
[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: hidden must win over any class that sets display */
  display: none !important;
}

a {
  color: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Glass ---------- */

/* Small glass surfaces: translucent white, hairline border, a highlight along the top edge. Only the card
   itself frosts what is behind it (backdrop-filter); on the small surfaces it would add nothing visible. */
.knopf,
.wege a,
.pille,
.zurueck,
.anlass,
.chips li,
.slide-link,
.pfeil,
.vera-mark,
.blase.von-vera {
  border: 1px solid var(--linie);
  background: var(--glas);
  box-shadow: var(--glanz);
}

/* Pill-shaped tap targets. */
.knopf,
.wege a,
.pille,
.zurueck,
.slide-link,
.fuss a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
}

/* Light that follows the mouse (karte.js sets --mx and --my; shown in the mouse block below). */
.glas::before,
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, -30%),
    rgba(255, 255, 255, 0.14),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* ---------- Start ---------- */

.karte {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* The photo fills the first screen and the card overlaps its foot by --ueberlappung: 96 px, or more where the
   screen is too short to show name, title and the two main buttons (about 150 px) below the photo (e2e: "Termin im
   ersten Bildschirm"). 1.5 is the 2:3 stage of scripts/bilder.py, --oben the top padding of the column. Scrolling,
   the photo stays put (sticky) and the card slides up over it, ending below the chin, until the end of the stage
   takes both along (e2e: "Karte gleitet beim Scrollen über das stehende Foto", "Karte lässt das Gesicht frei"). */
.buehne {
  --ueberlappung: max(96px, calc(min(100vw, 480px) * 1.5 + var(--oben, 0px) + 150px - 100svh));
}

/* Clips the photo when it zooms on scroll, so the page never scrolls sideways. */
.buehne picture {
  position: sticky;
  top: 0;
  display: block;
  overflow: hidden;
}

/* The file is already cut by scripts/bilder.py; width and height in the markup reserve the space. */
.buehne-bild {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

.glas {
  position: relative;
  z-index: 1;
  margin: calc(-1 * var(--ueberlappung)) 10px 0;
  padding: 18px 16px 16px;
  display: grid;
  gap: 14px;
  /* Tint measured against the brightest spot behind name and title along the whole slide (portrait of 09.11.2026,
     at least 6.2:1 for the title; 0.56 also held 4.8:1 over a light floor in a wider crop). */
  background: rgba(18, 18, 20, 0.56);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 28px;
  box-shadow: var(--glanz), var(--tiefe);
}

/* Edge light: a 1px ring, brighter where the light comes from (top left). */
.glas::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.05) 65%,
    rgba(255, 255, 255, 0.2)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Name, the title below. */
.kopf {
  display: grid;
  gap: 4px;
}

.name {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.titel {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.9rem;
  line-height: 1.35;
}

.knoepfe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.knopf {
  padding: 0 12px;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
}

.knopf.primaer {
  background: rgba(255, 255, 255, 0.94);
  color: #0b0b0c;
  border-color: transparent;
  box-shadow: 0 8px 24px -12px rgba(255, 255, 255, 0.5);
}

.knopf.breit {
  margin-top: 8px;
}

/* Call, message, mail, LinkedIn and (once released) the CV: glass pills sharing one row. */
.wege {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}

.wege a {
  width: 100%;
}

/* The CV keeps its word: twice as wide as an icon button. */
.mit-text {
  grid-column: span 2;
}

.mit-text a {
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Firmen ---------- */

.firmen {
  margin-top: 28px;
}

.abschnitt-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 var(--rand) 12px;
}

.abschnitt-kopf h2 {
  font-size: 1.1rem;
}

.hinweis {
  color: var(--mut);
  font-size: 0.85rem;
}

/* The bottom padding leaves room for the coloured glow under each slide inside the scroll box. Row padding
   and scroll padding are both --rand; karte.js relies on that to find where a slide snaps. */
.slides {
  list-style: none;
  margin: 0;
  padding: 4px var(--rand) 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rand);
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

/* --farbe and --tief come from /firmen.css; the defaults keep a slide readable if that file does not arrive. */
.slide {
  --farbe: #1d2b30;
  --tief: var(--bg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-snap-align: start;
  min-height: 204px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--linie);
  border-radius: 24px;
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
    linear-gradient(155deg, var(--farbe) 0%, var(--tief) 100%);
  box-shadow:
    var(--glanz),
    0 18px 36px -22px color-mix(in srgb, var(--farbe), transparent 15%);
}

/* Glare: a soft diagonal band, as if light falls across glass. */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.07) 48%, transparent 62%);
  pointer-events: none;
}

.slide-logo {
  height: 26px;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: auto;
  padding-bottom: 20px;
  box-sizing: content-box;
}

.slide h3 {
  font-size: 1.1rem;
}

.slide p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

.slide .rolle {
  font-size: 0.82rem;
  color: var(--mut);
}

/* The website link: a small pill with an icon. On the coloured slide the glass needs a little more white. */
.slide-link {
  --linie: rgba(255, 255, 255, 0.2);
  --glas: rgba(255, 255, 255, 0.12);
  --glas-hover: rgba(255, 255, 255, 0.2);
  gap: 6px;
  margin-top: 12px;
  align-self: flex-start;
  padding: 0 14px 0 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.slide-link .icon {
  width: 15px;
  height: 15px;
}

/* One dot per company (a 44 px target each), arrows only for the mouse. Hidden until karte.js takes over. */
.blaettern {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-inline-size: 0;
  margin: 0;
  padding: 0 var(--rand);
  border: 0;
}

.punkte {
  display: flex;
}

.punkt,
.pfeil {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.punkt {
  border: 0;
  background: none;
}

.punkt::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.punkt[aria-current="true"]::before {
  width: 24px;
  background: var(--ink);
}

.pfeil {
  display: none;
  border-radius: 50%;
}

.pfeil[aria-disabled="true"],
.vera-senden:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- Teilen ---------- */

.teilen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 28px var(--rand) 0;
}

.pille {
  gap: 8px;
  padding: 0 18px 0 16px;
  font: 500 0.9rem var(--schrift);
}

.pille .icon {
  width: 18px;
  height: 18px;
}

/* Confirmation after "Link kopieren" (karte.js sets it for two seconds). */
.pille.ok {
  border-color: rgba(255, 255, 255, 0.6);
  background: var(--glas-hover);
}

.fuss {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 20px var(--rand) 0;
  color: var(--mut);
  font-size: 0.85rem;
}

.fuss a {
  padding: 0 10px;
}

/* ---------- Unterseiten ---------- */

.seite {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px var(--rand) calc(32px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 18px;
  align-content: start;
}

.zurueck {
  justify-self: start;
  gap: 4px;
  padding: 0 16px 0 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.seite h1 {
  font-size: clamp(1.7rem, 6.5vw, 2.2rem);
}

.seite h2 {
  font-size: 1.1rem;
  margin-top: 8px;
}

.recht p,
.recht address {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  max-width: 62ch;
}

.stand {
  color: var(--mut);
  font-size: 0.85rem;
}

/* QR */

.teilen-seite {
  justify-items: center;
  text-align: center;
}

.qr {
  margin: 12px 0 0;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.qr svg {
  width: min(76vw, 320px);
  height: auto;
  padding: 14px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 0 0 8px var(--glas),
    0 0 0 9px var(--linie),
    var(--tiefe);
}

.qr figcaption {
  display: grid;
  gap: 2px;
}

.qr figcaption strong {
  font-size: 1.2rem;
  font-weight: 600;
}

.qr-link {
  color: var(--mut);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.anlass {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: min(100%, 360px);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.anlass span {
  color: var(--mut);
}

.teilen-seite .teilen {
  padding-top: 4px;
}

/* Lebenslauf */

.ll-kopf {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ll-kopf img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--linie);
}

.ll-kopf p {
  color: var(--mut);
  font-size: 0.9rem;
}

.zeitleiste {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--linie);
  display: grid;
  gap: 18px;
}

.zeitleiste li {
  position: relative;
  display: grid;
  gap: 2px;
}

.zeitleiste li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--glas);
}

.zeit {
  color: var(--mut);
  font-size: 0.8rem;
  font-weight: 500;
}

.zeitleiste h3 {
  font-size: 1rem;
}

.bei {
  color: var(--mut);
  font-weight: 500;
}

.zeitleiste p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.ll-zwei {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.chips {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ---------- Vera (ADR 0006), as in the preview Samir approved on 09.11.2026 ---------- */

/* The glass bar of the field on the photo and of the input in the dialog: text left, a round send on the right. */
.frage-feld,
.vera-eingabe {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)), rgba(24, 24, 28, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* The field sits on the photo, 12 px above the glass card, and rides up with the card on scroll; the card stays where
   it was (e2e: "Vera: Feld auf dem Foto unter dem Kinn"). */
.frage-feld {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(100% - 40px);
  height: 56px;
  margin: calc(-1 * var(--ueberlappung) - 68px) 20px 0;
  padding: 0 8px 0 22px;
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 30px -14px rgba(0, 0, 0, 0.75);
  font-size: 1rem;
  text-align: left;
}

/* Only next to a visible field: without JavaScript the field stays hidden and the card keeps its place. */
.frage-feld:not([hidden]) + .glas {
  margin-top: 12px;
}

.frage-text {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
}

.frage-los,
.vera-senden {
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--ink);
}

.frage-los {
  width: 40px;
  height: 40px;
}

.vera-senden {
  width: 44px;
  height: 44px;
}

/* The dialog: the whole screen on a phone, a glass window on wide screens. */
html:has(dialog.vera[open]) {
  overflow: hidden;
}

dialog.vera {
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog.vera::backdrop {
  background: rgba(7, 8, 9, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.vera-blatt {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(18, 18, 20, 0.84);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: var(--glanz);
}

@media (min-width: 720px) {
  dialog.vera {
    height: min(760px, calc(100% - 64px));
    margin: auto;
  }

  .vera-blatt {
    border: 1px solid var(--linie);
    border-radius: 28px;
    overflow: hidden;
  }
}

.vera-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px var(--rand);
  border-bottom: 1px solid var(--linie);
}

.vera-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.vera-name {
  flex: 1;
  min-width: 0;
}

.vera-name h2 {
  font-size: 1.05rem;
}

.vera-name p,
.vera-zaehler {
  color: var(--mut);
  font-size: 0.8rem;
}

.vera-zaehler {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vera-zu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.vera-verlauf {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px var(--rand);
}

.blase {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.blase.von-vera {
  align-self: flex-start;
  border-top-left-radius: 6px;
}

.blase.von-dir {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #0b0b0c;
}

.blase.schreibt {
  color: var(--mut);
}

.blase.hinweis {
  align-self: center;
  max-width: none;
  padding: 0;
  color: var(--mut);
  font-size: 0.8rem;
  text-align: center;
}

.blase-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.blase-aktionen .pille {
  padding: 0 14px;
  font-size: 0.85rem;
}

.vera-eingabe {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 var(--rand);
  padding: 4px 6px 4px 20px;
}

.vera-eingabe:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
}

.vera-eingabe input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  /* 16 px keeps iOS from zooming into the field. */
  font-size: 16px;
}

.vera-eingabe input::placeholder {
  color: var(--mut);
}

/* After the last question (#27) the field stays in place, locked. */
.vera-eingabe input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* The message form (#27, karte.js): no questions, so no question field and no question counter. Vera does not speak
   here: no line about her under the title or in the footer (the privacy link stays), and the card needs no title of its
   own under the dialog's «Nachricht an …». */
dialog.vera[data-modus="pause"]
  :is(.vera-eingabe, .vera-zaehler, .vera-zeichen, .vera-name p, .vera-ki, .kk-titel) {
  display: none;
}

/* Character counters (#27): empty, and so without height, until a field nears its maxlength (karte.js). */
.zeichen {
  color: var(--mut);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.vera-zeichen:not(:empty) {
  padding: 0 calc(var(--rand) + 20px) 6px;
}

.kk-anliegen .zeichen:not(:empty) {
  padding-top: 4px;
}

/* The contact card in the conversation (#23): Vera fills it, the visitor checks and sends it. */
.kontakt-karte {
  align-self: stretch;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--linie);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--glanz);
}

.kk-titel {
  font-weight: 600;
}

.kk-feld {
  display: grid;
  gap: 4px;
  color: var(--mut);
  font-size: 0.8rem;
}

.kk-feld input,
.kk-feld textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  /* 16 px keeps iOS from zooming into the field. */
  font-size: 16px;
  resize: vertical;
}

.kk-hinweis,
.kk-fehler {
  font-size: 0.8rem;
}

.kk-hinweis {
  color: var(--mut);
}

.vera-fuss {
  padding: 8px var(--rand) 12px;
  color: var(--mut);
  font-size: 0.75rem;
  text-align: center;
}

.vera-fuss a {
  color: var(--ink);
}

.nur-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Mouse or touch ---------- */

/* With a mouse: hover states and arrows instead of the "wischen" hint. Touch screens swipe and keep the hint.
   karte.js asks the same query before it moves the pointer light. */
@media (hover: hover) and (pointer: fine) {
  .knopf:hover,
  .wege a:hover,
  .pille:hover,
  .zurueck:hover,
  .slide-link:hover,
  .vera-zu:hover,
  .pfeil:not([aria-disabled="true"]):hover {
    background: var(--glas-hover);
  }

  .knopf.primaer:hover {
    background: var(--ink);
  }

  .fuss a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Only once the arrows are there: without JavaScript the hint stays. */
  .firmen:has(.blaettern:not([hidden])) .hinweis {
    display: none;
  }

  .pfeil {
    display: grid;
  }
}

/* Press without motion: a brighter fill (the motion block below adds a slight scale). */
.knopf:active,
.wege a:active,
.pille:active,
.zurueck:active,
.slide-link:active,
.vera-zu:active,
.pfeil:not([aria-disabled="true"]):active {
  background: var(--glas-hover);
}

.knopf.primaer:active {
  background: var(--ink);
}

.fuss a:active {
  color: var(--ink);
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .karte {
    --oben: 40px;
    padding-top: var(--oben);
  }

  .buehne picture {
    border-radius: 32px 32px 0 0;
  }

  .slides {
    grid-auto-columns: 62%;
  }
}

/* ---------- Motion, only for people who did not ask for less ---------- */

@media (prefers-reduced-motion: no-preference) {
  .knopf,
  .wege a,
  .pille,
  .zurueck,
  .slide-link,
  .pfeil,
  .fuss a,
  .frage-feld,
  .vera-senden,
  .vera-zu {
    transition:
      transform 0.2s var(--feder),
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease;
  }

  /* Press: give way quickly, spring back a little slower. */
  .knopf:active,
  .wege a:active,
  .pille:active,
  .zurueck:active,
  .slide-link:active,
  .pfeil:not([aria-disabled="true"]):active,
  .frage-feld:active,
  .vera-senden:not(:disabled):active,
  .vera-zu:active {
    transform: scale(0.97);
    transition-duration: 0.08s;
  }

  .punkt::before {
    transition:
      width 0.3s var(--feder),
      background-color 0.3s ease;
  }

  /* Arrival: the glass card rises, the companies follow. Fill "backwards" only, so no transform stays behind. */
  .glas {
    animation: auftritt 0.6s var(--feder) 0.08s backwards;
  }

  .slide {
    animation: auftritt 0.6s var(--feder) 0.22s backwards;
  }

  .slide:nth-child(2) {
    animation-delay: 0.27s;
  }

  .slide:nth-child(3) {
    animation-delay: 0.32s;
  }

  .frage-feld {
    animation: auftritt 0.6s var(--feder) 0.16s backwards;
  }

  dialog.vera[open] .vera-blatt {
    animation: auftritt 0.38s var(--feder);
  }

  .blase {
    animation: auftritt 0.32s var(--feder);
  }

  /* While scrolling down, the portrait steps back a little behind the card. It grows from the bottom edge, so
     the fade-out at the bottom never slides under the clip and leaves a hard line. */
  @supports (animation-timeline: scroll()) {
    .buehne-bild {
      transform-origin: 50% 100%;
      animation: zuruecktreten linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70vh;
    }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .glas:hover::before,
  .slide:hover::before {
    opacity: 1;
  }
}

@keyframes auftritt {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes zuruecktreten {
  to {
    transform: scale(1.06);
    opacity: 0.6;
  }
}

/* On phones narrower than 375 px the card slides up far enough to carry the field over the face. There the field fades
   out while the card rises, then stops taking taps (e2e: "Vera: Feld bleibt vom Gesicht weg"). Opacity only, so it
   holds with reduced motion too. Later in the file than the arrival animation, so it wins on these screens. */
@media (max-width: 374px) {
  @supports (animation-timeline: scroll()) {
    .frage-feld {
      animation: ausblenden linear both;
      animation-timeline: scroll(root);
      animation-range: 0 80px;
    }
  }
}

@keyframes ausblenden {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
