/* =========================================================================
   MMC GmbH – modern responsive stylesheet
   Brand: #116293 (MMC blue), inherited from existing SVG icons.
   ========================================================================= */

:root {
  --brand: #116293;
  --brand-dark: #0a4a73;
  --brand-light: #2a85bb;
  --brand-50: #eaf3fa;
  --brand-100: #d3e6f3;

  --accent: #f59e0b;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-mute: #eef2f6;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #64748b;
  --text-on-brand: #ffffff;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 14px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, .25);

  --container: 1180px;

  --t-fast: 120ms ease;
  --t: 180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:not(.btn):hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--text-soft); }

/* ---------- Utility / Layout ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.section-soft { background: var(--bg-soft); }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-soft);
  max-width: 60ch;
}
.intro-center {
  max-width: 70ch;
  margin: 0 auto;
  text-align: center;
}
.intro-center p { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--text-mute); }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--brand); color: #fff; padding: .5rem 1rem;
  z-index: 1000; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brand);
  --fg: var(--text-on-brand);
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--bg); color: var(--fg);
  padding: .8em 1.4em;
  font: inherit; font-weight: 600;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  transition: transform var(--t-fast), background var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-outline {
  --bg: transparent; --fg: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-mute); color: var(--text); }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar {
  background: var(--brand);
  color: rgba(255,255,255,.92);
  font-size: .85rem;
}
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar-contact a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar-nav { display: flex; gap: 1rem; }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}
.brand img { height: 50px; width: auto; }

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .25rem;
}
.primary-nav a:not(.btn) {
  color: var(--text);
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.primary-nav a:not(.btn):hover { background: var(--brand-50); color: var(--brand); text-decoration: none; }
.primary-nav a[aria-current="page"]:not(.btn) {
  color: var(--brand);
  background: var(--brand-50);
}
.primary-nav-cta .btn { padding: .55em 1.1em; }
.primary-nav-cta .btn,
.primary-nav-cta .btn:hover,
.primary-nav-cta .btn[aria-current="page"] { color: #fff; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  padding: 10px; border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 1px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 74, 115, .82) 0%, rgba(17, 98, 147, .75) 100%),
    url('../../dist/assets/images/header-image.jpg') center/cover no-repeat;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7.5rem);
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero p { color: rgba(255,255,255,.92); max-width: 56ch; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-outline:hover { background: #fff; color: var(--brand); }

.subhero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 74, 115, .85) 0%, rgba(17, 98, 147, .78) 100%),
    url('../../dist/assets/images/unterseite-header-image.jpg') center/cover no-repeat;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.subhero h1 { color: #fff; margin: 0; }
.subhero .breadcrumb { color: rgba(255,255,255,.78); font-size: .9rem; margin-bottom: .4rem; }
.subhero .breadcrumb a { color: inherit; }

/* ---------- Cards & Grids ---------- */
.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: .3rem; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 28px; height: 28px; fill: currentColor; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Product Tiles (home) ---------- */
.tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.tile:hover { text-decoration: none; color: var(--text); border-color: var(--brand-light); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.tile:hover::after { transform: scaleX(1); }
.tile .tile-arrow { color: var(--brand); font-weight: 700; margin-top: .8rem; display: inline-flex; align-items: center; gap: .3rem; }
.tile h3 { color: var(--text); }
.tile p { color: var(--text-soft); margin: 0; }

/* ---------- Two-column content (home about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.illustration svg { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (prefers-reduced-motion: reduce) {
  .illustration animate { display: none; }
}

/* ---------- Partners ---------- */
.partner-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
/* Einzelne Partner-Card hervorgehoben (z.B. /private) */
.partner-grid.is-single {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
}
.partner-grid.is-single .partner {
  padding: 2rem; gap: .8rem; text-align: center; align-items: center;
}
.partner-grid.is-single .partner-logo {
  height: 90px; width: 100%; background-position: center;
}
.partner-grid.is-single .partner h3 { font-size: 1.35rem; min-height: 0; }
.partner-grid.is-single .partner address { font-size: 1rem; }
.partner-grid.is-single .partner-email { font-size: 1rem; }
.partner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.partner:hover { box-shadow: var(--shadow); border-color: var(--border-strong); transform: translateY(-2px); color: var(--text); text-decoration: none; }
.partner-logo {
  height: 60px;
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
}
.partner h3 { font-size: 1.02rem; margin: 0; line-height: 1.3; hyphens: auto; min-height: 2.6em; }
.partner address {
  font-style: normal; font-size: .9rem; color: var(--text-mute); line-height: 1.5;
}
.partner-email { color: var(--brand); font-size: .9rem; word-break: break-all; }

/* ---------- Check-Liste ---------- */
.check-list { list-style: none; padding: 0; margin: 1.1rem 0; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.9rem; line-height: 1.5; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: .1em;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: .78rem; line-height: 1.25rem; text-align: center; font-weight: 700;
}

.split img.ngnet-logo { width: 200px; max-width: 64%; height: auto; display: block;
  margin: 0 0 1.1rem; border-radius: 0; box-shadow: none; object-fit: contain; max-height: none; order: 0; }

/* ---------- Fakten-/Zahlen-Leiste ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.25rem; text-align: center; }
.stat-num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--brand); line-height: 1.05; letter-spacing: -.02em; }
.stat-label { display: block; margin-top: .55rem; color: var(--text-mute); font-size: .95rem; line-height: 1.45; }

/* ---------- Marken-Karten ---------- */
.brand-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.brand-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: .7rem; text-decoration: none; color: var(--text);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.brand-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); transform: translateY(-2px); color: var(--text); text-decoration: none; }
a.brand-card:hover, a.brand-card:hover * { text-decoration: none; }
.brand-logo { height: 60px; display: flex; align-items: center; }
.brand-logo img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.brand-card p { margin: 0; color: var(--text-mute); font-size: .95rem; line-height: 1.55; flex: 1 0 auto; }

