/* === Custom Properties === */
:root {
  --color-primary: #003366;
  --color-bg: #f9f9f9;
  --color-text: #333;
  --color-white: #fff;
  --color-focus: #ffcc00;
  --color-card: #fff;
  --color-placeholder: #e0e0e0;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --radius-card: 8px;
  --radius-button: 4px;
  --max-width: 960px;
}

/* === Minimal Reset === */
*, *::before, *::after {
  box-sizing: border-box;
}

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

/* === Base Styles === */
body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  background: var(--color-focus);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 2000;
  font-weight: bold;
  text-decoration: none;
  border-radius: var(--radius-button);
}

.skip-link:focus {
  top: 0.5rem;
}

/* === Focus States === */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* === Header === */
header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2rem;
}

/* === Navigation === */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
}

nav ul li a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem;
}

/* === Footer === */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2rem;
  text-align: center;
}

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

/* === Cards === */
.card {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 4px var(--color-shadow);
  margin: 1rem 0;
  padding: 1rem;
}

.card img {
  max-width: 100%;
  border-radius: var(--radius-button);
}

.card h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-primary);
  text-decoration: underline;
}

/* === Grid Layout === */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* === Placeholder === */
.placeholder {
  background-color: var(--color-placeholder);
  height: 150px;
  border-radius: var(--radius-button);
}

/* === Hero Section (index.html) === */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--color-primary), #005599);
  border-radius: var(--radius-card);
  margin: 1rem 0;
}

.hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin: 1rem 0;
}

.hero-highlight {
  margin-top: 1rem;
  font-weight: bold;
}

/* === Blog Article Images === */
.article-hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 1.5rem;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-button);
  margin-bottom: 0.75rem;
}

.section-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin: 1rem 0;
}

/* === Buttons === */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-button);
  text-decoration: none;
  cursor: pointer;
  font-size: inherit;
}

/* === Form Fields === */
.form-field {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: var(--radius-button);
  font-family: inherit;
  font-size: inherit;
}

/* === Cookie Consent Banner === */

/* Overlay – halbtransparenter Hintergrund */
.cb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

/* Dialog-Karte */
.cb-dialog {
  background: var(--color-card);
  color: var(--color-text);
  border-radius: var(--radius-card);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

.cb-content {
  padding: 1.5rem;
}

.cb-title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.cb-text {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cb-link {
  color: var(--color-primary);
  text-decoration: underline;
}

/* --- Einstellungen-Panel --- */
.cb-settings {
  display: none;
  margin: 1rem 0;
  border-top: 1px solid var(--color-placeholder);
  padding-top: 1rem;
}

.cb-settings--open {
  display: block;
}

.cb-category {
  margin-bottom: 1rem;
}

.cb-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cb-category-name {
  font-weight: bold;
  font-size: 0.95rem;
}

.cb-badge {
  font-size: 0.75rem;
  background: var(--color-placeholder);
  color: var(--color-text);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.cb-category-desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.45;
}

/* --- Toggle-Switch --- */
.cb-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cb-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cb-slider {
  position: absolute;
  inset: 0;
  background: #bbb;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.cb-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.2s;
}

.cb-switch input:checked + .cb-slider {
  background: var(--color-primary);
}

.cb-switch input:checked + .cb-slider::before {
  transform: translateX(20px);
}

.cb-switch input:disabled + .cb-slider {
  opacity: 0.6;
  cursor: default;
}

.cb-switch input:focus-visible + .cb-slider {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* --- Buttons --- */
.cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cb-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-button);
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  font-weight: bold;
}

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

.cb-btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
}

.cb-btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.cb-btn-text {
  background: transparent;
  color: var(--color-primary);
  border: none;
  text-decoration: underline;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

/* Cookie-Einstellungen-Link im Footer */
#cb-reopen {
  cursor: pointer;
  text-decoration: underline;
}

/* === Burger Menu === */
.burger-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  -webkit-appearance: none;
}

@media (max-width: 768px) {
  header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  header h1 {
    margin: 0;
    flex: 1;
  }

  .burger-toggle {
    display: block !important;
  }

  header nav[aria-label] {
    display: none !important;
    width: 100%;
    padding-top: 1rem;
    order: 3;
  }

  header nav[aria-label].nav-open {
    display: block !important;
  }

  header nav[aria-label] ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* === Responsive: Tablet === */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  header {
    padding: 1rem;
  }
}

