/* =========================================================================
   Let's Do One — Design-System als Code
   =========================================================================
   Eine Datei, kein Bauschritt, keine externe Anfrage. Die Tokens stammen aus
   LETSDO-ONE.md, Abschnitt 7; wer sie ändern will, ändert sie dort und trägt
   sie hierher — nicht umgekehrt.

   Aufbau:
     1  Schriften        selbst gehostet, mit local()-Rückfall
     2  Tokens           Farben, Maße, Typo
     3  Grundlage        Reset, Body, Fokus
     4  Layout           mitte, abschnitt
     5  Typografie       eyebrow, Überschriften
     6  Bauteile         Knopf, Würfel, Karte, Tarif, …
     7  Seitenteile      Kopf, Hero, Footer
     8  Schmale Schirme

   Grundhaltung dark-first: die helle Fassung gibt es nicht, weil es sie im
   Produkt auch nicht gibt. Rot leuchtet nur am Boden oder auf einer Kante,
   nie als Fläche — deshalb steht `background: var(--rot)` in dieser Datei
   ausschließlich an Aktionsknöpfen.
   ========================================================================= */


/* 1 · Schriften ---------------------------------------------------------- */
/* Selbst gehostet, ausnahmslos. Die Suite verkauft Datenhoheit; eine
   Schriftanfrage an Google widerspricht dem im ersten Seitenaufruf.
   `local()` steht zuerst: wer die Schrift installiert hat, lädt gar nichts.
   Fehlt die Datei, greift der Systemstapel — die Seite bleibt lesbar.
   Die Dateien liegen unter assets/fonts/, siehe assets/fonts/README.md. */

@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk'), url('/assets/fonts/SpaceGrotesk-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: local('Inter'), url('/assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: local('JetBrains Mono'), url('/assets/fonts/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}


/* 2 · Tokens ------------------------------------------------------------- */

:root {
  /* Flächen */
  --grund:    #050508;
  --flaeche1: #0E0E13;
  --flaeche2: #18181F;
  --kante:    #23232C;

  /* Text */
  --text:      #F4F4F6;
  --text-2:    #A6A7AE;
  --text-dim:  #62636B;

  /* Rot — Aktion, nie Fläche */
  --rot:        #E41C22;
  --rot-hover:  #FF3B42;
  --rot-aktiv:  #B4151A;
  --rot-text:   #FF5A60; /* Rot als kleiner Text: 7,2:1 auf dem Grund (Brand Board) */
  --fehler:     #FF5A60;

  /* Produktnuancen: Icon-Detail, aktiver Navigationszustand, Tag. Sonst nie. */
  --nuance: var(--text-2);

  /* Würfel-Platzhalter */
  --wuerfel-hell:   #2A2A34;
  --wuerfel-mittel: #1C1C24;
  --wuerfel-dunkel: #131319;
  --wuerfel-kante:  #34343F;

  /* Typografie */
  /* Inter als erster Rückfall: Zeichen, die Space Grotesk nicht hat (∞, →),
     kommen aus der zweiten eigenen Schrift statt aus der des Systems. */
  --schrift-display: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --schrift-text:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --schrift-daten:   'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Maße */
  --radius:      4px;
  --knopf-hoehe: 44px;
  --leiste:      72px;
  --breite:      1180px;
  --breite-schmal: 760px;

  --raum-1: 8px;
  --raum-2: 16px;
  --raum-3: 24px;
  --raum-4: 40px;
  --raum-5: 64px;
  --raum-6: 96px;
}

.baustein--keycube  { --nuance: #E8A33C; }
.baustein--homecube { --nuance: #5B8DB8; }
.baustein--teamcube { --nuance: #4FA37A; }
.baustein--icard    { --nuance: #C9CDD4; }


/* 3 · Grundlage ---------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 var(--raum-2); }

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

h1, h2, h3 {
  font-family: var(--schrift-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

/* Überschriften ohne Witwe: kein einzelnes Wort allein in der letzten Zeile.
   Nur auf den Marketing-Seiten — die Mappe setzt ihre Typografie selbst.
   Kleine Zwischenüberschriften bekommen etwas mehr Zeilenabstand, sonst
   kleben zwei Zeilen aneinander. */
html:not(.seite-vertrieb) :is(h1, h2, h3, .hero__zeile, .abschnitt__titel .zeile) { text-wrap: balance; }
html:not(.seite-vertrieb) h3 { line-height: 1.25; }
html:not(.seite-vertrieb) main p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--rot-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

.sprungmarke {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--raum-2) var(--raum-3);
  background: var(--flaeche2);
  z-index: 100;
}
.sprungmarke:focus { left: 0; }

/* Für Screenreader da, fürs Auge nicht (Beschriftungen, das Feld hinter dem
   Pinpad). Fokussierbar bleibt es trotzdem. */
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* 4 · Layout ------------------------------------------------------------- */

.mitte {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--raum-3);
}
.mitte--schmal { max-width: var(--breite-schmal); }

.abschnitt { padding-block: var(--raum-6); }

/* Flächenwechsel statt Trennlinien: der Seitenrhythmus entsteht aus dem
   Grund, nicht aus Strichen. */
.abschnitt--flaeche { background: var(--flaeche1); }

.abschnitt__kopf { max-width: 62ch; margin-bottom: var(--raum-5); }
.abschnitt__kopf--mittig { margin-inline: auto; text-align: center; }

.abschnitt__titel { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
/* 3.1 rem: „Nicht uns, nicht der Cloud." steht auf dem Desktop als eine
   Zeile neben den Siegeln — jede Zeile ein Satz, wie gesetzt. */
.abschnitt__titel--gross { font-size: clamp(2rem, 4.3vw, 3.1rem); }
.abschnitt__titel .zeile { display: block; }
.abschnitt__titel .zeile--rot { color: var(--rot); }

.abschnitt__unter {
  margin-top: var(--raum-2);
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 58ch;
}

.abschnitt__aktion { margin-top: var(--raum-4); text-align: center; }


/* 5 · Typografie --------------------------------------------------------- */

.eyebrow {
  font-family: var(--schrift-daten);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 var(--raum-2);
}

.marke-tag {
  display: inline-block;
  margin: var(--raum-2) 0 0;
  padding: 2px 10px;
  border: 1px solid color-mix(in srgb, var(--nuance) 45%, transparent);
  border-radius: 999px;
  color: var(--nuance);
  font-family: var(--schrift-daten);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* 6 · Bauteile ----------------------------------------------------------- */

/* Knopf — 44 px hoch, Radius 4, drei Stufen. */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--knopf-hoehe);
  padding: 0 var(--raum-3);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--schrift-text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.knopf--klein { min-height: 36px; padding: 0 var(--raum-2); font-size: 0.9rem; }

.knopf--primaer { background: var(--rot); color: #fff; }
.knopf--primaer:hover { background: var(--rot-hover); }
.knopf--primaer:active { background: var(--rot-aktiv); }

.knopf--sekundaer { border-color: var(--kante); color: var(--text); background: transparent; }
.knopf--sekundaer:hover { border-color: var(--text-dim); background: var(--flaeche2); }

.knopf--leise { color: var(--text-2); background: transparent; }
.knopf--leise:hover { color: var(--text); }

/* Würfel — die Originale in vier Größen, siehe partials/wuerfel.php.
   Nur die Breite ist gesetzt: die Höhe folgt der viewBox (Produkt-Icons
   100×110, Marke 160×160), so bleibt nichts gestaucht. */
.wuerfel { display: block; height: auto; flex: none; }
.wuerfel--nav   { width: 24px; }
.wuerfel--fuss  { width: 16px; }
.wuerfel--karte { width: 48px; }
.wuerfel--hero  { width: 112px; }
.wuerfel--gross { width: 132px; } /* ältere Schreibweise */

/* Karte — das wiederverwendete Element. */
.karte-flaeche {
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  padding: var(--raum-3);
}

/* Produktraster */
.produktraster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--raum-2);
}
.produktkarte {
  /* Spalte statt Block: „Mehr erfahren" sitzt in allen vier Karten auf
     derselben Linie, egal wie lang der Text darüber ist. */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  padding: var(--raum-3);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.produktkarte:hover { border-color: color-mix(in srgb, var(--nuance) 55%, var(--kante)); }
/* Beim Überfahren hebt sich das Icon um 2 px — nicht die Karte (Brand Board, Produkt-Card). */
.produktkarte__icon { display: block; width: 48px; }
.produktkarte .wuerfel { transition: transform 0.18s ease; }
.produktkarte:hover .wuerfel { transform: translateY(-2px); }
.produktkarte__mehr { display: inline-block; margin-top: auto; padding-top: var(--raum-3); color: var(--nuance); font-size: 0.92rem; font-weight: 500; }
.produktkarte:hover .produktkarte__mehr { text-decoration: underline; text-underline-offset: 4px; }
.produktkarte__name { font-size: 1.25rem; margin-top: var(--raum-3); }
.produktkarte__zeile { margin: var(--raum-1) 0 0; color: var(--text); }
.produktkarte__kurz { margin: var(--raum-2) 0 0; color: var(--text-2); font-size: 0.92rem; }

/* Schritte — nummerierte Reihe (01/02/03) */
.schritte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--raum-4);
}
.schritt { padding-top: var(--raum-3); border-top: 1px solid var(--kante); }
.schritt__nr {
  font-family: var(--schrift-daten);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--rot-text); /* Kleintext: 6,3 : 1 statt 4,1 */
  margin: 0 0 var(--raum-2);
}
.schritt__titel { font-size: 1.15rem; }
.schritt__text { margin-top: var(--raum-1); color: var(--text-2); font-size: 0.98rem; }