/* ---------- Seiten-Banner (Header-Grafiken) ---------- */
.page-banner { padding: 1.4rem 0 0; }
.page-banner .breadcrumb-top { font-size: .9rem; color: var(--text-mute); margin-bottom: .7rem; }
.page-banner .breadcrumb-top a { color: inherit; text-decoration: none; }
.page-banner .breadcrumb-top a:hover { text-decoration: underline; }
.page-banner-img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.page-banner-home .hero-actions { margin-top: 1.4rem; justify-content: center; }
.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; }
.tile-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); margin-bottom: .9rem; }

/* ---------- Produkt-Bildkacheln (Startseite) ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.product-tile { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); text-decoration: none; color: var(--text); }
.product-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-light); text-decoration: none; color: var(--text); }
.product-tile > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-tile-text { background: var(--brand-50); display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: 1.9rem; }
.product-tile-text h3 { margin: 0; color: var(--text); }
.product-tile-text p { margin: 0; color: var(--text-soft); }
.product-tile-text .tile-arrow { color: var(--brand); font-weight: 700; margin-top: .3rem; display: inline-flex; gap: .3rem; }
@media (max-width: 760px) { .product-grid { grid-template-columns: 1fr; } }

.feature-shot { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.link-banner { display: block; }
.link-banner-img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow var(--t), transform var(--t); }
.link-banner:hover .link-banner-img { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-photo { display: block; width: calc(100% + 3rem); margin: -1.5rem -1.5rem 1.1rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid-2x2 { grid-template-columns: 1fr; } }
/* ---------- Bild-Lightbox / Zoom ---------- */
img.page-banner-img, img.zoomable { cursor: zoom-in; }
.product-tile { position: relative; }
.tile-zoom { position: absolute; top: .6rem; right: .6rem; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(8,20,30,.55); color: #fff; cursor: zoom-in; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--t), background var(--t); z-index: 2; }
.product-tile:hover .tile-zoom, .tile-zoom:focus-visible { opacity: 1; }
.tile-zoom:hover { background: rgba(8,20,30,.8); }
.tile-zoom svg { width: 19px; height: 19px; fill: currentColor; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,20,30,.93); display: flex; align-items: center; justify-content: center; padding: 2.5rem; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: default; }
.lightbox-close { position: absolute; top: 1rem; right: 1.2rem; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) { .tile-zoom { opacity: 1; } }

