/* ASIM TV -- Webseite.
   Erscheinungsbild seit 2026-10-02/03 (CLAUDE.md, Abschnitt Design): Anthrazit #2b2a28, Schrift #ece8e2,
   Akzent Orange #ff7a1a, Nebenschrift #b4afa7 -- dieselben Werte wie die Fernseher-App und die Handy-Seiten.
   Ueberschriften und Wortmarke in Archivo (wie das Logo), Text in IBM Plex Sans. Beide Schriften liegen in
   /schriften/ (SIL Open Font License) und werden nie von fremden Servern geladen (Datenschutz). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-stretch: 100% 125%; font-display: swap;
  src: url("/schriften/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-stretch: 100% 125%; font-display: swap;
  src: url("/schriften/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/schriften/plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/schriften/plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/schriften/plex-mono-500-latin.woff2") format("woff2"); }

:root {
  --grund: #2b2a28; --grund-tief: #232220; --flaeche: #34322f; --flaeche2: #3e3c38; --rand: #4c4943;
  --text: #ece8e2; --leise: #b4afa7; --leiser: #958f86;
  --akzent: #ff7a1a; --akzent-hell: #ff9447; --akzent-tinte: #1a1209; --gold: #e8c15a;
  --anzeige: "Archivo", "Arial Black", system-ui, sans-serif;
  --fliess: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --breite: 1160px; --rund: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.65 var(--fliess); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--anzeige); font-stretch: 106%; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-weight: 850; font-size: clamp(36px, 6.2vw, 64px); letter-spacing: -.01em; }
h2 { font-weight: 800; font-size: clamp(27px, 3.6vw, 40px); }
h3 { font-weight: 750; font-size: 21px; }
p { margin: 0 0 1em; }
a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent-hell); }
img { max-width: 100%; display: block; }
strong { font-weight: 600; color: var(--text); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--akzent); color: var(--akzent-tinte); }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .huelle { padding: 0 28px; } }
.leise { color: var(--leise); }
.akzent { color: var(--akzent); }
.oben { display: inline-block; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--akzent); margin-bottom: 14px; }
.mono { font-family: var(--mono); }

/* ---------- Wortmarke: ASIM, hochgestelltes TV, Dreieck mit Strich (Fassung B) ---------- */
.marke { direction: ltr; display: inline-flex; align-items: center; gap: 0; text-decoration: none; color: var(--text); line-height: 1; white-space: nowrap; }
.marke:hover { color: var(--text); }
.marke-wort { font: 850 25px/1 var(--anzeige); font-stretch: 112%; letter-spacing: .01em; }
.marke-tv { font: 800 11px/1 var(--anzeige); font-stretch: 112%; color: var(--akzent); align-self: flex-start; margin: 1px 0 0 3px; }
.marke-zeichen { width: 20px; height: 23px; margin-inline-start: 7px; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(43, 42, 40, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rand); }
.kopf .huelle { display: flex; align-items: center; gap: 10px 22px; min-height: 64px; flex-wrap: wrap; }
.kopf nav { display: flex; gap: 2px; flex-wrap: wrap; margin-inline-start: auto; }
.kopf nav a { color: var(--leise); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: 15px; }
.kopf nav a:hover, .kopf nav a.aktiv { background: var(--flaeche2); color: var(--text); }
.kopf nav a.kauf { color: var(--akzent-tinte); background: var(--akzent); font-weight: 600; }
.kopf nav a.kauf:hover { background: var(--akzent-hell); color: var(--akzent-tinte); }
@media (max-width: 760px) {
  .kopf .huelle { padding-top: 10px; padding-bottom: 10px; }
  .kopf nav { margin-inline-start: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .kopf nav::-webkit-scrollbar { display: none; }
  .kopf nav a { white-space: nowrap; }
}

/* ---------- Knoepfe ---------- */
.knopf { display: inline-flex; align-items: center; gap: 8px; background: var(--akzent); color: var(--akzent-tinte); font-weight: 600;
  text-decoration: none; padding: 13px 22px; border-radius: 11px; border: 0; font-size: 17px; }
.knopf:hover { background: var(--akzent-hell); color: var(--akzent-tinte); }
.knopf-leise { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; padding: 12px 21px;
  border-radius: 11px; border: 1px solid var(--rand); background: transparent; font-size: 17px; }
.knopf-leise:hover { background: var(--flaeche2); color: var(--text); }
.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Abschnitte ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rand); }
section.tief { background: var(--grund-tief); }
.abschnittkopf { max-width: 46em; margin-bottom: 36px; }
.abschnittkopf p { font-size: 18px; color: var(--leise); }