/* === Responsive: Mobile === */
@media (max-width: 600px) {

  .grid {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .hero-placeholder {
    height: 180px;
  }

  .cb-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .cb-dialog {
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    max-height: 85vh;
  }

  .cb-content {
    padding: 1.25rem 1rem;
  }

  .cb-actions {
    flex-direction: column;
  }

  .cb-btn {
    width: 100%;
    text-align: center;
  }
}

/* === Responsive: Wide Desktop === */
@media (min-width: 1200px) {
  .container {
    max-width: 1100px;
  }
}

/* === Print Stylesheet === */
@media print {
  header, footer, .cb-overlay, .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }

  nav a[href]::after {
    content: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* === Smooth Scroll === */
html {
  scroll-behavior: smooth;
}

h2[id], h3[id] {
  scroll-margin-top: 80px;
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 800;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Sticky Header === */
.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.header-sticky h1 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

/* === Scroll Animations === */
.animate-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* === Button Hover Effects === */
.btn-primary:hover, .btn-primary:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary {
  transition: opacity 0.2s, transform 0.2s;
}

/* === Article Metadata === */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-placeholder);
}

.article-meta span::before {
  content: "\00b7";
  margin-right: 0.75rem;
}

.article-meta span:first-child::before {
  content: none;
}

.category-badge {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: bold;
}

.category-badge::before {
  content: none !important;
}

/* === Table of Contents === */
.toc {
  background: var(--color-bg);
  border: 1px solid var(--color-placeholder);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  color: var(--color-primary);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* === Share Bar === */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-placeholder);
}

.share-bar a, .share-bar button {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius-button);
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.share-bar a:hover, .share-bar button:hover {
  opacity: 0.85;
}

/* === Blog Controls === */
.blog-controls {
  margin-bottom: 1.5rem;
}

.blog-search {
  margin-bottom: 0.75rem;
  max-width: 400px;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* === Trust Bar === */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1rem;
  margin: 2rem 0;
  text-align: center;
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 4px var(--color-shadow);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.trust-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1.2;
}

.trust-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* === Newsletter Bar === */
.newsletter-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2rem;
  text-align: center;
}

.newsletter-inner {
  max-width: var(--max-width);
  margin: auto;
}

.newsletter-bar h3 {
  margin: 0 0 0.5rem;
}

.newsletter-bar p {
  margin: 0 0 1rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form .form-field {
  max-width: 300px;
  margin-bottom: 0;
}

.newsletter-form .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: bold;
}

/* === Form Enhancements === */
.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.form-field.invalid {
  border-color: #c00;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

.form-field.valid {
  border-color: #090;
}

.form-errors {
  color: #c00;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.form-success {
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
  color: #090;
  font-weight: bold;
}

select.form-field {
  appearance: auto;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), #005599);
  color: var(--color-white);
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-card);
  margin: 2rem 0;
}

.cta-banner h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.cta-banner p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

.btn-cta {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* === Breadcrumbs === */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: #666;
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.bc-sep {
  margin: 0 0.15rem;
}

/* === FAQ Accordions === */
.faq-section {
  margin-top: 2rem;
}

.faq-section h2 {
  margin-bottom: 1rem;
}

details.faq-item {
  border: 1px solid var(--color-placeholder);
  border-radius: var(--radius-card);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

details.faq-item summary {
  padding: 1rem 2.5rem 1rem 1rem;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  list-style: none;
}

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

details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-primary);
  transition: transform 0.2s;
}

details.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 1rem 1rem;
  line-height: 1.6;
}

/* === Rechner === */
.rechner-container {
  max-width: 600px;
  margin: 0 auto;
}

.rechner-group {
  margin-bottom: 1.5rem;
}

.rechner-group label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.rechner-group .rechner-value {
  font-size: 1.1rem;
  color: var(--color-primary);
}

.rechner-group input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  background: var(--color-placeholder);
  border-radius: 3px;
  outline: none;
}

.rechner-group input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}

.rechner-group input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
}

