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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1A1D23;
  background: #FAFBFC;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --color-primary: #1B3A5C;
  --color-primary-hover: #152E4A;
  --color-primary-light: #E8EEF5;
  --color-primary-text: #FFFFFF;
  --color-accent: #C89B3C;
  --color-accent-hover: #B08830;
  --color-accent-light: #FDF6E3;
  --color-bg: #FAFBFC;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F5F7FA;
  --color-surface-alt: #F0F2F5;
  --color-border: #D1D9E6;
  --color-border-light: #E4E9F0;
  --color-text: #1A1D23;
  --color-text-secondary: #5A6573;
  --color-text-muted: #8B95A5;
  --color-text-inverse: #FFFFFF;
  --color-success: #2D7D46;
  --color-success-light: #E8F5EC;
  --color-warning: #B8860B;
  --color-warning-light: #FEF8E7;
  --color-error: #C13B3B;
  --color-error-light: #FDE8E8;
  --color-info: #2563EB;
  --color-info-light: #E8F0FE;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(27, 58, 92, 0.05);
  --shadow-md: 0 2px 8px rgba(27, 58, 92, 0.08), 0 1px 3px rgba(27, 58, 92, 0.04);
  --shadow-lg: 0 8px 24px rgba(27, 58, 92, 0.10), 0 2px 6px rgba(27, 58, 92, 0.06);
  --shadow-xl: 0 16px 48px rgba(27, 58, 92, 0.14), 0 4px 12px rgba(27, 58, 92, 0.08);
  --max-width: 1200px;
  --header-height: 64px;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--color-text); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 800;
}

.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { font-size: 0.875rem; color: var(--color-text-secondary); font-weight: 500; }
.nav a:hover { color: var(--color-primary); text-decoration: none; }

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F2A44 100%);
  color: white;
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.type-card {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: white;
}

.type-card:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.type-card.selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.type-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.type-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.section {
  padding: 3rem 0;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.legal-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
  margin-top: auto;
  font-size: 0.875rem;
}

.legal-footer a {
  color: rgba(255,255,255,0.9);
}

.legal-footer a:hover {
  color: white;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-disclaimer {
  margin-top: 1rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

.checklist-section {
  display: none;
  padding: 2rem 0;
}

.checklist-section.active {
  display: block;
}

.checklist-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.steps-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.step-progress-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.step-item:hover {
  background: var(--color-primary-light);
}

.step-item.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.step-item.completed {
  color: var(--color-success);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}

.step-item.active .step-number {
  background: var(--color-primary);
  color: white;
}

.step-item.completed .step-number {
  background: var(--color-success);
  color: white;
}

.question-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.question-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease;
}

.check-item:hover {
  background: var(--color-primary-light);
}

.check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-visual {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-top: 2px;
}

.check-input:checked + .check-visual {
  background: var(--color-success);
  border-color: var(--color-success);
}

.check-input:checked + .check-visual::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.check-label {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.check-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.15);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.btn-accent {
  background: var(--color-accent);
  color: white;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results-section {
  display: none;
  padding: 2rem 0;
}

.results-section.active {
  display: block;
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-score {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2.5rem;
  margin-bottom: 1.5rem;
}

.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.score-circle.high {
  background: var(--color-success-light);
  color: var(--color-success);
}

.score-circle.medium {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.score-circle.low {
  background: var(--color-error-light);
  color: var(--color-error);
}

.score-text {
  text-align: left;
}

.score-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.score-text p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.result-category {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.category-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border-light);
}

.category-header h3 {
  font-size: 1.0625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-status {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.category-status.erfuellt {
  background: var(--color-success-light);
  color: var(--color-success);
}

.category-status.teilweise {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.category-status.offen {
  background: var(--color-error-light);
  color: var(--color-error);
}

.category-items {
  padding: 0.5rem 1.5rem 1rem;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.result-item .status-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.status-icon.checked {
  background: var(--color-success-light);
  color: var(--color-success);
}

.status-icon.unchecked {
  background: var(--color-error-light);
  color: var(--color-error);
}

.result-actions {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-page {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .stand {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.legal-page p, .legal-page li {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-page address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.template-block {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 1rem 0;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-sans);
}

.copy-btn:hover {
  background: var(--color-primary-light);
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

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

.page-title p {
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .checklist-layout {
    grid-template-columns: 1fr;
  }
  .steps-sidebar {
    position: static;
  }
  .hero h1 { font-size: 1.75rem; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .results-score { flex-direction: column; text-align: center; }
  .score-text { text-align: center; }
  .nav { gap: 0.75rem; }
  .nav a { font-size: 0.8125rem; }
  .feature-card:hover { transform: none; }
}
