/* Design Tokens & Reset */
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --border: rgba(15, 23, 42, 0.12);
  --card: #f5f7fb;
  --accent: #d12a2a;
  --accent-dark: #a61f1f;
  --remember-accent: #c71f1f;
  --focus-ring: #f97316;
  --shadow-soft: 0 24px 48px -24px rgba(15, 23, 42, 0.28);
  --ink: #0f172a;
  --muted: #64748b;
  --text-subtle: #475569;
  --text: var(--ink);
  --text-muted: var(--muted);
  --chip-bg: #eef2fb;
  --chip-fg: #2b3550;
  --btn-bg: var(--surface);
  --btn-bg-hover: var(--surface-muted);
  --bg-elev: var(--surface-muted);
  --control-bg: rgba(148, 163, 184, 0.08);
  --control-hover-bg: rgba(148, 163, 184, 0.16);
  --control-border: rgba(15, 23, 42, 0.16);
  --badge-bg: rgba(15, 23, 42, 0.08);
  --badge-border: rgba(15, 23, 42, 0.16);
  --badge-text: #0f172a;
  --badge-mw-bg: #c6f6e2;
  --badge-mw-fg: #03543f;
  --badge-pr-bg: #ffd9a5;
  --badge-pr-fg: #7a3c00;
  --badge-th-bg: #dbeafe;
  --badge-th-fg: #0b3c8a;
  --badge-cu-bg: #ede9fe;
  --badge-cu-fg: #4c1d95;
  --badge-mm-bg: #e6f4ff;
  --badge-mm-fg: #0f4560;
  --badge-tg-bg: #fef3c7;
  --badge-tg-fg: #92400e;
  --badge-gc-bg: #fee2e2;
  --badge-gc-fg: #7f1d1d;
  --ws-section-space: 16px;
  --ws-section-space-small: 16px;
  --tooltip-trigger-bg: #f1f5f9;
  --tooltip-trigger-border: #cbd5e1;
  --tooltip-trigger-color: #0f172a;
  --tooltip-trigger-hover-bg: #e2e8f0;
  --tooltip-trigger-hover-border: #94a3b8;
  --tooltip-trigger-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  --tooltip-trigger-hover-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  --tooltip-trigger-active-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  --print-compact: 1;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f17;
  --surface: #111827;
  --surface-muted: #1f2937;
  --border: rgba(148, 163, 184, 0.28);
  --card: #171b22;
  --accent: #f76a45;
  --accent-dark: #f97316;
  --remember-accent: var(--accent);
  --shadow-soft: 0 32px 56px -28px rgba(0, 0, 0, 0.7);
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --text-subtle: #98a3b6;
  --text: var(--ink);
  --text-muted: var(--muted);
  --chip-bg: #222836;
  --chip-fg: #cfd7e6;
  --btn-bg: var(--surface);
  --btn-bg-hover: var(--surface-muted);
  --bg-elev: var(--surface-muted);
  --control-bg: rgba(148, 163, 184, 0.14);
  --control-hover-bg: rgba(148, 163, 184, 0.22);
  --control-border: rgba(148, 163, 184, 0.35);
  --badge-bg: rgba(226, 232, 240, 0.08);
  --badge-border: rgba(148, 163, 184, 0.28);
  --badge-text: #e2e8f0;
  --badge-mw-bg: #1f9d82;
  --badge-mw-fg: #d7fbee;
  --badge-pr-bg: #f97316;
  --badge-pr-fg: #1c1100;
  --badge-th-bg: #2563eb;
  --badge-th-fg: #e8f1ff;
  --badge-cu-bg: #a855f7;
  --badge-cu-fg: #f7ecff;
  --badge-mm-bg: #1f9ac8;
  --badge-mm-fg: #d8f1ff;
  --badge-tg-bg: #f97316;
  --badge-tg-fg: #1c0b02;
  --badge-gc-bg: #ef4444;
  --badge-gc-fg: #1b0202;
  --tooltip-trigger-bg: rgba(30, 41, 59, 0.9);
  --tooltip-trigger-border: rgba(148, 163, 184, 0.45);
  --tooltip-trigger-color: #e2e8f0;
  --tooltip-trigger-hover-bg: rgba(148, 163, 184, 0.22);
  --tooltip-trigger-hover-border: rgba(148, 163, 184, 0.65);
  --tooltip-trigger-shadow: 0 1px 2px rgba(15, 23, 42, 0.6);
  --tooltip-trigger-hover-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
  --tooltip-trigger-active-shadow: 0 0 0 2px rgba(148, 163, 184, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.deferred {
  content-visibility: auto;
  contain-intrinsic-size: 1000px 800px;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--space-5);
}