/* Belege — Merkmalsraster ohne Nummer. Offen gesetzt wie die Schritte: eine
   Linie über jedem Merkmal statt eines Kastens um jedes — acht graue Kästen
   nebeneinander sind ein Kartenfriedhof, acht Linien sind ein Raster. */
.belege {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--raum-4) var(--raum-4);
}
.belege--vier { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* Fünf Merkmale: drei und zwei statt vier und ein einzelnes. */
.belege--drei { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.beleg {
  padding-top: var(--raum-3);
  border-top: 1px solid var(--kante);
}
.beleg__titel { font-size: 1.15rem; }
.beleg__text { margin: var(--raum-1) 0 0; color: var(--text-2); font-size: 0.98rem; }

/* Tarife */
.tarife {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--raum-2);
  align-items: start;
}
.tarif {
  position: relative;
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  padding: var(--raum-4) var(--raum-3) var(--raum-3);
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Der empfohlene Tarif trägt das Rot auf der oberen Kante und einen leisen
   Schein am Boden — nie als Fläche. */
.tarif--empfohlen { border-color: color-mix(in srgb, var(--rot) 55%, var(--kante)); }
.tarif--empfohlen::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: var(--rot);
  border-radius: var(--radius) var(--radius) 0 0;
}
.tarif--empfohlen::after {
  content: '';
  position: absolute;
  inset: auto 12% -1px;
  height: 60px;
  background: radial-gradient(ellipse at bottom, color-mix(in srgb, var(--rot) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.tarif__band {
  position: absolute;
  top: 0;
  left: var(--raum-3);
  transform: translateY(-50%);
  margin: 0;
  padding: 2px 10px;
  background: var(--rot);
  color: #fff;
  border-radius: 999px;
  font-family: var(--schrift-daten);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tarif__name { font-size: 1.4rem; }
.tarif__zeile { margin: var(--raum-1) 0 var(--raum-3); color: var(--text-2); font-size: 0.95rem; }
/* Nebeneinander stehen die Preise auf einer Linie, auch wenn eine Zeile
   darüber umbricht. Nur auf den Marketing-Seiten; die Mappe hat eigene Maße. */
@media (min-width: 901px) {
  html:not(.seite-vertrieb) .tarif__zeile { min-height: calc(2 * 1.65em); }
}
/* Untereinander braucht das Band „Empfohlen" Luft zur Karte darüber. */
@media (max-width: 900px) {
  html:not(.seite-vertrieb) .tarife { row-gap: var(--raum-4); }
}
.tarif__preis { display: flex; align-items: baseline; gap: var(--raum-1); margin: 0 0 var(--raum-3); flex-wrap: wrap; }
.tarif__betrag { font-family: var(--schrift-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.tarif__einheit { color: var(--text-2); font-size: 0.9rem; }
.tarif__merkmale { display: grid; gap: var(--raum-1); margin-bottom: var(--raum-4); }
.tarif__merkmale li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.tarif__merkmale li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--text-dim);
}
.tarif__offen {
  margin-bottom: var(--raum-4);
  color: var(--text-2);
  font-size: 0.92rem;
  font-style: italic;
}
.tarif__cta { margin-top: auto; width: 100%; }

.preise__hinweis {
  margin: var(--raum-4) auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* Hardware-Positionen (HomeCube) */
.hardware {
  margin-top: var(--raum-5);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  padding: var(--raum-3);
  background: var(--flaeche1);
}
.hardware__titel { font-size: 1rem; margin-bottom: var(--raum-2); }
.hardware__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--raum-1) var(--raum-3); }
.hardware__posten { display: flex; justify-content: space-between; gap: var(--raum-2); padding-block: 6px; border-bottom: 1px solid var(--kante); }
.hardware__name { color: var(--text-2); font-size: 0.95rem; }
.hardware__preis { font-family: var(--schrift-daten); font-size: 0.9rem; color: var(--text-2); }

/* Zwei Welten (KeyCube) */
.welten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--raum-2); }
/* Spalte: der Screenshot steht in beiden Welten unten auf derselben Linie. */
.welt {
  display: flex;
  flex-direction: column;
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  padding: var(--raum-4) var(--raum-3);
}
.welt--innen { background: var(--flaeche1); border-color: color-mix(in srgb, var(--nuance, var(--kante)) 30%, var(--kante)); }
.welt__seite {
  font-family: var(--schrift-daten);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 var(--raum-1);
}
.welt__titel { font-size: 1.3rem; margin-bottom: var(--raum-3); }
.welt__punkte { display: grid; gap: var(--raum-2); }
.welt__punkte li { padding-top: var(--raum-2); border-top: 1px solid var(--kante); }
.welt__punkt-titel { display: block; font-weight: 500; }
.welt__punkt-text { display: block; color: var(--text-2); font-size: 0.95rem; }

/* Gegenüberstellung (HomeCube) */
.gegenueber { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--raum-2); }
.gegenueber__spalte { border: 1px solid var(--kante); border-radius: var(--radius); padding: var(--raum-3); background: var(--flaeche2); }
.gegenueber__spalte--gegen { opacity: 0.85; } /* 0.72 drückte den Text unter 4,5 : 1 */
.gegenueber__spalte--fuer { border-color: color-mix(in srgb, var(--nuance) 40%, var(--kante)); }
.gegenueber__titel { font-size: 1.1rem; margin-bottom: var(--raum-2); }
.gegenueber__punkte { display: grid; gap: var(--raum-1); }
.gegenueber__punkte li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 0.95rem; }
.gegenueber__spalte--gegen .gegenueber__punkte li::before { content: '×'; position: absolute; left: 4px; color: var(--text-dim); }
.gegenueber__spalte--fuer .gegenueber__punkte li::before { content: '✓'; position: absolute; left: 4px; color: var(--nuance); }