/* ---------- CTA strip ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-radius: var(--radius-lg);
}
.cta-inner {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.cta h2 { color: #fff; margin: 0; }
.cta p { color: rgba(255,255,255,.9); margin: .4rem 0 0; }
.cta .btn { background: #fff; color: var(--brand); }
.cta .btn:hover { background: var(--brand-50); color: var(--brand-dark); }

/* ---------- Forms ---------- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
.form-row { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--text-soft); }
.field .req { color: var(--danger); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 98, 147, .15);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-inline { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.radio { display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; }

/* Honeypots - visually hidden but not display:none (some bots skip those) */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
}

.consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; color: var(--text-soft);
}
.consent input { margin-top: .25rem; }

.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  border: 1px solid transparent;
  font-size: .95rem;
}
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info    { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-dark); }

/* ---------- Systemstatus ---------- */
.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}
.status-main { min-width: 0; }
.status-side { position: sticky; top: 90px; }

/* Top Banner */
.status-banner {
  display: flex; gap: 1rem; align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--success);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.status-banner-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #dcfce7; color: #16a34a;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.status-banner-title {
  font-weight: 700; font-size: 1.15rem;
  color: var(--text);
}
.status-banner-sub {
  color: var(--text-soft); font-size: .9rem; margin-top: .15rem;
}
.status-banner-warn { border-left-color: var(--warn); }
.status-banner-warn .status-banner-icon { background: #fef3c7; color: #d97706; }
.status-banner-planned { border-left-color: var(--brand); }
.status-banner-planned .status-banner-icon { background: var(--brand-50); color: var(--brand); }
.status-banner-error { border-left-color: var(--danger); }
.status-banner-error .status-banner-icon { background: #fee2e2; color: #b91c1c; }

/* Section header */
.status-section { margin-bottom: 1.8rem; }
.status-section-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.status-count {
  display: inline-grid; place-items: center;
  min-width: 1.6em; height: 1.6em;
  padding: 0 .5em;
  background: var(--bg-mute); color: var(--text-soft);
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  text-transform: none; letter-spacing: 0;
}

/* Active / Upcoming Cards */
.status-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: .8rem;
  transition: box-shadow var(--t), border-color var(--t);
}
.status-card:hover { box-shadow: var(--shadow); }
.status-card-warn    { border-left: 4px solid var(--warn); }
.status-card-planned { border-left: 4px solid var(--brand); }

.status-date {
  font-variant-numeric: tabular-nums;
  border-right: 1px dashed var(--border);
  padding-right: 1.1rem;
  display: flex; flex-direction: column; justify-content: center;
}
.status-date-day {
  font-weight: 700; color: var(--text);
  font-size: 1.02rem; line-height: 1.2;
}
.status-date-time {
  color: var(--text-mute); font-size: .85rem; margin-top: .15rem;
}
.status-card-body h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.status-card-body p  { margin: 0; }

/* Tipp-Box (Verdacht?) */
.status-tip {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.8rem 0;
}
.status-tip-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff; color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0; margin-top: .1rem;
}
.status-tip-title { margin: 0 0 .25rem; font-size: 1rem; color: var(--brand-dark); }
.status-tip p { margin: 0; color: var(--text); font-size: .92rem; }
.status-tip a { color: var(--brand-dark); }

/* History (kompakt, expandierbar) */
.status-history {
  list-style: none; padding: 0; margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.status-history-item + .status-history-item { border-top: 1px solid var(--border); }
.status-history details summary {
  cursor: pointer;
  padding: .85rem 1.2rem;
  display: grid;
  grid-template-columns: 105px 1fr auto;
  gap: 1rem;
  align-items: center;
  list-style: none;
  transition: background var(--t-fast);
}
.status-history details summary::-webkit-details-marker { display: none; }
.status-history details summary::marker { content: ""; }
.status-history details summary::after {
  content: "▾";
  color: var(--text-mute); font-size: .75rem;
  margin-left: .4rem;
  transition: transform var(--t);
}
.status-history details[open] summary::after { transform: rotate(180deg); display: inline-block; }
.status-history details summary:hover { background: var(--bg-soft); }
.status-history-date {
  font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--text-soft);
  font-size: .88rem;
}
.status-history-title { font-weight: 600; color: var(--text); }
.status-history-duration {
  font-variant-numeric: tabular-nums;
  font-size: .8rem; color: var(--text-mute);
}
.status-history-body {
  padding: 0 1.2rem 1rem;
  border-top: 1px dashed var(--border);
  margin: 0 1.2rem;
  padding-top: .8rem;
}
.status-history-body p { margin: 0; color: var(--text-soft); font-size: .92rem; }

