/* PS-WIN Hilfe – CPH EDV-Beratung
   Farben aus dem CPH-Logo, Systemschriften (keine externen Schriften) */
:root {
  --blau: #0071bc;
  --blau-dunkel: #00508a;
  --blau-hell: #e8f2fa;
  --blau-sehrhell: #f4f9fd;
  --text: #1d2733;
  --text-leise: #52606d;
  --linie: #dbe3ea;
  --flaeche: #ffffff;
  --grund: #f6f8fa;
  --gruen: #0f7b4f;
  --radius: 12px;
  --schatten: 0 1px 2px rgba(16, 37, 61, .06), 0 4px 16px rgba(16, 37, 61, .06);
  --breite: 1200px;
  font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 9rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--grund);
}
img { max-width: 100%; height: auto; }
a { color: var(--blau); text-underline-offset: .15em; }
a:hover { color: var(--blau-dunkel); }
:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; color: #10253d; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem); margin: .3em 0 .6em; }
h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Kopf ---------- */
.kopf { background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: .6rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; }
.marke { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); font-size: 1.15rem; white-space: nowrap; }
.marke img { width: 40px; height: 40px; }
.marke strong { color: var(--blau); }
.suche-kopf { position: relative; min-width: 0; order: 3; flex: 1 1 100%; }
.marke { margin-right: auto; }
.suche input {
  width: 100%; font: inherit; font-size: 1rem; padding: .6rem .9rem .6rem 2.4rem;
  border: 1px solid var(--linie); border-radius: 999px; background: var(--grund) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2352606d' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .85rem center;
  color: var(--text);
}
.suche input:focus { background-color: #fff; border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px rgba(0, 113, 188, .2); }
.anruf {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--blau); color: #fff; text-decoration: none;
  padding: .55rem .8rem; border-radius: 999px; font-weight: 600; white-space: nowrap; font-size: .95rem;
}
.anruf:hover { background: var(--blau-dunkel); color: #fff; }
.anruf-text { display: none; }
.anruf-kurz { display: inline; }
.hauptnav { border-top: 1px solid var(--linie); }
.hauptnav ul { list-style: none; margin: 0 auto; padding: 0 .5rem; max-width: var(--breite); display: flex; overflow-x: auto; scrollbar-width: none; }
.hauptnav a { display: block; padding: .55rem .7rem; color: var(--text-leise); text-decoration: none; font-size: .95rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.hauptnav a:hover { color: var(--blau); }
.hauptnav a[aria-current="page"] { color: var(--blau); border-bottom-color: var(--blau); font-weight: 600; }

/* Suchvorschläge */
.vorschlaege {
  position: absolute; left: 0; right: 0; top: calc(100% + .35rem); background: #fff; border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten); list-style: none; margin: 0; padding: .35rem; z-index: 30; max-height: 70vh; overflow: auto;
}
.vorschlaege a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--text); }
.vorschlaege a:hover, .vorschlaege a.aktiv { background: var(--blau-hell); }
.vorschlaege .v-titel { font-weight: 600; color: var(--blau-dunkel); display: block; }
.vorschlaege .v-info { font-size: .85rem; color: var(--text-leise); }
.vorschlaege .v-leer { padding: .6rem .7rem; color: var(--text-leise); font-size: .95rem; }