.rechtshinweis {
  margin-top: var(--raum-4);
  padding: var(--raum-2) var(--raum-3);
  border-left: 2px solid var(--kante);
  color: var(--text-2);
  font-size: 0.9rem;
  max-width: 68ch;
}

/* Kompatibilität */
.kompat { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--raum-2); }
.kompat__gruppe { border: 1px solid var(--kante); border-radius: var(--radius); padding: var(--raum-3); background: var(--flaeche2); }
.kompat__titel { font-size: 1.05rem; }
.kompat__text { margin: var(--raum-1) 0 var(--raum-2); color: var(--text-2); font-size: 0.95rem; }
.kompat__geraete { display: flex; flex-wrap: wrap; gap: var(--raum-1); }
.kompat__geraete .marke-tag { margin-top: 0; }

/* Ausblick (HomeCube) */
.abschnitt--ausblick { background: var(--flaeche1); }
.ausblick { display: grid; gap: var(--raum-1); }
.ausblick__punkt {
  position: relative;
  padding: var(--raum-2) var(--raum-2) var(--raum-2) 34px;
  border: 1px dashed var(--kante);
  border-radius: var(--radius);
  color: var(--text-2);
}
.ausblick__punkt::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 1.35em;
  width: 8px;
  height: 1px;
  background: var(--text-dim);
}
.haltung {
  margin: var(--raum-4) 0 0;
  padding-left: var(--raum-3);
  border-left: 2px solid var(--nuance, var(--kante));
}
.haltung p { margin: 0; color: var(--text); font-family: var(--schrift-display); font-size: 1.15rem; line-height: 1.45; }

/* Themes (KeyCube) */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--raum-2); }
.theme { background: var(--flaeche2); border: 1px solid var(--kante); border-radius: var(--radius); padding: var(--raum-3); }
.theme__bild {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: var(--raum-3);
  border-radius: var(--radius);
  margin-bottom: var(--raum-3);
  background: var(--grund);
  border: 1px solid var(--kante);
}
.theme--hell .theme__bild { background: #EFEFF2; border-color: #D8D8DE; }
.theme--marke .theme__bild { background: #17070A; border-color: color-mix(in srgb, var(--rot) 40%, transparent); }
.theme__avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--wuerfel-hell); }
.theme--hell .theme__avatar { background: #C9C9D2; }
.theme--marke .theme__avatar { background: color-mix(in srgb, var(--rot) 65%, #000); }
.theme__balken { width: 100%; height: 9px; border-radius: 2px; background: var(--flaeche2); }
.theme--hell .theme__balken { background: #DCDCE3; }
.theme--marke .theme__balken { background: #2A1013; }
.theme__balken--kurz { width: 55%; }
.theme__name { font-size: 1.05rem; }
.theme__rolle { margin: 2px 0 0; color: var(--text-2); font-size: 0.9rem; }

/* Beispielkarten (iCard) */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--raum-2); }
.karte { background: var(--flaeche2); border: 1px solid var(--kante); border-radius: var(--radius); padding: var(--raum-3); }
.karte__bild {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--raum-3);
  margin-bottom: var(--raum-3);
  background: var(--grund);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
}
.karte__avatar { width: 46px; height: 46px; border-radius: 999px; background: var(--wuerfel-hell); }
.karte__qr {
  width: 46px; height: 46px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, var(--wuerfel-hell) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(0deg, var(--wuerfel-hell) 0 4px, transparent 4px 8px);
  background-color: var(--flaeche2);
}
.karte__name { font-size: 1.05rem; }
.karte__rolle { margin: 2px 0 0; color: var(--text-2); font-size: 0.9rem; }

/* UI-Galerie (TeamCube) */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--raum-3); }
.galerie__stueck { margin: 0; }
.galerie__bild { background: var(--grund); border: 1px solid var(--kante); border-radius: var(--radius); padding: var(--raum-3); }
.ui-fenster { border: 1px solid var(--kante); border-radius: var(--radius); overflow: hidden; }
.ui-fenster__kopf {
  display: block;
  padding: 10px var(--raum-2);
  background: var(--flaeche2);
  border-bottom: 1px solid var(--kante);
  font-family: var(--schrift-daten);
  font-size: 0.78rem;
  color: var(--text-2);
}
.ui-fenster__leib { display: grid; gap: 8px; padding: var(--raum-2); }
.ui-zeile { height: 9px; border-radius: 2px; background: var(--flaeche2); }
.ui-zeile--kurz { width: 62%; }
.ui-aufgabe {
  margin-top: 6px;
  padding: 6px 10px;
  border-left: 2px solid var(--nuance);
  background: var(--flaeche2);
  border-radius: 0 2px 2px 0;
  font-family: var(--schrift-daten);
  font-size: 0.78rem;
  color: var(--text-2);
}
.galerie__stueck--handy .galerie__bild { max-width: 300px; }
.galerie__text { margin-top: var(--raum-2); color: var(--text-2); font-size: 0.95rem; }
.galerie__titel { display: block; color: var(--text); font-weight: 500; }

/* Datenhoheit / Nachhaltigkeit */
.abschnitt--datenhoheit { background: var(--flaeche1); }
/* Auf Grund, wenn der Abschnitt davor schon Fläche trägt (seiten/suite.php). */
.abschnitt--datenhoheit.abschnitt--grund { background: transparent; }
/* 1.4 : 1 — so steht „Deine Daten gehören dir." auf dem Desktop in einer Zeile. */
.datenhoheit { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--raum-5); align-items: center; }
/* Siegel als Liste zwischen Linien, nicht als Stapel grauer Kästen. */
.siegel { display: grid; }
.siegel__punkt {
  position: relative;
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid var(--kante);
  color: var(--text);
  font-size: 1.02rem;
}
.siegel__punkt:first-child { border-top: 1px solid var(--kante); }
.siegel__punkt::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 1px;
  background: var(--rot);
}
.kennzahlen { display: grid; gap: var(--raum-2); }
.kennzahl { padding: var(--raum-2) var(--raum-3); border-left: 2px solid var(--rot); background: var(--flaeche2); border-radius: 0 var(--radius) var(--radius) 0; }
.kennzahl__wert { font-family: var(--schrift-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
/* Ein einzelnes Zeichen (∞) ist in jeder Schrift nur so hoch wie ein
   Kleinbuchstabe — größer gesetzt, damit es neben „0 g" nicht verschwindet.
   Die Zeilenhöhe gleicht es aus: alle drei Kästen bleiben gleich hoch. */
.kennzahl__wert--zeichen { font-size: 3rem; line-height: 0.833; }
.kennzahl__einheit { margin: 0; color: var(--text-2); font-size: 0.9rem; }

/* FAQ */
.faq { display: grid; gap: var(--raum-1); }
.faq__punkt { border: 1px solid var(--kante); border-radius: var(--radius); background: var(--flaeche2); }
.faq__frage {
  padding: var(--raum-2) var(--raum-3);
  cursor: pointer;
  font-family: var(--schrift-display);
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
}
.faq__frage::-webkit-details-marker { display: none; }
.faq__frage::after { content: '+'; float: right; color: var(--text-2); font-family: var(--schrift-daten); }
.faq__punkt[open] .faq__frage::after { content: '–'; }
.faq__antwort { margin: 0; padding: 0 var(--raum-3) var(--raum-3); color: var(--text-2); }

/* Suite-Hinweis: links der Satz, rechts die drei anderen Bausteine */
.hinweis { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--raum-5); align-items: center; }
.eyebrow--marke { display: flex; align-items: center; gap: 8px; }
.textlink { position: relative; display: inline-block; margin-top: var(--raum-2); color: var(--rot-text); font-weight: 500; }
.textlink::before { content: ''; position: absolute; inset: -9px -6px; }
.textlink:hover { color: var(--rot-hover); }
.hinweis__karten { display: grid; gap: var(--raum-2); }
.hinweis__karte {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: var(--raum-3);
  align-items: center;
  padding: var(--raum-2) var(--raum-3);
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.hinweis__karte:hover { border-color: color-mix(in srgb, var(--nuance) 55%, var(--kante)); }
.hinweis__karte .wuerfel { transition: transform 0.18s ease; }
.hinweis__karte:hover .wuerfel { transform: translateY(-2px); }
.hinweis__worte { display: grid; gap: 2px; }
.hinweis__name { font-family: var(--schrift-display); font-weight: 600; color: var(--text); }
.hinweis__zeile { color: var(--text-2); font-size: 0.92rem; }
.hinweis__worte .marke-tag { margin-top: 6px; justify-self: start; }


/* 7 · Seitenteile -------------------------------------------------------- */

/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kante);
}
.kopf__innen {
  height: var(--leiste);
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--raum-3);
  display: flex;
  align-items: center;
  gap: var(--raum-4);
}
.marke { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; }
/* Bedienziele ≥ 44 px (LETSDO-ONE §7), ohne dass sich die Optik ändert: die
   Trefferfläche wächst über ein unsichtbares Pseudo-Element. */