.ws-nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 24px;
}

.ws-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

@media only screen and (max-width: 640px) {
  .ws-content {
    padding-inline: 16px;
  }
}

@media only screen and (max-width: 640px) {
  .ws-nav-container {
    padding-inline: 16px;
  }
}

@media only screen and (max-width: 640px) {
  .container {
    padding-inline: var(--space-4);
  }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2600;
  isolation: isolate;
  background: var(--surface);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px -20px rgba(15, 23, 42, 0.45);
}


.header-grid {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.brand {
  flex: 0 0 auto;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.header-actions > * {
  flex-shrink: 0;
}

.nav-toggle,
.theme-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--control-border);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-toggle {
  flex-direction: column;
  gap: 6px;
  width: 44px;
}

.theme-toggle {
  font-size: 1.25rem;
  gap: 0.5rem;
  min-width: 44px;
  padding: 0 var(--space-3);
}

#themeIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}

.theme-toggle__text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

@media only screen and (max-width: 767px) {
  .theme-toggle {
    padding: 0;
  }

  .theme-toggle__text {
    display: none;
  }
}

.nav-toggle:hover,
.theme-toggle:hover {
  background: var(--surface-muted);
}

.nav-toggle:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(4) {
  transform: translateY(-8px) rotate(-45deg);
}


.main-nav {
  flex: 1 1 auto;
  width: 100%;
  overflow: visible;
}

.nav-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  display: none;
  padding: var(--space-4);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  z-index: 10;
}

.nav-menu.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-block: var(--space-2);
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
  position: relative;
  border-radius: 10px;
}

.nav-ico {
  display: inline-flex;
  align-items: center;
  font-size: .95em;
  margin-right: .5rem;
  opacity: .9;
  line-height: 1;
}

.nav-link:hover .nav-ico,
.nav-link:focus-visible .nav-ico,
.nav-link.active .nav-ico,
.nav-link.is-active .nav-ico,
.nav-more-btn:hover .nav-ico,
.nav-more-btn:focus-visible .nav-ico,
.nav-more-btn[aria-expanded="true"] .nav-ico,
.nav-more-btn.active .nav-ico {
  opacity: 1;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.active,
.nav-link.is-active {
  color: var(--accent);
}

.nav-highlight .nav-link {
  color: var(--accent);
}

.nav-highlight .nav-link::after {
  transform: scaleX(1);
}

.nav-highlight .nav-link:hover,
.nav-highlight .nav-link:focus-visible {
  color: var(--accent-dark);
}

.nav-more {
  position: relative;
  display: block;
}

.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-more-btn:hover,
.nav-more-btn:focus-visible {
  background: var(--btn-bg-hover);
}

.nav-more-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.nav-more-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(209, 42, 42, 0.25);
}

.nav-more-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  min-width: 220px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.nav-more-menu[hidden] {
  display: none;
}

.nav-more-menu li {
  list-style: none;
}

.nav-more-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.nav-more-menu a:hover,
.nav-more-menu a:focus-visible {
  background: var(--bg-elev);
}

@media only screen and (max-width: 640px) {
  .header-grid {
    gap: var(--space-2);
  }

  .header-actions {
    width: 100%;
  }
}

@media only screen and (min-width: 1024px) {
  .header-grid {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 12px;
  }

  .brand {
    min-width: 220px;
  }

  .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .main-nav {
    position: relative;
    padding: 6px 8px;
    border-radius: 14px;
    background: var(--bg-elev);
    background: color-mix(in oklab, var(--bg-elev) 80%, transparent);
    border: 1px solid var(--border);
  }

  .nav-menu {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .nav-list > li {
    list-style: none;
  }

  .nav-list > li > .nav-link {
    padding: 8px 12px;
  }

  .nav-list > li > .nav-link::after {
    display: none;
  }

  .nav-list > li > a,
  .nav-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    line-height: 1;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
  }

  .nav-list > li > a:hover,
  .nav-more-btn:hover {
    background: var(--bg-elev);
    border-color: var(--border);
  }

  .nav-list > li > a.active {
    background: var(--bg-elev);
    background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
    border-color: var(--border);
    border-color: color-mix(in oklab, var(--border) 120%, transparent);
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.3) inset;
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--border) 70%, transparent) inset;
  }

  .nav-more {
    position: relative;
    display: block;
  }

  .nav-more-btn {
    background: transparent;
    border-color: transparent;
  }

  .nav-more-btn[aria-expanded="true"],
  .nav-more-btn.active {
    background: var(--bg-elev);
    background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
    border-color: var(--border);
    border-color: color-mix(in oklab, var(--border) 120%, transparent);
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.3) inset;
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--border) 70%, transparent) inset;
  }

  .nav-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    margin: 0;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    min-width: 220px;
  }

  .nav-more-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .nav-more-menu a:hover,
  .nav-more-menu a:focus-visible {
    background: var(--bg-elev);
  }

  .nav-toggle {
    display: none;
  }
}