/* Hotline-Box */
.hotline-box {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.hotline-box h3 { color: #fff; margin: 0 0 .9rem; font-size: 1.05rem; }
.hotline-box p  { color: rgba(255,255,255,.92); }
.hotline-box a  { color: #fff; font-weight: 700; text-decoration: none; }
.hotline-box a:hover { text-decoration: underline; }
.hotline-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: .92rem;
}
.hotline-row span:first-child { color: rgba(255,255,255,.78); }
.hotline-row:last-of-type { border-bottom: 0; }

/* Mobile */
@media (max-width: 900px) {
  .status-layout { grid-template-columns: 1fr; }
  .status-side { position: static; }
  .status-card { grid-template-columns: 1fr; gap: .4rem; }
  .status-date {
    border-right: 0; border-bottom: 1px dashed var(--border);
    padding: 0 0 .5rem; flex-direction: row; align-items: baseline; gap: .6rem;
  }
  .status-history details summary {
    grid-template-columns: auto 1fr;
    gap: .6rem;
  }
  .status-history-duration { grid-column: 2; font-size: .78rem; }
}

/* ---------- Looking Glass ---------- */
.lg-layout { display: block; }

/* Header: Intro + Status nebeneinander */
.lg-header {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.8rem;
}
.lg-intro h2 { margin-bottom: .35rem; }
.lg-intro p  { margin-bottom: 0; max-width: 60ch; }

/* Status-Strip — als rechte Sidebar (drei Cards untereinander) */
.lg-status-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}
.lg-status-card {
  display: flex; align-items: center; gap: .85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.lg-status-card:hover { box-shadow: var(--shadow-sm); }
.lg-status-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
  position: relative;
}
.lg-status-card.is-ok  .lg-status-dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.lg-status-card.is-ok  .lg-status-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid #16a34a; opacity: .6;
  animation: lg-pulse 2s ease-out infinite;
}
.lg-status-card.is-err .lg-status-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(220,38,38,.15); }
.lg-status-card.is-err { border-color: #fecaca; }
.lg-status-label { font-weight: 700; color: var(--text); font-size: .98rem; }
.lg-status-sub   { color: var(--text-mute); font-size: .8rem; font-family: ui-monospace, monospace; }

@keyframes lg-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(2.2); opacity: 0;  }
}

/* Card-Container */
.lg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}

/* Form */
.lg-form-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.3fr) minmax(360px, 2fr);
  gap: 1rem;
  align-items: end;
}
.lg-dst-wrap { display: flex; gap: .5rem; }
.lg-dst-wrap input { flex: 1; min-width: 0; }
.lg-form-grid .field input,
.lg-form-grid .field select {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.lg-form-grid select:focus,
.lg-form-grid input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17,98,147,.15);
}
.lg-submit {
  flex-shrink: 0;
  padding: .7rem 1.2rem;
}
.lg-submit.is-loading {
  position: relative; color: transparent;
}
.lg-submit.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lg-spin .8s linear infinite;
}
@keyframes lg-spin { to { transform: rotate(360deg); } }

/* Quick-Chips */
.lg-quick-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  align-items: center;
  margin-top: 1rem;
}
.lg-quick-label { color: var(--text-mute); font-size: .85rem; margin-right: .2rem; }
.lg-chip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: .35rem .85rem;
  font: inherit; font-size: .85rem;
  cursor: pointer;
  display: inline-flex; align-items: baseline; gap: .35rem;
  transition: all var(--t-fast);
}
.lg-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.lg-chip small { color: var(--text-mute); font-size: .75em; font-weight: 400; }
.lg-chip:hover small { color: var(--brand-light); }

.lg-consent {
  margin-top: 1rem;
  padding: .7rem .9rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--border-strong);
  color: var(--text-mute);
  font-size: .82rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Result Card */
.lg-result-card { padding: 0; overflow: hidden; }
.lg-result-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem 1.2rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.lg-result-meta { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; min-width: 0; }
.lg-meta-text { color: var(--text-soft); font-size: .9rem; min-width: 0; }
.lg-meta-text code {
  background: #fff; padding: .1rem .4rem; border-radius: 4px;
  border: 1px solid var(--border); font-size: .85em;
}
.lg-result-actions { display: flex; gap: .4rem; flex-shrink: 0; }

