/* gsinfotronic – Fernwartung
   Eine Schrift (Atkinson Hyperlegible Next, gut lesbar bei Ziffern wie 0/O und 1/l),
   kühles Papierweiss, Tannengrün als Handlungsfarbe, Signalgelb nur für die zwei Angaben,
   die Kundinnen und Kunden vorlesen. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-700.woff2") format("woff2");
}

:root {
  --ink: #16282c;
  --ink-soft: #4a5d61;
  --paper: #f3f6f5;
  --surface: #ffffff;
  --mist: #d5e0dd;
  --mist-soft: #e7eeec;
  --fir: #0d5b57;
  --fir-deep: #083f3c;
  --on-fir: #ffffff;
  --signal: #f5c84a;
  --ok: #1f7a4d;
  --off: #8a6d1f;
  --cmd-bg: #16282c;
  --cmd-ink: #eef3f2;

  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --radius: 12px;
  --wrap: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e4ecea;
    --ink-soft: #a9bab7;
    --paper: #0f1b1d;
    --surface: #16262a;
    --mist: #2a3f43;
    --mist-soft: #1c2f33;
    --fir: #5cc2b6;
    --fir-deep: #86d6cc;
    --on-fir: #06201e;
    --signal: #e9b93a;
    --ok: #6fd39d;
    --off: #e0c06a;
    --cmd-bg: #081214;
    --cmd-ink: #e4ecea;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

a { color: var(--fir); text-underline-offset: 0.18em; }
a:hover { color: var(--fir-deep); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: var(--step-2); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 0.75rem; }
code {
  font-family: var(--font);
  font-weight: 700;
  background: var(--mist-soft);
  padding: 0.05em 0.35em;
  border-radius: 6px;
}
.muted { color: var(--ink-soft); }
[hidden] { display: none !important; }

/* Kopf */
.site-header { border-bottom: 1px solid var(--mist); }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}
.wordmark {
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.header-contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; }
.header-contact a { font-weight: 700; text-decoration: none; }
.header-contact a:hover { text-decoration: underline; }

/* Einstieg */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem 4rem;
  align-items: center;
  padding-block: 4rem 3rem;
}
h1 {
  font-size: var(--step-3);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 1.25rem;
}
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; color: var(--ink); }
.mobile-hint {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--signal);
  background: var(--surface);
  max-width: 36ch;
}

/* Wahl des Betriebssystems */
.os-switch {
  display: inline-flex;
  margin-top: 1.75rem;
  border: 2px solid var(--fir);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.os-switch button {
  font: inherit;
  font-weight: 700;
  color: var(--fir);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
}
.os-switch button[aria-selected="true"] { background: var(--fir); color: var(--on-fir); }
.os-switch button:not([aria-selected="true"]):hover { background: var(--mist-soft); }

/* Programmfenster als Beispiel – das eine markante Element der Seite */
.window-demo { margin: 0; justify-self: end; width: min(100%, 25rem); }
.demo-window {
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--mist), 0 24px 48px -28px rgb(13 47 45 / 0.45);
  overflow: hidden;
}
.demo-titlebar {
  display: flex;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--mist);
}
.demo-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: var(--mist); }
.demo-body { padding: 1.4rem 1.6rem 1.2rem; }
.demo-heading { font-weight: 700; font-size: var(--step-1); margin-bottom: 1.1rem; }
.demo-field {
  border-left: 3px solid var(--fir);
  padding: 0.1rem 0 0.1rem 0.9rem;
  margin-bottom: 1.1rem;
}
.demo-label { display: block; color: var(--ink-soft); font-size: var(--step--1); }
.demo-value { display: block; font-size: 2.25rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.25; }
.demo-value mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 92%, transparent 92%);
  padding-inline: 0.08em;
}
@media (prefers-color-scheme: dark) {
  .demo-value mark { background: var(--signal); color: #16282c; border-radius: 4px; padding-inline: 0.2em; }
}
.demo-status { margin: 1.4rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--mist); font-size: var(--step--1); }
.demo-status::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 0.5em;
}
.window-demo figcaption { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-soft); max-width: 34ch; }