[data-section-target] {
  scroll-margin-top: 96px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  min-height: 38px;
  padding-inline: var(--space-3);
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 52px;
  padding-inline: clamp(1.5rem, 4vw, 2.25rem);
  font-size: 1.05rem;
}

.btn-utility {
  border-color: color-mix(in srgb, var(--control-border) 90%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 70%, var(--surface) 30%);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.btn-utility:hover {
  border-color: color-mix(in srgb, var(--control-border) 70%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 55%, var(--surface) 45%);
}

.btn-utility:focus-visible {
  box-shadow: 0 0 0 3px rgba(209, 42, 42, 0.15), 0 1px 3px rgba(15, 23, 42, 0.08);
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px -8px rgba(201, 20, 20, 0.6);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 140, 90, 0.35),
    0 6px 18px -8px rgba(201, 20, 20, 0.6);
}

.btn-outline {
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(209, 42, 42, 0.12);
}

.btn-offer {
  background: #fbbf24;
  color: #3d1f03;
  border-color: #f59e0b;
  box-shadow: 0 14px 28px -16px rgba(245, 158, 11, 0.7);
}

.btn-offer:hover,
.btn-offer:focus-visible {
  background: #f59e0b;
  border-color: #d97706;
  color: #2b1500;
}

.btn-invoice {
  background: #86efac;
  color: #064e3b;
  border-color: #22c55e;
  box-shadow: 0 14px 32px -16px rgba(34, 197, 94, 0.65);
}

.btn-invoice:hover,
.btn-invoice:focus-visible {
  background: #4ade80;
  border-color: #16a34a;
  color: #052e16;
}

/* Sections */
.site-main {
  display: block;
}

.section {
  padding-block: var(--space-3);
}

.ws-section {
  margin-top: var(--ws-section-space);
  margin-bottom: var(--ws-section-space);
}

.ws-card {
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  background-color: #ffffff;
}

.ws-alert {
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  margin: 16px 0 24px;
}

.ws-alert-warning {
  background: #fff3cd;
  color: #856404;
}

.ws-alert-info {
  background: #e8f4ff;
  color: #084298;
}

h1.ws-page-title {
  font-size: 2.4rem;
  margin: 0 0 12px;
  line-height: 1.2;
}

h2.ws-section-title {
  font-size: 1.8rem;
  margin: 16px 0 8px;
  line-height: 1.3;
}

h3.ws-subtitle {
  font-size: 1.4rem;
  margin: 12px 0 6px;
  line-height: 1.35;
}

h1, h2, h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 0.75rem;
}

@media only screen and (max-width: 640px) {
  .ws-section {
    margin-top: var(--ws-section-space-small);
    margin-bottom: var(--ws-section-space-small);
  }

  .ws-card {
    padding: 20px;
  }

  h1.ws-page-title {
    font-size: 2rem;
  }

  h2.ws-section-title {
    font-size: 1.5rem;
  }

  h3.ws-subtitle {
    font-size: 1.2rem;
  }
}

.section--alt {
  background: var(--surface-muted);
}

.section-hero {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 680px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.section-hero h1,
.section-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
}

.hero-lede {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-subtle);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-cta {
  flex: 1 1 auto;
  min-width: 220px;
}

.hero-link {
  margin: 0;
  font-weight: 600;
}

.hero-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
}

.hero-link a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.hero-link a:hover::after,
.hero-link a:focus-visible::after {
  transform: translateX(4px);
}

@media only screen and (max-width: 640px) {
  .hero-cta {
    min-width: 0;
    width: 100%;
  }

  .hero-link {
    margin-top: var(--space-2);
  }
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
  max-width: 720px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading--with-action {
  gap: var(--space-4);
}

.section-heading__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-2);
}

.section-heading__actions .calc-share {
  align-self: stretch;
  align-items: flex-start;
  margin-bottom: 0;
}

.section-heading__stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-heading--with-action > .calc-share {
  align-self: flex-end;
}

.calc-share {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  min-width: 0;
  margin-bottom: 0;
}