.rechner-results {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 4px var(--color-shadow);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.rechner-results .result-big {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.rechner-results .result-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.rechner-bar-chart {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  height: 180px;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.rechner-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 120px;
}

.rechner-bar-fill {
  width: 100%;
  border-radius: var(--radius-button) var(--radius-button) 0 0;
  transition: height 0.4s ease;
  min-height: 4px;
}

.rechner-bar-fill.bar-invested {
  background: var(--color-placeholder);
}

.rechner-bar-fill.bar-interest {
  background: var(--color-primary);
}

.rechner-bar-amount {
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.rechner-bar-label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

/* === Rechner: Kostenparameter === */
.rechner-costs {
  margin-top: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.rechner-costs summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
}
.rechner-costs summary::-webkit-details-marker { display: none; }
.rechner-costs summary::before {
  content: '+ ';
  font-weight: bold;
}
.rechner-costs[open] summary::before {
  content: '\2212  ';
}
.rechner-costs-hint {
  font-size: 0.85rem;
  color: #666;
  margin: 0.5rem 0 0.75rem;
}
.cost-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cost-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.cost-group input[type="range"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.rechner-cost-comparison {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #ccc;
}
.cost-diff strong {
  color: #c0392b;
}

/* === Anlagevergleich === */
.vergleich-select-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.vergleich-select-group {
  flex: 1;
  min-width: 180px;
}
.vergleich-select-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.vergleich-select-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}
.vergleich-cost-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.vergleich-cost-col h4 {
  margin: 0.5rem 0;
  color: var(--color-primary);
}
.tax-condition {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}
.tax-condition.met {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.tax-condition.not-met {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}
.vergleich-results {
  margin-top: 1.5rem;
  overflow-x: auto;
}
.vergleich-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.vergleich-table th,
.vergleich-table td {
  padding: 0.6rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid #eee;
}
.vergleich-table th:first-child,
.vergleich-table td:first-child {
  text-align: left;
  font-weight: 600;
}
.vergleich-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.vergleich-table thead th:first-child {
  background: transparent;
  color: inherit;
}
.vergleich-result-row {
  background: #f0f7ff;
}
.vergleich-result-row td {
  padding: 0.75rem;
  font-size: 1.05rem;
  font-weight: bold;
  border-bottom: 2px solid var(--color-primary);
}
.vergleich-advantage {
  margin-top: 1.25rem;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  font-size: 1.1rem;
}
.vergleich-advantage.positive {
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #66bb6a;
}
.vergleich-advantage.negative {
  background: #fff3e0;
  color: #e65100;
  border: 2px solid #ffb74d;
}

/* === Vergleich: Tabs === */
.vergleich-tabs {
  display: flex;
  gap: 0;
  margin: 1.5rem 0 0;
  border-bottom: 2px solid #ddd;
}
.vergleich-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.vergleich-tab:hover {
  color: var(--color-primary);
}
.vergleich-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.vergleich-panel {
  display: none;
}
.vergleich-panel.active {
  display: block;
}

/* === Related Articles === */
.related-articles {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-placeholder);
}

.related-articles h3 {
  margin-bottom: 1rem;
}

/* === Dark Mode === */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1a2e;
    --color-text: #e0e0e0;
    --color-primary: #1a4a7a;
    --color-card: #2a2a3e;
    --color-placeholder: #333;
    --color-shadow: rgba(0, 0, 0, 0.3);
  }

  footer a {
    color: #ccc;
  }

  .card a {
    color: #6ba3d6;
  }

  .form-field {
    background-color: #2a2a3e;
    color: #e0e0e0;
    border-color: #555;
  }

  .cb-dialog {
    background: #2a2a3e;
    color: #e0e0e0;
  }

  .cb-title {
    color: #6ba3d6;
  }

  .cb-link {
    color: #6ba3d6;
  }

  .cb-category-desc {
    color: #aaa;
  }

  .cb-badge {
    background: #444;
    color: #ccc;
  }

  .cb-btn-outline {
    color: #6ba3d6;
    border-color: #6ba3d6;
  }

  .cb-btn-text {
    color: #6ba3d6;
  }

  .cb-settings {
    border-top-color: #444;
  }

  /* Dark mode additions for new components */
  .back-to-top {
    background: #6ba3d6;
  }

  .article-meta {
    color: #aaa;
    border-bottom-color: #444;
  }

  .toc {
    background: #1a1a2e;
    border-color: #444;
  }

  .toc a {
    color: #6ba3d6;
  }

  .share-bar {
    border-top-color: #444;
  }

  .share-bar a, .share-bar button {
    background: #6ba3d6;
  }

  .filter-btn {
    border-color: #6ba3d6;
    color: #6ba3d6;
  }

  .filter-btn.active, .filter-btn:hover {
    background: #6ba3d6;
    color: #1a1a2e;
  }

  .trust-number {
    color: #6ba3d6;
  }

  .trust-label {
    color: #aaa;
  }

  .breadcrumbs {
    color: #aaa;
  }

  .breadcrumbs a {
    color: #6ba3d6;
  }

  .category-badge {
    background: #6ba3d6;
    color: #1a1a2e !important;
  }

  details.faq-item {
    border-color: #444;
  }

  details.faq-item summary::after {
    color: #6ba3d6;
  }

  .rechner-group .rechner-value {
    color: #6ba3d6;
  }

  .rechner-results .result-big {
    color: #6ba3d6;
  }

  .rechner-bar-fill.bar-interest {
    background: #6ba3d6;
  }

  .rechner-costs {
    border-color: #444;
  }

  .rechner-costs-hint {
    color: #aaa;
  }

  .rechner-cost-comparison {
    border-top-color: #555;
  }

  .cost-diff strong {
    color: #e74c3c;
  }

  .vergleich-select-group select {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #444;
  }

  .vergleich-tabs {
    border-bottom-color: #444;
  }

  .vergleich-tab {
    color: #777;
  }

  .tax-condition.met {
    background: #1b3a1b;
    color: #81c784;
    border-color: #388e3c;
  }

  .tax-condition.not-met {
    background: #3e2200;
    color: #ffb74d;
    border-color: #e65100;
  }

  .vergleich-table td {
    border-bottom-color: #444;
  }

  .vergleich-table thead th {
    background: #1a4a7a;
  }

  .vergleich-result-row {
    background: #1a2a3a;
  }

  .vergleich-advantage.positive {
    background: #1b3a1b;
    color: #81c784;
    border-color: #388e3c;
  }

  .vergleich-advantage.negative {
    background: #3e2200;
    color: #ffb74d;
    border-color: #e65100;
  }

  .cta-banner {
    background: linear-gradient(135deg, #1a4a7a, #2a6aaa);
  }

  .newsletter-bar {
    background: #0d1b2a;
  }

  .related-articles {
    border-top-color: #444;
  }

  /* Produktfinder dark mode */
  .pf-progress-step {
    background: #444;
    color: #aaa;
  }

  .pf-progress-line {
    background: #444;
  }

  .pf-step > p {
    color: #aaa;
  }

  .pf-option {
    background: #2a2a3e;
    border-color: #444;
  }

  .pf-option:hover {
    border-color: #6ba3d6;
    background: #1a2a3e;
  }

  .pf-option.selected {
    border-color: #6ba3d6;
    background: #1a3050;
    box-shadow: 0 0 0 3px rgba(107, 163, 214, 0.2);
  }

  .pf-option strong {
    color: #e0e0e0;
  }

  .pf-option span {
    color: #aaa;
  }

  .pf-nav {
    border-top-color: #444;
  }

  #pf-back {
    color: #6ba3d6;
    border-color: #6ba3d6;
  }

  #pf-back:hover {
    background: #1a2a3e;
  }

  .pf-summary {
    background: #1a2a3e;
    border-left-color: #6ba3d6;
  }

  .pf-summary h4 {
    color: #6ba3d6;
  }

  .pf-rec {
    border-color: #444;
    background: #2a2a3e;
  }

  .pf-rec.match-high {
    border-color: #27ae60;
  }

  .pf-rec.match-mid {
    border-color: #6ba3d6;
  }

  .pf-rec h4 {
    color: #e0e0e0;
  }

  .pf-rec-reasons {
    background: #2e2a1a;
    border-left-color: #f1c40f;
    color: #e0d8b0;
  }

  .pf-rec-reasons strong {
    color: #f1d87e;
  }

  .pf-rec-reasons li {
    color: #e0d8b0;
  }

  .pf-rec-desc {
    color: #ccc;
  }

  .pf-rec-benefits strong {
    color: #e0e0e0;
  }

  .pf-rec-benefits li {
    color: #bbb;
  }

  .pf-rec-cat {
    color: #aaa;
  }

  .pf-rec-target {
    color: #aaa;
    border-top-color: #444;
  }

  .pf-rec-target strong {
    color: #ccc;
  }

  .pf-rec-contact {
    color: #6ba3d6;
  }

  .pf-rec-actions .btn-primary {
    color: #fff;
  }

  .match-high .pf-match-badge {
    background: #1b3a1b;
    color: #81c784;
  }

  .match-mid .pf-match-badge {
    background: #1a2a3e;
    color: #6ba3d6;
  }

  .match-low .pf-match-badge {
    background: #333;
    color: #aaa;
  }

  .pf-summary p {
    color: #ccc;
  }

  /* Glossar dark mode */
  .gl-alpha-link {
    background: #1a2a3e;
    color: #6ba3d6;
    border: 1px solid #3a5a7a;
  }

  .gl-alpha-link:hover {
    background: #6ba3d6;
    color: #1a1a2e;
    border-color: #6ba3d6;
  }

  .gl-alpha-link.disabled {
    color: #555;
    background: #1a1a2e;
    border-color: #333;
  }

  .gl-letter {
    color: #6ba3d6;
    border-bottom-color: #6ba3d6;
  }

  .gl-entry {
    border-color: #444;
  }

  .gl-entry summary {
    color: #e0e0e0;
  }

  .gl-entry summary::after {
    color: #6ba3d6;
  }

  .gl-body {
    color: #ccc;
  }

  .gl-body p {
    color: #ccc;
  }

  .gl-body a {
    color: #6ba3d6;
  }

  .gl-count {
    color: #aaa;
  }

  /* Lebensphasen dark mode */
  .lp-phase-btn {
    background: #2a2a3e;
    border-color: #444;
  }

  .lp-phase-btn:hover {
    border-color: #6ba3d6;
    background: #1a2a3e;
  }

  .lp-phase-btn.active {
    border-color: #6ba3d6;
    background: #1a3050;
    box-shadow: 0 4px 12px rgba(107, 163, 214, 0.2);
  }

  .lp-label {
    color: #e0e0e0;
  }

  .lp-connector {
    background: #444;
  }

  .lp-product {
    border-color: #444;
    background: #222236;
  }

  .lp-product h4 {
    color: #e0e0e0;
  }

  .lp-product h4 a {
    color: #6ba3d6;
  }

  .lp-product p {
    color: #ccc;
  }

  .lp-panel h3 {
    color: #6ba3d6;
  }

  .lp-panel > p {
    color: #ccc;
  }

  .lp-panel ul li {
    color: #ccc;
  }

  .lp-panel ul li strong {
    color: #e0e0e0;
  }

  .lp-essential {
    background: #1b3a1b;
    color: #81c784;
  }

  .lp-recommended {
    background: #1a2a3e;
    color: #6ba3d6;
  }

  .lp-optional {
    background: #3e2200;
    color: #ffb74d;
  }

  .lp-articles a {
    color: #6ba3d6;
  }
}

