/* ============================================================
   GDSN Stammdaten Tool — Landing Page Styles
   Aesthetic: Institutional Authority
   DM Serif Display + Source Sans 3 | Navy + Amber
   ============================================================ */

/* Fonts loaded via <link> in HTML head for non-blocking render */

/* --- Custom Properties --- */
:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --navy-muted: #3a4d6e;
  --amber: #d4a843;
  --amber-light: #e8c76e;
  --amber-dark: #b8922e;
  --amber-glow: rgba(212, 168, 67, 0.12);
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray-100: #eae8e3;
  --gray-200: #d5d2cb;
  --gray-300: #b0aca3;
  --gray-400: #8a857b;
  --gray-500: #6b665d;
  --gray-600: #4a463f;
  --text-primary: #1a2744;
  --text-secondary: #4a463f;
  --text-muted: #6b665d;
  --text-on-dark: #f8f7f4;
  --text-on-dark-muted: #b0aca3;
  --border: #d5d2cb;
  --border-light: #eae8e3;
  --success: #2d7a4f;
  --success-bg: #e8f5ee;
  --error: #c0392b;
  --error-bg: #fdf0ee;

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  --max-width: 1140px;
  --section-padding: 5rem 0;
  --section-padding-mobile: 3rem 0;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 39, 68, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 39, 68, 0.12);
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
}

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

a {
  color: var(--amber-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--amber);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.section-subtitle {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
}

/* --- Dot Grid Background Pattern --- */
.bg-dotgrid {
  background-image: radial-gradient(circle, var(--gray-200) 0.8px, transparent 0.8px);
  background-size: 24px 24px;
}

.bg-warm {
  background-color: var(--off-white);
}

.bg-navy {
  background-color: var(--navy);
  color: var(--text-on-dark);
}

.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
  color: var(--white);
}

.bg-navy .section-subtitle {
  color: var(--amber-light);
}

.bg-navy .lead {
  color: var(--text-on-dark-muted);
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand:hover {
  color: var(--navy);
}

.nav-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  color: var(--amber);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 1rem;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--navy-light);
  color: var(--white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--amber-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

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

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-on-dark {
  background: var(--amber);
  color: var(--navy);
}

.btn-on-dark:hover {
  background: var(--amber-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

.btn-lg {
  padding: 0.9375rem 2.25rem;
  font-size: 1.0625rem;
}

/* --- Hero Section --- */
.hero {
  padding: 4.5rem 0 5rem;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, var(--gray-200) 0.6px, transparent 0.6px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-form {
  max-width: 480px;
  margin: 0 auto 1rem;
}

.hero-form .input-row {
  display: flex;
  gap: 0.5rem;
}

.hero-form input[type="email"] {
  flex: 1;
  padding: 0.8125rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.hero-form input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
}

.hero-form input[type="email"]::placeholder {
  color: var(--gray-400);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.form-msg {
  margin-top: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  display: none;
}

.form-msg.success {
  display: block;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(45, 122, 79, 0.15);
}

.form-msg.error {
  display: block;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(192, 57, 43, 0.15);
}

/* --- Problem Section --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.problem-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.problem-card .problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--error-bg);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--error);
  font-weight: 700;
}

.problem-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.problem-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Solution Section --- */
.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}

.solution-text .lead {
  margin-bottom: 1.5rem;
}

.solution-points {
  list-style: none;
  padding: 0;
}

.solution-points li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.solution-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--amber);
  border-radius: 2px;
  transform: rotate(45deg);
}

.solution-visual {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-on-dark);
}

.solution-demo {
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.solution-demo .demo-label {
  color: var(--amber-light);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.solution-demo .demo-input {
  color: var(--text-on-dark-muted);
  display: block;
  padding-left: 1rem;
}

.solution-demo .demo-divider {
  display: block;
  margin: 0.75rem 0;
  color: var(--navy-muted);
}

.solution-demo .demo-output {
  color: var(--success);
  display: block;
  padding-left: 1rem;
}

.solution-demo .demo-output-label {
  color: var(--amber);
  font-weight: 700;
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

/* --- Steps Section --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 2px;
  background: var(--border);
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--navy);
  color: var(--amber);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

.step-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--amber-glow);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--amber-dark);
  font-weight: 700;
  font-family: var(--font-body);
}

.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Comparison Table --- */
.comparison-wrapper {
  margin-top: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.comparison-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  background: var(--off-white);
}

.comparison-table thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
  background: var(--amber-glow);
  border-bottom-color: var(--amber-dark);
}

.comparison-table tbody td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table tbody td:last-child {
  background: var(--amber-glow);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-lg);
}

.comparison-table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-lg) 0;
}

.table-check {
  color: var(--success);
  font-weight: 700;
}

.table-cross {
  color: var(--error);
  font-weight: 700;
}

/* --- Pricing Section --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  padding: 2.5rem 2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pricing-card.featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), var(--shadow-lg);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Empfohlen';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 100px;
}

.pricing-tier {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
}

/* --- Trust Section --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(212, 168, 67, 0.15);
  border-radius: 50%;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--amber-light);
}

.trust-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.trust-item p {
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--amber-dark);
}

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: all var(--transition);
}

.faq-item.open .faq-question::after {
  content: '\2212';
  border-color: var(--amber);
  color: var(--amber-dark);
  background: var(--amber-glow);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

/* --- Footer CTA Section --- */
.footer-cta {
  text-align: center;
  padding: 4rem 0;
}

.footer-cta h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-cta .lead {
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.footer-cta-form {
  max-width: 480px;
  margin: 0 auto;
}

.footer-cta-form .input-row {
  display: flex;
  gap: 0.5rem;
}

.footer-cta-form input[type="email"] {
  flex: 1;
  padding: 0.8125rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.footer-cta-form input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.12);
}

.footer-cta-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-cta .form-hint {
  color: var(--text-on-dark-muted);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
}

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

.footer-links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

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

/* --- Section Centering --- */
.section-header {
  max-width: 640px;
  margin-bottom: 0;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- Responsive: Tablet --- */
@media (max-width: 960px) {
  .problem-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .solution-visual {
    order: -1;
  }

  .steps-grid::before {
    display: none;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 640px) {
  section {
    padding: var(--section-padding-mobile);
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }

  .hero .lead {
    font-size: 1.0625rem;
  }

  .hero-form .input-row,
  .footer-cta-form .input-row {
    flex-direction: column;
  }

  .hero-form .btn,
  .footer-cta-form .btn {
    width: 100%;
  }

  .problem-grid,
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .comparison-table {
    font-size: 0.8125rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.625rem 0.75rem;
  }
}

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-page {
  padding: 3rem 0 5rem;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--navy);
}

.legal-page h2 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page h3 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: 1.5rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page ul li {
  margin-bottom: 0.375rem;
}

.legal-page a {
  color: var(--amber-dark);
  text-decoration: underline;
}

.legal-page a:hover {
  color: var(--amber);
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .fade-in-delay-1 { transition-delay: 0.1s; }
  .fade-in-delay-2 { transition-delay: 0.2s; }
  .fade-in-delay-3 { transition-delay: 0.3s; }
}
