﻿/* ==========================================================================
   TKS-Computer – Stylesheet
   Modernes, responsives Layout für eine statische Website.
   Keine externen Schriften, keine Tracker – funktioniert auch offline.
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-2: #1f2b3d;
  --muted: #5b6b80;
  --body-bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #b4530a;
  --accent: #f59e0b;
  --accent-soft: #fff4d6;
  --link: #16528f;
  --link-hover: #0b3a6b;
  --header-bg: #0b1220;
  --header-ink: #e8eef7;
  --ok: #0f7b4f;
  --warn-bg: #fff8e6;
  --warn-line: #f2c265;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 24px -12px rgba(15, 23, 42, .28);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  --wrap: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #0b1220;
}

body {
  margin: 0;
  background: var(--body-bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--accent);
  color: #201400;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------------------- 
   Kopfbereich
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 1px solid #1e293b;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--header-ink);
  text-decoration: none;
}
.brand:hover { color: #fff; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), #d97706);
  color: #1b1200;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; }
.brand-claim { font-size: .78rem; color: #9fb0c6; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  background: #16233a;
  color: var(--header-ink);
  border: 1px solid #2b3a54;
  border-radius: 9px;
  padding: .5rem .8rem;
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: .42rem .62rem;
  border-radius: 8px;
  color: #cbd7e6;
  text-decoration: none;
  font-size: .93rem;
  white-space: nowrap;
}
.site-nav a:hover { background: #17233a; color: #fff; }
.site-nav a.is-active {
  background: var(--accent-soft);
  color: #43290a;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- 
   Brotkrumen
   -------------------------------------------------------------------------- */