/* === Responsive additions === */
@media (max-width: 600px) {
  .trust-bar {
    gap: 1rem;
    padding: 1.5rem;
  }

  .trust-number {
    font-size: 1.5rem;
  }

  .share-bar {
    gap: 0.35rem;
  }

  .share-bar a, .share-bar button {
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form .form-field {
    max-width: 100%;
  }

  .cta-banner {
    padding: 1.5rem 1rem;
  }

  .rechner-bar-chart {
    height: 140px;
  }

  .blog-search {
    max-width: 100%;
  }

  .vergleich-cost-columns {
    grid-template-columns: 1fr;
  }

  .vergleich-table {
    font-size: 0.85rem;
  }

  .vergleich-select-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pf-progress-step {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .pf-progress-line {
    max-width: 30px;
  }

  .pf-option {
    padding: 0.75rem 1rem;
  }

  .pf-rec {
    padding: 1rem;
  }

  .pf-rec-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .gl-search-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .gl-search-wrap .form-field {
    max-width: 100%;
  }

  .gl-alpha-link {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .lp-timeline {
    gap: 0.35rem;
  }

  .lp-phase-btn {
    min-width: 70px;
    padding: 0.5rem 0.35rem;
  }

  .lp-icon {
    font-size: 1.2rem;
  }

  .lp-label {
    font-size: 0.65rem;
  }

  .lp-connector {
    width: 8px;
  }
}

/* === Produktfinder Wizard === */
.pf-wizard {
  max-width: 720px;
  margin: 0 auto;
}

.pf-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.pf-progress-step {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.pf-progress-step.active {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.15);
}

.pf-progress-step.done {
  background: #27ae60;
  color: #fff;
}

.pf-progress-line {
  flex: 1;
  height: 3px;
  background: #e0e0e0;
  max-width: 60px;
}

.pf-step {
  display: none;
}

.pf-step.active {
  display: block;
  animation: pfFadeIn 0.35s ease;
}

@keyframes pfFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pf-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.pf-step > p {
  margin-bottom: 1.25rem;
  line-height: 1.6;
  color: #555;
}

.pf-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pf-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
}

.pf-option:hover {
  border-color: var(--color-primary);
  background: #f0f7ff;
}

.pf-option.selected {
  border-color: var(--color-primary);
  background: #e3f0ff;
  box-shadow: 0 0 0 3px rgba(26, 74, 122, 0.15);
}

.pf-option strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #222;
}

.pf-option span {
  display: block;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.pf-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.pf-nav button {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  font-family: inherit;
}

#pf-next {
  background: var(--color-primary);
  color: #fff;
}

#pf-next:hover:not(:disabled) {
  opacity: 0.85;
}