/* ---------- Grundlayout ---------- */
.seite { max-width: var(--breite); margin: 0 auto; padding: 1rem 1rem 3rem; }
.brotkrumen ol { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .9rem; color: var(--text-leise); }
.brotkrumen li + li::before { content: "›"; margin-right: .3rem; }
.knopf {
  display: inline-block; background: var(--blau); color: #fff; text-decoration: none; font: inherit; font-weight: 600;
  padding: .7rem 1.2rem; border-radius: 999px; border: 0; cursor: pointer; line-height: 1.3;
}
.knopf:hover { background: var(--blau-dunkel); color: #fff; }
.knopf-hell { background: #fff; color: var(--blau); border: 2px solid var(--blau); }
.knopf-hell:hover { background: var(--blau-hell); color: var(--blau-dunkel); }
.einleitung { font-size: 1.1rem; color: var(--text-leise); max-width: 60ch; }

/* ---------- Artikel ---------- */
.artikel-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.artikel {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.25rem 1.1rem 1.5rem; min-width: 0;
}
.artikel > h1 { margin-top: 0; }
.inhalt { max-width: 75ch; }
.inhalt > :first-child { margin-top: 0; }
.inhalt h2 { border-bottom: 1px solid var(--linie); padding-bottom: .3em; }
.inhalt ul, .inhalt ol { padding-left: 1.4rem; }
.inhalt li { margin: .25em 0; }
.inhalt dl { margin: 1rem 0; }
.inhalt dt { font-weight: 700; margin-top: .8rem; }
.inhalt dd { margin: .2rem 0 0 0; padding-left: 1rem; border-left: 3px solid var(--blau-hell); }
.inhalt code, .inhalt pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; background: var(--grund); border-radius: 6px; }
.inhalt code { padding: .1em .35em; }
.inhalt pre { padding: .8rem 1rem; overflow-x: auto; }
.inhalt hr { border: 0; border-top: 1px solid var(--linie); margin: 2rem 0; }
.inhalt .extern::after { content: " ↗"; font-size: .85em; }

.menupfad {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; background: var(--blau-sehrhell); border: 1px solid #cfe3f3;
  border-radius: var(--radius); padding: .7rem .9rem; font-size: .95rem; margin: 0 0 1.4rem;
}
.menupfad-label { color: var(--text-leise); }
.menupfad-weg { color: var(--text-leise); }
.menupunkt { display: inline-block; background: #fff; border: 1px solid #cfe3f3; color: var(--blau-dunkel); font-weight: 600; padding: .05rem .55rem; border-radius: 6px; }

.hinweis { background: #fff8e6; border: 1px solid #f3dca0; border-radius: var(--radius); padding: .7rem 1rem; margin: 1rem 0; }

.bild { margin: 1.2rem 0; }
.bild img { display: block; border: 1px solid var(--linie); border-radius: 8px; box-shadow: var(--schatten); background: #fff; }
.bild figcaption { font-size: .92rem; color: var(--text-leise); margin-top: .45rem; }
.bild-link { display: inline-block; cursor: zoom-in; }
.inhalt p > .bild-link img { border: 1px solid var(--linie); border-radius: 8px; box-shadow: var(--schatten); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; align-items: start; margin: 1.2rem 0; }
.galerie .bild { margin: 0; }

/* Videos: nur Vorschaubild, YouTube öffnet erst nach Klick */
.video { margin: 1.2rem 0; max-width: 420px; }
.video-link { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #10253d; box-shadow: var(--schatten); }
.video-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.video-link:hover img { transform: scale(1.03); }
.video-link .play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%);
  background: rgba(0, 113, 188, .92); border-radius: 12px;
}
.video-link .play::after { content: ""; position: absolute; left: 26px; top: 12px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-link:hover .play { background: var(--blau-dunkel); }
.video-playlist { background: linear-gradient(135deg, var(--blau), #10253d); }
.playlist-label { position: absolute; left: .8rem; bottom: .6rem; color: #fff; font-weight: 600; font-size: .95rem; }
.video figcaption { margin-top: .45rem; font-size: .95rem; }
.video figcaption strong { display: block; }
.video-hinweis { font-size: .82rem; color: var(--text-leise); }

/* Checklisten (Schritt für Schritt) */
.checkliste ol { counter-reset: schritt; list-style: none; padding-left: 0; }
.checkliste ol > li { counter-increment: schritt; position: relative; padding: .55rem .2rem .55rem 2.6rem; border-bottom: 1px dashed var(--linie); }
.checkliste ol > li:last-child { border-bottom: 0; }
.checkliste ol > li::before {
  content: counter(schritt); position: absolute; left: 0; top: .5rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--blau); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center;
}
.checkliste { background: var(--blau-sehrhell); border-radius: var(--radius); padding: .4rem 1rem; margin: 1rem 0; }

/* Tabellen */
.tabelle { overflow-x: auto; margin: 1rem 0; }
.tabelle table { border-collapse: collapse; min-width: 50%; font-size: .95rem; }
.tabelle th, .tabelle td { border: 1px solid var(--linie); padding: .45rem .7rem; text-align: left; vertical-align: top; }
.tabelle th { background: var(--blau-sehrhell); }
.tabelle tr:nth-child(even) td { background: #fafcfd; }
.reiter h4 { margin-top: 1.5rem; }

/* Themenlisten auf „Häufige Fragen“ / „Tipps & Tricks“ */
.themenliste { background: var(--blau-sehrhell); border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0 2rem; }
.themenliste > ul { columns: 2 16rem; column-gap: 2rem; padding-left: 1.1rem; margin: 0; }
.themenliste > ul > li { break-inside: avoid; margin-bottom: .6rem; }
.themenliste > ul > li > a { font-weight: 700; }
.themenliste ul ul { font-size: .92rem; color: var(--text-leise); padding-left: 1rem; }

/* Inhaltsverzeichnis */
.toc { background: var(--blau-sehrhell); border: 1px solid #cfe3f3; border-radius: var(--radius); padding: .6rem .9rem; margin: 0 0 1.5rem; font-size: .95rem; }
.toc summary { font-weight: 700; cursor: pointer; color: #10253d; }
.toc ol { list-style: none; margin: .5rem 0 .2rem; padding: 0; }
.toc li { margin: .2rem 0; }
.toc .toc-h3 { padding-left: 1rem; font-size: .9rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-seite { display: none; }

.artikel-fuss { margin-top: 2.5rem; border-top: 1px solid var(--linie); padding-top: 1rem; font-size: .9rem; color: var(--text-leise); }
.stand { margin: 0 0 .6rem; }
.schlagworte { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.schlagworte a { display: inline-block; padding: .15rem .65rem; border-radius: 999px; background: var(--grund); border: 1px solid var(--linie); text-decoration: none; color: var(--text-leise); }
.schlagworte a:hover { border-color: var(--blau); color: var(--blau); }

/* ---------- Startseite ---------- */
.held { background: linear-gradient(160deg, var(--blau) 0%, #005a99 100%); color: #fff; }
.held-innen { max-width: 860px; margin: 0 auto; padding: 2.2rem 1rem 2.6rem; text-align: center; }
.held h1 { color: #fff; margin: .2em 0 .5em; }
.held-dachzeile { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; opacity: .85; }
.held-text { font-size: 1.1rem; opacity: .95; }
.held a { color: #fff; }
.held-beliebt { font-size: .95rem; opacity: .95; margin: 1rem 0 0; }
.suche-gross { display: flex; gap: .5rem; position: relative; margin: 1.4rem auto 0; max-width: 680px; }
.suche-gross input { padding: .85rem 1rem .85rem 2.6rem; font-size: 1.05rem; background-color: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.suchseite .suche-gross input, .seite .suche-gross input { border: 1px solid var(--linie); }
.held .knopf { background: #10253d; }
.held .knopf:hover { background: #000; }
.held .vorschlaege { text-align: left; }

.schnellzugriff { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: -1.6rem; position: relative; }
.kachel {
  display: flex; flex-direction: column; gap: .2rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem; text-decoration: none; color: var(--text); box-shadow: var(--schatten); transition: border-color .15s, transform .15s;
}
.kachel:hover { border-color: var(--blau); transform: translateY(-2px); color: var(--text); }
.kachel strong { color: var(--blau-dunkel); font-size: 1.1rem; }
.kachel span:last-child { color: var(--text-leise); font-size: .95rem; }
.kachel-icon { width: 2.3rem; height: 2.3rem; border-radius: 10px; background: var(--blau-hell); color: var(--blau); display: grid; place-items: center; font-weight: 800; margin-bottom: .4rem; }

.neu {
  margin: 2.2rem 0 0; background: #fff; border: 1px solid var(--linie); border-left: 6px solid var(--gruen); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
}
.neu h2 { margin: .1rem 0 .3rem; }
.neu p { margin: 0; }
.neu > div { flex: 1 1 26rem; }
.neu-marke { display: inline-block; background: #e3f4ec; color: var(--gruen); font-weight: 700; font-size: .8rem; padding: .05rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

.bereiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.bereich { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem; }
.bereich h3 { margin: 0; color: var(--blau-dunkel); }
.bereich-sub { margin: .1rem 0 .5rem; color: var(--text-leise); font-size: .9rem; }
.bereich ul { margin: 0; padding-left: 1.1rem; }
.mehr-klein { font-size: .88rem; margin: .5rem 0 0; color: var(--text-leise); }

.hilfethemen { margin-top: 1rem; }
.buchstaben { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0; }
.buchstaben a { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; background: #fff; border: 1px solid var(--linie); border-radius: 8px; text-decoration: none; font-weight: 700; }
.buchstaben a:hover { border-color: var(--blau); background: var(--blau-hell); }
.az { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; align-items: start; }
.az section { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: .6rem 1rem .8rem; break-inside: avoid; }
.az h2, .az h3 { margin: .2rem 0 .3rem; font-size: 1.15rem; color: var(--blau); border: 0; }
.az ul { margin: 0; padding-left: 1.1rem; }
.az-mehr { margin-top: 1rem; }

.kachel-liste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.kachel-liste a { display: block; background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: .7rem .9rem; text-decoration: none; font-weight: 600; }
.kachel-liste a:hover { border-color: var(--blau); }

.video-gruppe { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: .4rem 1.1rem 1.1rem; margin: 1.2rem 0; }
.video-gruppe h2 { margin: .8rem 0 .2rem; font-size: 1.3rem; }
.video-gruppe .mehr { margin: 0 0 .8rem; font-size: .92rem; }
.video-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.video-raster .video { margin: 0; }

/* Suchergebnisse */
.suchergebnisse { margin-top: 1.5rem; }
.suchergebnisse ol { list-style: none; padding: 0; }
.suchergebnisse li { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem 1rem; margin: .6rem 0; }
.suchergebnisse a { font-weight: 700; font-size: 1.1rem; }
.suchergebnisse p { margin: .3rem 0 0; color: var(--text-leise); font-size: .95rem; }
.suchergebnisse mark { background: #fff1b8; color: inherit; }

/* ---------- Fuß ---------- */
.fuss { background: #10253d; color: #d6e2ee; margin-top: 2rem; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2rem 1rem; display: grid; gap: 1.5rem; }
.fuss h2 { color: #fff; margin: 0 0 .3rem; font-size: 1.35rem; }
.fuss a { color: #fff; }
.fuss-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
.fuss .knopf-hell { background: transparent; color: #fff; border-color: #fff; }
.fuss .knopf-hell:hover { background: rgba(255, 255, 255, .1); }
.fuss-info p { margin: 0 0 .6rem; }
.fuss-links ul { list-style: none; margin: 0; padding: 0; columns: 2 12rem; }
.fuss-links li { margin: .25rem 0; }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 640px) {
  .anruf-text { display: inline; }
  .anruf-kurz { display: none; }
  .kopf-innen { flex-wrap: nowrap; }
  .marke { margin-right: 0; }
  .suche-kopf { order: 0; flex: 1 1 auto; }
  .artikel { padding: 2rem 2.2rem 2rem; }
  .fuss-innen { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .artikel-layout { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "krumen krumen" "artikel seite"; align-items: start; column-gap: 2rem; row-gap: .5rem; }
  .artikel-layout .brotkrumen { grid-area: krumen; }
  .artikel { grid-area: artikel; }
  .toc-seite { display: block; grid-area: seite; position: sticky; top: 8.2rem; max-height: calc(100vh - 9rem); overflow: auto; }
  .toc-seite .toc { background: #fff; border-color: var(--linie); }
  .toc-mobil { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .kopf, .fuss, .toc-seite, .toc-mobil, .skip, .brotkrumen { display: none !important; }
  body { background: #fff; }
  .artikel { border: 0; padding: 0; }
  .video-link::after { content: " (" attr(href) ")"; }
}