a.marke::before { content: ''; position: absolute; inset: -8px -6px; }
/* Im Kopf bricht nichts um: lieber blendet eine Stufe tiefer ein Teil aus
   (siehe 8 · Schmale Schirme), als dass „Karte erstellen" zweizeilig wird. */
.kopf__link, .kopf .knopf { white-space: nowrap; }
.marke__text { font-family: var(--schrift-display); font-weight: 500; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--text); }
/* --rot-text statt --rot: „One" ist Kleintext; #E41C22 hat auf dem Grund nur
   4,35 : 1 (Soll 4,5), #FF5A60 hat 6,3 : 1. */
.marke__one { color: var(--rot-text); font-weight: 700; }
.marke.baustein--keycube .marke__text,
.marke.baustein--homecube .marke__text,
.marke.baustein--teamcube .marke__text,
.marke.baustein--icard .marke__text { font-weight: 600; }
/* Rückweg von der Produktseite zur Suite: Bildmarke klein, ein Satz daneben. */
.kopf__suite { display: inline-flex; align-items: center; gap: 8px; margin-right: var(--raum-2); color: var(--text-2); font-size: 0.82rem; white-space: nowrap; }
.kopf__suite:hover { color: var(--text); }
.kopf__links { display: flex; align-items: center; gap: var(--raum-3); margin-left: auto; }
.kopf__link { position: relative; color: var(--text-2); font-size: 0.95rem; padding-block: 4px; border-bottom: 2px solid transparent; }
.kopf__link::before { content: ''; position: absolute; inset: -8px -8px; }
.kopf .knopf--klein { position: relative; }
.kopf .knopf--klein::before { content: ''; position: absolute; inset: -6px 0; }
.kopf__link:hover { color: var(--text); }
.kopf__link.ist-aktiv { color: var(--text); border-bottom-color: var(--nuance); }
.kopf__aktionen { display: flex; align-items: center; gap: var(--raum-1); }

/* Hero */
.hero {
  position: relative;
  padding-block: var(--raum-6) var(--raum-6);
  overflow: hidden;
}
/* Der einzige Rot-Akzent im Hero: ein Schein am Boden, keine Fläche. Seine
   Mitte liegt auf der Unterkante des Heros, und er klingt nach oben wie nach
   unten aus — abgeschnitten an der Kante stand dort eine harte Linie. Dafür
   schneidet der Hero nur noch seitlich ab (`clip` lässt die andere Achse
   offen, `hidden` nicht); der folgende Inhalt liegt über dem Schein. */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -140px;
  height: 240px;
  background: radial-gradient(ellipse at bottom, color-mix(in srgb, var(--rot) 16%, transparent), transparent 68%);
  pointer-events: none;
}
@supports (overflow: clip) {
  .hero { overflow: visible; overflow-x: clip; }
  .hero::after {
    inset: auto 0 -150px;
    height: 300px;
    background: radial-gradient(ellipse 55% 50% at 50% 50%, color-mix(in srgb, var(--rot) 13%, transparent), transparent 100%);
  }
  .hero::after { z-index: -1; }
}
.hero__innen {
  position: relative;
  z-index: 1;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--raum-3);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--raum-5);
  align-items: center;
}
.hero--zentriert .hero__innen { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero--zentriert .hero__objekt { display: none; }
.hero--zentriert .vertrauen { justify-content: center; }
.hero--zentriert .hero__ctas { justify-content: center; }
.hero--zentriert .hero__fliesstext { margin-inline: auto; }

.hero__titel { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: var(--raum-3); }
.hero__zeile { display: block; }
.hero__fliesstext { color: var(--text-2); font-size: 1.1rem; max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin-top: var(--raum-4); }

.vertrauen { display: flex; flex-wrap: wrap; gap: var(--raum-1) var(--raum-3); margin-top: var(--raum-4); }
.vertrauen__punkt {
  position: relative;
  padding-left: 16px;
  color: var(--text-2);
  font-family: var(--schrift-daten);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.vertrauen__punkt::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(0.825em - 3px); /* Mitte der ersten Zeile (Zeilenhöhe 1,65) */
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--nuance);
}

.hero__objekt { position: relative; justify-self: end; width: fit-content; max-width: 100%; }

/* Das Produkt-Icon vor dem Screenshot: halb über der linken unteren Ecke des
   Rahmens, mit eigenem Schlagschatten — das Icon gehört zum Objekt, nicht
   zum Text. */
.hero__icon {
  position: absolute;
  left: -48px;
  bottom: -36px; /* tiefer als zuvor: das Icon deckt die Ecke, nicht den Inhalt des Screenshots */
  z-index: 2;
  width: 108px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55));
}
.hero__icon .wuerfel { width: 100%; }

/* Die Suite: die Bildmarke als Objekt auf dem Bodenraster (Brand Board, Hero 1).
   Ein Licht von oben links, roter Schein nur am Boden. */
.objekt--marke {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 440px);
  min-height: 420px;
  padding: var(--raum-4) var(--raum-3) var(--raum-5);
}
.objekt--marke .wuerfel--hero {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.6));
}
/* Die Maske misst an der NÄCHSTEN Kante (closest-side): so ist der Boden an
   allen vier Rändern vollständig ausgeblendet. Mit der Voreinstellung
   (farthest-corner) blieb die Unterkante als harte Linie stehen. */
.objekt__boden {
  position: absolute;
  inset: 22% -24% -4%;
  background:
    repeating-linear-gradient(30deg,  color-mix(in srgb, var(--text) 9%, transparent) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(-30deg, color-mix(in srgb, var(--text) 9%, transparent) 0 1px, transparent 1px 36px),
    radial-gradient(ellipse at 50% 80%, color-mix(in srgb, var(--rot) 30%, transparent), transparent 60%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 58%, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 58%, #000 45%, transparent 100%);
  pointer-events: none;
}
.objekt__chip {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 8px 12px;
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
}
.objekt__chipkopf {
  display: block;
  margin-bottom: 2px;
  font-family: var(--schrift-daten);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.objekt__chip--0 { left: 0; bottom: 10%; }
.objekt__chip--1 { right: 0; top: 6%; }

/* Footer */
.fuss { border-top: 1px solid var(--kante); background: var(--flaeche1); padding-top: var(--raum-5); }
.fuss__innen { display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--raum-5); }
.fuss__marke .marke { margin-bottom: var(--raum-2); }
.fuss__beschreibung { color: var(--text-2); font-size: 0.92rem; max-width: 40ch; }
.fuss__spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--raum-3); }
.fuss__ueberschrift {
  font-family: var(--schrift-daten);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--raum-2);
}
.fuss__spalte ul { display: grid; gap: 6px; }
.fuss__spalte a { color: var(--text-2); font-size: 0.95rem; }
/* Auf Touch-Geräten 44 px je Link (vorher 19 px): der Abstand wandert in den
   Link, die Liste wird etwas luftiger. Mit Maus bleibt sie, wie sie ist. */