#pf-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#pf-back {
  background: transparent;
  color: var(--color-primary);
}

#pf-back:hover {
  background: #f0f7ff;
}

/* Summary */
.pf-summary {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--color-primary);
}

.pf-summary h4 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.pf-summary p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Recommendations */
.pf-rec {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s;
}

.pf-rec.match-high {
  border-color: #27ae60;
  border-left-width: 5px;
}

.pf-rec.match-mid {
  border-color: #2980b9;
  border-left-width: 5px;
}

.pf-rec.match-low {
  border-color: #bbb;
}

.pf-rec-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.pf-match-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.match-high .pf-match-badge {
  background: #e8f5e9;
  color: #27ae60;
}

.match-mid .pf-match-badge {
  background: #e3f0ff;
  color: #2980b9;
}

.match-low .pf-match-badge {
  background: #f5f5f5;
  color: #888;
}

.pf-rec-cat {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
}

.pf-rec h4 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #222;
}

.pf-rec-reasons {
  background: #fef9e7;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid #f1c40f;
}

.pf-rec-reasons strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.pf-rec-reasons ul {
  margin: 0;
  padding-left: 1.25rem;
}

.pf-rec-reasons li {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.2rem;
}

.pf-rec-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

.pf-rec-benefits strong {
  display: block;
  margin-bottom: 0.3rem;
}

