@font-face { font-family: 'Space Grotesk'; src: url('/fonts/SpaceGrotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --gruen: #82B414; --petrol: #0E3B43; --grau: #808080;
  --mint: #EAF4F4; --schwarz: #0B0A07; --bg: #F0F2F2;
  --linie: rgba(14,59,67,0.12); --karte: #FFFFFF;
  --leiste-h: 56px;
}
* { box-sizing: border-box; }
::selection { background: rgba(130,180,20,0.35); }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 2px; }
html { scrollbar-color: rgba(14,59,67,0.35) transparent; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: rgba(14,59,67,0.3); border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(14,59,67,0.5); background-clip: content-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--petrol); font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; line-height: 1.5; }
a { color: var(--petrol); text-decoration: none; }
a:hover { color: var(--gruen); }
.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; }

.skiplink { position: absolute; left: -9999px; top: 0; background: var(--gruen); color: #fff; padding: 10px 18px; z-index: 99; }
.skiplink:focus { left: 12px; top: 12px; color: #fff; }

.raster { position: fixed; inset: 0; background-image: linear-gradient(rgba(14,59,67,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14,59,67,0.05) 1px, transparent 1px); background-size: 64px 64px; animation: gridmove 6s linear infinite; pointer-events: none; z-index: 0; }
main, footer { position: relative; z-index: 1; }
/* Der Footer bleibt unten, auch wenn alle Fenster geschlossen sind: main waechst in die
   freie Hoehe. Im Fluss stehen unter body nur main und footer — alles andere ist fixed
   oder absolute, die Spalte trifft also nichts sonst. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
.container { width: min(1360px, 100%); margin: 0 auto; padding: 0 24px; }

@keyframes gridmove { from { background-position: 0 0; } to { background-position: 0 64px; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Held */
.held { padding: 40px 0 80px 0; text-align: center; }
.ueberzeile { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--gruen); letter-spacing: 0.2em; font-weight: 500; animation: fadeup 0.8s ease-out both; }
.held h1 { margin: 14px auto 0 auto; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; font-weight: 700; max-width: 900px; animation: fadeup 0.8s ease-out 0.15s both; }
.held h1 .gruen { color: var(--gruen); }
.cursor { display: inline-block; width: 0.12em; height: 0.75em; background: var(--gruen); margin-left: 8px; animation: blink 1.1s step-end infinite; }
.held .intro { margin: 26px auto 0 auto; font-size: 17px; line-height: 1.6; color: var(--grau); max-width: 620px; }
.knopfzeile { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 40px; animation: fadeup 0.8s ease-out 0.5s both; }
.knopf-voll { padding: 16px 34px; background: var(--gruen); color: #fff; font-weight: 700; font-size: 16px; border-radius: 7px; box-shadow: 0 10px 30px rgba(130,180,20,0.35); }
.knopf-voll:hover { color: #fff; background: #6f9a11; }
.knopf-rahmen { padding: 16px 34px; border: 1px solid rgba(14,59,67,0.25); font-size: 16px; border-radius: 7px; background: rgba(255,255,255,0.7); }

/* ASCII-Teambild */
.ascii-karte { margin: 34px auto 0 auto; max-width: 1312px; background: var(--karte); border: 1px solid rgba(14,59,67,0.14); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(14,59,67,0.1); animation: fadeup 0.9s ease-out 0.4s both; }
.ascii-kopf { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-bottom: 1px solid rgba(14,59,67,0.1); background: rgba(14,59,67,0.04); }
.punkt { width: 11px; height: 11px; border-radius: 50%; }
.ascii-kopf .titel { margin-left: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--grau); }
.ascii-karte pre.ascii-team { margin: 0; padding: 12px 10px; font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: 3.4px; line-height: 4px; text-align: left; color: #22444B; background: var(--karte); overflow: hidden; -webkit-text-size-adjust: none; text-size-adjust: none; }
.ascii-fuss { padding: 9px 18px; border-top: 1px solid rgba(14,59,67,0.1); font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gruen); text-align: left; }

/* Zahlenleiste */
.zahlen { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: rgba(255,255,255,0.6); }
.zahlen-innen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.zahl { padding: 36px 24px; border-right: 1px solid var(--linie); }
.zahl:last-child { border-right: none; }
.zahl strong { display: block; font-size: 44px; font-weight: 700; color: var(--gruen); line-height: 1.1; }
.zahl strong::after { content: ""; display: block; width: 0; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--gruen); transition: width 0.5s ease; }
.zahl.fertig strong::after { width: 30px; }
.zahl span { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--grau); }
/* Kacheln kommen NACHEINANDER, damit nicht alle Zahlen gleichzeitig rattern */
body.anim .zahl { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
body.anim .zahl.da { opacity: 1; transform: translateY(0); }

/* Abschnitte */
section, section.container { padding-top: 90px; padding-bottom: 40px; }
.abschnitt-marke { font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: var(--gruen); letter-spacing: 0.2em; font-weight: 500; }
section h2 { margin: 18px 0 50px 0; font-size: clamp(30px, 3.8vw, 52px); font-weight: 700; }

/* Services */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.karte { padding: 40px 34px; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; box-shadow: 0 10px 30px rgba(14,59,67,0.05); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.karte:hover { transform: translateY(-5px); border-color: var(--gruen); box-shadow: 0 18px 40px rgba(14,59,67,0.13); }
.karte:hover svg { filter: drop-shadow(0 0 6px rgba(130,180,20,0.45)); }
/* Die Leistungskarten sind Links auf ihr Detailblatt — ohne den Pfeil sieht man das
   nicht an, und wer zum ersten Mal hier ist, klickt sonst nirgends. */
a.karte { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.karte-pfeil { display: block; margin-top: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--gruen); opacity: 0.75; transition: opacity 0.2s ease, transform 0.2s ease; }
.karte:hover .karte-pfeil { opacity: 1; transform: translateX(3px); }
.karte svg { transition: filter 0.3s ease; }
.karte h3 { margin: 24px 0 12px 0; font-size: 24px; font-weight: 700; }
.karte p { margin: 0; color: var(--grau); font-size: 16px; line-height: 1.6; }
.karte.hervor { background: linear-gradient(135deg, rgba(130,180,20,0.14), rgba(255,255,255,0.8)); border-color: var(--gruen); display: flex; flex-direction: column; justify-content: center; }
.karte.hervor .pfeil { font-family: 'IBM Plex Mono', monospace; color: var(--gruen); font-size: 15px; font-weight: 500; margin-top: 20px; }

/* Terminal / Ablauf */
.terminal { margin-bottom: 50px; background: var(--schwarz); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(14,59,67,0.18); }
.terminal-kopf { display: flex; align-items: center; gap: 8px; padding: 16px 22px; border-bottom: 1px solid rgba(234,244,244,0.12); background: rgba(234,244,244,0.05); }
.terminal-kopf .titel { margin-left: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--grau); }
.terminal-rumpf { padding: 36px 40px; font-family: 'IBM Plex Mono', monospace; font-size: 16px; line-height: 1.8; color: var(--mint); }
.terminal-rumpf .prompt { color: var(--gruen); }
.tzeile { display: flex; gap: 24px; margin-top: 16px; }
.tzeile .schritt { color: var(--gruen); font-weight: 500; white-space: nowrap; min-width: 15.5em; }
.tzeile .text { color: var(--grau); }
.terminal-rumpf .fertig { margin-top: 24px; color: var(--mint); }
.cursor-t { display: inline-block; width: 9px; height: 18px; background: var(--gruen); margin-left: 10px; vertical-align: middle; animation: blink 1.1s step-end infinite; }
@media (max-width: 720px) {
  .terminal-rumpf { padding: 24px 18px; font-size: 14px; }
  .tzeile { flex-direction: column; gap: 4px; }
  .tzeile .schritt { min-width: 0; }
}

/* Systemhaus & Partner */
.partner h2 { margin-bottom: 20px; }
.partner .partner-hin { margin: 0 0 44px 0; color: var(--grau); font-size: 17px; max-width: 640px; line-height: 1.6; }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 44px; max-width: 980px; }
.badge-kachel { position: relative; overflow: hidden; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 34px 26px; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; box-shadow: 0 10px 30px rgba(14,59,67,0.05); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.badge-kachel:hover { transform: translateY(-5px); border-color: var(--gruen); box-shadow: 0 18px 40px rgba(14,59,67,0.14); }
.badge-kachel::after { content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; background: linear-gradient(105deg, transparent, rgba(130,180,20,0.10), transparent); transform: skewX(-18deg); transition: left 0.7s ease; pointer-events: none; }
.badge-kachel:hover::after { left: 130%; }
.badge-kachel img { max-width: 190px; height: auto; }
.badge-kachel figcaption { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--grau); text-align: center; line-height: 1.5; }
.badge-kachel.terra .terra-wort { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; color: var(--petrol); line-height: 1; }
.badge-kachel.terra .terra-wort .haken { color: var(--gruen); }

/* Kontakt */
.kontakt { text-align: center; padding-bottom: 90px; }
.kontakt p.hin { margin: 24px auto 0 auto; color: var(--grau); font-size: 19px; max-width: 560px; line-height: 1.6; }
.kontakt .knopf-voll { display: inline-block; margin-top: 44px; padding: 20px 52px; font-size: 18px; border-radius: 4px; }
.kontakt .daten { margin-top: 26px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: var(--grau); }