/* ---------- Held ---------- */
.held { padding: 64px 0 76px; overflow: hidden; }
.held .raster { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.held h1 .akzent { white-space: nowrap; }
.held .unterzeile { font-size: 20px; color: var(--leise); max-width: 33em; }
.spruch { display: flex; align-items: center; gap: .55em; font: 600 14px/1 var(--anzeige); font-stretch: 112%; letter-spacing: .24em;
  color: var(--text); margin: 0 0 22px; }
.spruch svg { width: .9em; height: .9em; flex: none; }
.held .klein { margin-top: 20px; font-size: 15px; color: var(--leise); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.held .klein span::before { content: "✓"; color: var(--akzent); font-weight: 700; margin-inline-end: 6px; }

/* ---------- Bilder: Fernseher (16:9) und Handy (hochkant). Fehlt die Datei, zeigt bild-platzhalter.js,
   welches Bild an diese Stelle gehoert (Name und Beschreibung, siehe webseite/BILDER-LISTE.md). ---------- */
.bild { margin: 0; position: relative; }
.bild img, .bild .bild-fehlt { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--rand);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .45); background: var(--flaeche); }
.bild.handy { max-width: 240px; margin: 0 auto; }
.bild.handy img, .bild.handy .bild-fehlt { aspect-ratio: 740 / 1380; border-radius: 30px; border: 6px solid #1c1b1a; outline: 1px solid var(--rand); }
.bild .bild-fehlt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 18px;
  border: 1.5px dashed rgba(255, 122, 26, .65); color: var(--leise); font-size: 14px; line-height: 1.45;
  background: repeating-linear-gradient(135deg, var(--flaeche) 0 14px, #363431 14px 28px); }
.bild .bild-fehlt b { color: var(--text); font-weight: 600; }
.bild .bild-fehlt code { font: 500 12px var(--mono); color: var(--akzent); }
.bild figcaption { color: var(--leise); font-size: 14px; margin-top: 12px; }

/* ---------- Highlights ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.kachel { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--rund); padding: 22px 22px 20px; text-decoration: none; color: var(--text); display: block; }
a.kachel:hover { border-color: var(--akzent); color: var(--text); }
.kachel .zeichen { width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 122, 26, .14); color: var(--akzent); display: grid; place-items: center; margin-bottom: 14px; }
.kachel .zeichen svg { width: 22px; height: 22px; }
.kachel h3 { font-size: 19px; margin-bottom: .35em; }
.kachel p { color: var(--leise); margin: 0; font-size: 16px; }
.kachel .neu { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--akzent-tinte); background: var(--akzent); border-radius: 5px; padding: 3px 6px; margin-inline-start: 6px; vertical-align: 3px; }

/* ---------- Funktionen im Einzelnen ---------- */
.merkmal { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 34px 0; scroll-margin-top: 80px; }
.merkmal + .merkmal { border-top: 1px dashed rgba(76, 73, 67, .7); }
.merkmal:nth-child(even) .bild, .merkmal:nth-child(even) .bilder { order: 2; }
.merkmal h3 { font-size: clamp(22px, 2.4vw, 27px); }
.merkmal .vorspann { color: var(--leise); font-size: 18px; }
.merkmal ul { margin: 0; padding: 0; list-style: none; }
.merkmal li { position: relative; padding-inline-start: 26px; margin-bottom: .5em; color: var(--leise); }
.merkmal li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--akzent); transform: rotate(45deg); }
.merkmal li strong { color: var(--text); }
.merkmal .bilder { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.merkmal .bilder .bild.handy { width: 150px; }
.merkmal .bilder.handys { grid-template-columns: 1fr 1fr; align-items: center; }
.merkmal .bilder.handys .bild.handy { width: auto; max-width: 210px; }
.marke-neu { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--akzent);
  border: 1px solid var(--akzent); border-radius: 5px; padding: 3px 6px; margin-inline-start: 8px; vertical-align: 5px; }

/* ---------- Schaubilder (statt Screenshots) ---------- */
.schema { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: 12px; border: 1px solid var(--rand);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .45); background: var(--flaeche); font-family: var(--fliess); }