.calc-share__button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--tooltip-trigger-border);
  background: var(--tooltip-trigger-bg);
  color: var(--tooltip-trigger-color);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: var(--tooltip-trigger-shadow);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.calc-share__button:hover {
  background: var(--tooltip-trigger-hover-bg);
  border-color: var(--tooltip-trigger-hover-border);
  box-shadow: var(--tooltip-trigger-hover-shadow);
}

.calc-share__button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: var(--tooltip-trigger-active-shadow);
}

.calc-share__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.calc-share__label {
  white-space: nowrap;
}

.calc-share__message {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.calc-share__message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.calc-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 320px;
}

.calc-primary-actions__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
}

.calc-primary-actions__row--tools {
  justify-content: flex-start;
}

.calc-primary-actions__row--cta {
  justify-content: center;
}

.calc-primary-actions__cta {
  min-width: clamp(240px, 45vw, 360px);
  text-align: center;
}

.calc-save {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.calc-save__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.calc-save__button {
  white-space: nowrap;
  min-width: 150px;
  justify-content: center;
}

.calc-save__link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.calc-save__link:hover,
.calc-save__link:focus-visible {
  text-decoration: underline;
  color: inherit;
}

.calc-toast {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  align-self: flex-start;
  text-align: left;
  max-width: min(32rem, 100%);
}

.calc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-title {
  margin-bottom: 0.25rem;
}

.tool-subtitle {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--muted);
}

.anchor-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.anchor-link {
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border, #2d333b);
  border-radius: 0.5rem;
  color: inherit;
}

.anchor-link:hover,
.anchor-link:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  flex: 1 1 240px;
  justify-content: flex-start;
}

.calc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  box-shadow: 0 6px 20px -12px rgba(15, 23, 42, 0.45);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.calc-tab:hover,
.calc-tab:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.calc-tab:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.calc-tab--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(209, 42, 42, 0.8);
}

.calc-tab--primary:hover,
.calc-tab--primary:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

@media only screen and (max-width: 47.99rem) {
  .section-heading--with-action {
    align-items: flex-start;
  }

  .calc-share {
    width: 100%;
    align-items: flex-end;
  }

  .calc-save {
    width: 100%;
    justify-content: flex-start;
  }

  .calc-toast {
    align-self: stretch;
    text-align: left;
  }
}

@media only screen and (min-width: 48rem) {
  .section-heading--with-action {
    flex-direction: row-reverse;
    align-items: flex-start;
  }

  .section-heading__stack {
    flex: 1 1 auto;
  }

  .section-heading--with-action > .calc-share {
    align-self: flex-start;
  }

  .calc-save {
    align-self: flex-start;
  }
}

@media only screen and (min-width: 64rem) {
  .calc-primary-actions__row--tools {
    align-items: stretch;
  }
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 var(--space-2) 0;
}

.profile-picture {
  display: block;
  width: clamp(168px, 24vw, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.08));
  box-shadow: 0 18px 42px -28px rgba(15, 23, 42, 0.45);
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: rgba(226, 232, 240, 0.6);
}

.profile-picture--large {
  width: clamp(220px, 30vw, 320px);
}

.section-about-teaser {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.about-teaser {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
}

.about-teaser__media,
.about-hero__media {
  display: flex;
  justify-content: center;
}

.about-teaser__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-teaser__cta {
  margin: 0;
}

.about-hero {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.about-hero__grid {
  display: grid;
  gap: clamp(var(--space-5), 6vw, var(--space-6));
  align-items: center;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

#druck-tipps .about-hero {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

#druck-tipps .about-hero__grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: min(1280px, 100%);
  margin-inline: auto;
}

#druck-kosten .about-hero__grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.about-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 640px;
}

#druck-tipps .about-hero__content {
  max-width: none;
}

#druck-tipps .about-hero__content .hero-actions {
  justify-content: flex-start;
}

#druck-kosten .about-hero__content {
  align-items: center;
  text-align: center;
}

#druck-kosten .about-hero__content .hero-actions {
  justify-content: center;
}

#druck-kosten .about-hero__content .text-muted {
  margin: 0;
  margin-top: var(--space-2);
}

#druck-kosten .card--calc-info {
  max-width: none;
  width: 100%;
}

.about-values {
  background: linear-gradient(160deg, rgba(201, 20, 20, 0.04), rgba(17, 17, 17, 0.02));
}