.lg-status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  background: var(--bg-mute); color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .03em;
  white-space: nowrap;
}
.lg-status-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
.lg-status-pill-ok      { background: #dcfce7; color: #15803d; }
.lg-status-pill-err     { background: #fee2e2; color: #b91c1c; }
.lg-status-pill-loading { background: #fef3c7; color: #92400e; }
.lg-status-pill-loading::before { animation: lg-pulse-dot 1s ease-in-out infinite; }
@keyframes lg-pulse-dot {
  50% { opacity: .3; transform: scale(.7); }
}

.lg-result-pre {
  background: #0b1220;
  color: #e2e8f0;
  margin: 0;
  padding: 1.1rem 1.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  min-height: 7em;
  max-height: 60vh;
  overflow-y: auto;
}
.lg-result-pre:empty::before {
  content: "$ Wähle ein Ziel und klicke Anfrage senden …";
  color: #475569;
  font-style: italic;
}
.lg-result-card.is-running .lg-result-pre {
  background-image: linear-gradient(90deg, transparent, rgba(96, 165, 250, .08), transparent);
  background-size: 200% 100%;
  animation: lg-scan 2s linear infinite;
}
@keyframes lg-scan { to { background-position: -200% 0; } }

/* Zusatz-Tools */
.lg-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.lg-extra-card { margin-bottom: 0; }
.lg-extra-title {
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 .9rem;
  color: var(--brand-dark);
  font-size: 1.02rem;
}
.lg-extra-title svg { color: var(--brand); }
.lg-extra-form {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
}
.lg-extra-form input {
  flex: 1; min-width: 140px;
  padding: .55rem .8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
}
.lg-extra-form select {
  padding: .55rem .8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}
.lg-extra-form input:focus, .lg-extra-form select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17,98,147,.15);
}
.lg-extra-result {
  margin-top: .9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  white-space: pre-wrap; word-break: break-word;
  min-height: 3em;
  color: var(--text);
}
.lg-extra-result:empty::before {
  content: "(noch keine Abfrage)";
  color: var(--text-mute);
  font-family: inherit; font-style: italic;
}

.lg-whois-result { font-family: inherit; padding: 0; background: transparent; border: 0; }
.lg-whois-result:empty::before {
  content: "(noch keine Abfrage)";
  color: var(--text-mute);
  font-style: italic;
  display: block;
  padding: .8rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.lg-kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
}
.lg-kv dt { color: var(--text-mute); font-weight: 600; font-size: .85rem; }
.lg-kv dd { margin: 0; font-family: ui-monospace, monospace; font-size: .85rem; color: var(--text); }

.lg-footer-note {
  font-size: .8rem; color: var(--text-mute);
  text-align: right;
  padding-top: .4rem;
  border-top: 1px dashed var(--border);
}
.lg-footer-note code {
  background: var(--bg-mute); padding: .08rem .4rem; border-radius: 3px;
  font-size: .9em;
}

/* Tablet — Form bricht auf 2 Zeilen */
@media (max-width: 1050px) {
  .lg-form-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1fr);
  }
  .lg-dst-field { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .lg-header { grid-template-columns: 1fr; }
  .lg-status-strip { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* Mobile */
@media (max-width: 760px) {
  .lg-form-grid { grid-template-columns: 1fr; }
  .lg-dst-wrap { flex-direction: column; }
  .lg-submit { width: 100%; }
  .lg-result-head { padding: .7rem 1rem; }
  .lg-result-pre { font-size: .78rem; padding: .9rem 1rem; }
}

/* ---------- LG Tabs + Tool-Cards (v2) ---------- */

.lg-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.lg-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  font: inherit;
  color: var(--text-soft);
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  transition: background var(--t-fast), color var(--t-fast);
  margin-bottom: -1px;
}
.lg-tab:hover { background: var(--bg-soft); color: var(--text); }
.lg-tab.is-active {
  background: #fff;
  border-color: var(--border);
  border-bottom-color: #fff;
  color: var(--brand-dark);
}
.lg-tab-label { font-weight: 700; font-size: .95rem; }
.lg-tab-desc  { font-size: .75rem; color: var(--text-mute); }
.lg-tab.is-active .lg-tab-desc { color: var(--text-soft); }

.lg-tab-panel { display: none; }
.lg-tab-panel.is-active { display: block; }

.lg-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
@media (max-width: 900px) {
  .lg-tools-grid { grid-template-columns: 1fr; }
}
.lg-tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  min-width: 0;
}
.lg-tool-head {
  margin-bottom: .8rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}