.pf-rec-benefits ul {
  margin: 0;
  padding-left: 1.25rem;
}

.pf-rec-benefits li {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.15rem;
}

.pf-rec-target {
  font-size: 0.88rem;
  color: #555;
  margin: 0.75rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.pf-rec-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.pf-rec-contact {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.pf-rec-contact:hover {
  text-decoration: underline;
}

/* === Glossar / Versicherungslexikon === */
.gl-search-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gl-search-wrap .form-field {
  flex: 1;
  max-width: 400px;
}

.gl-count {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

.gl-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.gl-alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-primary);
  background: #e8f0fa;
  border: 1px solid #c0d4e8;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gl-alpha-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.gl-alpha-link.disabled {
  color: #bbb;
  background: #f0f0f0;
  border-color: #e0e0e0;
  cursor: default;
  pointer-events: none;
}

.gl-letter-group {
  scroll-margin-top: 80px;
}

.gl-letter {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.gl-entry {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  scroll-margin-top: 80px;
}

.gl-entry summary {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gl-entry summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.gl-entry[open] summary::after {
  content: '\2212';
}

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

.gl-body {
  padding: 0 1rem 1rem;
  line-height: 1.7;
}

.gl-body p {
  margin: 0 0 0.5rem;
  font-size: 0.93rem;
}

.gl-body a {
  color: var(--color-primary);
}

.gl-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* === Lebensphasen Timeline === */
.lp-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 1rem 0;
}

.lp-phase-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  min-width: 90px;
}

.lp-phase-btn:hover {
  border-color: var(--color-primary);
  background: #f0f7ff;
  transform: translateY(-2px);
}

.lp-phase-btn.active {
  border-color: var(--color-primary);
  background: #e3f0ff;
  box-shadow: 0 4px 12px rgba(26, 74, 122, 0.15);
  transform: translateY(-3px);
}

.lp-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.lp-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  line-height: 1.2;
}

.lp-age {
  font-size: 0.7rem;
  color: #888;
  font-weight: 600;
}

.lp-connector {
  width: 20px;
  height: 2px;
  background: #ccc;
  flex-shrink: 0;
}

.lp-panel {
  display: none;
}

.lp-panel.active {
  display: block;
  animation: pfFadeIn 0.35s ease;
}

/* Product cards inside phases */
.lp-products {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.lp-product {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  position: relative;
}

.lp-product h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.lp-product h4 a {
  color: var(--color-primary);
  text-decoration: none;
}

.lp-product h4 a:hover {
  text-decoration: underline;
}

.lp-product p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #555;
}

.lp-priority {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lp-essential {
  background: #e8f5e9;
  color: #2e7d32;
}

.lp-recommended {
  background: #e3f0ff;
  color: #1565c0;
}

.lp-optional {
  background: #fff3e0;
  color: #e65100;
}

.lp-articles {
  padding-left: 1.25rem;
}

.lp-articles li {
  margin-bottom: 0.35rem;
}

.lp-articles a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.lp-articles a:hover {
  text-decoration: underline;
}

/* === Author Byline === */
.author-byline a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.author-byline a:hover {
  text-decoration: underline;
}

/* === Video Placeholder === */
.video-placeholder {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e, var(--color-primary));
  border-radius: var(--radius-card);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-white);
  margin: 1.5rem 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.video-placeholder:hover {
  opacity: 0.9;
}

.video-play-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
}

.video-placeholder p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.video-placeholder h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

/* === Case Study Cards === */
.case-study {
  background: var(--color-card);
  border-left: 4px solid #27ae60;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 4px var(--color-shadow);
}

.case-study h4 {
  margin: 0 0 0.5rem;
  color: #27ae60;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.case-study .case-highlight {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0.5rem 0;
}

.case-study p {
  margin: 0.25rem 0;
  line-height: 1.6;
}

/* === External Reviews === */
.review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.review-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--color-placeholder);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.review-link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-shadow);
}