@media (pointer: coarse) {
  .fuss__spalte ul { gap: 0; }
  .fuss__spalte a { display: inline-block; padding-block: 12px; }
  .fuss__ueberschrift { margin-bottom: 4px; }
}
.fuss__spalte a:hover { color: var(--text); }
/* Die Linie über der Copyright-Zeile ist so breit wie der Inhalt, nicht wie
   der Kasten mit seinem Innenabstand — sonst steht sie links und rechts über. */
.fuss__zeile {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--raum-2);
  margin-top: var(--raum-5);
  padding-block: var(--raum-3);
  background: linear-gradient(var(--kante), var(--kante)) center top / calc(100% - 2 * var(--raum-3)) 1px no-repeat;
  color: var(--text-2);
  font-size: 0.88rem;
}
.fuss__zeile p { margin: 0; }
.fuss__claim { font-family: var(--schrift-daten); letter-spacing: 0.06em; }

/* 404 hinter dem Riegel (seiten/fehler-404.php) */
.fehlerseite { min-height: calc(100vh - var(--leiste) - 280px); }
.fehlerseite__titel { font-size: clamp(2rem, 5vw, 3.2rem); }
.fehlerseite__aktion { margin: var(--raum-4) 0 0; }
.fehlerseite__bausteine { display: flex; flex-wrap: wrap; gap: var(--raum-1) var(--raum-4); margin-top: var(--raum-4); }
.fehlerseite__baustein { display: inline-flex; align-items: center; gap: 10px; padding-block: 8px; color: var(--text-2); }
.fehlerseite__baustein:hover { color: var(--text); }

/* Entwicklungs-Umschalter */
.entwicklung { padding-block: var(--raum-6); }
.entwicklung__liste { display: grid; gap: var(--raum-1); margin-top: var(--raum-4); }
.entwicklung__link {
  display: flex;
  justify-content: space-between;
  gap: var(--raum-2);
  padding: var(--raum-2) var(--raum-3);
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
}
.entwicklung__link:hover { border-color: var(--text-dim); }
.entwicklung__seite { font-family: var(--schrift-display); font-weight: 600; }
.entwicklung__host { font-family: var(--schrift-daten); font-size: 0.85rem; color: var(--text-dim); }


/* 8 · Schmale Schirme ---------------------------------------------------- */

/* Der Kopf in drei Stufen, gemessen an der breitesten Belegung (KeyCube:
   Marke, vier Abschnitte, Rückweg, Anmelden, „KeyCube kostenlos anlegen"
   brauchen 1140 px):
     ≤ 1180  der Rückweg „Ein Baustein von Let's Do One" geht — er steht im
             Suite-Hinweis und im Footer jeder Produktseite
     ≤  960  die Abschnitts-Links gehen — Marke, Anmelden, CTA bleiben
     ≤  600  „Anmelden" geht (siehe unten)
   Vorher brach der CTA bei 768 und 1024 px auf zwei, drei Zeilen um, und die
   Seite ließ sich seitlich verschieben. */
@media (max-width: 1180px) {
  .kopf__suite { display: none; }
}

@media (max-width: 960px) {
  .kopf .kopf__links { display: none; }
  .kopf__aktionen { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero__innen { grid-template-columns: 1fr; }
  /* Einspaltig steht das Objekt in der Mitte unter dem Text — links
     angeschlagen blieb rechts daneben eine leere halbe Seite. */
  .hero__objekt { justify-self: center; }
  .hero__icon { left: -24px; bottom: -24px; width: 80px; }
  .objekt--marke { width: min(100%, 380px); min-height: 360px; }
  .hinweis { grid-template-columns: 1fr; gap: var(--raum-4); }
  .datenhoheit { grid-template-columns: 1fr; gap: var(--raum-4); }
  .fuss__innen { grid-template-columns: 1fr; gap: var(--raum-4); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .abschnitt { padding-block: var(--raum-5); }
  .abschnitt__kopf { margin-bottom: var(--raum-4); }
  .kopf__innen { gap: var(--raum-2); }
  .fuss__spalten { grid-template-columns: 1fr 1fr; }
  .objekt__zeichen { font-size: 10rem; }
}

@media (max-width: 600px) {
  /* Im Kopf bleibt auf dem Handy die Marke und der eine CTA — „Anmelden" steht
     im Portal und im Footer, der Rückweg zur Suite im Suite-Hinweis. */
  .kopf__aktionen .knopf--leise { display: none; }
  .kopf__suite { display: none; }
  .knopf--klein { padding: 0 12px; font-size: 0.85rem; }
}

@media (max-width: 460px) {
  .fuss__spalten { grid-template-columns: 1fr; }
  .hero__ctas .knopf { width: 100%; }
}


/* =========================================================================
   9 · Kundenportal
   =========================================================================
   Baut auf denselben Tokens und Bauteilen wie die Marketing-Seiten — das ist
   der Grund, warum das Design-System vor dem Portal entstanden ist. Wer ein
   Produkt kennt, kennt alle: gleiche Navigationshöhe, gleiche Karte, gleicher
   Radius, gleiches Rot nur an der Kante.
   ========================================================================= */

.abschnitt--eng { padding-block: var(--raum-5); }
.abschnitt__titel--klein { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

.leerstelle {
  margin: 0;
  padding: var(--raum-3);
  border: 1px dashed var(--kante);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Kopf des Portals */
.portalkopf {
  padding-block: var(--raum-5) var(--raum-4);
  border-bottom: 1px solid var(--kante);
  background: linear-gradient(180deg, var(--flaeche1), var(--grund));
}
.portalkopf__gruss { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: var(--raum-3); }
.portalkopf__daten { display: flex; flex-wrap: wrap; gap: var(--raum-1) var(--raum-5); }
.portalkopf__wert dt {
  font-family: var(--schrift-daten);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.portalkopf__wert dd { margin: 2px 0 0; color: var(--text); font-size: 0.95rem; }

/* Die vier Kacheln */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--raum-2);
  margin-top: var(--raum-4);
}
.kachel {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: var(--raum-3);
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
}
.kachel__kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--raum-3); }
.kachel__name { font-size: 1.1rem; }
.kachel__tag { margin: 0 0 0 auto; }
.kachel__tag--leise {
  font-family: var(--schrift-daten);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.kachel__zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: var(--raum-2); margin-bottom: var(--raum-3); }
.kennwert__wert {
  font-family: var(--schrift-display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kennwert__label { margin: 2px 0 0; color: var(--text-dim); font-size: 0.82rem; line-height: 1.35; }
.kennwert--warnung .kennwert__wert { color: var(--fehler); }

.kachel__text  { color: var(--text-2); font-size: 0.93rem; }
.kachel__leer  { color: var(--text-dim); font-size: 0.9rem; }
.kachel__warnung { color: var(--fehler); font-size: 0.9rem; }
.kachel__warnung--leise { color: var(--text-2); }

.kachel__aktion {
  margin-top: auto;
  padding-top: var(--raum-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nuance);
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.12s ease;
}
.kachel__aktion:hover { gap: 10px; }
.kachel__knopf { margin-top: auto; }

/* „Kommt in Kürze" — sieht aus wie ein Baustein, nicht wie eine Lücke.
   Gleiche Höhe, gleiche Fläche, gleiches Icon; nur die Zahlen fehlen, und an
   ihrer Stelle steht eine ruhige Grafik statt eines leeren Kastens. */
.kachel--kommt { border-style: dashed; }
.kachel__platzhalter {
  display: grid;
  gap: 10px;
  padding: var(--raum-3) 0;
  margin-bottom: var(--raum-2);
}
.platzhalter__balken {
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--nuance) 22%, var(--flaeche1)),
    var(--flaeche1));
}
.platzhalter__balken--kurz { width: 60%; }