.lg-tool-head-text { flex: 1; min-width: 0; }
.lg-help-btn {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--brand);
  font: 700 1rem/1 ui-monospace, monospace;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--t-fast);
}
.lg-help-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: scale(1.08);
}
.lg-help-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,98,147,.25);
}
.lg-tool-title { margin: 0 0 .1rem; font-size: 1rem; color: var(--brand-dark); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lg-badge {
  display: inline-flex; align-items: center;
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .15rem .5rem;
  border-radius: 999px;
  vertical-align: middle;
}
.lg-badge-internal {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.lg-tool-desc  { font-size: .82rem; }

.lg-tool-form {
  display: flex; flex-wrap: wrap; gap: .55rem;
  align-items: end;
  margin-bottom: .8rem;
}
.lg-tool-field {
  display: flex; flex-direction: column;
  flex: 1 1 130px; min-width: 0;
}
.lg-tool-field > span {
  font-size: .8rem; color: var(--text-soft); font-weight: 600;
  margin-bottom: .2rem;
}
.lg-tool-field input,
.lg-tool-field select {
  padding: .5rem .7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  width: 100%;
}
.lg-tool-field input:focus,
.lg-tool-field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17,98,147,.15);
}
.lg-tool-actions { flex: 0 0 auto; }
.lg-tool-actions .btn {
  white-space: nowrap;
  padding: .55em 1em;
}
.lg-tool-actions .btn.is-loading {
  position: relative; color: transparent;
}
.lg-tool-actions .btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%;
  animation: lg-spin .8s linear infinite;
}

.lg-tool-result {
  margin-top: .4rem;
  padding-top: .6rem;
  font-size: .88rem;
  min-height: 2.5em;
  word-break: break-word;
  overflow-x: auto;
}
.lg-tool-result-empty { font-style: italic; }

.lg-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8rem;
  white-space: pre-wrap; word-break: break-word;
}

.lg-error {
  padding: .6rem .8rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: .85rem;
}

.lg-table-wrap { overflow-x: auto; }
.lg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.lg-table th, .lg-table td {
  text-align: left; padding: .35rem .5rem;
  border-bottom: 1px solid var(--border);
}
.lg-table th {
  background: var(--bg-soft);
  font-weight: 700; color: var(--text-soft);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .03em;
}
.lg-table tbody tr:hover { background: var(--bg-soft); }
.lg-table td { font-family: ui-monospace, monospace; }

.lg-subhead {
  margin: .9rem 0 .3rem;
  font-size: .85rem; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .03em;
}

.lg-exec-pre {
  background: #0b1220; color: #e2e8f0;
  margin: .4rem 0 0;
  padding: .8rem 1rem;
  font-family: ui-monospace, monospace;
  font-size: .78rem; line-height: 1.5;
  border-radius: var(--radius-sm);
  white-space: pre-wrap; word-break: break-word;
  max-height: 50vh; overflow: auto;
}

@media (max-width: 760px) {
  .lg-tools-grid { grid-template-columns: 1fr; }
  .lg-tabs { gap: .2rem; }
  .lg-tab { flex: 1 1 45%; padding: .55rem .7rem; }
  .lg-tab-desc { display: none; }
}

/* ---------- Legal Documents (AGB, Datenschutz) ---------- */
.legal-page { max-width: 880px; margin: 0 auto; }

