/* Farben aus dem Logo "Gnadenthal-Campus IT-Services": G grün, T rot, C blau, Schrift grau */
:root {
  --gtc-green: #0c9627; --gtc-red: #cf0a13; --gtc-blue: #1f45a6; --gtc-grey: #3c3c40;
  --bg: #f4f5f7; --card: #ffffff; --text: #2b2c30; --muted: #64666c;
  --brand: var(--gtc-blue); --brand-soft: #e8edf8; --line: #e1e3e8; --on-brand: #ffffff;
  --warn-bg: #fdeeee; --warn-line: var(--gtc-red); --ok: var(--gtc-green);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141518; --card: #1d1f23; --text: #e8e9ec; --muted: #a2a5ad;
    --brand: #7f9ee6; --brand-soft: #232a3b; --line: #30333a; --on-brand: #141518;
    --warn-bg: #351b1c; --warn-line: #f0656b; --ok: #4cc767;
    --gtc-green: #4cc767; --gtc-red: #f0656b; --gtc-blue: #7f9ee6;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }

/* Kopf mit Logo: bleibt auch im Dunkelmodus weiß, weil das Logo einen weißen Hintergrund hat */
header.site { background: #fff; }
header.site .wrap { padding-top: 12px; padding-bottom: 12px; }
header.site .logo { display: block; width: min(100%, 420px); }
header.site .logo img { display: block; width: 100%; height: auto; }
.stripe { display: flex; height: 5px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: #0c9627; }
.stripe span:nth-child(2) { background: #cf0a13; }
.stripe span:nth-child(3) { background: #1f45a6; }

.page-title { margin: 22px 0 4px; font-size: 1.6rem; line-height: 1.25; color: var(--text); letter-spacing: -.01em; }
.page-sub { margin: 0; color: var(--muted); }

/* Navigation */
.devices { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.devices a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
             background: var(--card); color: var(--text); text-decoration: none; font-size: .95rem; }
.devices a.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.devices.sub { margin-top: 0; }
.devices.sub a { font-size: .88rem; padding: 6px 12px; }
.devices a.soon { opacity: .6; }
.hint { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }

/* Karten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
        padding: 18px; margin: 16px 0; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
.card > p:last-child, .card > ul:last-child { margin-bottom: 0; }

/* Startseite: Geräteauswahl */
.choices { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
          padding: 16px 18px; text-decoration: none; color: var(--text); }
.choice strong { display: block; font-size: 1.1rem; color: var(--brand); }
.choice span { color: var(--muted); font-size: .92rem; }
.choice.recommended { border: 2px solid var(--brand); background: var(--brand-soft); }
.choice .badge, .badge { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--brand);
         color: var(--on-brand); border-radius: 999px; padding: 1px 9px; margin-bottom: 6px; }

/* Wertetabelle */
table.values { width: 100%; border-collapse: collapse; }
table.values td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
table.values tr:first-child td { border-top: 0; }
table.values td:first-child { color: var(--muted); width: 42%; }
.val { font-weight: 600; word-break: break-all; }
button.copy { margin-left: 8px; font: inherit; font-size: .8rem; padding: 3px 9px; border-radius: 6px;
              border: 1px solid var(--line); background: var(--brand-soft); color: var(--text); cursor: pointer; }

/* Erklärung zum Benutzernamen */
.userhelp { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.userhelp ul { margin: 6px 0; padding-left: 20px; }
.userhelp li { margin: 3px 0; }

/* Hinweise */
.warn { background: var(--warn-bg); border-left: 4px solid var(--warn-line); border-radius: 8px;
        padding: 12px 14px; margin: 16px 0; }
.warn strong { display: block; margin-bottom: 2px; }

/* Download-Knopf */
.button { display: inline-block; background: var(--brand); color: var(--on-brand); text-decoration: none;
          font-weight: 600; padding: 12px 18px; border-radius: 10px; margin: 6px 0; }

/* Schritte */
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
ol.steps > li { counter-increment: step; display: grid; grid-template-columns: 1fr; gap: 12px;
                padding: 18px 0; border-top: 1px solid var(--line); }
ol.steps > li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { ol.steps > li.has-img { grid-template-columns: 1fr 230px; align-items: start; } }
.step-text h3 { margin: 0 0 6px; font-size: 1.05rem; display: flex; gap: 10px; align-items: baseline; }
.step-text h3::before { content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%;
                        background: var(--brand); color: var(--on-brand); display: inline-grid; place-items: center;
                        font-size: .9rem; transform: translateY(-2px); }
/* Schrittnummern im Wechsel grün, rot, blau wie im Logo */
ol.steps > li:nth-child(3n+1) .step-text h3::before { background: var(--gtc-green); }
ol.steps > li:nth-child(3n+2) .step-text h3::before { background: var(--gtc-red); }
ol.steps > li:nth-child(3n) .step-text h3::before { background: var(--gtc-blue); }
.step-text p, .step-text ul { margin: 6px 0; }
.step-text ul { padding-left: 20px; }
figure { margin: 0; justify-self: center; }
figure img { width: 230px; max-width: 100%; height: auto; border-radius: 16px;
             border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.08); display: block; }
code { background: var(--brand-soft); padding: 1px 6px; border-radius: 5px; font-size: .95em; }
.done { color: var(--ok); font-weight: 600; }

/* Schematische Eingabemaske (allgemeine Android-Anleitung) */
.schema { max-width: 360px; margin: 8px auto; border: 2px dashed var(--line); border-radius: 18px; padding: 14px 16px; }
.schema-title { font-size: .8rem; color: var(--muted); text-align: center; margin: 0 0 8px; }
.schema .row { margin: 10px 0; }
.schema .lbl { font-size: .82rem; color: var(--muted); }
.schema .fld { border-bottom: 2px solid var(--brand); padding: 3px 2px; font-weight: 600; }
.schema .fld.keep { border-bottom-color: var(--line); font-weight: 400; color: var(--muted); }

footer { color: var(--muted); font-size: .85rem; margin-top: 32px; }
footer a { color: var(--muted); }
