:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f0f4fa;
  --text: #243247;
  --muted: #58677b;
  --primary: #2563eb; /* Ratio-PDF Blue */
  --primary-dark: #1d4ed8;
  --primary-light: #edf3fc;
  --border: #e1e7ef;
  --border-focus: #2563eb;
  --shadow: 0 14px 34px rgba(36, 50, 71, 0.07);
  --shadow-lg: 0 22px 54px rgba(36, 50, 71, 0.11);
  --radius: 16px;
  --radius-sm: 10px;
  
  /* Status-Farben */
  --warning: #895300;
  --warning-bg: #fff3d8;
  --warning-border: #f6d48a;
  --success: #237447;
  --success-bg: #e9f5ed;
  --success-border: #b8e2c8;
  --danger: #b42332;
  --danger-bg: #fcecef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Anker-Sprungziele mit Abstand unter dem Sticky-Header */
section[id],
h2[id],
div[id] {
  scroll-margin-top: 92px;
}

.container {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(36, 50, 71, 0.06);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #3f4e65;
  font-size: 15px;
  font-weight: 500;
}

.main-nav a {
  transition: color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.lang-switcher a.active {
  color: var(--primary);
}

.lang-switcher a:not(.active) {
  color: var(--muted);
  transition: color 0.15s ease;
}

.lang-switcher a:not(.active):hover {
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.button.primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.33);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.button.secondary:hover {
  background: var(--surface-soft);
  border-color: #cbd5e1;
}

.button.large {
  padding: 13px 24px;
  font-size: 16px;
}

.button.disabled,
.button[aria-disabled="true"] {
  background: var(--surface-soft);
  color: var(--muted);
  border-color: var(--border);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  transform: none;
}

/* Hero Section mit dezentem statischem Planraster */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 16% 22%, rgba(37, 99, 235, 0.10), transparent 44%),
    linear-gradient(to right, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 44px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 18px;
  font-weight: 800;
}

.hero-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 560px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.badge svg {
  flex-shrink: 0;
}

.badge.primary {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.badge.amber {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

.badge.green {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-subnote {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.hero-preview {
  position: relative;
}

.preview-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(225, 231, 239, 0.7);
  cursor: zoom-in;
}

.preview-caption {
  padding: 10px 6px 2px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section.soft-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-header p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Ergebnis-Sektion: Volle Breite + Detail-Lupe */
.result-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.detail-callout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(36, 50, 71, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-callout-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-callout-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.detail-callout-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-callout-card p strong {
  color: var(--text);
}

/* 3-Schritte-Ablauf */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 4px 14px rgba(36, 50, 71, 0.03);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Feature Grid (ruhige Karten ohne unruhiges Schweben) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 4px 16px rgba(36, 50, 71, 0.035);
  overflow: hidden;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18.5px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Practice & Compliance Notice Box */
.notice-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
}

.notice-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.notice-content h4 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
}

.notice-content p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* Screenshot Gallery */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.screenshot-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 6px 20px rgba(36, 50, 71, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.screenshot-card img:focus-visible,
.preview-frame img:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.screenshot-card figcaption {
  padding: 12px 6px 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.screenshot-card figcaption strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

/* Pricing & Edition Box */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.11);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 23px;
  margin: 0 0 8px;
}

.pricing-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 11px;
  color: var(--text);
  line-height: 1.45;
}

.pricing-features li svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Download Box */
.download-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.download-box h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.download-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 9px;
  color: var(--muted);
}

.download-list li svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

.download-actions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Aufklappbare Installationshilfe (SmartScreen) */
.security-details {
  margin-top: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.security-details summary {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.security-details summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.security-details[open] summary::after {
  content: "−";
}

.security-details-body {
  padding: 0 16px 14px;
  border-top: 1px solid var(--border);
}

.security-details-body p {
  margin: 10px 0 8px;
}

.security-steps {
  margin: 6px 0 0;
  padding-left: 20px;
}

.security-steps li {
  margin-bottom: 4px;
}

/* Statische SmartScreen-Box (z. B. auf der separaten Download-Seite) */
.security-note {
  margin-top: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.security-note strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}

.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 34px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.35);
  outline: 2px solid white;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  transition: background 0.15s ease;
  z-index: 1010;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.4);
  outline: 2px solid white;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.menu-toggle:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(36, 50, 71, 0.12);
  padding: 16px 24px 20px;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-soft);
  transition: color 0.15s ease;
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav .mobile-nav-lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.mobile-nav .mobile-nav-lang a {
  padding: 0;
  border-bottom: none;
}

.mobile-nav .mobile-nav-lang a.active {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .download-box,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .button {
    display: none;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .download-box,
  .pricing-card,
  .feature-card {
    padding: 24px 20px;
  }

  .notice-card {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