.legal-doc { color: var(--text); }
.legal-doc-head {
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.legal-doc-head h2 {
  color: var(--brand-dark);
  font-size: 1.6rem;
  margin: 0 0 .4rem;
}
.legal-meta {
  color: var(--text-mute);
  font-size: .88rem;
  margin: 0;
  line-height: 1.5;
}
.legal-doc-foot {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: .85rem;
}
.legal-doc section { margin-bottom: 1.5rem; }
.legal-doc h3 {
  color: var(--brand-dark);
  font-size: 1.15rem;
  margin: 1.6rem 0 .6rem;
  padding-top: .5rem;
}
.legal-doc h4 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.1rem 0 .35rem;
}
.legal-doc h5 {
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 700;
  margin: .8rem 0 .25rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.legal-doc p { margin: 0 0 .8em; line-height: 1.6; }
.legal-doc ul, .legal-doc ol { margin: 0 0 .9rem; padding-left: 1.4rem; }
.legal-doc li { margin: 0 0 .25rem; line-height: 1.55; }

.legal-table-wrap {
  margin: .8rem 0 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin: 0;
}
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  background: var(--bg-soft);
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.legal-table tbody tr:hover { background: var(--bg-soft); }

@media (max-width: 760px) {
  .legal-doc h3 { font-size: 1.05rem; }
  .legal-doc p { text-align: left; hyphens: auto; }
}

/* Legal-Modal */
.legal-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .65);
  z-index: 1000;
  padding: 2rem 1rem;
  overflow: auto;
  animation: lg-fadein .15s ease;
}
.legal-modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 4rem);
}
.legal-modal-head {
  position: sticky; top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: .9rem 1.4rem;
  display: flex; gap: 1rem; justify-content: space-between; align-items: center;
  z-index: 1;
}
.legal-modal-head h2 { margin: 0; font-size: 1.05rem; color: var(--brand-dark); }
.legal-modal-actions { display: flex; gap: .5rem; align-items: center; }
.legal-modal-close {
  background: transparent; border: 0;
  font-size: 1.6rem; line-height: 1;
  color: var(--text-mute);
  cursor: pointer; padding: 0 .4rem;
}
.legal-modal-close:hover { color: var(--text); }
.legal-modal-body {
  padding: 1.4rem 1.6rem 2rem;
  overflow: auto;
  flex: 1;
}
.legal-modal-body .legal-doc-head { padding-top: 0; margin-top: 0; }

/* Help-Modal */
.lg-modal-open { overflow: hidden; }
.lg-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .6);
  display: grid; place-items: center;
  z-index: 1000;
  padding: 1rem;
  animation: lg-fadein .15s ease;
}
@keyframes lg-fadein { from { opacity: 0; } to { opacity: 1; } }
.lg-modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 1.6rem 1.8rem 1.4rem;
}
.lg-modal-close {
  position: absolute; top: .7rem; right: .9rem;
  background: transparent; border: 0;
  font-size: 1.6rem; line-height: 1;
  color: var(--text-mute);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.lg-modal-close:hover { background: var(--bg-mute); color: var(--text); }
.lg-modal-title {
  margin: 0 2.5rem 1rem 0;
  color: var(--brand-dark);
  font-size: 1.3rem;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.lg-modal-section {
  margin-top: 1.1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.lg-modal-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.lg-modal-section h4 {
  margin: 0 0 .35rem;
  font-size: .78rem; font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .05em;
}
.lg-modal-section p { margin: 0; color: var(--text); }
.lg-modal-pre {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8rem;
  line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
  overflow-x: auto;
}
.lg-modal-pre-result {
  background: #0f172a;
  border-color: #1e293b;
  color: #e2e8f0;
}

/* ---------- Impressum / text blocks ---------- */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.info-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.info-block h3 { color: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  background: #0c2235;
  color: #cbd5e1;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 3rem 0 2rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer p, .site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-logo { filter: brightness(0) invert(1); opacity: .9; margin-bottom: 1rem; }
.footer-claim { font-size: .9rem; max-width: 30ch; }
.footer-bottom {
  background: rgba(0,0,0,.25);
  font-size: .85rem;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap; gap: .6rem;
}
.footer-bottom nav a { margin-left: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split img { order: -1; max-height: 280px; object-fit: cover; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: transform var(--t), opacity var(--t);
  }
  .primary-nav.is-open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column; align-items: stretch;
    padding: .6rem;
  }
  .primary-nav a { padding: .9rem 1rem; }
  .primary-nav-cta .btn { width: 100%; justify-content: center; }
  .topbar-nav { display: none; }
  .topbar-contact { width: 100%; justify-content: center; font-size: .82rem; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom nav a { margin: 0 .6rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .hero { padding: 2.5rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