/* Aktivitätsstrom */
.strom { display: grid; gap: var(--raum-1); }
.strom__eintrag {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: var(--raum-2);
  align-items: baseline;
  padding: var(--raum-2) var(--raum-3);
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-left: 2px solid var(--nuance);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.strom__produkt {
  font-family: var(--schrift-daten);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nuance);
}
.strom__text { color: var(--text); font-size: 0.95rem; }
.strom__meta { color: var(--text-dim); font-family: var(--schrift-daten); font-size: 0.76rem; white-space: nowrap; }

/* Konto & Daten */
.kontoraster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--raum-2);
}
.kontokarte {
  display: flex;
  flex-direction: column;
  gap: var(--raum-2);
  padding: var(--raum-3);
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
}
.kontokarte--breit { grid-column: 1 / -1; }
.kontokarte__titel { font-size: 1.05rem; }
.kontokarte__text  { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.kontokarte__status { margin: 0; font-weight: 500; }
.kontokarte__status.ist-gut   { color: #4FA37A; }
.kontokarte__status.ist-offen { color: var(--fehler); }
.kontokarte .knopf { align-self: flex-start; margin-top: auto; }

.kontoliste { display: grid; gap: var(--raum-1); }
.kontoliste__zeile { display: grid; gap: 2px; padding-bottom: var(--raum-1); border-bottom: 1px solid var(--kante); }
.kontoliste__zeile dt {
  font-family: var(--schrift-daten);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.kontoliste__zeile dd { margin: 0; color: var(--text-2); font-size: 0.93rem; }

.vertragsliste, .kontingente, .rechnungen { display: grid; gap: var(--raum-1); }
.vertragszeile, .rechnung {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--raum-3);
  align-items: baseline;
  padding-bottom: var(--raum-1);
  border-bottom: 1px solid var(--kante);
}
.vertragszeile__name { color: var(--text); font-weight: 500; }
.vertragszeile__name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 1px;
  background: var(--nuance);
}
.vertragszeile__laufzeit, .vertragszeile__frist,
.rechnung__zeitraum { color: var(--text-dim); font-size: 0.88rem; font-family: var(--schrift-daten); }
.rechnung__nummer { font-family: var(--schrift-daten); color: var(--text); }
.rechnung__status { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--schrift-daten); }
.rechnung__status--offen   { color: var(--fehler); }
.rechnung__status--bezahlt { color: var(--text-dim); }

.kontingent {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px var(--raum-3);
  align-items: baseline;
  padding-bottom: var(--raum-2);
  border-bottom: 1px solid var(--kante);
}
.kontingent__name { color: var(--text); }
.kontingent__wert { font-family: var(--schrift-daten); color: var(--text); font-size: 0.95rem; }
.kontingent__von  { color: var(--text-dim); }

/* <progress> statt eines Balkens mit style-Attribut: die CSP verbietet
   Inline-Stile, und das Element ist ohnehin das semantisch richtige. */
.kontingent__balken {
  grid-column: 1 / -1;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: var(--flaeche1);
}
.kontingent__balken::-webkit-progress-bar   { background: var(--flaeche1); border-radius: 2px; }
.kontingent__balken::-webkit-progress-value { background: var(--nuance); border-radius: 2px; }
.kontingent__balken::-moz-progress-bar      { background: var(--nuance); border-radius: 2px; }

@media (max-width: 760px) {
  .strom__eintrag { grid-template-columns: 1fr; gap: 4px; }
  .strom__meta { white-space: normal; }
  .vertragszeile, .rechnung { grid-template-columns: 1fr; gap: 2px; }
}


/* =========================================================================
   10 · Bilder — echte Screenshots und Fotos
   =========================================================================
   Screenshots kommen aus werkzeug/screenshots/aufnehmen.cjs, Fotos aus
   bilder/fotos/. Drei Rahmen, die zu den drei Aufnahmegrößen passen: das
   Handy bekommt eine runde Blende, der Desktop eine schmale Kante, der
   Fernseher gar keine — ein Fernseherbild trägt seinen schwarzen Rand selbst.
   Fotos werden nie gerahmt, nur zugeschnitten.
   ========================================================================= */

.bild { margin: 0; }
.bild img { display: block; width: 100%; height: auto; }

.bild__rahmen {
  overflow: hidden;
  background: var(--flaeche1);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* Handy: runde Blende, feiner Rand, Bildschirmkante innen. */
.bild--handy .bild__rahmen {
  border-radius: 36px;
  border: 8px solid #17171C;
  outline: 1px solid var(--kante);
  max-width: 320px;
  margin-inline: auto;
}

/* Desktop: schmale Kante, wie ein Fenster ohne Chrom. */
.bild--desktop .bild__rahmen,
.bild--tv .bild__rahmen {
  border-radius: 8px;
  border: 1px solid var(--kante);
}
.bild--tv .bild__rahmen { background: #000; border-color: #2A2A32; }

/* Fotos */
.bild--foto .bild__rahmen { border-radius: var(--radius); box-shadow: none; }
.bild--foto-hoch .bild__rahmen { aspect-ratio: 4 / 5; }
.bild--foto-hoch img,
.bild--foto-quer img { width: 100%; height: 100%; object-fit: cover; }
.bild--foto-quer .bild__rahmen { aspect-ratio: 16 / 10; }

.bild__unterschrift {
  margin-top: var(--raum-2);
  color: var(--text-2);
  font-size: 0.88rem;
  font-family: var(--schrift-daten);
}

/* Der Hero: ein Handy schwebt, ein Desktop lehnt sich an die rechte Kante. */
/* 1.3 : 0.7 — das Handy braucht 300 px, der Rest gehört der Überschrift
   („Innen deine Schlüssel." steht so auf dem Desktop in einer Zeile). */
.hero--handy .hero__innen { grid-template-columns: 1.3fr 0.7fr; }
.hero__objekt .bild--hero.bild--handy .bild__rahmen { max-width: 300px; }
.hero__objekt .bild--hero.bild--desktop { width: min(100%, 640px); justify-self: end; }
.hero__objekt .bild--hero.bild--desktop .bild__rahmen {
  transform: perspective(1400px) rotateY(-6deg);
  transform-origin: right center;
}
.hero__objekt .bild--hero.bild--foto-hoch { width: min(100%, 380px); justify-self: end; }
/* Das Objekt ist so breit wie das Foto — sonst stand das Icon neben dem Bild
   in der Luft statt auf dessen Ecke. */
.hero__objekt:has(> .bild--foto-hoch) { width: min(100%, 380px); }
.hero__objekt .bild--hero.bild--foto-hoch .bild__rahmen { border-radius: 8px; }
.hero__objekt { width: auto; }

/* Fotoband: volle Breite, ein Satz darüber. */
.band {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--flaeche1);
}
.band--niedrig { height: clamp(220px, 34vw, 380px); }
.band--normal  { height: clamp(280px, 42vw, 480px); }
.band--hoch    { height: clamp(360px, 52vw, 600px); }
.band__bild { width: 100%; height: 100%; object-fit: cover; display: block; }
.band__zeile {
  position: absolute;
  inset: auto 0 0;
  /* Höherer, dunklerer Verlauf und ein weicher Schatten am Text: die Zeile
     steht auch auf hellen Bildstellen (Laptop-Rand, Türlicht) mit ≥ 4,5 : 1. */
  padding: var(--raum-6) var(--raum-3) var(--raum-3);
  background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.62) 45%, rgba(5, 5, 8, 0.94));
  text-shadow: 0 1px 14px rgba(5, 5, 8, 0.75);
}
/* Die Zeile steht auf derselben Kante wie der Text der Abschnitte: die
   Breite ohne den Innenabstand von .mitte, sonst sitzt sie 24 px zu weit links. */
