/* Fernwartung (18.10.2026): Glas-Lasche am Rand, Hinweis in der Leistungskarte, Seite fernwartung.html.
   Stil-Vorbild „Glassy“-Reel: Glas, Neon-Leuchten, ruhige Bewegung – nur Firmenfarben (Orange ist im CD ausgeschlossen).
   Bewegung NUR über transform/opacity (Design-Check 18.10.2026), Schleifen ruhen außerhalb des Bildes (fernwartung.js, .ruht),
   aus bei prefers-reduced-motion. */

/* ---------- Glas-Lasche am rechten Rand (immer sichtbar) ---------- */
.fw-dock {
  position: fixed; z-index: 38; right: env(safe-area-inset-right, 0px); top: 50%; transform: translateY(-50%) translateX(6px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center;
  padding: 14px 22px 14px 16px; border-radius: 18px 0 0 18px; color: var(--text, #F4FBFF); text-decoration: none;
  background: linear-gradient(135deg, rgba(10, 32, 48, .78), rgba(6, 19, 29, .72));
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(71, 244, 213, .35); border-right: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), 0 0 30px rgba(24, 218, 204, .18);
  isolation: isolate; transition: transform .2s ease-out, box-shadow .2s ease-out;
}
/* Lichtrand: zwei feste Ringe, die sich abwechselnd ein- und ausblenden (nur opacity) */
.fw-dock::before, .fw-dock::after, .fw-code-karte::before, .fw-code-karte::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fw-licht-a 7s ease-in-out infinite;
}
.fw-dock::before, .fw-dock::after { inset: -1px 0 -1px -1px; }
.fw-dock::before, .fw-code-karte::before { background: conic-gradient(from 20deg, transparent 0deg, rgba(71, 244, 213, .95) 60deg, rgba(17, 199, 239, .7) 120deg, transparent 190deg, transparent 360deg); }
.fw-dock::after, .fw-code-karte::after { background: conic-gradient(from 200deg, transparent 0deg, rgba(17, 199, 239, .75) 60deg, rgba(71, 244, 213, .85) 120deg, transparent 190deg, transparent 360deg); animation-name: fw-licht-b; }
.ruht::before, .ruht::after { animation-play-state: paused; }
.fw-dock:hover, .fw-dock:focus-visible { transform: translateY(-50%) translateX(0); box-shadow: 0 14px 44px rgba(0, 0, 0, .4), 0 0 40px rgba(24, 218, 204, .35); }
.fw-dock:focus-visible { outline: 2px solid #47F4D5; outline-offset: 3px; }
.fw-dock-punkt { position: relative; grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: #47F4D5; box-shadow: 0 0 10px rgba(71, 244, 213, .6); }
.fw-dock-punkt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: .55; animation: fw-puls 2s ease-out infinite; }
.fw-dock-titel { font-size: 15px; font-weight: 650; line-height: 1.2; }
.fw-dock-text { font-size: 13px; color: #bff8ee; line-height: 1.2; }
.fw-dock-text span { color: #47F4D5; }
@keyframes fw-licht-a { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes fw-licht-b { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes fw-puls { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(3); opacity: 0; } }

/* Handy: unten mittig zwischen „Ansicht“ (links) und „Nach oben“ (rechts) */
@media (max-width: 760px) {
  .fw-dock {
    top: auto; right: auto; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
    border-radius: 999px; border-right: 1px solid rgba(71, 244, 213, .35); padding: 11px 18px 11px 14px; max-width: calc(100% - 150px);
  }
  .fw-dock::before, .fw-dock::after { inset: -1px; }
  .fw-dock:hover, .fw-dock:focus-visible { transform: translateX(-50%); }
  .fw-dock-punkt { grid-row: auto; }
  .fw-dock-titel { font-size: 14px; white-space: nowrap; }
  .fw-dock-text { display: none; }
}
@media print { .fw-dock { display: none; } }

/* ---------- Hinweis in der Leistungskarte „IT-Support“ ---------- */
.fw-hinweis {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--text, #F4FBFF);
  border: 1px solid rgba(71, 244, 213, .35); background: linear-gradient(135deg, rgba(24, 218, 204, .12), rgba(8, 120, 239, .08)); font-size: 14px; line-height: 1.45;
  transition: border-color .2s ease, transform .2s ease;
}
.fw-hinweis:hover { border-color: #47F4D5; transform: translateY(-1px); }
.fw-hinweis:focus-visible { outline: 2px solid #47F4D5; outline-offset: 3px; }
.fw-hinweis .fw-dock-punkt { flex: none; grid-row: auto; }
.fw-hinweis strong { color: #47F4D5; font-weight: 650; }

/* Menüpunkt mit Signalpunkt */
.nav-fw { display: inline-flex; align-items: center; gap: 8px; }
.nav-fw::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #47F4D5; box-shadow: 0 0 10px rgba(71, 244, 213, .8); }

/* ---------- Seite fernwartung.html ---------- */
/* Breite wie die übrigen Abschnitte der Website (section-pad: 6,2 % Rand), erst auf sehr breiten Bildschirmen begrenzt
   (Wunsch Sebastian 18.10.2026: vorher zu schmal). Lesetexte behalten ihre eigene Zeilenlänge. */
.fw-seite { max-width: 1680px; margin: 0 auto; padding-top: 40px; }
.fw-kopf p { max-width: 720px; }
.fw-code-karte p { max-width: 760px; }
.fw-person p { max-width: 900px; }
.fw-kopf { display: grid; gap: 18px; margin-bottom: 40px; }
.fw-kopf h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.fw-kopf h1 em { font-style: normal; color: #47F4D5; }
.fw-kopf p { color: var(--muted, #A6C1CD); font-size: 18px; max-width: 640px; text-wrap: pretty; }
.fw-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }

.fw-code-karte { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 28px; border-radius: 24px; margin-bottom: 56px; }
.fw-code-karte h2 { font-size: 24px; margin-bottom: 6px; }
.fw-code-karte p { color: var(--muted, #A6C1CD); }

.fw-schritte { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: fw; }
.fw-schritte li { padding: 20px 18px; border-radius: 20px; display: grid; align-content: start; gap: 8px; }
/* Nummer als eigenes Element – ::before belegen die Glas-Effekte der Website (sonst unsichtbar, Design-Check 18.10.2026) */
.fw-nr { font-size: 13px; letter-spacing: .12em; color: #47F4D5; font-variant-numeric: tabular-nums; font-weight: 600; }
.fw-schritte h3 { font-size: 17px; line-height: 1.25; margin: 0; }
.fw-schritte p { margin: 0; }
.fw-schritte p { font-size: 14px; color: var(--muted, #A6C1CD); line-height: 1.5; text-wrap: pretty; }
.fw-schritte .fw-kosten-start { box-shadow: inset 0 0 0 1px rgba(71, 244, 213, .55), 0 0 30px rgba(24, 218, 204, .15); }
.fw-schritte .fw-marke { display: inline-block; margin-top: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #06131D; background: #47F4D5; justify-self: start; }

.fw-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 56px; }
.fw-box { padding: 24px; border-radius: 22px; }
.fw-box h2 { font-size: 21px; margin-bottom: 10px; }
.fw-box p, .fw-box li { color: #d7e9ef; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.fw-box ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.fw-box .fw-klein { color: var(--muted, #A6C1CD); font-size: 13px; margin-top: 10px; }
.fw-box a { color: #47F4D5; }
.fw-box .fw-preis { font-size: 34px; font-weight: 650; color: #F4FBFF; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }

.fw-person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px; border-radius: 24px; margin-bottom: 56px; }
.fw-person img { width: 96px; height: 96px; filter: drop-shadow(0 0 18px rgba(24, 218, 204, .35)); }
.fw-person h2 { font-size: 24px; margin-bottom: 10px; }
.fw-person p { color: #d7e9ef; font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.fw-person p + p { margin-top: 10px; }

/* Knopf oben „Bedingungen vorab lesen“ → springt zum Bereich unten (Wunsch Sebastian 23.10.2026) */
/* Signal-Orange: bewusste CD-Ausnahme nur für „hier etwas tun“ (Entscheidung 18.10.2026) */
.fw-vorab-lesen { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 0; min-height: 48px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 181, 112, .65); background: linear-gradient(135deg, rgba(255, 181, 112, .16), rgba(255, 181, 112, .05));
  box-shadow: 0 0 22px rgba(255, 181, 112, .14); color: #FFC995; font-weight: 650; font-size: 15px; text-decoration: none; transition: background .2s; }
.fw-vorab-lesen:hover { background: rgba(255, 181, 112, .24); }
.fw-vorab-lesen:focus-visible { outline: 2px solid #FFC995; outline-offset: 3px; }
.fw-vorab-klein { font-weight: 400; font-size: 13px; color: #f3dcc4; }
.fw-bedingungen { scroll-margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { .fw-vorab-lesen { transition: none; } }

/* „Bedingungen vorab lesen“ (23.10.2026, erzeugt mit werkzeuge/fernwartung-bedingungen-bauen.php – gleicher Wortlaut wie vor dem Bestätigen) */
.fw-bedingungen { padding: 28px; border-radius: 24px; margin-bottom: 56px; }
.fw-bedingungen h2 { font-size: 24px; margin-bottom: 10px; text-wrap: balance; }
.fw-bedingungen > p { color: #d7e9ef; font-size: 16px; line-height: 1.65; text-wrap: pretty; max-width: 900px; margin-bottom: 16px; }
.fw-bedingungen > .fw-klein { color: var(--muted, #A6C1CD); font-size: 13px; margin: 16px 0 0; }
.fw-bedingungen a { color: #47F4D5; }
.fw-kurz { margin: 4px 0 22px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(71, 244, 213, .3); background: rgba(24, 218, 204, .05); }
.fw-kurz h3 { font-size: 18px; margin-bottom: 8px; color: #F4FBFF; text-wrap: balance; }
.fw-kurz dl { margin: 0; display: grid; }
.fw-kurz dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid rgba(184, 223, 237, .12); }
.fw-kurz dl > div:first-child { border-top: 0; }
.fw-kurz dt { font-weight: 650; color: #47F4D5; font-size: 15px; }
.fw-kurz dd { margin: 0; color: #d7e9ef; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.fw-bedingungen > .fw-bed-voll { font-size: 14px; color: var(--muted, #A6C1CD); margin-bottom: 6px; }
@media (max-width: 640px) { .fw-kurz { padding: 14px 16px; } .fw-kurz dl > div { grid-template-columns: 1fr; gap: 2px; } }
.fw-bed { border-top: 1px solid rgba(184, 223, 237, .16); }
.fw-bed:last-of-type { border-bottom: 1px solid rgba(184, 223, 237, .16); }
.fw-bed > summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: #F4FBFF; list-style: none; }
.fw-bed > summary::-webkit-details-marker { display: none; }
.fw-bed > summary::before { content: '+'; content: '+' / ''; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(71, 244, 213, .5); color: #47F4D5; font-weight: 500; transition: transform .2s; }
.fw-bed[open] > summary::before { transform: rotate(45deg); }
.fw-bed > summary:hover { color: #47F4D5; }
.fw-bed > summary:focus-visible { outline: 2px solid #47F4D5; outline-offset: 3px; border-radius: 8px; }
.fw-bed-text { padding: 0 0 16px 38px; max-width: 900px; }
.fw-bed-text p, .fw-bed-text li { color: #d7e9ef; font-size: 15px; line-height: 1.6; text-wrap: pretty; overflow-wrap: anywhere; margin-bottom: 8px; }
.fw-bed-text strong { color: #F4FBFF; }
.fw-bed-text h3 { font-size: 15px; margin: 14px 0 6px; color: #F4FBFF; }
.fw-bed-text ul { margin: 0 0 8px; padding-left: 20px; }
.fw-bed-fuer { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #06131D; background: #47F4D5; }

@media (max-width: 900px) {
  .fw-schritte { grid-template-columns: 1fr 1fr; }
  .fw-raster { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fw-seite { padding-top: 24px; }
  .fw-schritte { grid-template-columns: 1fr; }
  .fw-code-karte { grid-template-columns: 1fr; padding: 22px 20px; }
  .fw-person { grid-template-columns: 1fr; padding: 22px 20px; }
  .fw-bedingungen { padding: 22px 20px; }
  .fw-bed-text { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fw-bed > summary::before { transition: none; }
  .fw-dock::before, .fw-dock::after, .fw-dock-punkt::after, .fw-code-karte::before, .fw-code-karte::after { animation: none; }
  .fw-dock::after, .fw-code-karte::after { opacity: 0; }
  .fw-dock, .fw-hinweis { transition: none; }
}
.fw-nur-mobil { display: none; }
@media (max-width: 760px) { .fw-nur-mobil { display: inline; } }
.fw-zwischentitel { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; }

/* Zeilenumbruch: Überschriften ausgewogen, Fließtext ohne einzelne Wörter am Zeilenende (Design-Check 18.10.2026) */
.fw-seite h1, .fw-seite h2, .fw-seite h3 { text-wrap: balance; }
.fw-seite p, .fw-seite li, .fw-hinweis span { text-wrap: pretty; }

/* Signal-Orange (Ausnahme vom CD, Entscheidung Sebastian 18.10.2026) – nur für den wichtigsten Hinweis: ab wann es kostet */
.fw-schritte .fw-marke { background: #FFB570; color: #2A1503; }
.fw-schritte .fw-kosten-start { box-shadow: inset 0 0 0 1px rgba(255, 181, 112, .6), 0 0 30px rgba(255, 160, 80, .12); }

/* Mittlere Fensterbreiten (Entscheidung Sebastian 18.10.2026): Lasche schmaler, damit sie keinen Inhalt überdeckt –
   „Code eingeben“ erscheint beim Darüberfahren bzw. bei Tastaturfokus. Name für Screenreader bleibt (aria-label). */
@media (min-width: 761px) and (max-width: 1440px) {
  .fw-dock { padding: 12px 16px 12px 14px; }
  .fw-dock-punkt { grid-row: auto; }
  .fw-dock-text { display: none; }
  .fw-dock:hover .fw-dock-text, .fw-dock:focus-visible .fw-dock-text { display: block; grid-column: 2; }
}

/* RustDesk vorbereiten (18./19.10.2026): kein nackter Download-Link, sondern zur Anleitung mit Download an der richtigen Stelle
   (passende Datei je System, Datenschutzhinweis) – Signal-Orange, weil es eine Handlung ist. */
.fw-vorab { justify-self: start; font-size: 13px; font-weight: 600; color: #FFC995; text-decoration: underline; text-underline-offset: 3px; }
.fw-vorab:focus-visible, .fw-rustdesk:focus-visible { outline: 2px solid #FFC995; outline-offset: 3px; }
.fw-box a.fw-rustdesk, .fw-rustdesk { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: 15px;
  color: #2A1503; background: #FFB570; text-decoration: none; box-shadow: 0 8px 24px rgba(255, 160, 80, .25); transition: background .2s ease-out, transform .2s ease-out; }
.fw-box a.fw-rustdesk:hover, .fw-rustdesk:hover { background: #FFC995; transform: translateY(-1px); }
.fw-rustdesk-klein { font-weight: 500; font-size: 13px; opacity: .8; }
.fw-box .fw-sicher { margin-top: 12px; }
.fw-sicher strong { color: #F4FBFF; }
@media (prefers-reduced-motion: reduce) { .fw-rustdesk { transition: none; } }

/* Seite „RustDesk vorbereiten“ (fernwartung-vorbereiten.html, erzeugt mit werkzeuge/fernwartung-anleitung-bauen.php aus RustDesk.php) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fw-anleitung-seite { max-width: 980px; }
.fw-anleitung-seite details.dokument { margin: 16px 0; padding: 0 22px; border-radius: 20px; border: 1px solid rgba(255, 181, 112, .5);
  background: linear-gradient(135deg, rgba(255, 181, 112, .08), rgba(7, 25, 35, .45) 60%); }
.fw-anleitung-seite details.dokument > summary { cursor: pointer; min-height: 60px; display: flex; align-items: center; font-size: 18px; font-weight: 650; color: #FFC995; }
.fw-anleitung-seite details.dokument > summary:focus-visible { outline: 2px solid #FFC995; outline-offset: 3px; border-radius: 8px; }
.fw-anleitung-seite .anleitung-schritte { margin: 4px 0 20px; padding-left: 24px; display: grid; gap: 12px; }
.fw-anleitung-seite .anleitung-schritte li { color: #d7e9ef; font-size: 16px; line-height: 1.65; text-wrap: pretty; overflow-wrap: anywhere; }
.fw-anleitung-seite .anleitung-schritte li::marker { color: #FFC995; font-weight: 700; }
.fw-anleitung-seite .anleitung-schritte strong { color: #F4FBFF; }
.fw-anleitung-seite .anleitung-schritte .wichtig { color: #FFC995; }
.fw-anleitung-seite .hinweis-abschnitt { margin: 6px 0 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 224, 138, .35); background: rgba(255, 224, 138, .06); color: #fff2cc; }
.fw-anleitung-seite a.download-knopf { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 12px 20px; border-radius: 999px; font-weight: 650;
  color: #2A1503; background: #FFB570; text-decoration: none; box-shadow: 0 8px 24px rgba(255, 160, 80, .25); }
.fw-anleitung-seite a.download-knopf:hover { background: #FFC995; }
.fw-anleitung-seite a.download-knopf:focus-visible { outline: 2px solid #FFC995; outline-offset: 3px; }
.fw-sicher-gross { font-size: 15px !important; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(255, 181, 112, .5); margin-bottom: 8px; }
.fw-anleitung-seite > .fw-klein { max-width: 760px; margin: 14px 0; font-size: 14px; line-height: 1.6; color: var(--muted, #A6C1CD); text-wrap: pretty; }
.fw-anleitung-seite > .fw-klein strong { color: #F4FBFF; }
.fw-anleitung-seite > .fw-klein a { color: #47F4D5; }
.fw-anleitung-seite > .fw-knoepfe { margin-top: 26px; }
/* Klickfläche mindestens 24 px hoch (WCAG 2.2, Stufe-1-Prüfung 19.10.2026) */
.fw-vorab { display: inline-flex; align-items: center; min-height: 28px; }