/* Fusszeile */
footer { border-top: 1px solid var(--linie); padding: 30px 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--grau); }
.fuss-innen { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.fuss-innen img { height: 34px; width: auto; }
.fuss-links { display: flex; gap: 32px; flex-wrap: wrap; }
.fuss-links a { color: var(--grau); }

/* ── Fenster im Windows-Stil ── */
.fenster-leiste { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(14,59,67,0.1); background: rgba(14,59,67,0.04); user-select: none; }
.fenster-titel { display: flex; align-items: center; gap: 8px; padding: 0 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--grau); }
.fenster-knoepfe { display: flex; }
.fenster-knoepfe button { width: 46px; height: 34px; border: 0; background: transparent; color: var(--petrol); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease, color 0.15s ease; }
.fenster-knoepfe button:hover { background: rgba(14,59,67,0.1); }
.fenster-knoepfe button.zu:hover { background: #C42B1C; color: #FFFFFF; }
/* Einmaliger Hinweis-Glow nach dem Laden: die Knoepfe stellen sich kurz vor */
@keyframes knopfglow { 0%, 100% { background: transparent; box-shadow: none; } 45% { background: rgba(130,180,20,0.18); box-shadow: 0 0 12px rgba(130,180,20,0.55); } }
.fenster-knoepfe.hinweis button:nth-child(1) { animation: knopfglow 0.9s ease 0.1s 1; }
.fenster-knoepfe.hinweis button:nth-child(2) { animation: knopfglow 0.9s ease 0.65s 1; }
.fenster-knoepfe.hinweis button:nth-child(3) { animation: knopfglow 0.9s ease 1.2s 1; }
/* Vierter Platz vorgesehen (Maximieren-Knopf) — sonst blitzt der Schliessen-Knopf nicht mehr mit */
.fenster-knoepfe.hinweis button:nth-child(4) { animation: knopfglow 0.9s ease 1.75s 1; }
.ascii-buehne { position: relative; overflow: hidden; background: var(--karte); height: 732px; transition: height 0.6s ease; }
.ascii-team { will-change: transform; position: relative; left: 50%; transform: translateX(-50%); transform-origin: top center; width: max-content; transition: transform 0.65s ease; }
.karten.anim .karte { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.karten.anim .karte.da { opacity: 1; transform: translateY(0); }
.karten.anim .karte.da:hover { transform: translateY(-5px); transition: opacity 0.6s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; transition-delay: 0s !important; }
.ascii-karte { transition: transform 0.45s ease, opacity 0.45s ease, max-width 0.6s ease, box-shadow 0.6s ease; }
.ascii-karte.klein { max-width: 820px; box-shadow: 0 30px 70px rgba(14,59,67,0.22); border-radius: 10px; }
.fenster-titel span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ascii-karte.klein .fenster-titel span { max-width: 34vw; }
@media (max-width: 720px) { .fenster-titel span { max-width: 46vw; } }
.ascii-karte.minimiert { transform: translateY(60vh) scale(0.08); opacity: 0; pointer-events: none; }
.ascii-karte.weg { display: none; }
/* Schliessen/Wiederherstellen im Roehrenmonitor-Stil (Power-Off/On).
   Bewusst per clip-path statt transform: scale — Skalieren liess die GPU eine
   zusammengestauchte Textur cachen, die beim Wiederherstellen hochgestreckt
   wurde (weisse Querstriche uebers ganze Bild). Beschnitt laesst die Textur 1:1. */
@keyframes crtaus { 0% { clip-path: inset(0 0); filter: brightness(1); opacity: 1; } 55% { clip-path: inset(calc(50% - 2px) 0); filter: brightness(2.4); opacity: 1; } 85% { clip-path: inset(calc(50% - 1px) 46%); filter: brightness(3); opacity: 1; } 100% { clip-path: inset(calc(50% - 1px) 50%); filter: brightness(3); opacity: 0; } }
@keyframes crtein { 0% { clip-path: inset(calc(50% - 1px) 50%); filter: brightness(3); opacity: 0; } 15% { opacity: 1; } 50% { clip-path: inset(calc(50% - 2px) 0); filter: brightness(2.4); } 100% { clip-path: inset(0 0); filter: brightness(1); opacity: 1; } }
.ascii-karte.js-fenster { animation: none; }
.ascii-karte.zu { animation: crtaus 0.55s cubic-bezier(0.6, 0, 0.9, 0.4) both; pointer-events: none; }
.ascii-karte.an { animation: crtein 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Scroll-Reveal: erst aktiv, wenn JS body.anim setzt — ohne JS bleibt alles sichtbar */
body.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease var(--rd, 0s), transform 0.7s ease var(--rd, 0s), letter-spacing 0.9s ease var(--rd, 0s); }
body.anim .reveal.da { opacity: 1; transform: translateY(0); }
body.anim .abschnitt-marke.reveal { letter-spacing: 0.45em; }
body.anim .abschnitt-marke.reveal.da { letter-spacing: 0.2em; }
/* Kontakt-Knopf: dezenter Puls, sobald die Sektion im Bild ist */
@keyframes pulsschein { 0%, 100% { box-shadow: 0 0 0 0 rgba(130, 180, 20, 0.4); } 60% { box-shadow: 0 0 0 14px rgba(130, 180, 20, 0); } }
body.anim .kontakt.da .knopf-voll { animation: pulsschein 2.8s ease-out 0.9s infinite; }

/* Der Vorspann eines Abschnitts (Marke, Ueberschrift, Einleitung) verschwindet mit
   seinem Fenster — ohne das Fenster hat er keinen Gegenstand mehr.
   ⚠️ Die Reveal-Regel setzt `opacity: 1` auf `.reveal.da`; diese Regel muss sie
   ueberbieten, darum die zwei Klassen im Selektor. */
.vorspann-weg, body.anim .reveal.da.vorspann-weg {
  opacity: 0; max-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0;
  overflow: hidden; pointer-events: none;
  transition: opacity 0.35s ease, max-height 0.45s ease, margin 0.45s ease, padding 0.45s ease;
}

/* ── Der Inhalt ist die Tuer ──
   Der Rumpf eines Fensters mit eigener Seite ist selbst anklickbar; beim Darueberfahren
   legt sich ein Schleier mit der Einladung darueber.
   ⚠️ Der Schleier ist `pointer-events: none` und liegt NUR ueber dem Rumpf: die
   Titelleiste bleibt Griff zum Verschieben, und Links und Knoepfe im Rumpf (die
   Leistungskarten!) behalten ihre eigene Wirkung. */
.ist-tuer { position: relative; cursor: pointer; }
.tuer-schleier {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  background: rgba(243,246,246,0.58); opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
@supports (backdrop-filter: blur(1px)) {
  .tuer-schleier { backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
}
.ist-tuer:hover .tuer-schleier { opacity: 1; }
.tuer-wort {
  padding: 14px 26px; border-radius: 10px; background: var(--gruen); color: #FFFFFF;
  font-family: 'IBM Plex Mono', monospace; font-size: 15px; letter-spacing: 0.02em;
  box-shadow: 0 16px 38px rgba(14,59,67,0.25);
  transform: translateY(6px); transition: transform 0.22s ease;
}
.ist-tuer:hover .tuer-wort { transform: translateY(0); }
/* Der Maximier-Knopf atmet, bis er zum ersten Mal benutzt wurde */
@keyframes knopfatmen {
  0%, 100% { background: transparent; box-shadow: none; }
  50% { background: rgba(130,180,20,0.22); box-shadow: 0 0 0 3px rgba(130,180,20,0.18); }
}
.fenster-knoepfe button.atmet { animation: knopfatmen 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .fenster-knoepfe button.atmet { animation: none; background: rgba(130,180,20,0.18); }
  .tuer-schleier, .tuer-wort { transition: none; }
}

/* ── Verbundfirmen im kleinen partner.exe-Fenster ──
   Wie die Leistungskarten: anklickbar fuehren sie direkt aufs Firmenblatt; Firmen ohne
   freigegebenen Text stehen still und blass da. */
.verbund-reihe { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.verbund-kachel {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 14px;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 10px;
  text-decoration: none; color: var(--petrol);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.verbund-kachel img { width: 100%; height: 64px; object-fit: contain; }
.vk-name { font-size: 14px; font-weight: 700; text-align: center; }
.vk-pfeil { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #4C7409; }
a.verbund-kachel:hover { transform: translateY(-4px); border-color: var(--gruen); box-shadow: 0 16px 36px rgba(14,59,67,0.12); }
.verbund-kachel.still { opacity: 0.6; }
/* Die Partner-Badges ruecken unter die Firmen und werden kleiner */
#f-partner .os-rumpf.badges { gap: 18px; }
#f-partner .badge-kachel { padding: 18px 16px; gap: 10px; }
#f-partner .badge-kachel img { max-width: 130px; }
#f-partner .badge-kachel.terra .terra-wort { font-size: 32px; }

/* ── Dokumente (Impressum, Datenschutz): nur im Vollbild sichtbar ── */
.os-fenster.nur-vollbild:not(.maxi) { display: none; }
.recht { max-width: 820px; }
.recht h3 { margin: 28px 0 8px; font-size: 18px; }
.recht p { margin: 0 0 12px; line-height: 1.7; }
.recht-grund { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--grau); }
.recht-entwurf { color: #8A4B0F; }
.recht-daten { display: grid; grid-template-columns: 200px 1fr; gap: 8px 22px; margin: 22px 0 8px; }
.recht-daten dt { color: var(--grau); }
.recht-daten dd { margin: 0; }
/* Orange = Angabe fehlt noch. Muss vor dem Livegang verschwinden. */
mark.offen { background: #FFF3E3; color: #8A4B0F; padding: 0 6px; border-radius: 4px; }
@media (max-width: 700px) { .recht-daten { grid-template-columns: 1fr; gap: 2px; } .recht-daten dd { margin-bottom: 10px; } }

/* ── Taskleiste (Windows-11-Look) ── */
.taskleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 6px; height: var(--leiste-h); background: rgba(243,246,246,0.96); border-top: 1px solid rgba(14,59,67,0.08); box-shadow: 0 -6px 24px rgba(14,59,67,0.08); transform: translateY(110%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); color: var(--petrol); font-family: 'IBM Plex Mono', monospace; }
@supports (backdrop-filter: blur(1px)) { .taskleiste { background: rgba(243,246,246,0.7); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); } }
.taskleiste.sichtbar { transform: translateY(0); }
.taskleiste button { position: relative; border: 0; background: transparent; color: var(--petrol); cursor: pointer; height: 44px; border-radius: 8px; display: flex; align-items: center; gap: 9px; padding: 0 13px; font-family: inherit; font-size: 13px; transition: background 0.15s ease, transform 0.1s ease; }
.taskleiste button[hidden] { display: none; }
.taskleiste button:hover { background: rgba(14,59,67,0.07); }
.taskleiste button:active { transform: scale(0.94); }
/* Angeheftete Leiste: JEDES Fenster hat hier dauerhaft seinen Platz — offen wie
   geschlossen. Nur Symbole, dafuer grosszuegig: in der Leiste ist Platz. */
#task-apps button { width: 54px; height: 46px; padding: 0; justify-content: center; border-radius: 10px; }
#task-apps button svg { width: 24px; height: 24px; opacity: 0.45; transition: opacity 0.15s ease; }
#task-apps button:hover svg { opacity: 1; }
/* Laeuft = offen: heller Grund, Rahmen und Strich darunter — wie in Windows. Ein
   geschlossenes Fenster steht blass daneben. */
#task-apps button.laeuft { background: rgba(130,180,20,0.16); box-shadow: inset 0 0 0 1px rgba(130,180,20,0.45); }
#task-apps button.laeuft svg { opacity: 1; }
#task-apps button.laeuft:hover { background: rgba(130,180,20,0.26); }
@media (max-width: 700px) {
  #task-apps button { width: 44px; height: 40px; }
  #task-apps button svg { width: 20px; height: 20px; }
}
/* Mehrere Personenfenster offen: team.jpg leuchtet orange und traegt die Zahl — Zeigen
   auf das Symbol oeffnet die Auswahl. Muss NACH .laeuft stehen, sonst gewinnt das Gruen. */
@keyframes orangeatmen {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(232,137,43,0.55), 0 0 8px rgba(232,137,43,0.30); }
  50%      { box-shadow: inset 0 0 0 1px rgba(232,137,43,0.75), 0 0 18px rgba(232,137,43,0.60); }
}
#task-apps button.laeuft.mehrere { background: rgba(232,137,43,0.18); animation: orangeatmen 2.6s ease-in-out infinite; }
#task-apps button.mehrere svg { stroke: #C26A12; opacity: 1; }
.taskleiste button.mehrere.laeuft::after { background: #C26A12; }
.task-zahl {
  position: absolute; right: 4px; top: 3px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box;
  border-radius: 9px; background: #A8570B; color: #FFFFFF;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
}
.task-zahl[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { #task-apps button.laeuft.mehrere { animation: none; } }
.taskleiste button.laeuft::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 3px; width: 18px; height: 3px; border-radius: 2px; background: var(--gruen); }
/* Fenstervorschau ueber dem Taskleisten-Symbol (wie in der Windows-Taskleiste).
   z-index ueber der Leiste (60), damit sie nicht darunter verschwindet. */
.task-vorschau {
  position: fixed; z-index: 70; display: flex; gap: 8px; padding: 8px;
  background: rgba(243,246,246,0.98); border: 1px solid var(--linie); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(14,59,67,0.22);
}
.task-vorschau[hidden] { display: none; }
.tv-eintrag {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 108px;
  padding: 8px 6px; border: 1px solid transparent; border-radius: 9px; background: var(--karte);
  cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--petrol);
}
.tv-eintrag:hover { border-color: var(--gruen); background: rgba(130,180,20,0.14); }
.tv-eintrag img { width: 92px; height: 62px; object-fit: cover; border-radius: 6px; display: block; }
.task-tray { position: absolute; right: 8px; display: flex; align-items: center; gap: 4px; font-size: 12px; }
.task-status { color: var(--gruen); display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; }
.task-uhr { text-align: right; line-height: 1.35; color: var(--petrol); padding: 5px 10px; border-radius: 8px; transition: background 0.15s ease; }
.task-uhr:hover, .task-status:hover { background: rgba(14,59,67,0.07); }
/* Marke links in der Leiste (wie der Startbereich), Apps in der Mitte, Tray rechts */
.taskleiste .task-logo { position: absolute; left: 10px; }
.task-logo img { height: 30px; width: auto; display: block; }
.task-support { background: var(--gruen) !important; color: #FFFFFF !important; font-weight: 700 !important; padding: 0 18px !important; height: 40px !important; box-shadow: 0 6px 18px rgba(130,180,20,0.35); }
.task-support:hover { background: #6f9a11 !important; }
@media (max-width: 720px) {
  .task-status { display: none; }
  .task-logo { padding: 0 8px; }
  .task-logo img { height: 26px; }
  .task-support { padding: 0 12px !important; font-size: 12px !important; }
  .task-uhr { padding: 5px 6px; font-size: 11px; }
}

/* Terminal tippt sich, sobald es ins Bild kommt */
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
/* Die Zeilen brechen um wie normaler Text — getippt wird per JS (os.js, jsTippen).
   ⚠️ Keine feste Breite und kein nowrap: die fruehere CSS-Tippfassung (width: var(--b))
   ragte in schmalen Fenstern aus dem Terminal. */
.t-tipp { display: inline; white-space: normal; overflow-wrap: anywhere; }
.tzeile .text { min-width: 0; }
.terminal.js .cursor-t { opacity: 0; animation: none; }
.terminal.tippt .cursor-t { opacity: 0; animation: einblenden 0.1s var(--tv) both, blink 1.1s step-end var(--tv) infinite; }
.terminal.js:not(.tippt) .t-tipp { visibility: hidden; }   /* bis das Tippen beginnt, kein Aufblitzen */
.terminal.jstippt .cursor-t { animation: none; opacity: 0; }
.terminal.jstippt.jfertig .cursor-t { opacity: 1; animation: blink 1.1s step-end infinite; }

/* ── Desktop-OS-Fassung: die Seite ist ein Betriebssystem-Desktop (helles Wallpaper) ── */
body { background: linear-gradient(160deg, #FBFDF9 0%, #F1F7EC 45%, #E6F0DC 100%) fixed; }
.raster { background-image: radial-gradient(rgba(14,59,67,0.1) 1px, transparent 1px); background-size: 34px 34px; animation: none; }
section, section.container { padding-top: 46px; padding-bottom: 24px; }
.os-fenster { position: relative; background: var(--karte); border: 1px solid rgba(14,59,67,0.16); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(14,59,67,0.16); }
.os-rumpf { padding: 44px 48px; }
.os-schmal { max-width: 1080px; }
.os-links { margin-right: auto; margin-left: 0; }
.os-rechts { margin-left: auto; margin-right: 0; }
.os-fenster .zahlen { border: 0; background: transparent; }
/* Jedes Fenster ist bedienbar: minimieren (Genie), schliessen (CRT), Fokus beim Klick */
.os-intro { animation: fadeup 0.8s ease-out both; }
.js-fenster { animation: none; }
.os-fenster, .terminal { transition: transform 0.45s ease, opacity 0.45s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.os-fenster.minimiert, .terminal.minimiert { transform: translateY(60vh) scale(0.08); opacity: 0; pointer-events: none; }
.os-fenster.weg, .terminal.weg { display: none; }
.os-fenster.zu, .terminal.zu { animation: crtaus 0.55s cubic-bezier(0.6, 0, 0.9, 0.4) both; pointer-events: none; }
.os-fenster.an, .terminal.an { animation: crtein 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }
.os-fenster.fokus, .ascii-karte.fokus { border-color: rgba(130,180,20,0.6); box-shadow: 0 36px 84px rgba(14,59,67,0.26); }
.terminal.fokus { box-shadow: 0 36px 84px rgba(14,59,67,0.42); }
.terminal .fenster-knoepfe { margin-left: auto; }
.terminal .fenster-knoepfe button { color: var(--mint); }
.terminal .fenster-knoepfe button:hover { background: rgba(234,244,244,0.14); }
.terminal .fenster-knoepfe button.zu:hover { background: #C42B1C; color: #FFFFFF; }
/* Interaktives Terminal: echte Eingabezeile */
#t-ausgabe { margin-top: 14px; white-space: pre-wrap; font-size: 14px; line-height: 1.8; }
#t-ausgabe .zeile-befehl { color: var(--gruen); }
#t-ausgabe .zeile-grau { color: var(--grau); }
#t-ausgabe .zeile-gruen { color: var(--gruen); }
.t-eingabe { display: flex; align-items: center; gap: 10px; margin-top: 18px; border-top: 1px solid rgba(234,244,244,0.12); padding-top: 16px; }
.t-eingabe .t-prompt { color: var(--gruen); font-weight: 500; }
.t-eingabe input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--mint); font-family: inherit; font-size: 15px; caret-color: var(--gruen); min-height: 30px; }
.t-eingabe input::placeholder { color: rgba(234,244,244,0.35); }
/* Boot-Fortschrittsbalken */
.boot-balken { margin-top: 34px; width: min(420px, 70vw); height: 10px; border: 1px solid rgba(155,212,30,0.5); padding: 2px; }
.boot-balken span { display: block; height: 100%; width: 0; background: #9BD41E; transition: width 0.25s steps(6); }
.task-apps { display: flex; gap: 4px; }
/* Fenster am Titel verschieben (nur Desktop mit Maus) */
.os-fenster, .ascii-karte, .terminal { z-index: 1; }
.os-fenster.fokus, .ascii-karte.fokus, .terminal.fokus { z-index: 2; }
.schleppt { user-select: none; }
@media (min-width: 1000px) and (pointer: fine) {
  .fenster-leiste, .terminal-kopf { cursor: grab; }
  .schleppt .fenster-leiste, .schleppt .terminal-kopf { cursor: grabbing; }
  .fenster-knoepfe button { cursor: pointer; }
}
/* ── Boot-Sequenz (einmal je Sitzung, ueberspringbar) ── */
.boot { position: fixed; inset: 0; z-index: 100; background: #0B0A07; color: #9BD41E; cursor: pointer; padding: 9vh 10vw; transition: opacity 0.45s ease; }
.boot pre { margin: 0; font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: 15px; line-height: 1.9; white-space: pre-wrap; }
.boot .boot-hinweis { position: absolute; bottom: 30px; right: 34px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(234,244,244,0.45); }
.boot.aus { opacity: 0; pointer-events: none; }
/* Desktop-Icons segeln nach dem Boot gestaffelt herein */
body.anim .desktop-icon { opacity: 0; }
body.os-bereit .desktop-icon { animation: fadeup 0.5s ease-out both; }
body.os-bereit .desktop-icon:nth-child(1) { animation-delay: 0.05s; }
body.os-bereit .desktop-icon:nth-child(2) { animation-delay: 0.16s; }
body.os-bereit .desktop-icon:nth-child(3) { animation-delay: 0.27s; }
body.os-bereit .desktop-icon:nth-child(4) { animation-delay: 0.38s; }
body.os-bereit .desktop-icon:nth-child(5) { animation-delay: 0.49s; }
footer { margin-bottom: var(--leiste-h); }
/* Desktop-Verknuepfungen links (nur auf breiten Schirmen) */
.desktop-icons { position: fixed; left: 26px; top: 130px; display: flex; flex-direction: column; gap: 24px; z-index: 40; }
.desktop-icon { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 94px; color: var(--petrol); }
.desktop-icon .di-kachel { display: flex; width: 56px; height: 56px; background: rgba(255,255,255,0.75); border: 1px solid rgba(14,59,67,0.16); border-radius: 12px; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(14,59,67,0.08); transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.desktop-icon .di-name { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-align: center; }
.desktop-icon:hover { color: var(--gruen); }
.desktop-icon:hover .di-kachel { background: rgba(130,180,20,0.16); border-color: var(--gruen); transform: translateY(-3px); }
/* Laptop (1000–1559px): Icons bleiben LINKS (kompakter), die Fenster ruecken dafuer nach rechts */
@media (min-width: 1000px) and (max-width: 1559px) {
  .desktop-icons { left: 12px; top: 84px; gap: 14px; }
  .desktop-icon { width: 84px; gap: 5px; }
  .desktop-icon .di-kachel { width: 46px; height: 46px; }
  .desktop-icon .di-name { font-size: 10px; }
  main { padding-left: 100px; }
}
/* Unter 1000px: Icons als Startreihe ueber dem ersten Fenster (Navigation ohne Kopfzeile) */
@media (max-width: 999px) {
  .desktop-icons { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px 18px; padding: 26px 12px 4px 12px; }
  .desktop-icon { width: 68px; }
  .desktop-icon .di-kachel { width: 48px; height: 48px; }
  .desktop-icon .di-name { font-size: 10px; }
}
@media (max-width: 720px) {
  .os-rumpf { padding: 28px 20px; }
  .os-fenster { border-radius: 10px; }
  section, section.container { padding-top: 34px; padding-bottom: 16px; }
  .boot { padding: 12vh 7vw; }
  .boot pre { font-size: 12.5px; }
  .task-apps { max-width: 40vw; overflow-x: auto; }
}
/* Taskleiste ist im OS immer da */
.taskleiste { transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }

/* ══ STARTMENUE-UMBAU (Block-Anfang): Start-Button, Startmenue, Toast, Kontextmenue, Taskleisten-Budget ══ */
/* Taskleisten-Budget: Logo/Support/Uhr fest, der App-Streifen ist die EINZIGE flexible Zone */
.taskleiste { justify-content: flex-start; padding: 0 8px; padding-bottom: env(safe-area-inset-bottom, 0px); height: calc(var(--leiste-h) + env(safe-area-inset-bottom, 0px)); }
.taskleiste .task-logo { position: static; flex: 0 0 auto; height: 48px; padding: 0 10px; }
.task-logo img { height: 38px; transition: transform 0.15s ease; }
.task-logo:hover img { transform: scale(1.08); }
.task-logo.offen { background: rgba(14,59,67,0.09); }
.task-logo.offen img { transform: scale(1.08); }
.task-apps { flex: 1 1 auto; min-width: 0; overflow-x: auto; display: flex; justify-content: center; align-items: center; gap: 4px; max-width: none; }
.task-tray { position: static; margin-left: 8px; flex: 0 0 auto; }
.task-support { display: flex; align-items: center; gap: 8px; height: 46px !important; animation: supportpuls 4s ease-in-out infinite; }
@keyframes supportpuls { 0%, 100% { box-shadow: 0 6px 18px rgba(130,180,20,0.35); } 50% { box-shadow: 0 6px 18px rgba(130,180,20,0.35), 0 0 0 7px rgba(130,180,20,0.18); } }
@media (max-width: 600px) {
  .task-support .ts-text { display: none; }
  .task-support { padding: 0 10px !important; }
  #task-datum { display: none; }
  .task-uhr br { display: none; }
}
/* Wallpaper-Wasserzeichen: dezent, hinter allen Fenstern */
.wallpaper-logo { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 0; opacity: 0.07; pointer-events: none; }
.wallpaper-logo img { width: min(400px, 55vw); height: auto; display: block; }
@media (forced-colors: active) { .wallpaper-logo { display: none; } }
/* Startmenue: nicht-modales Popover ueber der Taskleiste (Windows-11-Optik, hell) */
.startmenue { position: fixed; left: 10px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 90px); overflow-y: auto; background: rgba(248,250,248,0.97); border: 1px solid rgba(14,59,67,0.14); border-radius: 14px; box-shadow: 0 30px 80px rgba(14,59,67,0.28); padding: 20px; font-family: 'IBM Plex Mono', monospace; color: var(--petrol); animation: fadeup 0.22s ease-out; }
@supports (backdrop-filter: blur(1px)) { .startmenue { background: rgba(248,250,248,0.82); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6); } }
.startmenue[hidden] { display: none; }
.sm-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sm-kopf img { height: 44px; width: auto; }
.sm-kopf strong { display: block; font-size: 16px; }
.sm-kopf span { font-size: 12px; color: var(--grau); }
.sm-suche { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.9); border: 1px solid rgba(14,59,67,0.18); border-radius: 10px; padding: 0 14px; }
.sm-suche:focus-within { border-color: var(--gruen); box-shadow: 0 0 0 2px rgba(130,180,20,0.25); }
.sm-suche svg { flex: 0 0 auto; }
.sm-suche input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--petrol); height: 44px; }
.sm-treffer { list-style: none; margin: 10px 0 0 0; padding: 0; }
.sm-treffer[hidden] { display: none; }
.sm-treffer li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.sm-treffer li .tr-schnipsel { color: var(--grau); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-treffer li.aktiv, .sm-treffer li:hover { background: rgba(130,180,20,0.14); }
.sm-treffer li svg { flex: 0 0 auto; }
.sm-titel { margin: 16px 0 8px 0; font-size: 11px; letter-spacing: 0.14em; color: var(--grau); }
.sm-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sm-kacheln button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--petrol); font-family: inherit; font-size: 11px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.sm-kacheln button:hover { background: rgba(255,255,255,0.9); border-color: rgba(14,59,67,0.14); }
.sm-kacheln button.sm-hervor { background: rgba(130,180,20,0.14); border-color: rgba(130,180,20,0.5); font-weight: 700; }
.sm-kacheln button.sm-hervor:hover { background: rgba(130,180,20,0.22); }
.sm-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(14,59,67,0.1); font-size: 12px; color: var(--grau); }
.sm-hotline a { color: var(--gruen); }
.sm-aktionen { display: flex; gap: 6px; }
.sm-aktionen button { border: 0; background: transparent; color: var(--petrol); font-family: inherit; font-size: 12px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.sm-aktionen button:hover { background: rgba(14,59,67,0.08); }
@media (max-width: 720px) {
  .startmenue { left: 0; right: 0; bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom, 0px)); width: 100%; border-radius: 16px 16px 0 0; max-height: calc(100dvh - var(--leiste-h) - env(safe-area-inset-bottom, 0px) - 12px); padding: 16px; }
  .sm-kacheln { grid-template-columns: repeat(3, 1fr); }
  .sm-kacheln button { padding: 14px 6px; font-size: 12px; }
}
/* Support-Toast (Windows-Benachrichtigung), Ansage laeuft ueber den separaten sr-status-Knoten */
.os-toast { position: fixed; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: min(340px, calc(100vw - 24px)); background: rgba(248,250,248,0.97); border: 1px solid rgba(14,59,67,0.14); border-radius: 12px; box-shadow: 0 24px 60px rgba(14,59,67,0.26); padding: 16px; font-family: 'IBM Plex Mono', monospace; color: var(--petrol); animation: fadeup 0.3s ease-out; }
.os-toast[hidden] { display: none; }
.os-toast strong { display: block; font-size: 14px; padding-right: 30px; }
.os-toast p { margin: 8px 0 12px 0; font-size: 12.5px; color: var(--grau); line-height: 1.5; }
.toast-zu { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--petrol); cursor: pointer; font-size: 15px; }
.toast-zu:hover { background: rgba(14,59,67,0.08); }
.toast-support { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; background: var(--gruen); color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; padding: 10px 16px; cursor: pointer; }
.toast-support:hover { background: #6f9a11; }
.toast-hotline { display: block; margin-top: 10px; font-size: 12px; color: var(--grau); }
.toast-hotline a { color: var(--gruen); }
.sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Rechtsklick-Kontextmenue auf der Desktop-Flaeche */
.kontextmenue { position: fixed; z-index: 90; min-width: 220px; background: rgba(248,250,248,0.97); border: 1px solid rgba(14,59,67,0.16); border-radius: 10px; box-shadow: 0 18px 50px rgba(14,59,67,0.28); padding: 6px; font-family: 'IBM Plex Mono', monospace; animation: fadeup 0.15s ease-out; }
.kontextmenue[hidden] { display: none; }
.kontextmenue button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 7px; background: transparent; color: var(--petrol); font-family: inherit; font-size: 13px; text-align: left; padding: 9px 12px; cursor: pointer; }
.kontextmenue button:hover, .kontextmenue button:focus-visible { background: rgba(130,180,20,0.14); }
/* Sechstes Desktop-Icon (support.exe) segelt mit herein */
body.os-bereit .desktop-icon:nth-child(6) { animation-delay: 0.6s; }
/* ══ STARTMENUE-UMBAU (Block-Ende) ══ */

/* ══ KONTAKTDATEN (Block-Anfang): Anruf-Knopf, klickbare Datenzeile, Fusszeile ══ */
.kontakt-knoepfe { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }
.kontakt .kontakt-knoepfe .knopf-voll { margin-top: 0; }
.kontakt-anruf { display: inline-flex; align-items: center; gap: 10px; padding: 20px 34px; font-size: 17px; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.kontakt-anruf:hover { border-color: var(--gruen); color: var(--gruen); }
.kontakt .kontakt-knoepfe { margin-top: 44px; }
.kontakt .daten a { color: var(--grau); border-bottom: 1px solid rgba(14,59,67,0.18); }
.kontakt .daten a:hover { color: var(--gruen); border-bottom-color: var(--gruen); }
.fuss-kontakt { display: flex; gap: 22px; flex-wrap: wrap; }
.fuss-kontakt a { color: var(--grau); display: inline-flex; align-items: center; gap: 7px; }
.fuss-kontakt a:hover { color: var(--gruen); }
@media (max-width: 720px) {
  .kontakt-anruf { padding: 16px 24px; font-size: 15px; }
  .kontakt .kontakt-knoepfe .knopf-voll { padding: 16px 28px; font-size: 16px; }
}
/* ══ KONTAKTDATEN (Block-Ende) ══ */

/* ══ TEAM (Block-Anfang): grosses Zeichenbild + Personen zum Aufklappen ══ */
/* ⚠️ Die Karte zentriert (das Zeichenbild sitzt mittig) — die Unterseite darf das
   nicht erben, sonst steht der Personentext zentriert wie ein Gedicht. */
.ascii-karte.maxi .os-unterseite { text-align: left; }
/* Das grosse Zeichenbild der Teamseite — Raster, Schrift und Baurezept sind dieselben
   wie beim kleinen Teambild auf dem Desktop. */
/* ⚠️ Breite und Schrift sind vom KLEINEN Teambild uebernommen (631 Spalten, 3,4px auf
   4px Zeile = 1287px natuerliche Breite). Beide Bilder muessen gleich aussehen, sonst
   bricht die Optik — darum auch dasselbe Baurezept, siehe werkzeuge/LIESMICH.md. */
.team-gross { position: relative; width: 100%; max-width: 1290px; margin: 0 auto 26px; overflow: hidden; }
.team-gross pre.ascii-gross {
  margin: 0; position: absolute; left: 50%; top: 0;
  transform: translateX(-50%) scale(1); transform-origin: top center;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 3.4px; line-height: 4px;          /* dieselben Masse wie pre.ascii-team */
  color: #22444B; width: max-content;
  -webkit-text-size-adjust: none; text-size-adjust: none;
}
/* Sieben gleich breite Kacheln in einer Reihe (seit Marian 148px statt 168px, Abstand 22 statt 30), Portraet oben, Name darunter */
/* ⚠️ align-items bleibt auf dem Vorgabewert `stretch`: damit ist jede Kachel so hoch
   wie die hoechste der Reihe — die laengste Kernkompetenz (Stefan) gibt das Mass vor.
   Mit `start` stand die Reihe frueher als Treppe. Der Kopf muss die Hoehe mitnehmen. */
.konten { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 22px; max-width: 1240px; margin: 0 auto; }
.konto { position: relative; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.konto:hover { transform: translateY(-4px); border-color: var(--gruen); box-shadow: 0 18px 40px rgba(14,59,67,0.12); }
/* Beim Darueberfahren wird der Zeichen-Mensch it-checker-gruen */
.konto:hover .konto-bild pre.portraet { color: var(--gruen); }
.konto-kopf {
  display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%;
  height: 100%;                                /* zieht die Kachel auf die Reihenhoehe */
  padding: 18px 14px 20px; background: none; border: 0; cursor: pointer;
  font-family: inherit; color: var(--petrol); text-align: center;
}
.konto-name { font-size: 17px; font-weight: 700; }
.konto-kern { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--grau); line-height: 1.45; }
/* Zeichenbild und Foto liegen uebereinander; beim Aufklappen wird scharf gestellt */
.konto-bild { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: var(--karte); }
.konto-bild img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: blur(6px); transition: opacity 0.5s ease, filter 0.5s ease;
}
.konto-bild pre.portraet {
  /* ⚠️ Ganzzahlige Zeilenhoehe ist Pflicht: 5px Schrift auf 6px Zeile — die Zelle ist
     damit exakt halb so breit wie hoch, dieselbe Zahl steckt in os.js als ZELLE.
     Die Groesse macht JS per scale(). */
  position: absolute; left: 50%; top: 50%; margin: 0;
  transform: translate(-50%, -50%) scale(1); transform-origin: center center;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 5px; line-height: 6px; color: #22444B; width: max-content; height: max-content;
  opacity: 1; transition: opacity 0.5s ease, color 0.25s ease;
  -webkit-text-size-adjust: none; text-size-adjust: none;
}
.konto.scharf .konto-bild img { opacity: 1; filter: blur(0); }
.konto.scharf .konto-bild pre.portraet { opacity: 0; }
.konto.nur-foto .konto-bild img { opacity: 1; filter: none; }
.konto.nur-foto .konto-bild pre.portraet { display: none; }
/* Die geoeffnete Kachel bleibt in der Reihe stehen und ist nur markiert — gelesen
   wird die Person in ihrem eigenen Fenster darueber. */
.konto.offen { border-color: var(--gruen); box-shadow: 0 18px 40px rgba(14,59,67,0.12); }
.konto.offen:hover { transform: none; }

/* ── Personenfenster: bewegliche Fenster ueber der Teamseite ──
   ⚠️ Die Ebene ist `fixed` und endet ueber der Taskleiste (z-index 60 gehoert ihr).
   Sie faengt selbst KEINE Klicks ab — sonst waere die Seite darunter tot. */
.person-ebene { position: fixed; left: 0; right: 0; top: 0; bottom: var(--leiste-h); z-index: 55; pointer-events: none; }
.person-ebene[hidden] { display: none; }
.person-fenster {
  /* ⚠️ KEIN `inset:0; margin:auto` zum Zentrieren: dabei zaehlt `left` nur als eine von
     zwei Randbedingungen, das Fenster wandert nur um die HALBE Zahl — die Kaskade wirkte
     halbiert und beim Ziehen blieb das Fenster hinter dem Zeiger zurueck. Die Mitte
     rechnet darum JS aus, left/top sind echte Bildpunkte. */
  position: absolute; left: 0; top: 0; pointer-events: auto;
  width: min(760px, 92vw); max-height: min(660px, 82vh); overflow: auto;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 12px;
  box-shadow: 0 30px 70px rgba(14,59,67,0.22), 0 2px 8px rgba(14,59,67,0.12);
}
.person-fenster.vorn { border-color: var(--gruen); }
.person-fenster.schleppt { user-select: none; }
.pf-leiste {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px 0 14px; height: 38px; background: var(--karte);
  border-bottom: 1px solid var(--linie); border-radius: 12px 12px 0 0;
}
.pf-titel { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--grau); }
.person-fenster.vorn .pf-titel { color: var(--petrol); }
.pf-knoepfe { display: flex; }
.pf-min, .pf-zu { width: 40px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: transparent; color: var(--petrol); cursor: pointer; }
.pf-min:hover { background: rgba(14,59,67,0.1); }
.pf-zu:hover { background: #C42B1C; color: #FFFFFF; }
/* Minimiert: das Fenster faehrt nach unten weg und ist nicht mehr anklickbar — es
   bleibt aber OFFEN und steht in der Vorschau am Taskleisten-Symbol.
   ⚠️ `visibility` erst am Ende des Uebergangs, sonst verschwindet es ohne Bewegung. */
.person-fenster.minimiert {
  opacity: 0; transform: translateY(40px) scale(0.94); pointer-events: none; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.person-fenster { transition: opacity 0.25s ease, transform 0.25s ease; }
.pf-kopf { display: grid; grid-template-columns: 240px 1fr; column-gap: 26px; align-items: center; padding: 22px 24px 16px; }
.pf-bild { width: 240px; height: 240px; object-fit: cover; border-radius: 9px; display: block; }
.pf-wer { display: flex; flex-direction: column; gap: 9px; }
.pf-name { font-size: 26px; font-weight: 700; color: var(--petrol); }
.pf-kern { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--grau); line-height: 1.45; }
.person-fenster .konto-text { padding: 0 24px 24px; }
@media (max-width: 700px) {
  .pf-kopf { grid-template-columns: 1fr; row-gap: 14px; padding: 16px 16px 12px; }
  .pf-bild { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .person-fenster .konto-text { padding: 0 16px 18px; }
}
/* Der Text laeuft unter Portraet und Namen ueber die volle Breite — daneben gestellt
   liesse er unter dem 360px hohen Portraet ein leeres Feld stehen. Er liegt beim Laden
   in seiner Kachel (Suchindex!) und wandert beim Oeffnen in die Tafel. */
.konto-text { font-size: 16px; line-height: 1.75; }
.konto-text p { margin: 0 0 16px; }
.konto-text p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .konten { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
  .team-gross { margin-bottom: 26px; }
}
/* ══ TEAM (Block-Ende) ══ */

/* ══ MAXIMIEREN (Block-Anfang): Unterseiten als Vollbild-Fenster ══ */
/* Unterseiten liegen IMMER im DOM (sonst findet die Startmenue-Suche sie nicht),
   sind aber nur im maximierten Zustand sichtbar. Kein hidden-Attribut. */
.os-unterseite { display: none; }
.os-fenster.maxi > .os-rumpf, .os-fenster.maxi > .zahlen,
.ascii-karte.maxi > .ascii-buehne, .ascii-karte.maxi > .ascii-fuss { display: none; }
.os-fenster.maxi > .os-unterseite, .ascii-karte.maxi > .os-unterseite { display: block; }
.os-fenster.maxi, .ascii-karte.maxi {
  position: fixed; left: 0; right: 0; top: 0;
  bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom, 0px));
  z-index: 55;                      /* unter der Taskleiste (60) — sie bleibt bedienbar */
  width: auto; max-width: none; margin: 0;
  border-radius: 0; border-left: 0; border-right: 0;
  box-shadow: none;
  display: flex; flex-direction: column;
  animation: none;
}
/* ⚠️ Muss die Reveal-Regel (body.anim .reveal) ueberbieten: deren Rest-Transform schob das
   Vollbildfenster um ein paar Pixel unter die Taskleiste — und ein transform != none macht
   das Element ausserdem zum Bezugsrahmen fuer alles Fixierte darin. */
body.anim .os-fenster.maxi, .os-fenster.maxi,
body.anim .ascii-karte.maxi, .ascii-karte.maxi { transform: none; opacity: 1; transition: none; }
/* Im Vollbild ist die Unterseite eine SEITE, kein Programmfenster: die Titelleiste
   tritt ab, die Adressleiste darunter uebernimmt Navigation, Pfad und Ausgang.
   Sie bleibt im DOM (Knoepfe, Verschiebe-Griff) — nur unsichtbar. */
.os-fenster.maxi > .fenster-leiste, .ascii-karte.maxi > .fenster-leiste { display: none; }
.os-fenster.maxi .os-unterseite, .ascii-karte.maxi .os-unterseite {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;   /* kein Durchscrollen auf den Body */
  -webkit-overflow-scrolling: touch;
}
html.maxi-offen, html.maxi-offen body { overflow: hidden; }
/* ⚠️ Der Footer steht NACH main im Dokument, mit demselben z-index: er malte sich ueber jedes
   Vollbild, sobald er im Bild war — beim Impressum immer, weil man es unten im Footer oeffnet. */
html.maxi-offen footer { visibility: hidden; }
/* Platzhalter haelt den Platz im Fluss, damit die Seite dahinter nicht zusammenspringt */
.maxi-platz { flex: 0 0 auto; }
/* Geist: leere Huelle, die den Weg aufs Vollbild animiert. Bewusst OHNE transform:scale —
   skalierte Ebenen haben bei ASCII-Inhalten schon einmal gestauchte GPU-Texturen erzeugt. */
.maxi-geist {
  position: fixed; z-index: 56; margin: 0;
  background: var(--karte); border: 1px solid rgba(14,59,67,0.16); border-radius: 12px;
  box-shadow: 0 30px 70px rgba(14,59,67,0.16); overflow: hidden; pointer-events: none;
  transition: left 0.34s cubic-bezier(0.16,1,0.3,1), top 0.34s cubic-bezier(0.16,1,0.3,1),
              width 0.34s cubic-bezier(0.16,1,0.3,1), height 0.34s cubic-bezier(0.16,1,0.3,1),
              border-radius 0.34s ease;
}
/* Adressleiste im Explorer-Stil, nur im Vollbild */
.os-adressleiste { display: none; }
.os-fenster.maxi > .os-adressleiste, .ascii-karte.maxi > .os-adressleiste {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 9px 12px; border-bottom: 1px solid rgba(14,59,67,0.12);
  background: rgba(255,255,255,0.86); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px;
}
/* Das Adressfeld sieht aus wie eines: eingelassener Kasten, Weltkugel, dann der Pfad */
.adr-feld {
  display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0;
  padding: 6px 12px; border: 1px solid rgba(14,59,67,0.14); border-radius: 7px;
  background: var(--karte); overflow: hidden;
}
.adr-feld .adr-welt { flex: 0 0 auto; color: var(--gruen); }
.adr-fenster { display: flex; gap: 2px; flex: 0 0 auto; }
.adr-fenster button {
  width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent;
  color: var(--petrol); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.adr-fenster button:hover { background: rgba(14,59,67,0.08); }
.adr-fenster .adr-schliessen:hover { background: #E23B2E; color: #FFFFFF; }
.adr-nav { display: flex; gap: 2px; }
.adr-nav button {
  width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent;
  color: var(--petrol); cursor: pointer; font-size: 16px; line-height: 1;
}
.adr-nav button:hover:not(:disabled) { background: rgba(14,59,67,0.08); }
.adr-nav button:disabled { opacity: 0.32; cursor: default; }
.adr-krumen { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; min-width: 0; overflow: hidden; color: var(--grau); white-space: nowrap; }
.adr-krumen a { color: var(--petrol); }
.adr-krumen a:hover { color: var(--gruen); }
.adr-krumen [aria-current] { color: var(--petrol); font-weight: 500; }
/* Inhalt der Unterseiten: je Blatt eine Ansicht, nur die aktive sichtbar */
.us-blatt { display: none; padding: 34px 40px 60px; }
.us-blatt.aktiv { display: block; }
.us-kopf { margin: 0 0 8px; font-size: clamp(26px, 3vw, 40px); font-weight: 700; }
.us-hin { margin: 0 0 34px; color: var(--grau); font-size: 16.5px; max-width: 640px; line-height: 1.6; }
/* Ueberschrift nur fuer Vorleseprogramme — nicht `display:none`, das nimmt sie ihnen weg */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Auf der Teamseite steht der Hinweis zwischen Zeichenbild und Kachelreihe: er gilt den
   Kacheln („ein Klick oeffnet die Person"), also steht er direkt ueber ihnen — mittig,
   in der Achse von Bild und Reihe. */
.team-hin { max-width: 1240px; margin: 0 auto 18px; text-align: center; }
.us-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 20px; max-width: 1360px; }
.us-modul {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start; text-align: left;
  padding: 26px 24px; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px;
  cursor: pointer; font-family: inherit; color: var(--petrol); text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.us-modul:hover { transform: translateY(-4px); border-color: var(--gruen); box-shadow: 0 18px 40px rgba(14,59,67,0.12); }
.us-modul h3 { margin: 0; font-size: 19px; font-weight: 700; }
.us-modul p { margin: 0; font-size: 14.5px; color: var(--grau); line-height: 1.55; }
/* Kacheln der Verbund-Seite tragen ein Logo statt eines Symbols. Firmen ohne
   freigegebenen Text bleiben stumm (.us-still): sichtbar, aber nicht anklickbar —
   lieber kein Blatt als Blindtext. */
.us-modul .us-logo { display: flex; align-items: center; justify-content: center; height: 58px; }
.us-modul .us-logo img { max-height: 58px; max-width: 180px; width: auto; height: auto; }
.us-modul.us-still { cursor: default; }
.us-modul.us-still:hover { transform: none; border-color: var(--linie); box-shadow: none; }
.us-text { max-width: 720px; font-size: 16.5px; line-height: 1.75; }
.us-text p { margin: 0 0 18px; }
/* Abschluss unter jedem Detailtext: Rueckweg und ein Anstoss zum Kontakt */
.us-fuss { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--linie); max-width: 720px; font-family: 'IBM Plex Mono', monospace; font-size: 14.5px; }
.us-fuss a { color: var(--gruen); }
.us-fuss a:hover { color: var(--petrol); }
.us-fuss .us-frage { color: var(--grau); }
.karten-mehr { grid-column: 1 / -1; margin: 6px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 15px; }
.karten-mehr a { color: var(--gruen); font-weight: 500; }
.karten-mehr a:hover { color: var(--petrol); }
@media (max-width: 720px) {
  .us-blatt { padding: 22px 18px 50px; }
  .os-fenster.maxi > .os-adressleiste { padding: 7px 8px; gap: 4px; font-size: 12px; }
  .adr-feld { padding: 5px 8px; gap: 6px; }
  .adr-nav button, .adr-fenster button { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) { .maxi-geist { transition: none; } }
/* ══ MAXIMIEREN (Block-Ende) ══ */

/* ══ HANDY (Block-Anfang): aus dem Desktop wird ein Handy-Startbildschirm ══
   Dieselbe Abfrage steht in os.js (HANDY_MQ) — beide gleich halten.
   Startbildschirm: Gruss + Status, Begruessungs-Widget, App-Raster, Team- und
   Zahlen-Widget. Die grossen Fenster (Services, Partner, Terminal, Kontakt) stehen hier
   NICHT im Fluss — sie sind Apps und gehen nur bildschirmfuellend auf. Unten schwebt
   das Dock (die Taskleiste in Handy-Gestalt). */
.handy-kopf.nur-handy, .desktop-icon.nur-handy { display: none; }
@keyframes statuspuls { 0% { box-shadow: 0 0 0 0 rgba(130,180,20,0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(130,180,20,0); } }
@keyframes reinVor { from { transform: translateX(42%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes reinZurueck { from { transform: translateX(-32%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blattHoch { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 720px), (max-height: 500px) and (pointer: coarse) {
  :root { --leiste-h: 84px; }
  body { background: linear-gradient(172deg, #FBFDF9 0%, #EEF6E6 46%, #DFEDD2 100%) fixed; -webkit-tap-highlight-color: transparent; }
  .wallpaper-logo { display: none; }
  main { display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) 14px 0; }
  main .held { display: contents; }
  main > .container, main > section.container { padding-left: 0; padding-right: 0; order: 4; }
  .fenster-knoepfe { display: none; }                 /* Widgets haben keine Fensterknoepfe */
  .tuer-schleier { display: none; }                   /* ein Tipp bleibt am Handy als :hover haengen */

  /* Kopf: grosses Logo als Blickfang, Status rechts daneben, darunter die Suche.
     (Bis 21.10. stand hier ein Gruss nach Tageszeit mit Winke-Emoji — Bernhard: wirkt wie KI-Kitsch.) */
  .handy-kopf.nur-handy {
    order: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo status" "suche suche";
    align-items: center; gap: 6px 10px; padding: 20px 4px 4px;
  }
  .handy-kopf img.handy-logo { grid-area: logo; height: 54px; width: auto; max-width: 52vw; object-fit: contain; object-position: left center; display: block; }
  .handy-status {
    grid-area: status; justify-self: end; display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,0.75); border: 1px solid var(--linie);
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--petrol);
  }
  .handy-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--gruen); animation: statuspuls 2.4s ease-out infinite; }
  .handy-status { white-space: nowrap; }
  @media (max-width: 360px) { .handy-kopf img.handy-logo { height: 40px; } .handy-status { font-size: 9.5px; padding: 4px 8px; gap: 5px; } }

  /* Begruessungs-Widget */
  #f-willkommen { order: 1; margin: 12px 0 0 !important; border-radius: 24px; box-shadow: 0 18px 44px rgba(14,59,67,0.12); }
  #f-willkommen > .fenster-leiste { display: none; }
  #f-willkommen .os-rumpf { padding: 20px 20px 22px; text-align: left; }
  #f-willkommen .ueberzeile { font-size: 10.5px; letter-spacing: 0.14em; }
  #f-willkommen h1 { margin: 10px 0 0; font-size: 26px; line-height: 1.15; }
  #f-willkommen .intro { margin: 12px 0 0; font-size: 15px; line-height: 1.55; }
  #f-willkommen .knopfzeile { display: none; }       /* die Wege dorthin sind die Symbole darunter */

  /* App-Raster: vier Programme in einer Reihe — Services, Team, Partner, Kontakt.
     Die Suche steht als eigenes Feld oben, Anrufen in der Hilfe-Kapsel im Dock. */
  .desktop-icons {
    order: 2; position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 4px; padding: 24px 0 4px; justify-items: center;
  }
  .desktop-icon, .desktop-icon.nur-handy { display: flex; width: 100%; max-width: 92px; gap: 7px; }
  .desktop-icon .di-kachel {
    width: 62px; height: 62px; border-radius: 18px; background: rgba(255,255,255,0.92);
    box-shadow: 0 8px 22px rgba(14,59,67,0.1), inset 0 1px 0 #FFFFFF; transition: transform 0.15s ease;
  }
  .desktop-icon .di-kachel svg { width: 28px; height: 28px; }
  .desktop-icon .di-name { font-size: 10px; color: var(--petrol); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .desktop-icon:hover .di-kachel { transform: none; background: rgba(255,255,255,0.92); border-color: rgba(14,59,67,0.16); }
  .desktop-icon:active .di-kachel { transform: scale(0.88); }
  .desktop-icon[href="#systemhaus"] { order: 3; }
  /* Das Terminal macht am Handy keinen Sinn (Entscheidung Bernhard 21.10.): kein Symbol,
     keine Startmenue-Kachel, keine App, keine Suchtreffer (os.js: nurDesktop) */
  .desktop-icon[href="#ablauf"], .sm-kacheln button[data-app="f-terminal"] { display: none; }
  /* willkommen.exe ebenso: der Gruss steht am Handy schon oben, die Kachel fuehrte scheinbar nirgendwohin */
  .sm-kacheln button[data-app="f-willkommen"], .sm-kacheln button[data-app="f-zahlen"] { display: none; }
  .desktop-icon[href="#kontakt"] { order: 5; }
  .desktop-icon[href="#services"] { order: 1; }
  .desktop-icon[href="#team"] { order: 2; }

  /* Team-Widget: das Zeichenbild, ein Tipp oeffnet die Team-App */
  #team.ascii-karte { order: 3; border-radius: 24px; max-width: none; }
  #team.ascii-karte:not(.maxi) { margin: 24px 0 0 !important; }   /* !important schluege sonst auch das Vollbild */
  #team .fenster-titel { padding: 9px 16px; }

  /* Zahlen-Widget: zwei mal zwei */
  #f-zahlen { margin: 16px 0 0 !important; border-radius: 24px; max-width: none; }
  #f-zahlen > .fenster-leiste { display: none; }
  #f-zahlen .zahlen-innen { grid-template-columns: 1fr 1fr; }
  #f-zahlen .zahl { padding: 18px 16px; border-right: 0; border-bottom: 1px solid var(--linie); }
  #f-zahlen .zahl:nth-child(odd) { border-right: 1px solid var(--linie); }
  #f-zahlen .zahl:nth-child(n+3) { border-bottom: 0; }
  #f-zahlen .zahl strong { font-size: 30px; }
  #f-zahlen .zahl span { font-size: 11.5px; }

  /* Die grossen Fenster sind Apps: nicht auf dem Startbildschirm, nur bildschirmfuellend */
  #services, #ablauf, #kontakt, #systemhaus { padding: 0 !important; }
  #services > :not(.os-fenster), #ablauf > :not(.terminal), #kontakt > :not(.os-fenster), #systemhaus > :not(.os-fenster) { display: none; }
  #f-services:not(.maxi), #f-partner:not(.maxi), #f-terminal:not(.maxi), #f-kontakt:not(.maxi) { display: none; }
  /* ⚠️ `.reveal.da` setzt translateY(0) — auch das ist ein transform und macht den Abschnitt
     zum Bezugsrahmen fuer `position: fixed`: die Kontakt-App ginge dann nur in ihrem
     (unsichtbaren) Abschnitt auf. Darum die hohe Spezifitaet. */
  body.anim main section.reveal, body.anim main section.reveal.da,
  body.anim main .os-fenster.reveal, body.anim main .os-fenster.reveal.da { opacity: 1; transform: none; transition: none; }

  footer { margin-top: 28px; padding: 22px 0 18px; }
  .fuss-innen { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .fuss-innen > img { display: none; }
  .fuss-links { gap: 22px; justify-content: center; }

  /* Dock: schwebende Glasleiste mit den drei Apps und dem Support-Knopf */
  .taskleiste {
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    height: 66px; padding: 0 8px; border-radius: 24px; justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.75); box-shadow: 0 16px 40px rgba(14,59,67,0.24), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(calc(100% + 30px));
  }
  .taskleiste.sichtbar { transform: none; }
  html.person-blatt .taskleiste { transform: translateY(calc(100% + 30px)); }
  .taskleiste .task-logo { height: 54px; padding: 0 8px; border-radius: 16px; }
  .task-logo img { height: 24px; }
  .task-uhr, .task-status { display: none; }
  #task-apps { justify-content: space-evenly; gap: 0; overflow: visible; }
  #task-apps button[data-app="f-willkommen"], #task-apps button[data-app="f-zahlen"],
  #task-apps button[data-app="f-terminal"], #task-apps button[data-app="f-kontakt"] { display: none; }
  .taskleiste #task-apps button {
    flex-direction: column; gap: 3px; width: 62px; height: 54px; border-radius: 16px;
    background: transparent; box-shadow: none; animation: none;
  }
  .taskleiste #task-apps button svg { width: 23px; height: 23px; opacity: 0.6; }
  .taskleiste #task-apps button::after {
    content: attr(data-kurz); position: static; transform: none; width: auto; height: auto; background: none;
    font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; color: var(--petrol); opacity: 0.75; line-height: 1;
  }
  #task-apps button[data-app="f-services"] { order: 1; }
  #task-apps button[data-app="team"] { order: 2; }
  #task-apps button[data-app="f-partner"] { order: 3; }
  .taskleiste #task-apps button.vorne { background: rgba(130,180,20,0.16); }
  .taskleiste #task-apps button.vorne svg { opacity: 1; }
  .taskleiste #task-apps button.vorne::after { color: #4F7A00; opacity: 1; font-weight: 700; }
  .task-zahl { display: none; }
  .task-support { width: 54px; height: 54px !important; padding: 0 !important; justify-content: center; border-radius: 18px !important; }
  .task-support svg { width: 22px; height: 22px; }
  .task-support .ts-text { display: none; }
  .task-tray { margin-left: 4px; }

  /* Apps: ganzer Bildschirm, das Dock schwebt als Glas darueber — der Inhalt laeuft
     darunter durch und bekommt unten so viel Luft, dass das Letzte frei steht. */
  .os-fenster.maxi, .ascii-karte.maxi, .terminal.maxi {
    position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 55;
    width: auto; max-width: none; margin: 0; border: 0; border-radius: 0;
    box-shadow: none; display: flex; flex-direction: column; animation: none;
    transform-origin: 50% 0;
  }
  .os-fenster.maxi .os-unterseite, .ascii-karte.maxi .os-unterseite,
  .os-fenster.maxi.ohne-seite > .os-rumpf, .terminal.maxi.ohne-seite > .terminal-rumpf {
    padding-bottom: calc(var(--leiste-h) + 20px + env(safe-area-inset-bottom, 0px));
  }
  .terminal.maxi { background: var(--schwarz); }
  .terminal.maxi > .terminal-kopf { display: none; }
  .os-fenster.maxi.ohne-seite > .os-unterseite, .terminal.maxi.ohne-seite > .os-unterseite { display: none; }
  .os-fenster.maxi.ohne-seite > .os-rumpf, .terminal.maxi.ohne-seite > .terminal-rumpf {
    display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  }
  .maxi-geist { border-radius: 16px; }

  /* Kopfzeile der App: Griff zum Runterziehen, ‹ zurueck, Titel, ✕ */
  .os-fenster.maxi > .os-adressleiste, .ascii-karte.maxi > .os-adressleiste, .terminal.maxi > .os-adressleiste {
    display: flex; position: relative; align-items: center; gap: 4px; flex: 0 0 auto;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 8px 10px; touch-action: none;
    background: rgba(255,255,255,0.94); border-bottom: 1px solid rgba(14,59,67,0.1); font-size: 15px;
  }
  .os-adressleiste::before {
    content: ""; position: absolute; left: 50%; top: calc(7px + env(safe-area-inset-top, 0px));
    width: 38px; height: 5px; border-radius: 3px; background: rgba(14,59,67,0.22); transform: translateX(-50%);
  }
  .adr-feld { border: 0; background: transparent; padding: 0; justify-content: center; }
  .adr-feld .adr-welt { display: none; }
  .adr-krumen > :not(:last-child) { display: none; }   /* nur der Titel der aktuellen Ansicht */
  .adr-krumen [aria-current] { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; color: var(--petrol); }
  .adr-nav .adr-vor { display: none; }
  .adr-nav button { width: 42px; height: 40px; font-size: 30px; line-height: 1; border-radius: 12px; }
  .adr-fenster button.adr-schliessen { width: 34px; height: 34px; margin-right: 4px; border-radius: 50%; background: rgba(14,59,67,0.08); }

  /* Inhalt der Apps */
  .us-blatt { padding: 22px 16px 40px; }
  .us-blatt.rein-vor { animation: reinVor 0.34s cubic-bezier(0.16,1,0.3,1); }
  .us-blatt.rein-zurueck { animation: reinZurueck 0.34s cubic-bezier(0.16,1,0.3,1); }
  .us-kopf { font-size: 28px; }
  .us-raster { grid-template-columns: 1fr; gap: 12px; }
  .us-modul { padding: 20px 18px; border-radius: 18px; }
  .us-modul:active { transform: scale(0.98); }
  .karte:active { transform: scale(0.98); }
  #f-kontakt.maxi .os-rumpf { padding: 34px 20px 30px; text-align: left; }
  #f-kontakt.maxi .hin { margin-left: 0; font-size: 16.5px; }
  #f-kontakt.maxi .kontakt-knoepfe { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 30px; }
  #f-kontakt.maxi .kontakt-knoepfe a { justify-content: center; text-align: center; border-radius: 16px; padding: 18px 20px; }
  .terminal.maxi .terminal-rumpf { padding: 22px 16px 30px; }
  .konten { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Personen: ein Blatt von unten, Griff zum Runterziehen, seitlich wischen blaettert */
  .person-ebene { bottom: 0; }
  html.person-blatt .person-ebene { background: rgba(14,59,67,0.28); pointer-events: auto; }
  .person-fenster.als-blatt {
    left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%;
    max-height: 90dvh; border: 0; border-radius: 26px 26px 0 0; touch-action: pan-y;
    padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -18px 60px rgba(14,59,67,0.3);
    animation: blattHoch 0.4s cubic-bezier(0.16,1,0.3,1);
  }
  .person-fenster.als-blatt.rein-vor { animation: reinVor 0.32s cubic-bezier(0.16,1,0.3,1); }
  .person-fenster.als-blatt.rein-zurueck { animation: reinZurueck 0.32s cubic-bezier(0.16,1,0.3,1); }
  .als-blatt .pf-leiste { height: 56px; padding: 12px 8px 0 16px; border-radius: 26px 26px 0 0; touch-action: none; }
  .als-blatt .pf-leiste::before {
    content: ""; position: absolute; left: 50%; top: 7px; width: 38px; height: 5px; border-radius: 3px;
    background: rgba(14,59,67,0.22); transform: translateX(-50%);
  }
  .als-blatt .pf-min { display: none; }
  .als-blatt .pf-zu { width: 34px; height: 34px; border-radius: 50%; background: rgba(14,59,67,0.08); }
  .pf-blaettern { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 6px; }
  .pf-blaettern button { width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent; color: var(--petrol); font-size: 26px; line-height: 1; cursor: pointer; }
  .pf-blaettern button:active { background: rgba(130,180,20,0.18); }
  .pf-zahl { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--grau); min-width: 42px; text-align: center; }
  .als-blatt .pf-kopf { padding-top: 10px; }
  .als-blatt .pf-bild { border-radius: 18px; }

  /* Startmenue und Hinweis sitzen ueber dem Dock */
  .startmenue { border-radius: 24px 24px 0 0; }
  /* Sobald getippt wird, braucht die Trefferliste Hoehe: das Blatt geht bis nach oben,
     die angehefteten Kacheln treten ab — sonst verdeckt die Tastatur die Treffer. */
  .startmenue.sucht { top: calc(8px + env(safe-area-inset-top, 0px)); max-height: none; }
  .startmenue.sucht .sm-titel, .startmenue.sucht .sm-kacheln, .startmenue.sucht .sm-fuss { display: none; }
  .sm-treffer li { min-height: 54px; }
  .sm-suche input { font-size: 16px; }              /* unter 16 px zoomt iOS beim Antippen hinein */
  .os-toast { left: 10px; right: 10px; width: auto; bottom: calc(var(--leiste-h) + 8px + env(safe-area-inset-bottom, 0px)); border-radius: 18px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .handy-punkt { animation: none; }
  .us-blatt.rein-vor, .us-blatt.rein-zurueck, .person-fenster.als-blatt { animation: none; }
}
/* ══ HANDY (Block-Ende) ══ */
/* ══ HANDY-SPARFASSUNG (Block-Anfang) ══
   Bernhard 16.11.2026: im Energiesparmodus darf nichts ruckeln. Handys drosseln dort
   Bildrate und GPU — teuer sind alles, was JEDES Bild neu malt:
   - `background-attachment: fixed` malt beim Scrollen die ganze Seite neu → der
     Verlauf liegt stattdessen auf einer festen Ebene (body::before), die nur verschoben wird;
   - Glas-Unschaerfe (backdrop-filter) unter dem Dock rechnet bei jedem Scrollbild;
   - endlos pulsierende Schatten (box-shadow-Animationen) malen jedes Bild neu;
   - `will-change` auf dem Zeichenbild haelt eine riesige GPU-Textur (1290×730 px × DPR)
     — iOS verwirft sie unter Speicherdruck, dann fehlt das Teamfoto. */
@media (max-width: 720px), (max-height: 500px) and (pointer: coarse) {
  body { background: #EEF6E6; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(172deg, #FBFDF9 0%, #EEF6E6 46%, #DFEDD2 100%); }
  .taskleiste { background: rgba(246,249,246,0.96) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .startmenue { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(250,252,250,0.98) !important; }
  .handy-punkt, .hilfe-kapsel, .task-support, .raster, #task-apps button.laeuft.mehrere { animation: none !important; }
  .ascii-team { will-change: auto; transition: none; }
}
/* ══ HANDY-SPARFASSUNG (Block-Ende) ══ */

/* Handy quer: wenig Hoehe — das Dock wird schmaler und flacher, die Symbole stehen in einer Reihe */
@media (max-height: 500px) and (pointer: coarse) {
  :root { --leiste-h: 70px; }
  .taskleiste { left: max(10px, calc(50% - 270px)); right: max(10px, calc(50% - 270px)); height: 56px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .taskleiste #task-apps button { height: 46px; }
  .task-support { width: 46px; height: 46px !important; }
  .desktop-icons { grid-template-columns: repeat(4, 1fr); }
  .os-fenster.maxi > .os-adressleiste, .ascii-karte.maxi > .os-adressleiste, .terminal.maxi > .os-adressleiste { padding-top: 14px; padding-bottom: 4px; }
}

/* ══ SUCHE (Block-Anfang): Trefferzeilen mit Art, Ausschnitt und Markierung; Ziel-Markierung ══ */
.sm-treffer li { align-items: center; gap: 12px; }
.sm-treffer li > svg, .sm-treffer li > .tr-bild { flex: 0 0 auto; }
.tr-bild { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--linie); }
.tr-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; gap: 1px; }
.tr-titel { font-size: 13.5px; color: var(--petrol); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-titel mark { background: rgba(130,180,20,0.28); color: inherit; border-radius: 3px; padding: 0 1px; }
.sm-treffer li .tr-schnipsel { font-size: 11.5px; }
.tr-art {
  flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--linie);
  font-size: 10.5px; color: #4F6A70; background: rgba(255,255,255,0.8);
}
.sm-treffer li.aktiv .tr-art { border-color: rgba(130,180,20,0.6); color: #4F7A00; }
/* Wo ein Suchtreffer hinfuehrt, leuchtet die Stelle kurz auf */
@keyframes suchziel { 0% { box-shadow: 0 0 0 0 rgba(130,180,20,0.0); } 20% { box-shadow: 0 0 0 4px rgba(130,180,20,0.55); } 100% { box-shadow: 0 0 0 14px rgba(130,180,20,0); } }
.such-ziel { animation: suchziel 1.2s ease-out 2; border-radius: 8px; outline: 2px solid rgba(130,180,20,0.7); outline-offset: 3px; }
.such-ziel:focus { outline: 2px solid var(--gruen); }
@media (prefers-reduced-motion: reduce) { .such-ziel { animation: none; } }
/* ══ SUCHE (Block-Ende) ══ */

/* ══ HILFE-KAPSEL (Block-Anfang): Anrufen + Support als ein gruenes Paar ══
   Beide Haelften gleich gruen, gleich hoch; der Puls liegt auf der Kapsel, nicht auf
   einer Haelfte — sie gehoeren zusammen. */
.hilfe-kapsel {
  display: flex; align-items: stretch; height: 46px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(130,180,20,0.35); animation: supportpuls 4s ease-in-out infinite;
}
.hilfe-kapsel .task-support { animation: none; box-shadow: none; border-radius: 0 !important; height: 46px !important; }
.task-anruf {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--gruen); color: #FFFFFF;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 700; text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.45); transition: background 0.15s ease;
}
.task-anruf:hover, .task-anruf[aria-expanded="true"] { background: #6F9A11; color: #FFFFFF; }
.task-anruf:focus-visible, .hilfe-kapsel .task-support:focus-visible { outline: 2px solid var(--petrol); outline-offset: -4px; }
@media (max-width: 600px) { .task-anruf .ts-text { display: none; } .task-anruf { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .hilfe-kapsel { animation: none; } }
/* Anrufkarte (Desktop) ueber dem Knopf */
.anruf-karte {
  position: fixed; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 330px;
  background: rgba(248,250,248,0.98); border: 1px solid rgba(14,59,67,0.14); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(14,59,67,0.28); padding: 18px 18px 16px; font-family: 'IBM Plex Mono', monospace;
  color: var(--petrol); animation: fadeup 0.2s ease-out;
}
.anruf-karte[hidden] { display: none; }
.anruf-karte strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 17px; padding-right: 30px; }
.anruf-karte p { margin: 6px 0 12px; font-size: 12.5px; color: var(--grau); line-height: 1.5; }
.anruf-nummer { display: block; font-size: 22px; font-weight: 500; letter-spacing: 0.02em; user-select: all; }
.anruf-knoepfe { display: flex; gap: 8px; margin-top: 14px; }
.anruf-jetzt, .anruf-kopieren {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 0; height: 40px;
  border-radius: 9px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.anruf-jetzt { background: var(--gruen); color: #FFFFFF; text-decoration: none; }
.anruf-jetzt:hover { background: #6F9A11; color: #FFFFFF; }
.anruf-kopieren { background: #FFFFFF; color: var(--petrol); border: 1px solid rgba(14,59,67,0.2); }
.anruf-kopieren:hover { border-color: var(--gruen); }
/* Handy: im Dock zwei gleich grosse Haelften; schmale Geraete holen sich den Platz beim Logo */
@media (max-width: 720px), (max-height: 500px) and (pointer: coarse) {
  .hilfe-kapsel { height: 54px; border-radius: 18px; }
  .hilfe-kapsel .task-support { height: 54px !important; border-radius: 0 !important; }
  .task-anruf, .hilfe-kapsel .task-support { width: 54px; padding: 0; flex-direction: column; justify-content: center; gap: 3px; }
  .task-anruf svg, .hilfe-kapsel .task-support svg { width: 20px; height: 20px; }
  .task-anruf .ts-text, .hilfe-kapsel .task-support .ts-text { display: none; }
  /* Beschriftet wie die Programme daneben — kurz, weiss auf gruen */
  .task-anruf::after, .hilfe-kapsel .task-support::after {
    font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; font-weight: 700; line-height: 1; color: #FFFFFF;
  }
  .task-anruf::after { content: "Anrufen"; }
  .hilfe-kapsel .task-support::after { content: "Support"; }
  .taskleiste #task-apps button { width: 56px; }
}
@media (max-width: 380px) {
  .taskleiste #task-apps button { width: 50px; }
  .hilfe-kapsel .task-support, .task-anruf { width: 50px; }
  .task-anruf::after, .hilfe-kapsel .task-support::after { font-size: 9.5px; }
}
@media (max-height: 500px) and (pointer: coarse) {
  .hilfe-kapsel { height: 46px; }
  .hilfe-kapsel .task-support { height: 46px !important; }
}
/* ══ HILFE-KAPSEL (Block-Ende) ══ */

/* ══ SUCHE IM DOCK UND AM STARTBILDSCHIRM (Block-Anfang) ══
   Bernhard: woher soll ein Erstbesucher wissen, dass hinter dem Logo die Suche steckt?
   Darum am Handy ein echtes Suchfeld unter dem Gruss und im Dock eine beschriftete Lupe. */
.handy-suche, .task-logo .tl-lupe { display: none; }
@media (max-width: 720px), (max-height: 500px) and (pointer: coarse) {
  .handy-suche {
    grid-area: suche; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px;
    height: 48px; padding: 0 16px; border-radius: 16px; border: 1px solid rgba(14,59,67,0.16);
    background: rgba(255,255,255,0.92); box-shadow: 0 8px 22px rgba(14,59,67,0.08);
    font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; color: #5E7377; text-align: left; cursor: text;
  }
  .handy-suche:active { transform: scale(0.99); }
  .di-endung { display: none; }               /* „services.exe" passt in fuenf Spalten nicht — am Handy nur der Name */
  .handy-suche span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .taskleiste .task-logo { flex-direction: column; justify-content: center; gap: 3px; width: 56px; padding: 0; }
  .taskleiste .task-logo img { display: none; }
  .task-logo .tl-lupe { display: block; }
  .taskleiste .task-logo::after { content: "Suche"; font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; color: var(--petrol); opacity: 0.75; line-height: 1; }
  .taskleiste .task-logo.offen::after { color: #4F7A00; opacity: 1; font-weight: 700; }
}
@media (max-width: 380px) { .taskleiste .task-logo { width: 50px; } }
/* ══ SUCHE IM DOCK UND AM STARTBILDSCHIRM (Block-Ende) ══ */
@media (max-width: 360px) { .desktop-icon .di-kachel { width: 52px; height: 52px; border-radius: 16px; } }

/* ══ PORTRAETS FEIN (Block-Anfang) ══
   Die Zeichenbilder zeigen Kopf und Schultern (x 15–85 %, y 0–70 % des Fotos, siehe
   werkzeuge/portraets_bauen.sh). Das Foto, das beim Aufklappen einblendet, bekommt
   DENSELBEN Ausschnitt — sonst springt das Bild beim Ueberblenden auf den Oberkoerper. */
.konto.ascii-fein .konto-bild img { inset: auto; left: -21.43%; top: 0; width: 142.86%; height: 142.86%; object-fit: cover; }
.konto.ascii-fein .konto-bild pre.portraet { color: #17363C; }
/* ══ PORTRAETS FEIN (Block-Ende) ══ */

/* ══ START-KNOPF HEBT SICH AB (Block-Anfang) ══
   Desktop: das IT-Checker-Logo ist der Start-Knopf (Suche, Startmenue) — man soll ihm ansehen,
   dass er zu druecken ist. Statisch (Bernhard 21.10.: kein Atmen, Hintergrund wie vorher):
   gruener Rahmen und ein Schatten, der ihn leicht erhaben wirken laesst. Am Handy steht dort
   die beschriftete Lupe — dort gilt das nicht. */
@media (min-width: 721px) and (min-height: 501px), (min-width: 721px) and (pointer: fine) {
  /* Nur Rahmen und Erhebung — der Hintergrund bleibt wie bei den anderen Knoepfen */
  .taskleiste .task-logo {
    box-shadow: inset 0 0 0 1.5px rgba(130,180,20,0.75), 0 1px 0 rgba(255,255,255,0.9), 0 4px 10px rgba(14,59,67,0.16);
    transform: translateY(-1px);
  }
  .taskleiste .task-logo:hover, .taskleiste .task-logo.offen {
    box-shadow: inset 0 0 0 1.5px var(--gruen), 0 1px 0 rgba(255,255,255,0.9), 0 6px 14px rgba(14,59,67,0.2);
    transform: translateY(-2px);
  }
  /* Der Knopf verhaelt sich als EINHEIT (Bernhard 21.10.): das Logo darin zoomt nicht mehr
     fuer sich — es hebt sich mit dem ganzen Knopf. */
  .taskleiste .task-logo img, .taskleiste .task-logo:hover img, .taskleiste .task-logo.offen img { transform: none; }
  .taskleiste .task-logo { transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
}
/* ══ START-KNOPF HEBT SICH AB (Block-Ende) ══ */

/* ══ SECHS LEISTUNGEN (11.11.2026): KI und Homepages statt Registrierkassen ══
   Sechs Karten + „Etwas anderes?" = sieben Felder: die Hinweiskarte geht ueber die volle
   Breite, sonst stuende sie allein in einer Reihe. Die Unterseite zeigt 3 × 2 statt 5 + 1. */
#f-services .karten > .karte.hervor { grid-column: 1 / -1; }
#f-services .us-raster { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); max-width: 1180px; }

/* ══ SERVICES-ÜBERSICHT MIT BILDKACHELN (Entwurf D, 11.11.2026) ══
   Jede Kachel bekommt oben eine Bildflaeche im Gruenton der Seite. Heute traegt sie das
   Leistungssymbol gross als Linie — die Themenbilder kommen spaeter an genau diese Stelle
   (.us-bild), ohne dass sich das Raster aendert. Neue Leistungen tragen „Neu". */
#f-services .us-modul { padding: 0; gap: 0; align-items: stretch; overflow: hidden; border-radius: 14px; box-shadow: 0 10px 26px rgba(14,59,67,0.06); }
#f-services .us-bild { position: relative; display: flex; align-items: center; justify-content: center; height: 128px; background: linear-gradient(160deg, #F4F9EF 0%, #DCEBCB 100%); border-bottom: 1px solid var(--linie); }
#f-services .us-bild svg { width: 64px; height: 64px; stroke: var(--petrol); stroke-width: 1.2; transition: transform 0.3s ease; }
#f-services .us-modul:hover .us-bild svg { transform: scale(1.06); }
#f-services .us-neu { position: absolute; left: 12px; top: 12px; padding: 3px 8px; border-radius: 5px; background: var(--gruen); color: #0B0A07; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
#f-services .us-modul h3 { padding: 16px 20px 4px; }
#f-services .us-modul p { padding: 0 20px 18px; }
@media (prefers-reduced-motion: reduce) { #f-services .us-modul:hover .us-bild svg { transform: none; } }
@media (max-width: 720px), (max-height: 500px) and (pointer: coarse) {
  #f-services .us-modul { padding: 0; }
  #f-services .us-bild { height: 104px; }
}

/* ══ LEISTUNGSBLATT IM LAYOUT B „Bild seitlich" (Entwurf B, gewaehlt 11.11.2026) ══
   Text links, rechts eine stehende Bildflaeche im Gruenton, die beim Lesen stehen bleibt
   (sticky im scrollenden Vollbild) mit dem Themenbild der Leistung (.us-themenbild). Schmal (< 960 px, Handy):
   Bild als Band ueber dem Text. */
/* Masse wie Entwurf B (1280 px): Rand 56 oben / 72 seitlich, Text hoechstens 620 px,
   Bild 440 × 520 rechtsbuendig am Rand und oben buendig mit der Marke. */
#f-services .us-blatt[data-pfad]:not([data-pfad=""]) { padding: 56px 72px 60px; }
.us-zweispaltig { display: flex; gap: 64px; align-items: flex-start; justify-content: space-between; }
.us-spalte-text { flex: 1 1 560px; min-width: 0; max-width: 620px; }
.us-marke { margin: 0 0 8px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.08em; color: #5E8A0C; }
.us-zweispaltig .us-kopf { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; margin-bottom: 20px; }
.us-zweispaltig .us-text { font-size: 17px; }
.us-seitenbild { flex: 0 0 440px; position: sticky; top: 24px; margin: 0; height: 520px; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; border: 1px solid var(--linie); overflow: hidden; box-shadow: 0 30px 70px rgba(14,59,67,0.14);
  background: radial-gradient(circle, rgba(14,59,67,0.08) 1.3px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(180deg, #EAF4EC 0%, #D9EBC9 100%); }
/* Themenbild (Entwurf K): Leistungssymbol gross auf weisser Karte, gruener Logo-Haken als "geprueft"-Marke */
.us-seitenbild svg.us-themenbild { display: block; width: 100%; height: 100%; stroke: none; }
.us-unterpunkt { display: flex; gap: 14px; align-items: flex-start; margin-top: 6px; padding: 14px 18px; border-radius: 10px; background: var(--karte); border: 1px solid var(--linie); }
.us-unterpunkt p { margin: 0; font-size: 15px; line-height: 1.6; }
.us-unterpunkt-symbol { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 960px) {
  #f-services .us-blatt[data-pfad]:not([data-pfad=""]) { padding: 22px 16px 40px; }
  .us-zweispaltig { flex-direction: column-reverse; gap: 22px; }
  .us-spalte-text { flex: none; max-width: 720px; }
  .us-seitenbild { position: static; flex: none; width: 100%; height: 170px; margin: 0; box-shadow: none; }
  /* Band ist niedrig: Bild hoeher zeichnen und mittig anschneiden, damit die Karte gross genug bleibt */
  .us-seitenbild svg.us-themenbild { flex: none; height: 220px; }
}
@keyframes teamEin { from { opacity: 0; } to { opacity: 1; } }
.ascii-team.einblenden { animation: teamEin 0.6s ease-out both; }