.grid--about-values {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card--about-value {
  gap: var(--space-2);
}

.about-values__text {
  display: grid;
  gap: var(--space-3);
  max-width: 720px;
}

.about-timeline {
  background: rgba(17, 17, 17, 0.015);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.timeline__note {
  background: rgba(17, 17, 17, 0.04);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  max-width: 720px;
}

.timeline__note p {
  margin: 0;
}

.timeline__item {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 96px 1fr;
  align-items: start;
}

.timeline__year {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  justify-self: start;
}

.about-cta {
  background: rgba(201, 20, 20, 0.05);
}

.about-cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.about-cta__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.panel,
.section-box {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.card p,
.panel p,
.section-box p {
  color: var(--text-muted);
}

.callout {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--card);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.callout h3 {
  margin: 0;
  font-size: 1.1rem;
}

.callout p {
  margin: 0;
  color: var(--text-muted);
}

.callout ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.callout ul li + li {
  margin-top: 0.35rem;
}

.callout.warn {
  border-color: #e7b14a;
  background: color-mix(in oklab, #e7b14a 12%, var(--card));
}

.service-callout {
  grid-column: 1 / -1;
  gap: var(--space-3);
}

.service-callout__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.service-callout__icon {
  font-size: 1.9rem;
  line-height: 1;
}

.service-callout ul {
  padding-left: 1.25rem;
}

.service-callout ul li + li {
  margin-top: 0.35rem;
}

.materials-teaser {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(201, 20, 20, 0.04), rgba(17, 17, 17, 0.04));
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.materials-teaser__cta {
  align-self: flex-start;
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.card {
  border-radius: 20px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.card--narrow {
  max-width: min(78ch, 100%);
  margin-inline: auto;
}

.calc-notes__card {
  gap: var(--space-4);
}

.calc-notes__section {
  display: grid;
  gap: 0.65rem;
}

.calc-notes__section + .calc-notes__section {
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in srgb, var(--control-border) 70%, transparent);
}

.calc-notes__section h2 {
  margin: 0;
}

.calc-notes__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.calc-notes__cta .btn {
  min-width: 200px;
}

.card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.project-status-list {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.project-status-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-3);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-status-item__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  justify-content: space-between;
}

.project-status-item__title {
  margin: 0;
  font-size: 1.05rem;
}

.project-status-item__meta,
.project-status-item__links,
.project-status-item__note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-subtle);
}

.project-status-item__links strong {
  color: var(--text);
}

.project-status-item__links a {
  font-weight: 600;
}

.legal-card {
  gap: var(--space-4);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal-section h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
}

.legal-section p {
  margin: 0;
}

.legal-stand {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--text-muted);
}


.card--service {
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, outline-color 0.3s ease;
}

.card--service:hover {
  border-color: rgba(209, 42, 42, 0.35);
  box-shadow: 0 12px 32px -20px rgba(209, 42, 42, 0.25);
}

.card--service:focus-within {
  border-color: var(--accent);
  box-shadow: 0 12px 32px -20px rgba(209, 42, 42, 0.35);
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card__title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.card__icon-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  filter: drop-shadow(0 0 0.6px rgba(17, 17, 17, 0.5));
  transition: color 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.card__icon--svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card__icon--fallback {
  display: none;
  font-size: 1.35rem;
  line-height: 1;
}

.card--service:hover .card__icon-group,
.card--service:focus-within .card__icon-group {
  color: var(--accent);
  filter: drop-shadow(0 0 2px rgba(209, 42, 42, 0.45));
}

.no-inline-svg .card__icon--svg {
  display: none;
}

.no-inline-svg .card__icon--fallback {
  display: inline-flex;
}

@media only screen and (max-width: 640px) {
  .card__header {
    gap: 0.6rem;
  }

  .card__icon {
    width: 1.6rem;
    height: 1.6rem;
  }

  .card__icon--fallback {
    font-size: 1.2rem;
  }
}

.card p {
  margin: 0;
}

.card-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card__note {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card__actions .btn {
  width: 100%;
  justify-content: center;
}

.card__more-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.card__more-link:hover,
.card__more-link:focus-visible {
  text-decoration: underline;
}

.guide-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.guide-header h2 {
  flex: 1 1 auto;
  margin: 0;
}

.guide {
  margin-top: 3rem;
}

.guide details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border, #2d333b);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}

.guide details > summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.guide .glossary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.5rem 1rem;
}

.guide .glossary dt {
  font-weight: 700;
}

.guide .glossary dd {
  margin: 0;
}

.back-top {
  margin-top: 1.5rem;
  text-align: right;
}

.back-top a {
  font-weight: 600;
  text-decoration: none;
}

.back-top a:hover,
.back-top a:focus-visible {
  text-decoration: underline;
}

@media only screen and (max-width: 600px) {
  .guide .glossary {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide .glossary dt {
    text-align: left;
  }
}

.pc-help-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 720px;
}

.pc-help-hero__note {
  font-size: 0.95rem;
  color: var(--muted);
}

.pc-help-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 720px;
}

.pc-help-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pc-help-list--muted {
  color: var(--muted);
}

.pc-help-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.ideas-intro__inner,
.ideas-resources__inner,
.ideas-teaser__inner,
.ideas-note__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ideas-intro__inner p {
  margin: 0;
}

.ideas-intro__inner p + p {
  margin-top: var(--space-3);
}

.ideas-resources {
  padding-top: 0;
}

.ideas-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ideas-list a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.ideas-list a:hover,
.ideas-list a:focus-visible {
  text-decoration: underline;
}

.ideas-teaser {
  padding-top: 0;
}

.ideas-teaser__inner {
  background: rgba(209, 42, 42, 0.06);
  border: 1px solid rgba(209, 42, 42, 0.18);
  border-radius: 18px;
  padding: var(--space-5);
  gap: var(--space-2);
}

.ideas-teaser__inner p {
  margin: 0;
}

.ideas-note {
  padding-top: 0;
}

.ideas-note__inner {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

.ideas-note__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* KI Page */
.ki-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 1120px;
}

.ki-hero__lede {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 72ch;
}

.ki-toc__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.ki-toc__nav h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
}