/* ---------- Vergleich ---------- */
.vergleich { border: 1px solid var(--rand); border-radius: var(--rund); overflow: hidden; }
.vg-kopf, .vg-zeile { display: grid; grid-template-columns: 190px 1fr 1fr; gap: 24px; padding: 16px 22px; }
.vg-kopf { background: var(--flaeche2); color: var(--leise); font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.vg-kopf span:last-child { color: var(--akzent); }
.vg-zeile { border-top: 1px solid var(--rand); background: var(--flaeche); }
.vg-zeile strong { font-family: var(--anzeige); font-stretch: 104%; font-weight: 700; }
.vg-alt { color: var(--leiser); }
.vg-neu { color: var(--text); }
.vg-neu::before { content: "✓ "; color: var(--akzent); font-weight: 700; }

/* ---------- Alles auf einen Blick ---------- */
.alles { columns: 3 280px; column-gap: 40px; }
.alles .gruppe { break-inside: avoid; margin: 0 0 26px; }
.alles h3 { font-size: 16px; font-stretch: 104%; letter-spacing: .02em; color: var(--akzent); margin-bottom: .6em; }
.alles ul { margin: 0; padding: 0; list-style: none; }
.alles li { padding: 5px 0 5px 24px; position: relative; color: var(--leise); font-size: 15.5px; border-bottom: 1px solid rgba(76, 73, 67, .55); }
.alles li::before { content: "✓"; position: absolute; inset-inline-start: 2px; top: 5px; color: var(--akzent); font-weight: 700; }

/* ---------- Preis ---------- */
.preis-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.preis { background: var(--flaeche); border: 1px solid var(--akzent); border-radius: 18px; padding: 30px; box-shadow: 0 22px 60px rgba(0, 0, 0, .35); }
.preis .betrag { font: 850 56px/1 var(--anzeige); font-stretch: 108%; margin: 10px 0 6px; }
.preis .betrag small { font-size: 18px; font-weight: 600; color: var(--leise); margin-inline-start: 6px; }
.preis ul { margin: 18px 0 24px; padding: 0; list-style: none; }
.preis li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px solid var(--rand); }
.preis li::before { content: "✓"; position: absolute; inset-inline-start: 4px; color: var(--akzent); font-weight: 700; }
.haushalt { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 18px; padding: 26px; }
.haushalt h3 { margin-bottom: .6em; }
.haushalt p, .haushalt li { color: var(--leise); }
.haushalt ul { padding-inline-start: 1.2em; margin: 0; }

/* ---------- Fragen ---------- */
.fragen { display: grid; gap: 12px; max-width: 860px; }
.fragen details { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 0 20px; }
.fragen summary { cursor: pointer; list-style: none; padding-block: 17px; padding-inline: 0 30px; position: relative; font-weight: 600; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 12px; font: 400 26px/1 var(--fliess); color: var(--akzent); }
.fragen details[open] summary::after { content: "–"; }
.fragen details p { color: var(--leise); margin: 0 0 18px; }

/* ---------- Hinweis ---------- */
.hinweis { background: var(--flaeche); border: 1px solid var(--rand); border-inline-start: 4px solid var(--akzent); border-radius: 10px; padding: 16px 18px; color: var(--leise); }
.hinweis strong { color: var(--text); }

/* ---------- Anleitung ---------- */
.inhalt { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.inhalt nav { position: sticky; top: 88px; font-size: 15px; max-height: calc(100vh - 110px); overflow-y: auto; padding-inline-end: 6px; }
.inhalt nav .gruppe { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--leiser); margin: 16px 0 4px; }
.inhalt nav .gruppe:first-child { margin-top: 0; }
.inhalt nav a { display: block; color: var(--leise); text-decoration: none; padding-block: 4px; padding-inline: 10px 0; border-inline-start: 2px solid transparent; }
.inhalt nav a:hover { color: var(--text); border-inline-start-color: var(--akzent); }
.schritt { padding: 34px 0; border-bottom: 1px solid var(--rand); scroll-margin-top: 84px; }
.schritt:first-child { padding-top: 0; }
.schritt h2 { display: flex; gap: 14px; align-items: baseline; font-size: clamp(24px, 3vw, 31px); }
.schritt h2 .nr { color: var(--akzent); font-size: .78em; font-variant-numeric: tabular-nums; }
.schritt h3 { margin-top: 1.4em; }
.schritt ol, .schritt ul { padding-inline-start: 1.3em; }
.schritt li { margin-bottom: .45em; }
.schritt li::marker { color: var(--akzent); }
.schritt .bild { margin: 22px 0; }
.schritt .bild.handy { margin: 22px 0; }
.schritt .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.taste { display: inline-block; border: 1px solid var(--rand); border-bottom-width: 3px; border-radius: 7px; padding: 0 7px;
  font-size: .86em; line-height: 1.55; background: var(--flaeche2); white-space: nowrap; color: var(--text); }
.ort { font-weight: 600; color: var(--text); }
.tipp { background: rgba(255, 122, 26, .08); border: 1px solid rgba(255, 122, 26, .35); border-radius: 10px; padding: 12px 16px; color: var(--leise); margin: 14px 0; }
.tipp strong { color: var(--akzent); }