.breadcrumb {
  width: min(var(--wrap), 100% - 2.5rem);
  margin: 1.15rem auto 0;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: .35rem;
  color: #9aa8ba;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }

/* -------------------------------------------------------------------------- 
   Grundraster
   -------------------------------------------------------------------------- */
main {
  display: block;
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
  padding-bottom: 3.5rem;
}

.section { margin-top: 3rem; }
.section--tight { margin-top: 2rem; }

.section-head { max-width: 62ch; margin-bottom: 1.35rem; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .45rem;
}
h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); margin: 0 0 .6rem; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.45rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 2rem; }
.section-head h2, .page-head h2, .page-head h1 { margin-top: 0; }
.card h2, .card h3 { margin-top: 0; }
.section-head .eyebrow + h2 { margin-top: .1rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* -------------------------------------------------------------------------- 
   Hero
   -------------------------------------------------------------------------- */
.hero {
  margin-top: 1.5rem;
  background: radial-gradient(120% 140% at 88% 0%, #1b2a44 0%, #0b1220 55%);
  color: #eaf0f9;
  border-radius: 22px;
  padding: clamp(1.5rem, 3.6vw, 3rem);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .7rem; }
.hero p { color: #c9d6e7; margin: 0 0 1rem; }
.hero .eyebrow { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.hero-note { font-size: .86rem; color: #93a5bd; margin-top: 1.1rem; }

.hero-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.hero-media figure {
  margin: 0;
  background: #131e31;
  border: 1px solid #24344c;
  border-radius: 12px;
  padding: .6rem;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}
.hero-media img { max-height: 100%; width: auto; border-radius: 4px; }
.hero-media figcaption { display: none; }

/* -------------------------------------------------------------------------- 
   Schaltflächen
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .68rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #241500; box-shadow: 0 6px 16px -8px rgba(245, 158, 11, .9); }
.btn--primary:hover { background: #fbbf24; color: #241500; }
.btn--ghost { background: transparent; color: #e6eef9; border-color: #3b4d69; }
.btn--ghost:hover { background: #17233a; color: #fff; }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }

/* -------------------------------------------------------------------------- 
   Karten
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.card h2, .card h3 { margin-top: 0; font-size: 1.08rem; }
.card p:last-child { margin-bottom: 0; }
.card--link { transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.card--link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--brand);
  margin-bottom: .8rem;
}
.card-icon svg { width: 22px; height: 22px; }

.card-meta { font-size: .84rem; color: var(--muted); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .9rem;
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  color: var(--brand);
}
.card-link:hover { text-decoration: underline; }

/* Produktkarten mit Bild */
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.product-figure {
  margin: 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 1.1rem;
  min-height: 148px;
}
.product-figure img { max-height: 116px; width: auto; }
.product-body { padding: .95rem 1.1rem 1.15rem; }
.product-body h3 { font-size: 1rem; margin: 0 0 .35rem; }
.product-body p { margin: 0; font-size: .9rem; color: var(--muted); }

/* -------------------------------------------------------------------------- 
   Kennzahlen / Vorteile / Schritte
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.6rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 1.1rem 1.2rem; }
.stat-value { display: block; font-size: 1.45rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.stat-label { display: block; font-size: .85rem; color: var(--muted); margin-top: .25rem; }

.features { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .85rem; }
.features li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .75rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .95rem 1.05rem;
}
.features strong { display: block; }
.features p { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); }
.tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e7f6ee;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 700;
  margin-top: .15rem;
}

.steps { counter-reset: step; list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: .85rem;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--header-bg);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: grid;
  place-items: center;
}
.steps p { margin: .15rem 0 0; font-size: .93rem; color: var(--muted); }

/* -------------------------------------------------------------------------- 
   Fließtext
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .35rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose dl { margin: 0 0 1rem; }
.prose dt { font-weight: 700; margin-top: .9rem; }
.prose dd { margin: .2rem 0 0; color: var(--ink-2); }
.prose blockquote {
  margin: 1.2rem 0;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
}

.page-head { margin-top: 2rem; max-width: 70ch; }
.page-head h1 { margin-bottom: .55rem; }
.page-head .lead { color: var(--muted); }
.page-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.page-meta span::before { content: "·"; margin-right: .6rem; color: #b9c4d4; }
.page-meta span:first-child::before { content: ""; margin: 0; }

/* -------------------------------------------------------------------------- 
   Hinweise
   -------------------------------------------------------------------------- */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.15rem;
  margin: 1.4rem 0;
  font-size: .95rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: #d97706; }
.callout--info { background: #eef5ff; border-left-color: var(--link); border-color: #c6dcf7; }

.badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--accent-soft);
  color: #6b3d05;
  vertical-align: middle;
}
.badge--muted { background: #eef1f6; color: #4b5a70; }

/* -------------------------------------------------------------------------- 
   Tabellen
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 1.2rem 0;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 520px;
}
table.data caption {
  caption-side: top;
  text-align: left;
  padding: .85rem 1rem .2rem;
  font-weight: 700;
  color: var(--ink);
}
table.data th,
table.data td {
  padding: .6rem .8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.data thead th {
  background: #f1f4f9;
  color: var(--ink-2);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}
table.data tbody tr:nth-child(even) { background: #fafbfd; }
table.data tbody tr:hover { background: #fffaf0; }
table.data code, .mono { font-family: var(--mono); font-size: .88em; }

/* -------------------------------------------------------------------------- 
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .7rem; margin-top: 1.4rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .1rem .1rem;
}
.faq summary {
  cursor: pointer;
  padding: .9rem 1.05rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.15rem;
  color: var(--brand);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: .9rem 1.05rem 1.05rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------- 
   Inhaltsverzeichnis
   -------------------------------------------------------------------------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  font-size: .93rem;
}
.toc h2 { margin: 0 0 .6rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin: .18rem 0; break-inside: avoid; }

/* -------------------------------------------------------------------------- 
   Download-Liste
   -------------------------------------------------------------------------- */
.downloads { display: grid; gap: .8rem; margin: 1.3rem 0; }
.download {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: .95rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
}
.download-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #fdeaea;
  color: #b3261e;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
}
.download h3 { margin: 0; font-size: 1rem; }
.download p { margin: .15rem 0 0; font-size: .87rem; color: var(--muted); }

/* -------------------------------------------------------------------------- 
   Filterfeld (Tabellenfilter)
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  margin: 1.4rem 0 .4rem;
}
.filter-bar label { font-size: .9rem; font-weight: 600; }
.filter-bar input[type="search"] {
  font: inherit;
  font-size: .95rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  min-width: 260px;
  background: var(--surface);
}
.filter-hint { font-size: .85rem; color: var(--muted); }
.is-hidden { display: none !important; }

/* -------------------------------------------------------------------------- 
   Fußbereich
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--header-bg);
  color: #c2cfe0;
  padding: 3rem 0 1.6rem;
  margin-top: 3rem;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-col address { font-style: normal; font-size: .92rem; line-height: 1.8; }
.footer-col a { color: #d7e3f2; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-weight: 700; font-size: 1.05rem; color: #fff; margin: 0 0 .5rem; }
.footer-title {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .7rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.footer-links li + li { margin-top: .38rem; }
.footer-muted { color: #8fa1b8; font-size: .85rem; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  font-size: .82rem;
  color: #8fa1b8;
}
.footer-bottom p { margin: 0; }

/* -------------------------------------------------------------------------- 
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .js .site-nav[data-open="true"] { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: .18rem;
    padding-top: .6rem;
    border-top: 1px solid #1e293b;
  }
  .site-nav a { display: block; padding: .6rem .7rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  main, .wrap, .breadcrumb { width: min(var(--wrap), 100% - 1.6rem); }
  .hero { border-radius: 16px; padding: 1.35rem 1.15rem; }
  .hero-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .download { grid-template-columns: 40px 1fr; }
  .download .btn { grid-column: 1 / -1; justify-self: start; }
  .filter-bar input[type="search"] { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .btn:hover, .card--link:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .breadcrumb, .hero-actions, .filter-bar, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
  .card, .callout, .table-wrap { break-inside: avoid; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   Navigationslisten (Hilfsseiten der alten Framesets)
   -------------------------------------------------------------------------- */
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li + li { border-top: 1px solid var(--line); }
.nav-list a { display: block; padding: .7rem .2rem; text-decoration: none; font-weight: 500; }
.nav-list a:hover { color: var(--brand); }
.nav-list a.is-current { color: var(--brand); font-weight: 700; }