.ki-toc__list {
  margin: 0;
  padding-left: 1.5rem;
}

.ki-toc__list li {
  line-height: 1.5;
}

.ki-toc__list li + li {
  margin-top: 0.35rem;
}

.ki-toc__list a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.ki-toc__list a:hover,
.ki-toc__list a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}


.ki-section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 1120px;
}

.ki-section__inner > p {
  margin: 0;
  color: var(--text-muted);
  }

.ki-section__inner > p + p {
  margin-top: 0.5rem;
}

.ki-tips {
  margin: 0;
  padding-left: 1.5rem;
}

.ki-tips li {
  margin-bottom: var(--space-4);
}

.ki-tips li::marker {
  font-weight: 700;
  color: var(--accent);
}

.ki-tips li:last-child {
  margin-bottom: 0;
}

.ki-tip-card {
  margin-top: var(--space-2);
}

.ki-tip-card h3 {
  font-size: 1.2rem;
}

.ki-tip-card p {
  margin: 0;
  color: var(--text-muted);
}

.ki-uses {
  margin: 0;
  padding-left: 1.25rem;
}

.ki-uses li {
  color: var(--text-muted);
}


.ki-uses li + li {
  margin-top: 0.4rem;
}

.ki-hero-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.ki-card-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ki-tools-teaser {
  margin-top: var(--space-5);
}

.ki-tools-teaser__intro {
  color: var(--text-muted);
  max-width: 80ch;
}

.ki-tools-teaser__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.ki-link-card {
  text-decoration: none;
  color: inherit;
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ki-link-card h3 {
  font-size: 1.2rem;
}

.ki-link-card p {
  margin: 0;
}

.ki-link-card:hover,
.ki-link-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 30px -20px rgba(15, 23, 42, 0.45);
  transform: translateY(-2px);
}

.ki-two-column {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ki-pro-con-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ki-pro-card {
  border-radius: 18px;
  padding: var(--space-5);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: var(--space-3);
}

.ki-pro-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.ki-pro-card p {
  margin: 0;
  color: var(--text-muted);
}

.ki-pro-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
  color: var(--text);
}