/* ---------- Rechtstexte, Download ---------- */
.text { max-width: 780px; }
.text h2 { font-size: 22px; margin-top: 1.8em; }
.text > h2:first-child { margin-top: 0; }
.text h3 { font-size: 18px; margin-top: 1.4em; color: var(--akzent); }
.text ol, .text ul { padding-inline-start: 1.3em; }
.text li { margin-bottom: .4em; }
.adresse { font: 800 clamp(30px, 6vw, 46px)/1.1 var(--anzeige); font-stretch: 108%; color: var(--text); letter-spacing: .02em; margin: .2em 0 .3em; }
.adresse span { color: var(--akzent); }

/* ---------- Entwurf: offene Stellen unuebersehbar ---------- */
.platzhalter { border: 1px dashed var(--gold); color: var(--gold); border-radius: 4px; padding: 0 5px; }
.entwurf-band { display: none; }

/* ---------- Fuss ---------- */
.fuss { border-top: 1px solid var(--rand); color: var(--leise); font-size: 14px; padding: 36px 0 44px; background: var(--grund-tief); }
.fuss .huelle { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; }
.fuss a { color: var(--leise); text-decoration: none; display: block; padding: 2px 0; }
.fuss a:hover { color: var(--text); }
.fuss .marke, .fuss .marke:hover { color: var(--text); display: inline-flex; padding: 0; }
.fuss .titel { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--leiser); margin-bottom: 8px; }
.fuss .klein { grid-column: 1 / -1; color: var(--leiser); font-size: 13px; border-top: 1px solid var(--rand); padding-top: 18px; }
.fuss .klein p { margin: 0 0 4px; }

@media (max-width: 900px) {
  .held .raster, .merkmal, .inhalt, .preis-raster { grid-template-columns: 1fr; gap: 30px; }
  .merkmal:nth-child(even) .bild, .merkmal:nth-child(even) .bilder { order: 0; }
  .inhalt nav { position: static; max-height: none; border: 1px solid var(--rand); border-radius: 12px; padding: 14px 16px; background: var(--flaeche); }
  .vg-kopf { display: none; }
  .vg-zeile { grid-template-columns: 1fr; gap: 6px; }
  .vg-alt::before { content: "Oft: "; color: var(--leiser); font-weight: 600; }
  .fuss .huelle { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
  .held { padding: 40px 0 52px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .held h1 .akzent { white-space: normal; }
  .schritt .zwei { grid-template-columns: 1fr; }
  .merkmal .bilder { grid-template-columns: 1fr; }
  .merkmal .bilder .bild.handy { width: 200px; }
  .merkmal .bilder.handys { grid-template-columns: 1fr 1fr; }
  .merkmal .bilder.handys .bild.handy { width: auto; }
  .fuss .huelle { grid-template-columns: 1fr; }
  .preis .betrag { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sprachwahl in der Kopfzeile (Aufklappliste) -- gebaut von sprachen/bauen.py */
.sprachwahl { position: relative; margin-inline-start: 10px; align-self: center; }
.sprachwahl summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text); padding: 6px 11px;
  border: 1px solid var(--linie, #4c4943); border-radius: 9px; font: 500 13px/1.4 var(--mono, monospace); letter-spacing: .06em; }
.sprachwahl summary::-webkit-details-marker { display: none; }
.sprachwahl summary::after { content: "▾"; color: var(--leise); }
.sprachwahl summary:hover, .sprachwahl[open] summary { background: var(--flaeche2); }
.sprachwahl .sprachliste { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; display: grid; grid-template-columns: repeat(2, minmax(9.5em, 1fr)); gap: 2px;
  padding: 6px; background: var(--flaeche, #34322f); border: 1px solid var(--rand); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.sprachwahl .sprachliste a { color: var(--leise); text-decoration: none; padding: 7px 10px; border-radius: 7px; font-size: 15px; white-space: nowrap; }
.sprachwahl .sprachliste a:hover { color: var(--text); background: var(--flaeche2); }
.sprachwahl .sprachliste a.aktiv { color: var(--text); background: var(--flaeche2); font-weight: 600; }
@media (max-width: 820px) { .sprachwahl { margin-inline-start: 0; } .sprachwahl .sprachliste { inset-inline-end: auto; inset-inline-start: 0; } }

/* Rechts nach links (Arabisch): der englische Spruch bleibt links-nach-rechts, Sperrschrift zerreisst arabische Buchstaben */
[dir="rtl"] .spruch { direction: ltr; justify-content: flex-end; }
[dir="rtl"] *:not(.marke):not(.marke *):not(.spruch) { letter-spacing: 0 !important; }
[dir="rtl"] { --mono: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