/* Anleitungen je Betriebssystem */
.panels { padding-bottom: 2rem; }
.os-panel { padding-block: 2.5rem; border-top: 2px solid var(--ink); }
.os-panel + .os-panel { margin-top: 1rem; }
.js .os-panel { border-top: 0; padding-top: 0.5rem; }
.panel-title { margin-bottom: 1.5rem; }
.js .panel-title {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 2.5rem;
}
.download-meta { flex-basis: 100%; margin: 0.25rem 0 0; color: var(--ink-soft); font-size: var(--step--1); max-width: 60ch; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.95rem 1.5rem;
  border: 2px solid var(--fir);
  line-height: 1.25;
}
.btn-primary { background: var(--fir); color: var(--on-fir); }
.btn-primary:hover { background: var(--fir-deep); border-color: var(--fir-deep); color: var(--on-fir); }
.btn-secondary { background: transparent; color: var(--fir); }
.btn-secondary:hover { background: var(--mist-soft); color: var(--fir-deep); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem 2.5rem;
}
.steps li { counter-increment: step; border-top: 1px solid var(--mist); padding-top: 1rem; max-width: 40ch; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fir);
  margin-bottom: 0.75rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps em { font-style: normal; font-weight: 700; }

.cmd {
  margin: 0.25rem 0 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--cmd-bg);
  color: var(--cmd-ink);
  border-radius: 8px;
  overflow-x: auto;
  font-size: var(--step--1);
}
.cmd code { background: none; padding: 0; color: inherit; font-weight: 400; font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; }

/* Serverwerte */
.server-values {
  margin-top: 1rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
}
.server-values h2 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.values { margin: 1.25rem 0 0; display: grid; gap: 0.9rem; }
.values > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.25rem 1rem; align-items: baseline; }
.values dt { color: var(--ink-soft); }
.values dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: baseline; }
.values code { font-size: var(--step-0); }
.values code.key { word-break: break-all; }
.copy {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--fir);
  background: transparent;
  border: 1.5px solid var(--fir);
  border-radius: 8px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
}
.copy:hover { background: var(--mist-soft); }
.copy.done { background: var(--fir); color: var(--on-fir); }

/* Kontrolle, Kontakt, Prüfsummen */
.control, .contact, .checksums { padding-block: 3rem; border-top: 1px solid var(--mist); }
.control h2, .contact h2 { margin-bottom: 1.5rem; }
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 4rem;
}
.facts li { max-width: 46ch; padding-left: 1rem; border-left: 3px solid var(--fir); }
.facts h3 { margin-bottom: 0.3rem; }
.facts p { margin: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 3rem; }
.contact-line { font-size: var(--step-2); font-weight: 700; margin-bottom: 0.4rem; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.contact h3 { font-size: var(--step-0); margin-bottom: 0.35rem; }
.hours-status { font-weight: 700; }
.hours-status:empty { display: none; }
.hours-status::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  margin-right: 0.5em;
  background: var(--off);
}
.hours-status.open::before { background: var(--ok); }

.checksums summary { cursor: pointer; font-weight: 700; font-size: var(--step-1); }
.checksums details[open] summary { margin-bottom: 1rem; }
.checksums p { max-width: 70ch; }
.sums { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; font-size: var(--step--1); }
.sums .file { display: block; font-weight: 700; }
.sums code { word-break: break-all; font-weight: 400; font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; }

/* Fuss */
.site-footer { background: var(--mist-soft); border-top: 1px solid var(--mist); font-size: var(--step--1); color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; padding-block: 2.5rem 3rem; }
.site-footer h2 { font-size: var(--step-0); color: var(--ink); margin-bottom: 0.5rem; }
.site-footer p { max-width: 70ch; }

@media (max-width: 60rem) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .facts { grid-template-columns: 1fr; }
  .window-demo { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .os-switch { display: flex; width: 100%; }
  .os-switch button { flex: 1; padding-inline: 0.5rem; }
  .btn { width: 100%; text-align: center; }
  .values > div { grid-template-columns: 1fr; }
  .server-values { padding: 1.25rem; }
  .demo-value { font-size: 1.9rem; }
}

@media print {
  .os-switch, .copy, .downloads { display: none !important; }
  .js .os-panel[hidden] { display: block !important; }
}