.ki-pro-card--pro {
  background: color-mix(in oklab, #10b981 12%, var(--card));
  border-color: color-mix(in oklab, #10b981 45%, var(--border));
}

.ki-pro-card--pro h3 {
  color: #065f46;
}

html[data-theme="dark"] .ki-pro-card--pro {
  background: color-mix(in oklab, var(--card) 82%, #10b981 18%);
  border-color: color-mix(in oklab, #10b981 55%, var(--border));
}

html[data-theme="dark"] .ki-pro-card--pro h3 {
  color: color-mix(in oklab, #34d399 50%, var(--ink));
}

.ki-pro-card--risk {
  background: color-mix(in oklab, #ef4444 12%, var(--card));
  border-color: color-mix(in oklab, #ef4444 40%, var(--border));
}

.ki-pro-card--risk h3 {
  color: #b91c1c;
}

html[data-theme="dark"] .ki-pro-card--risk {
  background: color-mix(in oklab, var(--card) 82%, #ef4444 18%);
  border-color: color-mix(in oklab, #ef4444 55%, var(--border));
}

html[data-theme="dark"] .ki-pro-card--risk h3 {
  color: color-mix(in oklab, #fca5a5 55%, var(--ink));
}

.prompt-rule-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompt-rule-list li {
  font-weight: 600;
  color: var(--text);
}

.prompt-rule-list li span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.prompt-example-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.prompt-example {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.prompt-example__title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.prompt-example pre {
  margin: 0;
  padding: var(--space-3);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.prompt-example code {
  color: var(--text);
}

.ki-tool-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ki-tool-card {
  height: 100%;
}

.ki-tool-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.ki-tool-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ki-tool-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.ki-tool-usage,
.ki-tool-coming-up {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ki-tool-coming-up li::marker {
  color: var(--accent);
}

.faq-accordion {
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4);
  font-weight: 600;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: var(--space-4);
  padding-top: 0;
  color: var(--text-muted);
}

.callout.note {
  border-color: #60a5fa;
  background: color-mix(in oklab, #60a5fa 12%, var(--card));
}

.ki-lexicon {
  display: grid;
  gap: var(--space-3);
}

.ki-lexicon dt {
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.ki-lexicon dd {
  margin: 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: var(--space-3);
}

.ki-lexicon dd:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ki-lexicon__group {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: var(--space-4);
  background: var(--card);
}

.ki-lexicon__group h2 {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.lex-contact,
.lex-links {
  margin-top: var(--space-5);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  color: var(--text-muted);
}

.lex-contact a,
.lex-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.lex-contact a:hover,
.lex-links a:hover,
.lex-contact a:focus-visible,
.lex-links a:focus-visible {
  text-decoration: underline;
}

.ki-cta .hero-actions {
  margin-top: 0;
}

@media only screen and (max-width: 640px) {
  .ki-toc__nav {
    padding: var(--space-4);
  }
}

/* Plattformliste mit textbasierten Badges (statt PNG-Logos) */
.platform-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1.25rem 0;
}
.platform-list li {
  display: flex;
  align-items: center;
  margin: 0.4rem 0;
  line-height: 1.4;
}
.platform-list a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.platform-list a:hover,
.platform-list a:focus {
  border-bottom-color: currentColor;
}

/* Badge */
.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

/* Optional feiner Hover */
.platform-list li:hover .platform-badge {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.4);
}

.section-contact {
  position: relative;
}

.quick-contact {
  display: grid;
  gap: var(--space-4);
}

.quick-contact__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 520px;
}

.quick-contact__heading {
  margin-bottom: 0;
}

.quick-contact__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}

.quick-contact__cta {
  width: 100%;
  gap: var(--space-2);
  text-align: left;
  justify-content: flex-start;
}

.quick-contact__phone {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.quick-contact__availability {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-subtle);
}

.quick-contact__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.quick-contact__privacy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-subtle);
  grid-column: 1 / -1;
}

.route-section {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.map-container {
  position: relative;
  width: 100%;
  height: clamp(280px, 52vw, 340px);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  background: color-mix(in srgb, var(--surface-muted) 70%, #9ca3af 30%);
  box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-4);
  color: var(--text-subtle);
  background: var(--surface-muted);
  background: color-mix(in srgb, var(--surface-muted) 85%, var(--border) 15%);
}

.map-placeholder__text {
  margin: 0;
  font-weight: 600;
  color: var(--text-subtle);
}

.map-placeholder__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 380px;
}

.map-canvas {
  width: 100%;
  height: 100%;
  display: none;
}

.map-canvas.is-active {
  display: block;
}

.route-buttons {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.route-buttons .btn {
  width: 100%;
}

@media only screen and (min-width: 640px) {
  .quick-contact__actions {
    max-width: 420px;
  }
}

@media only screen and (min-width: 768px) {
  .quick-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.contact-card {
  gap: var(--space-4);
}

.contact-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-card__cta {
  width: 100%;
  justify-content: center;
}

.contact-card__cta--qr {
  display: none;
}

.contact-card__footnote {
  font-size: 0.82rem;
  color: var(--text-subtle);
  line-height: 1.5;
  margin-top: var(--space-2);
}

.about-cta__whatsapp {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  padding: 0.35rem 0;
}

.about-cta__whatsapp:hover,
.about-cta__whatsapp:focus-visible {
  text-decoration: underline;
}

.qr-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(17, 17, 17, 0.55);
  z-index: 200;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
}

.qr-modal__dialog {
  position: relative;
  max-width: 320px;
  width: 100%;
  padding: var(--space-5);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.qr-modal__title {
  margin: 0;
  font-size: 1.15rem;
}

.qr-modal__description {
  margin: 0;
  color: rgba(17, 17, 17, 0.75);
}

.qr-modal__image {
  width: 200px;
  height: auto;
  align-self: center;
}

.qr-modal__download {
  align-self: center;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.qr-modal__download:hover,
.qr-modal__download:focus-visible {
  text-decoration: underline;
}

.qr-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}

.qr-modal__close::before,
.qr-modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
}

.qr-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.qr-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.card-inline {
  max-width: 640px;
}

address {
  font-style: normal;
  line-height: 1.6;
}

.cta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  color: var(--chip-fg);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.badge + .badge {
  margin-left: var(--space-2);
}

.badge-mw {
  background: var(--badge-mw-bg);
  color: var(--badge-mw-fg);
  border-color: transparent;
}

.badge-pr {
  background: var(--badge-pr-bg);
  color: var(--badge-pr-fg);
  border-color: transparent;
}

.badge-th {
  background: var(--badge-th-bg);
  color: var(--badge-th-fg);
  border-color: transparent;
}

.badge-cu {
  background: var(--badge-cu-bg);
  color: var(--badge-cu-fg);
  border-color: transparent;
}

.badge-mm {
  background: var(--badge-mm-bg);
  color: var(--badge-mm-fg);
  border-color: transparent;
}

.badge-tg {
  background: var(--badge-tg-bg);
  color: var(--badge-tg-fg);
  border-color: transparent;
}

.badge-gc {
  background: var(--badge-gc-bg);
  color: var(--badge-gc-fg);
  border-color: transparent;
}

.footer {
  padding-block: var(--space-5);
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
}

.footer > .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer--separated {
  margin-top: var(--space-6);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.footer__brand {
  color: var(--text-subtle);
  font-weight: 500;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer__links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__notes {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-muted);
}

.footer__notes strong {
  font-weight: 600;
  color: var(--text-subtle);
}

@media only screen and (min-width: 48rem) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer__notes {
    text-align: right;
    max-width: 420px;
  }
}

.breadcrumbs {
  background: rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs__container {
  padding-block: 0.75rem;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  color: var(--text-muted);
  opacity: 0.7;
}

.breadcrumbs__item a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs__item a:hover {
  color: var(--accent);
}

/* Downloads Page List Layout */
.downloads-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
  width: 100%;
}

.software-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.software-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -20px rgba(15, 23, 42, 0.25);
}

.software-row.highlight {
  border-color: var(--accent);
  background: linear-gradient(to bottom, var(--surface), rgba(209, 42, 42, 0.02));
}

.software-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.software-title-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  justify-content: space-between;
}

.software-title-area h3 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.software-badges {
  display: flex;
  gap: 0.5rem;
}

.badge-offline {
  background: var(--surface-muted);
  color: var(--text-subtle);
  border-color: var(--border);
}

.software-desc {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-subtle);
  line-height: 1.5;
  max-width: 80ch;
}

.software-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: 0.5rem;
}

.software-actions .file-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Details & Summary */
.software-details summary,
.security-warning summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--accent);
  padding: 0.5rem 0;
  user-select: none;
  outline: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.software-details summary:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.software-details summary::-webkit-details-marker,
.security-warning summary::-webkit-details-marker {
  display: none;
}

.details-content {
  background: var(--surface-muted);
  border-radius: 12px;
  padding: var(--space-3) var(--space-4);
  margin-top: 0.5rem;
  border: 1px solid var(--border);
}

.details-content p {
  margin: 0;
}

.details-content .feature-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.details-content .feature-list li {
  line-height: 1.5;
}

/* Security Warning Specifics */
.security-warning {
  border: 1px solid #bbf7d0; /* green-200 */
  background: #f0fdf4; /* green-50 */
  border-radius: 12px;
  overflow: hidden;
}

.security-warning summary {
  width: 100%;
  padding: 0.75rem 1rem;
  color: #166534; /* green-800 */
}

.security-warning summary:hover {
  background: #dcfce7; /* green-100 */
  text-decoration: none;
}

.security-content {
  padding: 0 1rem 1rem;
  color: #15803d; /* green-700 */
}

.security-content p {
  margin: 0;
  line-height: 1.5;
}

/* Utility Classes for Grid Layout (Added for Index Hero) */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.h-full { height: 100%; }

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Button Light */
.btn-light {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s;
}
.btn-light:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
