/* InfraQ itdeg Wissen — gemeinsame Grundlage, Theme per [data-theme] */
:root {
  --cta: #2e31e1;
  --cta-hover: #2528c4;
  --brand: #162228;
  --accent: #546650;
  --accent-soft: #e6ebe2;
  --accent-warm: #8a7250;
  --bg: #f3f4f1;
  --bg-soft: #e7ebe4;
  --surface: #fcfdfb;
  --ink: #141a18;
  --muted: #5a6358;
  --dark: #172026;
  --line: rgba(31, 42, 48, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1120px;
  --header-h: 84px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Outfit", "Segoe UI", Arial, sans-serif;
  --shadow-soft: 0 8px 28px rgba(31, 42, 48, 0.06);
  --focus: 0 0 0 3px rgba(46, 49, 225, 0.35);
  --space-tight: 0.45rem;
  --space-related: 0.85rem;
  --space-block: 1.35rem;
  --space-section: clamp(2.15rem, 4.2vw, 4rem);
}

[data-theme="hub"] { --brand: #162228; --accent: #546650; --accent-soft: #e6ebe2; --accent-warm: #8a7250; --bg: #f2f4f0; }
[data-theme="backup"] { --brand: #0a1016; --accent: #356f9a; --accent-soft: #e4eef4; --accent-warm: #3a8890; --bg: #f3f6f8; }
[data-theme="firewall"] { --brand: #081018; --accent: #4589a5; --accent-soft: #e3eef3; --accent-warm: #163248; --bg: #f2f5f7; }
[data-theme="endpoint"] { --brand: #0e1018; --accent: #5a5478; --accent-soft: #eceaf2; --accent-warm: #8a7a9a; --bg: #f4f3f7; }
[data-theme="cyber"] { --brand: #12161e; --accent: #46506a; --accent-soft: #eaedf2; --accent-warm: #94856a; --bg: #f4f5f7; }
[data-theme="notfall"] { --brand: #1e1c1d; --accent: #856055; --accent-soft: #f3ebe8; --accent-warm: #9a8570; --bg: #f6f3f1; }
[data-theme="proxmox"] { --brand: #101820; --accent: #2a5470; --accent-soft: #e4eef4; --accent-warm: #b87a3e; --bg: #f3f6f8; }
[data-theme="voip"] { --brand: #072e38; --accent: #178f9c; --accent-soft: #e3f3f4; --accent-warm: #ff9015; --bg: #f2f7f7; }
[data-theme="arzt"] { --brand: #121c24; --accent: #355f6e; --accent-soft: #e6f0f3; --accent-warm: #5f93a5; --bg: #f3f7f8; }
[data-theme="apotheke"] { --brand: #16201c; --accent: #5a7f70; --accent-soft: #e7efe9; --accent-warm: #8a6e56; --bg: #f3f6f4; }
[data-theme="hotel"] { --brand: #142c36; --accent: #5b7088; --accent-soft: #e8edf2; --accent-warm: #a69480; --bg: #f4f5f6; }
[data-theme="logistik"] { --brand: #121c20; --accent: #476366; --accent-soft: #e6eeee; --accent-warm: #827568; --bg: #f3f5f5; }
[data-theme="m365"] { --brand: #141e28; --accent: #58748c; --accent-soft: #e8eef2; --accent-warm: #b5825e; --bg: #f3f5f7; }
[data-theme="kapazitaet"] { --brand: #141824; --accent: #4e5472; --accent-soft: #eceef3; --accent-warm: #987266; --bg: #f4f4f6; }
[data-theme="sophos"] { --brand: #141218; --accent: #754840; --accent-soft: #f3ebe8; --accent-warm: #9a7b55; --bg: #f6f3f2; }
[data-theme="steuer"] { --brand: #16242c; --accent: #4a6b75; --accent-soft: #e7eef0; --accent-warm: #9a7f64; --bg: #f3f6f6; }
[data-theme="anwalt"] { --brand: #14181c; --accent: #655560; --accent-soft: #eeeae9; --accent-warm: #96866e; --bg: #f5f3f2; }
[data-theme="gastro"] { --brand: #22262c; --accent: #14564a; --accent-soft: #e4eeea; --accent-warm: #625060; --bg: #f3f6f4; }
[data-theme="mvz"] { --brand: #141e2a; --accent: #4e6478; --accent-soft: #e8eef2; --accent-warm: #9a7d66; --bg: #f4f6f7; }
[data-theme="growth"] { --brand: #0c2c36; --accent: #7a6448; --accent-soft: #f3eee6; --accent-warm: #4e6874; --bg: #f5f3ef; }
[data-theme="bau"] { --brand: #101c24; --accent: #3a5c70; --accent-soft: #e6eef2; --accent-warm: #8a7460; --bg: #f3f5f6; }
[data-theme="autohaus"] { --brand: #141c22; --accent: #5a514c; --accent-soft: #eeeae7; --accent-warm: #3f5562; --bg: #f5f3f2; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.98rem + 0.14vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--cta); }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cta); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fcfdfb;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; line-height: 0;
  background: #fcfdfb; border-radius: 8px; padding: 0.15rem 0.2rem;
}
.brand img {
  height: 36px; width: auto; max-width: min(188px, 58vw);
  aspect-ratio: 2341 / 620; object-fit: contain; object-position: left center;
}
.nav-desktop { display: none; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-desktop a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-desktop a:hover { color: var(--cta); }
.nav-desktop .btn { flex-shrink: 0; white-space: nowrap; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-mobile {
  display: none; flex-direction: column; gap: 0.15rem;
  padding: 0.35rem 1rem 1.25rem; background: #fcfdfb; border-top: 1px solid var(--line);
}
.nav-mobile.is-open, .nav-mobile:not([hidden]).is-open { display: flex; }
.nav-mobile a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  min-height: 44px; display: flex; align-items: center; padding: 0.35rem 0;
}
.nav-mobile .btn { margin-top: 0.55rem; justify-content: center; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .brand img { height: 40px; max-width: 210px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.65rem 1.15rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-lg { min-height: 50px; padding: 0.75rem 1.4rem; }

.hero {
  background: var(--bg);
  padding: clamp(1.55rem, 3.4vw, 3.4rem) 0 clamp(1.85rem, 4vw, 3.8rem);
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  margin: 0 0 0.45rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.78rem; color: var(--accent);
}
.hero h1 {
  margin: 0 0 0.7rem; font-family: var(--font-display); font-weight: 750;
  font-size: clamp(1.55rem, 1.15rem + 1.8vw, 2.45rem); line-height: 1.18; color: var(--brand);
  max-width: 22ch; overflow-wrap: anywhere; hyphens: auto;
}
.layout-hub .hero h1, .layout-guide .hero h1, .layout-checklist .hero h1, .layout-map .hero h1 { max-width: 32ch; }
.hero-lead { margin: 0 0 1.15rem; color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 0.15rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 1.05rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.hero-meta li { position: relative; padding-left: 0.9rem; }
.hero-meta li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs li:not(:last-child)::after { content: " /"; margin-left: 0.35rem; color: var(--line); }

.section { padding: var(--space-section) 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--dark); color: #eef2f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted, .section-dark p { color: #c5cec8; }
.section-kicker {
  margin: 0 0 0.35rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.75rem; color: var(--accent);
}
.section-dark .section-kicker { color: #b7cfc0; }
h2 { font-family: var(--font-display); font-size: clamp(1.32rem, 1.08rem + 0.95vw, 1.8rem); line-height: 1.25; color: var(--brand); margin: 0 0 0.65rem; overflow-wrap: anywhere; }
h3 { font-size: 1.08rem; margin: 0 0 0.4rem; color: var(--brand); }
p { margin: 0 0 1rem; }
h2 + p, h2 + .table-wrap, h2 + .figure, h2 + .grid-2, h2 + .grid-3, h2 + .checklist, h2 + .steps, h2 + .prio-list, h2 + .faq { margin-top: 0.15rem; }
.section > .container > p, .prose p { max-width: none; }
.lede { font-size: 1.08rem; max-width: 70ch; }

.def {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem; margin: 0 0 1.2rem;
}
.def strong { color: var(--accent); }

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0.2rem 0 1.85rem; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.table-wrap + .callout,
.table-wrap + .grid-2,
.table-wrap + p { margin-top: 0.15rem; }
table { width: 100%; border-collapse: collapse; min-width: 36rem; background: var(--surface); }
th, td { text-align: left; padding: 0.8rem 0.95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--accent-soft); color: var(--brand); font-size: 0.88rem; }
.checklist { list-style: none; margin: 0 0 1.55rem; padding: 0; display: grid; gap: 0.65rem; }
.checklist li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem 0.9rem 0.75rem 2.4rem; position: relative;
}
.checklist li::before {
  content: ""; position: absolute; left: 0.85rem; top: 0.95rem; width: 0.7rem; height: 0.7rem;
  border: 2px solid var(--accent); border-radius: 3px;
}
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps > li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1rem 1.1rem 1rem 3.4rem; position: relative;
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0.85rem; top: 1rem; width: 1.8rem; height: 1.8rem;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 0.85rem;
}
.grid-2, .grid-3 { display: grid; gap: 1rem; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 700; text-decoration: none; }
.cluster-card { display: flex; flex-direction: column; gap: 0.35rem; }
.cluster-card .count { font-size: 0.8rem; color: var(--muted); }

.figure {
  margin: 0.15rem 0 1.85rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1rem 1.05rem 1.05rem;
}
.figure svg, .figure-wide { width: 100%; height: auto; display: block; max-width: 100%; }
.figure figcaption { margin-top: 0.85rem; font-size: 0.9rem; color: var(--muted); }
.figure-stack {
  display: none; list-style: none; margin: 0; padding: 0; gap: 0.55rem;
}
.figure-stack li {
  background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 0.95rem; font-size: 0.98rem; line-height: 1.45;
}
.figure-stack li strong { display: block; color: var(--brand); margin-bottom: 0.15rem; }
.figure-stack li.is-base { background: var(--bg-soft); font-weight: 650; }
.figure + .grid-2,
.figure + .table-wrap,
.figure + p { margin-top: 0.1rem; }

.faq { margin-top: 0.35rem; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 0.35rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--brand);
  min-height: 44px; display: flex; align-items: center; gap: 0.5rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg); flex-shrink: 0;
}
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details p { margin: 0.55rem 0 1.05rem; max-width: none; padding-right: 0.25rem; }

.callout {
  border-left: 4px solid var(--accent-warm); background: var(--accent-soft);
  padding: 0.95rem 1.15rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.15rem 0 0;
}
.callout:first-child { margin-top: 0; }

.related { display: grid; gap: 0.85rem; margin: 0.2rem 0 0; }
.related p { margin: 0; max-width: none; }
.related a { text-decoration: none; font-weight: 700; }

.site-footer { background: #f3f4f1; border-top: 1px solid var(--line); padding: 1.75rem 0 1.25rem; }
.footer-top { display: grid; gap: 1.4rem; }
@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
}
.footer-brand {
  display: inline-flex; line-height: 0; background: #f7f8f5;
  padding: 0.35rem 0.45rem; border-radius: 8px;
}
.footer-brand img { height: 34px; width: auto; max-width: min(200px, 70vw); aspect-ratio: 2341 / 620; object-fit: contain; }
.footer-tagline { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.92rem; }
.footer-col h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.35rem 0; }
.footer-legal { margin-top: 1.4rem; font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; }

.contact-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.35rem 1.3rem 1.4rem; box-shadow: var(--shadow-soft); margin-top: 0.35rem;
}
#kontakt > .container > p { margin-bottom: 1.25rem; max-width: none; }
.form-grid { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { margin: 0; }
.contact-form > .form-field { margin: 0.95rem 0 0; }
.form-field label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.85rem;
  font: inherit; background: #fff; min-height: 44px;
}
.form-field textarea { min-height: 6.5rem; }
.hint { font-weight: 400; color: var(--muted); }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0.35rem 0 1.05rem; font-size: 0.92rem; }
.consent input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; }
.form-error { color: #7a3a2c; margin-bottom: 0.75rem; }
.form-success { padding: 1rem 0; }
.contact-form > .btn { margin-top: 0.15rem; }
.form-reassure { color: var(--muted); font-size: 0.9rem; margin: 0.85rem 0 0; }
.legal-page { padding: 2.5rem 0 4rem; }
.legal-page h1 { font-family: var(--font-display); }

.prio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.prio-list li {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.8rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1rem;
}
.prio-list .n {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.compare { display: grid; gap: 1rem; }
@media (min-width: 900px) { .compare { grid-template-columns: repeat(3, 1fr); } }
.compare .card h3 { font-size: 1.05rem; }
.event { border-top: 3px solid var(--accent); }

@media (max-width: 700px) {
  :root { --header-h: 72px; --space-section: 1.85rem; }
  .container { width: min(100% - 1.35rem, var(--container)); }
  .hero { padding: 1.35rem 0 1.65rem; }
  .hero h1 { font-size: clamp(1.42rem, 6.2vw, 1.75rem); max-width: none; }
  .figure svg.figure-wide,
  .figure-wide { display: none; }
  .figure-stack { display: grid; }
  .figure { padding: 0.85rem; }
  .contact-panel { padding: 1.05rem; }
  .grid-2, .grid-3 { gap: 0.75rem; }
  .btn { width: auto; }
}
@media (max-width: 480px) {
  table { min-width: 28rem; font-size: 0.92rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .nav-mobile .btn, #kontakt .btn { width: 100%; }
  .table-wrap { margin-inline: 0; }
}