.band__zeile span {
  display: block;
  max-width: calc(var(--breite) - 2 * var(--raum-3));
  margin-inline: auto;
  color: var(--text);
  font-family: var(--schrift-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Handys in einer Reihe (Themes, Beispielkarten). */
.handys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--raum-4) var(--raum-3);
  align-items: start;
}
.handy { text-align: center; }
/* Auf dem Handy nebeneinander zum Wischen statt drei Handys untereinander
   (das waren 1 800 px Scrollweg). Das nächste schaut am Rand herein — so
   sieht man, dass es weitergeht. */
@media (max-width: 600px) {
  .handys {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    gap: var(--raum-3);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--raum-3);
    margin-inline: calc(-1 * var(--raum-3));
    padding: 0 var(--raum-3) var(--raum-2);
    scrollbar-width: none;
  }
  .handys::-webkit-scrollbar { display: none; }
  .handy { scroll-snap-align: center; }
}
.handy .bild--handy .bild__rahmen { max-width: 260px; }
.handy__name { font-size: 1.05rem; margin-top: var(--raum-3); }
.handy__rolle { margin: 2px 0 0; color: var(--text-2); font-size: 0.9rem; }
.handy .marke-tag { margin-top: var(--raum-1); }
.abschnitt__nachsatz { margin: var(--raum-4) 0 0; color: var(--text-2); font-size: 0.95rem; text-align: center; }

/* Fernseherbilder nebeneinander. */
.fernseher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--raum-3);
  margin-top: var(--raum-5);
}

/* Text links, Bild rechts. */
.text-und-bild {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--raum-5);
  align-items: start;
}
.text-und-bild--handy { grid-template-columns: 1.3fr 0.7fr; align-items: center; }
.text-und-bild__bild { position: sticky; top: calc(var(--leiste) + var(--raum-3)); }
.belege--zwei { grid-template-columns: 1fr; }
.belege--eins { grid-template-columns: 1fr; }

/* Ein Bild in voller Abschnittsbreite mit Unterschrift. */
.bild--breit { margin-top: var(--raum-5); }

/* Screenshot innerhalb einer Welt-Karte. */
.welt__bild { margin-top: auto; padding-top: var(--raum-4); }
.welt__bild .bild__rahmen { box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9); }

/* Galerie: Screenshot und Foto nebeneinander. */
.galerie__stueck .bild { margin-bottom: var(--raum-2); }

@media (max-width: 900px) {
  .hero--handy .hero__innen { grid-template-columns: 1fr; }
  .hero__objekt .bild--hero.bild--desktop { justify-self: center; }
  .hero__objekt .bild--hero.bild--desktop .bild__rahmen { transform: none; }
  .hero__objekt .bild--hero.bild--foto-hoch { justify-self: center; width: min(100%, 320px); }
  .hero__objekt:has(> .bild--foto-hoch) { width: min(100%, 320px); }
  .text-und-bild, .text-und-bild--handy { grid-template-columns: 1fr; }
  .text-und-bild__bild { position: static; }
}

/* =========================================================================
   11 · Marke und Icons in Bewegung
   =========================================================================
   Die Regeln aus bilder/icons/animations.css, für inline eingebundene SVGs.
   Nur transform und opacity; der Endzustand ist das statische Bild. Wer
   Bewegung abgeschaltet hat, sieht von Anfang an das statische Bild.
   ========================================================================= */

/* Die Bildmarke baut sich auf — einmalig, beim ersten Seitenaufruf (Suite-Hero). */
.objekt--marke .ldo-t1, .objekt--marke .ldo-t2, .objekt--marke .ldo-t3 { animation: ldoRise 0.40s cubic-bezier(0.2, 0.85, 0.25, 1) both; }
.objekt--marke .ldo-t2 { animation-delay: 0.16s; }
.objekt--marke .ldo-t3 { animation-delay: 0.32s; }
.objekt--marke .ldo-s { animation: ldoFade 0.45s linear 0.45s both; }
.objekt--marke .ldo-w { transform-box: fill-box; transform-origin: 50% 0%; animation: ldoFlag 0.34s cubic-bezier(0.2, 0.9, 0.25, 1) 0.60s both; }
.objekt--marke .ldo-e { animation: ldoFade 0.30s linear 0.84s both; }
@keyframes ldoRise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ldoFlag { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@keyframes ldoFade { from { opacity: 0; } to { opacity: 1; } }

/* Ein lebendes Detail je Produkt, beim Überfahren, höchstens 400 ms: der
   Würfelkörper bleibt still, nur das Element mit der Sekundärnuance bewegt sich. */
.kc112-key  { transform-box: fill-box; transform-origin: 4% 28%; }
.hc112-eye  { transform-box: fill-box; transform-origin: 50% 50%; }
.tc112-tick2 { transform-box: fill-box; transform-origin: 0% 50%; }
.ic112-card { transform-box: fill-box; transform-origin: 50% 60%; }
:is(.wuerfel, .produktkarte, .hinweis__karte, .hero__icon):hover .kc112-key  { animation: kcTurn 0.40s cubic-bezier(0.4, 0, 0.2, 1) both; }
:is(.wuerfel, .produktkarte, .hinweis__karte, .hero__icon):hover .hc112-eye  { animation: hcBlink 0.38s ease-in-out both; }
:is(.wuerfel, .produktkarte, .hinweis__karte, .hero__icon):hover .tc112-tick2 { animation: tcTick 0.34s cubic-bezier(0.2, 0.9, 0.25, 1) forwards; }
:is(.wuerfel, .produktkarte, .hinweis__karte, .hero__icon):hover .ic112-card { animation: icTilt 0.38s cubic-bezier(0.3, 0, 0.2, 1) both; }
@keyframes kcTurn  { 0% { transform: none; } 55% { transform: rotate(-21deg) scaleY(0.9); } 100% { transform: none; } }
@keyframes hcBlink { 0%, 100% { transform: none; } 45% { transform: scaleY(0.06); } }
@keyframes tcTick  { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes icTilt  { 0%, 100% { transform: none; } 55% { transform: rotate(-2.6deg) scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .wuerfel, .wuerfel * { animation: none !important; transition: none !important; }
}

/* =========================================================================
   12 · Rechtsseiten — Impressum, Datenschutz, Nutzungsbedingungen
   =========================================================================
   Lesetext, kein Marketing: eine schmale Spalte, Links sichtbar unterstrichen
   (im übrigen Auftritt sind Links es nicht), Abschnitte mit Luft davor. Der
   Kopf trägt statt der Seitenabschnitte die drei Dokumente — auch auf dem
   Handy, wo die Abschnittsleiste sonst verschwindet.
   ========================================================================= */

.kopf--recht .kopf__innen { height: auto; min-height: var(--leiste); flex-wrap: wrap; row-gap: var(--raum-1); padding-block: 14px; }
.kopf--recht .kopf__links { display: flex; flex-wrap: wrap; gap: var(--raum-1) var(--raum-3); margin-left: auto; }
.kopf--recht .kopf__link[aria-current="page"] { color: var(--text); border-bottom-color: var(--rot); }

/* 64ch statt 72ch: rund 70 Zeichen je Zeile statt 85 — Lesetext, der ohne
   Augenspringen durchgeht. Lange Wörter („Auftragsverarbeitung") werden auf
   schmalen Schirmen getrennt statt über den Rand geschoben. */
.recht { max-width: 64ch; overflow-wrap: break-word; }
.recht p { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
.recht h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: var(--raum-2); text-wrap: balance; }
.recht h2 { font-size: 1.4rem; margin: var(--raum-5) 0 var(--raum-2); scroll-margin-top: calc(var(--leiste) + 24px); }
.recht h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin: var(--raum-4) 0 var(--raum-1); scroll-margin-top: calc(var(--leiste) + 24px); }
/* Die Teile der Datenschutzerklärung und der Nutzungsbedingungen („Für alle",
   „KeyCube", „iCard Express") sind eine Stufe über den nummerierten
   Abschnitten — sichtbar größer, nicht nur einen Hauch. */
.recht h2.recht__teil { font-size: clamp(1.5rem, 2.6vw, 1.85rem); margin-top: var(--raum-6); }
.recht .recht__inhalt + .recht__teil { margin-top: var(--raum-3); }
.recht p { color: var(--text-2); }
.recht strong { color: var(--text); font-weight: 600; }
.recht a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-2); text-underline-offset: 3px; }
.recht a:hover { text-decoration-color: var(--rot); }
.recht code { font-family: var(--schrift-daten); font-size: 0.86em; background: var(--flaeche2); padding: 1px 6px; border-radius: 3px; overflow-wrap: anywhere; }