.review-icon {
  font-size: 1.5rem;
}

/* === Certifications === */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 3px var(--color-shadow);
  font-size: 0.9rem;
}

.cert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* === PDF Download Lead Magnet === */
.pdf-download {
  background: linear-gradient(135deg, #f0f7ff, #e3f0ff);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}

.pdf-download h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.pdf-download p {
  margin: 0 0 1rem;
  color: #555;
}

.pdf-download-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pdf-download-form .form-field {
  max-width: 280px;
  margin-bottom: 0;
}

/* === Steuer-Spar-Rechner === */
.steuer-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.steuer-result-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 4px var(--color-shadow);
  padding: 1.25rem;
  text-align: center;
}

.steuer-result-card .result-big {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primary);
}

.steuer-result-card .result-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.steuer-result-card.highlight {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 2px solid #27ae60;
}

.steuer-result-card.highlight .result-big {
  color: #27ae60;
}

.steuer-timeline {
  position: relative;
  padding: 1rem 0;
}

.steuer-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.steuer-timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.steuer-timeline-content {
  flex: 1;
}

.steuer-timeline-content h4 {
  margin: 0 0 0.25rem;
}

.steuer-timeline-content p {
  margin: 0;
  color: #555;
}

/* === Kalkulationsbeispiele === */
.scenario-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #ddd;
  margin-bottom: 1.5rem;
}

.scenario-tab {
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.scenario-tab:hover {
  color: var(--color-primary);
}

.scenario-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.scenario-panel {
  display: none;
}

.scenario-panel.active {
  display: block;
  animation: pfFadeIn 0.35s ease;
}

.scenario-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.scenario-column {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 4px var(--color-shadow);
  padding: 1.25rem;
}

.scenario-column h4 {
  margin: 0 0 0.75rem;
  color: var(--color-primary);
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-placeholder);
}

.scenario-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.92rem;
}

.scenario-row:last-child {
  border-bottom: none;
}

.scenario-row .label {
  color: #555;
}

.scenario-row .value {
  font-weight: 600;
}

.scenario-row.total {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--color-primary);
  border-bottom: none;
  font-size: 1.05rem;
}

.scenario-row.total .value {
  color: var(--color-primary);
  font-size: 1.15rem;
}

.scenario-savings-box {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 2px solid #27ae60;
  border-radius: var(--radius-card);
  padding: 1.25rem;
  text-align: center;
  margin-top: 1.5rem;
}

.scenario-savings-box .savings-amount {
  font-size: 2rem;
  font-weight: bold;
  color: #27ae60;
}

.scenario-savings-box .savings-label {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.25rem;
}

/* === Dark mode additions for new components === */
@media (prefers-color-scheme: dark) {
  .author-byline a {
    color: #6ba3d6;
  }

  .video-placeholder {
    background: linear-gradient(135deg, #0d1b2a, #1a4a7a);
  }

  .case-study {
    background: #2a2a3e;
    border-left-color: #27ae60;
  }

  .case-study .case-highlight {
    color: #6ba3d6;
  }

  .review-link {
    border-color: #444;
    color: #e0e0e0;
  }

  .cert-item {
    background: #2a2a3e;
  }

  .pdf-download {
    background: linear-gradient(135deg, #1a2a3e, #0d1b2a);
    border-color: #6ba3d6;
  }

  .pdf-download h3 {
    color: #6ba3d6;
  }

  .pdf-download p {
    color: #ccc;
  }

  .steuer-result-card {
    background: #2a2a3e;
  }

  .steuer-result-card .result-big {
    color: #6ba3d6;
  }

  .steuer-result-card.highlight {
    background: linear-gradient(135deg, #1b3a1b, #1a3020);
    border-color: #27ae60;
  }

  .steuer-result-card.highlight .result-big {
    color: #81c784;
  }

  .steuer-timeline-dot {
    background: #6ba3d6;
  }

  .steuer-timeline-content p {
    color: #ccc;
  }

  .scenario-tab {
    color: #777;
  }

  .scenario-column {
    background: #2a2a3e;
  }

  .scenario-row .label {
    color: #aaa;
  }

  .scenario-savings-box {
    background: linear-gradient(135deg, #1b3a1b, #1a3020);
    border-color: #27ae60;
  }

  .scenario-savings-box .savings-amount {
    color: #81c784;
  }

  .scenario-savings-box .savings-label {
    color: #ccc;
  }
}

/* === Responsive: New components === */
@media (max-width: 600px) {
  .steuer-results-grid {
    grid-template-columns: 1fr;
  }

  .scenario-comparison {
    grid-template-columns: 1fr;
  }

  .review-links {
    flex-direction: column;
  }

  .cert-grid {
    flex-direction: column;
  }

  .pdf-download-form {
    flex-direction: column;
    align-items: center;
  }

  .pdf-download-form .form-field {
    max-width: 100%;
  }

  .scenario-tabs {
    flex-wrap: wrap;
  }

  .scenario-tab {
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
  }
}

/* === Rechner-Hub === */
.rechner-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.rechner-hub-card {
  display: block;
  background: var(--color-card);
  border: 1px solid #ddd;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 2px 6px var(--color-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rechner-hub-card:hover,
.rechner-hub-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.rechner-hub-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.rechner-hub-card h3 {
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.rechner-hub-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .rechner-hub-card {
    background: #2a2a3e;
    border-color: #444;
  }

  .rechner-hub-card:hover,
  .rechner-hub-card:focus {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }

  .rechner-hub-card h3 {
    color: #6ba3d6;
  }

  .rechner-hub-card p {
    color: #ccc;
  }
}

/* === bAV-Rechner === */
.bav-section-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-primary);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--color-primary);
}

.bav-info-box {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.payslip-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.payslip-column {
  border: 1px solid #ddd;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.payslip-header-ohne {
  background: #6c757d;
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}

.payslip-header-mit {
  background: #27ae60;
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}

.payslip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.payslip-table td {
  padding: 0.3rem 0.75rem;
  border-bottom: 1px solid #eee;
}

.payslip-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.payslip-section-header td {
  background: #f0f4f8;
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.payslip-subtotal td {
  font-weight: 600;
  border-top: 1px solid #bbb;
}

.payslip-total td {
  font-weight: bold;
  font-size: 1rem;
  border-top: 2px solid #333;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.payslip-deduction td:last-child {
  color: #c0392b;
}

.payslip-savings td:last-child {
  color: #27ae60;
  font-weight: 600;
}

.payslip-info td {
  color: #888;
  font-style: italic;
  font-size: 0.82rem;
}

.payslip-diff {
  background: #e8f5e9;
  border-radius: var(--radius-card);
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.payslip-diff .diff-label {
  font-size: 0.9rem;
  color: #555;
}

.payslip-diff .diff-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #27ae60;
}

.bav-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.bav-result-card {
  background: var(--color-card);
  border: 1px solid #ddd;
  border-radius: var(--radius-card);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px var(--color-shadow);
}

.bav-result-card .result-big {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
}

.bav-result-card.highlight {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-color: #27ae60;
}

.bav-result-card.highlight .result-big {
  color: #27ae60;
}

.bav-result-card .result-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* === Dark Mode: bAV-Rechner === */
@media (prefers-color-scheme: dark) {
  .bav-section-title {
    color: #6ba3d6;
    border-bottom-color: #6ba3d6;
  }

  .bav-info-box {
    background: #332b1a;
    border-left-color: #ff9800;
    color: #e0e0e0;
  }

  .payslip-column {
    border-color: #444;
  }

  .payslip-header-ohne {
    background: #555;
  }

  .payslip-header-mit {
    background: #1e7e34;
  }

  .payslip-table td {
    border-bottom-color: #444;
  }

  .payslip-section-header td {
    background: #1a2a3e;
    color: #ccc;
  }

  .payslip-subtotal td {
    border-top-color: #666;
  }

  .payslip-total td {
    border-top-color: #aaa;
    color: #fff;
  }

  .payslip-deduction td:last-child {
    color: #e57373;
  }

  .payslip-savings td:last-child {
    color: #81c784;
  }

  .payslip-info td {
    color: #999;
  }

  .payslip-diff {
    background: linear-gradient(135deg, #1b3a1b, #1a3020);
  }

  .payslip-diff .diff-label {
    color: #ccc;
  }

  .payslip-diff .diff-value {
    color: #81c784;
  }

  .bav-result-card {
    background: #2a2a3e;
    border-color: #444;
  }

  .bav-result-card .result-big {
    color: #6ba3d6;
  }

  .bav-result-card.highlight {
    background: linear-gradient(135deg, #1b3a1b, #1a3020);
    border-color: #27ae60;
  }

  .bav-result-card.highlight .result-big {
    color: #81c784;
  }

  .bav-result-card .result-label {
    color: #aaa;
  }
}

/* === Responsive: bAV-Rechner === */
@media (max-width: 700px) {
  .payslip-comparison {
    grid-template-columns: 1fr;
  }
}

/* === Print additions === */
@media print {
  .back-to-top, .newsletter-bar, .share-bar, .cta-banner,
  .blog-controls, .breadcrumbs, .related-articles, .pf-nav,
  .video-placeholder, .pdf-download {
    display: none !important;
  }
}