.recht__vermerk { font-size: 1.05rem; margin-bottom: var(--raum-4); }
.recht__klein { font-size: 0.92rem; }

/* Die drei Teile der Datenschutzerklärung: ein Strich über der Überschrift,
   damit man sieht, wo „für alle" endet und ein Produkt beginnt. */
.recht__teil { padding-top: var(--raum-4); border-top: 1px solid var(--kante); }

.recht__inhalt { display: flex; flex-wrap: wrap; gap: var(--raum-1) var(--raum-3); padding: var(--raum-2) 0; font-family: var(--schrift-daten); font-size: 0.8rem; letter-spacing: 0.04em; }
.recht__inhalt a { position: relative; color: var(--text-2); padding-block: 6px; }
.recht__inhalt a::before { content: ''; position: absolute; inset: -6px -6px; }
.recht__inhalt a:hover { color: var(--text); }

/* Auf dem Handy bricht die Dokumentleiste in zwei Zeilen um; klebte der Kopf
   dann oben, verdeckte er die Überschrift jeder Sprungmarke. Dort scrollt er
   deshalb mit. */
@media (max-width: 760px) {
  .kopf--recht { position: static; }
  .recht h2, .recht h3 { scroll-margin-top: var(--raum-3); }
}

/* Eine Lücke, die sichtbar sein MUSS: hier fehlt ein Rechtstext, und das darf
   niemand für einen fertigen Abschnitt halten. */
.recht__luecke { margin: var(--raum-2) 0; padding: var(--raum-2) var(--raum-3); background: var(--flaeche2); border: 1px dashed var(--kante); border-radius: var(--radius); }
.recht .recht__luecke p { margin: 0; }
.recht .recht__luecke .recht__luecke-titel { font-family: var(--schrift-daten); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rot-text); margin-bottom: var(--raum-1); }

.recht__fuss { margin-top: var(--raum-5); padding-top: var(--raum-3); border-top: 1px solid var(--kante); font-size: 0.88rem; }

.fuss--recht { padding-top: 0; }


/* =========================================================================
   13 · Pinpad vor der internen Vorschau
   ========================================================================= */

/* Aufbau (auch Vorlage für das Pinpad der iCard-Instanz):
     form.pin__karte[data-laenge]      Zustände: .pin--js .pin--fokus
                                       .pin--fehler .pin--kurz .pin--sendet .pin--gesperrt
       p.marke.pin__marke · h1.pin__titel · p.pin__satz
       label.unsichtbar + input.pin__feld   ohne JS sichtbar, mit JS .unsichtbar
       div.pin__punkte > span.pin__punkt × Länge   (.ist-voll, .ist-naechster)
       p.pin__meldung[role=alert]
       div.pin__tasten > button.pin__taste × 10, span.pin__luecke,
                         button.pin__taste--leise[data-aktion=loeschen]
       button.knopf.pin__knopf          nur ohne JS
       p.pin__fuss
   Rot gibt es hier nur am „Öffnen"-Knopf (ohne JS) — ein Pinpad ist keine
   Aktion, sondern ein Schloss. */

.pin [hidden] { display: none !important; }

.pin { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--raum-3); }
.pin__karte { position: relative; width: min(100%, 320px); display: grid; gap: var(--raum-2); justify-items: center; text-align: center; }
.pin__marke { margin-bottom: var(--raum-3); }
.pin__titel { font-size: 1.6rem; }
.pin__satz { color: var(--text-2); margin: 0; }

/* Ohne JavaScript: das Feld selbst. */
.pin__feld {
  width: 100%;
  font-family: var(--schrift-daten);
  font-size: 1.8rem;
  letter-spacing: 0.6em;
  text-align: center;
  padding: 12px 0 12px 0.6em;
  background: var(--flaeche1);
  color: var(--text);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
}
.pin__feld:focus { outline: none; border-color: var(--text-2); }
.pin__feld.unsichtbar { width: 1px; height: 1px; padding: 0; border: 0; }

/* Mit JavaScript: eine Punktreihe, ein Punkt je Stelle. */
.pin__punkte { display: flex; justify-content: center; gap: 20px; padding: var(--raum-3) 0 var(--raum-1); }
.pin__punkt {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.pin__punkt.ist-voll { background: var(--text); border-color: var(--text); transform: scale(1.08); }
.pin--fokus .pin__punkt.ist-naechster { border-color: var(--text-2); }
.pin--sendet .pin__punkt { animation: pinPruefen 0.9s ease-in-out infinite; }
.pin--fehler .pin__punkt,
.pin--fehler .pin__punkt.ist-naechster { border-color: var(--fehler); }
.pin--fehler .pin__punkte,
.pin--kurz .pin__punkte { animation: pinWackeln 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes pinWackeln {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
@keyframes pinPruefen { 50% { opacity: 0.45; } }

.pin__meldung { min-height: 1.5em; margin: 0; color: var(--fehler); font-size: 0.92rem; text-wrap: balance; }
.pin--gesperrt .pin__meldung { padding: var(--raum-2) 0; }

.pin__tasten { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: var(--raum-1); }
.pin__taste {
  display: grid;
  place-items: center;
  height: 64px;
  padding: 0;
  font-family: var(--schrift-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  background: var(--flaeche1);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.pin__taste:hover { background: var(--flaeche2); border-color: var(--text-dim); }
.pin__taste:active { background: var(--flaeche2); transform: scale(0.96); }
.pin__taste:disabled { cursor: default; opacity: 0.5; }
.pin__taste--leise { color: var(--text-2); background: transparent; border-color: transparent; }
.pin__taste--leise:hover { color: var(--text); background: var(--flaeche1); border-color: var(--kante); }
.pin__zeichen { display: block; }
.pin__knopf { width: 100%; }
.pin__fuss { margin-top: var(--raum-3); font-size: 0.85rem; color: var(--text-2); }
.pin__fuss a { position: relative; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.pin__fuss a::before { content: ''; position: absolute; inset: -14px -6px; }
.pin__fuss a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .pin--fehler .pin__punkte, .pin--kurz .pin__punkte, .pin--sendet .pin__punkt { animation: none; }
}
