/* ==========================================================================
   Suparmax Brutto-Netto-Rechner 2026
   Modern, Pixel-Accurate UI matching Exact Screenshot Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-family:         system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Brand Accents */
  --color-orange-dot:    #f97316;       /* Exact orange for dot, info icons and tagline */
  --color-orange-hover:  #ea580c;
  --color-brand:         #f97316;
  --color-brand-hover:   #ea580c;
  
  /* Green Theme for Toggles, Submit Button & Highlights */
  --color-emerald:       #59992a;       /* Form submit & toggles green */
  --color-emerald-hover: #4a8222;       /* Slightly darker hover */
  --color-emerald-light: #f0f7e9;       /* Soft pastel tint for highlights */
  --color-nav-active:    #22c55e;       /* Active navigation tab green */
  --color-success:       #59992a;
  --color-success-hover: #4a8222;
  --color-success-soft:  #f0f7e9;
  
  /* Text */
  --color-navy:          #0f172a;       /* Dark navy for headings & brand title */
  --color-text:          #1e293b;       /* Dark grey / slate */
  --color-text-label:    #334155;       /* Medium font weight label */
  --color-text-muted:    #475569;       /* Grey text (18px subtext & info card) */
  --color-text-light:    #64748b;       /* Nav links grey text */
  
  /* Backgrounds */
  --color-bg:            #f5f6f8;       /* Very light grey page background */
  --color-bg-hero:       #ffffff;       /* Pure white hero */
  --color-card:          #ffffff;       /* Pure white card */
  --color-input-bg:      #ffffff;
  --color-subpanel-bg:   #f9fafb;
  
  /* Borders */
  --color-card-border:   #e5e7eb;       /* Thin light grey border */
  --color-input-border:  #d1d5db;       /* Clean input border */
  --color-border-subtle: #f1f5f9;       /* Between rows */
  --color-focus-ring:    rgba(249, 115, 22, 0.2);
  
  --color-error:         #e11d48;
  --color-error-bg:      #ffe4e6;
  
  /* Shadows & Radius */
  --shadow-card:         0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --shadow-sm:           0 1px 2px rgba(0, 0, 0, 0.05);
  
  --radius-sm:           4px;
  --radius-input:        6px;
  --radius-card:         12px;
  --radius-pill:         9999px;
  
  --max-width:           1100px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles (Standard, non-global layout)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

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

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Standard Base Headings (No huge global rules) */
h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-emerald);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--color-brand-hover);
}

/* --------------------------------------------------------------------------
   Container & Layout Primitives (Clean, Non-Global)
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ==========================================================================
   Header: Replicated Modern Design matching User Screenshot
   ========================================================================== */
.site-header,
.top-header {
  position: relative;
  z-index: 99999;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 0 6px 0;
  margin: 0 auto 16px auto;
  border: none;
  box-shadow: none;
}

/* 1. LOGO & TAGLINE (Top Row) */
.header-logo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 4px 0;
  box-sizing: border-box;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #1e293b;
}

.brand-logo-link:hover {
  text-decoration: none;
}

.logo-title-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 28px;
  color: #1e293b;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
}

.logo-text-bold {
  font-weight: 800;
  color: #1e293b;
}

.logo-text-light {
  font-weight: 400;
  color: #1e293b;
}

.logo-info-badge {
  border-radius: 20px;
  background-color: #f97316;
  color: #ffffff;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: bold;
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.header-tagline-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: #f97316;
  font-size: 16px;
  margin-left: 15px;
  white-space: nowrap;
  line-height: 1.2;
}

/* 2. GERMAN FLAG DIVIDER (Middle Row) */
.german-flag-divider {
  height: 4px;
  display: flex;
  margin: 15px 0;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  box-sizing: border-box;
}

.flag-part.flag-black {
  width: 40%;
  height: 100%;
  background-color: #000000;
}

.flag-part.flag-red {
  width: 30%;
  height: 100%;
  background-color: #E60000;
}

.flag-part.flag-yellow {
  width: 30%;
  height: 100%;
  background-color: #FFCC00;
}

/* 3. NAVIGATION BAR (Bottom Row: White Floating Card with Decorative Dual-Color Lines) */
.nav-bar-card {
  position: relative;
  z-index: 99999;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 10px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.nav-bar-card::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-item-wrap,
.nav-item,
li.nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.nav-pill-link {
  color: #1e293b;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 20px;
  transition: color 0.15s ease, background-color 0.15s ease;
  display: inline-block;
  line-height: 1.3;
}

.nav-pill-link:hover {
  color: #0f172a;
  background-color: #f8fafc;
  text-decoration: none;
}

.nav-pill-link.active {
  background-color: #f1f5f9;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 700;
  color: #1e293b;
}

/* Decorative Line under EACH nav link */
.nav-decorative-line {
  height: 3px;
  margin-top: 5px;
  border-radius: 2px;
  display: flex;
  width: 100%;
  background: linear-gradient(to right, #f97316 50%, #cbd5e1 50%);
  opacity: 0.55;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.nav-decorative-line.active-line {
  opacity: 1;
}

.nav-item-wrap:hover .nav-decorative-line,
.nav-item:hover .nav-decorative-line {
  opacity: 0.9;
}

/* Dropdown Menu for Navigation (Gehalt & Arbeitslosengeld Hover) */
.has-dropdown,
.nav-item.has-dropdown,
.nav-item-wrap.has-dropdown,
li.nav-item.has-dropdown {
  position: relative !important;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 0;
  z-index: 100000 !important;
  min-width: 240px;
  list-style: none;
  margin: 0;
}

/* Seamless bridge so cursor moving down keeps hover active */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.nav-item:hover .dropdown-menu,
.nav-item-wrap:hover .dropdown-menu,
li.nav-item:hover .dropdown-menu,
.has-dropdown:hover .dropdown-menu,
.has-dropdown:hover > .dropdown-menu,
.nav-item.has-dropdown:hover > .dropdown-menu,
.nav-item-wrap.has-dropdown:hover > .dropdown-menu,
li.has-dropdown:hover > .dropdown-menu,
.has-dropdown.open > .dropdown-menu,
.has-dropdown.is-active > .dropdown-menu,
.has-dropdown.open .dropdown-menu,
.has-dropdown.is-active .dropdown-menu,
li.has-dropdown.open > .dropdown-menu,
li.has-dropdown.is-active > .dropdown-menu,
.nav-item-wrap.has-dropdown.open > .dropdown-menu,
.nav-item-wrap.has-dropdown.is-active > .dropdown-menu,
.dropdown-menu:hover {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.has-dropdown.open > .nav-pill-link,
.has-dropdown.is-active > .nav-pill-link {
  background-color: #f1f5f9;
  color: #0f172a;
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.dropdown-menu a,
.dropdown-menu li a {
  display: block;
  padding: 5px 16px;
  color: #1e293b;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover,
.dropdown-menu li a:hover {
  background: #f1f5f9;
  color: #d9680f;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Layout Structure: Wireframe Implementation (Max-Width 1100px Container)
   -------------------------------------------------------------------------- */
/* 1. OUTER STRUCTURE (The Pink Lines: max-width: 1100px; margin: 0 auto; padding: 0 20px;) */
/* 1. OUTER STRUCTURE (1120px Container with ~15-20% side whitespace margins) */
.outer-container {
  width: 70%;
  max-width: 1120px;
  min-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}


/* 3. 2-COLUMN MAIN LAYOUT (Left: ~70% Main Content; Right: ~30% Sticky Sidebar) */
.main-layout-grid,
.calc-tool-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Left Column (MAIN CONTENT: ~70% — Tool + Results + Full SEO Text) */
.left-content-column,
.calc-card-col {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-sizing: border-box;
}

/* Right Column (STICKY SIDEBAR: ~30% — Info Card, Facts & Quick Links) */
.right-sidebar-column,
.calc-info-col {
  width: 300px;
  min-width: 300px;
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* Legacy & Utility Aliases */
.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.main-content {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* Legacy fallback classes */
.main-page-container {
  display: contents;
}

.left-main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-heading {
  font-size: 24px; /* Standard 24px per prompt */
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.intro-paragraph {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5; /* Line-height 1.5 per prompt */
  color: #475569;
  margin-bottom: 20px; /* Margin-bottom 20px per prompt */
  max-width: 100%;
  overflow-wrap: break-word;
}

.intro-paragraph strong {
  color: #0f172a;
  font-weight: 600;
}

.tag-benefits {
  display: inline-flex;
  align-items: center;
  background-color: #fff7ed;
  color: #f97316;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 4px;
  text-decoration: none;
}

.tag-benefits:hover {
  background-color: #ffedd5;
  text-decoration: none;
}

/* ==========================================================================
   Calculator Card & Form (Matching Exact Screenshot UI Pixel-for-Pixel)
   ========================================================================== */
.calculator-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 20px 24px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 0;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Card Header: Vibrant Orange Title without bottom border */
.calc-card-header {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.calc-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #df5400;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Form Container */
.modern-calc-form {
  display: flex;
  flex-direction: column;
}

/* Form Row: 3-column Grid (Label 1fr | Info Icon 18px | Input 135px) */
.form-row-modern {
  display: grid;
  grid-template-columns: 1fr 18px 135px;
  gap: 8px;
  align-items: center;
  padding: 4.5px 0;
  width: 100%;
  box-sizing: border-box;
}

/* Left side (Label): Dark grey #222, font-size 13.5px */
.row-label-wrap {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  color: #222222;
  line-height: 1.3;
  min-width: 0;
}

.row-label-wrap label,
.row-label-wrap span {
  color: #222222;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.row-label-wrap.vertical-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.sublink-grey {
  font-size: 11px;
  color: #6b7280;
  text-decoration: underline;
  line-height: 1.25;
}

.sublink-grey:hover {
  color: #df5400;
}

/* Middle (Info Icon): Small grey circle (#8d99a5) with white 'i' inside */
.row-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
}

.info-icon-grey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #8d99a5;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  font-family: Georgia, serif;
  font-style: italic;
  line-height: 1;
  cursor: help;
  user-select: none;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.info-icon-grey:hover {
  background-color: #6b7280;
}

/* Right side (Inputs Container): Compact 135px */
.row-control-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 135px;
  box-sizing: border-box;
}

/* Input Fields with Separated Grey Unit Box (€, %, J) */
.input-unit-box {
  display: flex;
  align-items: center;
  width: 135px;
  height: 34px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

/* Active/Focused/Highlighted State: Vibrant Orange border (#df5800) */
.input-unit-box.active-highlight,
.input-unit-box.has-value,
.input-unit-box:focus-within,
.input-unit-box:has(input:not(:placeholder-shown)) {
  border: 1.5px solid #df5800 !important;
  box-shadow: 0 0 0 1px #df5800;
}

.input-unit-box .modern-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 4px 8px;
  width: 100%;
  flex: 1;
  font-family: inherit;
  font-size: 13.5px;
  color: #111827;
  min-width: 0;
  box-sizing: border-box;
}

.input-unit-box .unit-affix {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-left: 1px solid #d1d5db;
  color: #374151;
  font-size: 12.5px;
  font-weight: 400;
  padding: 0 8px;
  min-width: 28px;
  height: 100%;
  user-select: none;
  box-sizing: border-box;
  transition: border-left-color 0.15s ease;
}

.input-unit-box.active-highlight .unit-affix,
.input-unit-box.has-value .unit-affix,
.input-unit-box:focus-within .unit-affix,
.input-unit-box:has(input:not(:placeholder-shown)) .unit-affix {
  border-left: 1px solid #df5800;
}

/* Dropdowns (Select): White bg, grey border, clean chevron arrow */
.modern-select {
  width: 135px;
  height: 34px;
  padding: 4px 20px 4px 8px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 11px 11px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.modern-select:focus {
  border-color: #df5800;
  box-shadow: 0 0 0 1px #df5800;
}

.select-no-arrow {
  appearance: none;
  -webkit-appearance: none;
  background-image: none !important;
  padding: 4px 8px !important;
}

/* Calculator Card Form Input Normalization matching index.html */
.calculator-card .form-row-modern {
  display: grid !important;
  grid-template-columns: 1fr 18px 135px !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 4.5px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.calculator-card .row-control-wrap {
  width: 135px !important;
  max-width: 135px !important;
  min-width: 135px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
}

.calculator-card .input-unit-box {
  width: 135px !important;
  max-width: 135px !important;
  height: 34px !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
}

.calculator-card .modern-input {
  height: 100% !important;
  padding: 4px 8px !important;
  font-size: 13.5px !important;
  color: #111827 !important;
  box-sizing: border-box !important;
}

.calculator-card .modern-select {
  width: 135px !important;
  max-width: 135px !important;
  height: 34px !important;
  border-radius: 5px !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
}

/* Radio Buttons: Standard HTML radio buttons with Orange accent */
.radio-group-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 135px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 13.5px;
  color: #222222;
  user-select: none;
}

.radio-option input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  accent-color: #df5800;
  width: 15px;
  height: 15px;
  cursor: pointer;
  margin: 0;
}

/* Full-width thin grey dividers before Kinder and Krankenversicherung */
.calc-divider {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 9px 0;
  width: 100%;
}

.modern-form-divider {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 9px 0;
  width: 100%;
}

/* Subpanels for conditional options (Kinder & PKV) */
.subpanel-modern {
  background-color: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 6px;
  padding: 5px 10px;
  margin: 5px 0;
  box-sizing: border-box;
}

.subpanel-modern .form-row-modern {
  padding: 4px 0;
}

/* Error message */
.calc-error-text {
  font-size: 12px;
  color: #e11d48;
  background-color: #ffe4e6;
  padding: 6px 10px;
  border-radius: 4px;
  margin: 4px 0 8px;
  font-weight: 500;
  line-height: 1.4;
  display: none;
}

.calc-error-text.active {
  display: block;
}

/* Submit Button: Centered Solid Orange Button */
.form-submit-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 2px;
  width: 100%;
}

.btn-calculate-center,
.btn-calculate-full {
  background-color: #cf4e00;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 46px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(207, 78, 0, 0.28);
  transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  line-height: 1.3;
}

.btn-calculate-center:hover,
.btn-calculate-full:hover {
  background-color: #b84300;
  box-shadow: 0 4px 12px rgba(207, 78, 0, 0.35);
}

.btn-calculate-center:active,
.btn-calculate-full:active {
  transform: translateY(1px);
}

.btn-calculate-center:focus-visible,
.btn-calculate-full:focus-visible {
  outline: 2px solid #cf4e00;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Right Column Sidebar: Clean Grey Card (Sticky)
   -------------------------------------------------------------------------- */
.right-sidebar-column {
  min-width: 300px;
  width: 300px;
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
  box-sizing: border-box;
}

.sidebar-card-clean {
  background-color: #f8fafc;
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.sidebar-body-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.sidebar-body-text p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 12px;
}

.sidebar-body-text p:last-child {
  margin-bottom: 0;
}

.sidebar-body-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.sidebar-badge-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.sidebar-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Results Panel (Revealed on Submit)
   -------------------------------------------------------------------------- */
.results-panel[hidden] {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.results-panel {
  max-width: 480px;
  width: 100%;
  margin-top: 14px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.results-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.results-box {
  background-color: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.results-heading-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Green Payout Highlight Bar */
.netto-highlight-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-emerald-light);
  border-left: 4px solid var(--color-emerald);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.netto-highlight-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-emerald);
  line-height: 1.5;
}

.netto-highlight-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-emerald);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Results Table Wrapper */
.results-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* Results Breakdown Table */
.results-data-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--color-card-border);
}

.results-data-table th,
.results-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-card-border);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.results-data-table thead th {
  background-color: #f8fafc;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  line-height: 1.5;
}

.results-data-table tbody th {
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: var(--color-text);
  line-height: 1.5;
}

.results-data-table tbody td {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.results-data-table .text-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.results-data-table .row-gross th,
.results-data-table .row-gross td {
  font-weight: 600;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--color-input-border);
}

.results-data-table .row-subtotal th,
.results-data-table .row-subtotal td {
  font-weight: 600;
  color: var(--color-text);
  background-color: #f8fafc;
  border-top: 1px dashed var(--color-input-border);
  border-bottom: 1px solid var(--color-input-border);
}

.results-data-table .row-netto th,
.results-data-table .row-netto td {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  background-color: var(--color-emerald-light);
  color: var(--color-emerald);
  border-top: 2px solid var(--color-emerald);
  border-bottom: 2px solid var(--color-emerald);
}

.results-disclaimer {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Informational Content Sections (Inside Left Column Layout)
   -------------------------------------------------------------------------- */
.content-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Fast Rendering Optimization: Skip layout & paint for offscreen sections */
.content-sections-wrap > section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

.content-article-box {
  background-color: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.article-title-orange {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-card-border);
  line-height: 1.4;
}

.article-body-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.article-body-text p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-body-text a {
  color: var(--color-emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.article-body-text a:hover {
  color: var(--color-emerald-hover);
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

/* FAQ Accordion Styling (Modern Native Accessible Details / Summary) */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

details.faq-item,
.faq-item {
  background-color: #f8fafc;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  margin-bottom: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

details.faq-item[open] {
  background-color: #ffffff;
  border-color: #f97316;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.06);
}

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

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

details.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: #f97316;
  margin-left: 12px;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

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

details.faq-item .faq-answer,
.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
}

/* Formula Callout Box (Visual Architecture matching Blueprint) */
.formula-callout-box {
  background: #f8fafc;
  border: 1px solid var(--color-card-border);
  border-left: 4px solid #f97316;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 18px 0 24px;
}

.formula-callout-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ea580c;
  margin-bottom: 8px;
}

.formula-callout-math {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.6;
  font-family: inherit;
}

.content-feature-icon {
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
  margin-right: 8px;
}

.terms-2col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.term-cell {
  background-color: #f8fafc;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 18px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.term-cell:hover {
  border-color: #cbd5e1;
  background-color: #ffffff;
}

.term-cell h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.term-cell p {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

.step-order-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.step-order-list li strong {
  color: var(--color-text);
  font-weight: 600;
}

.article-body-text ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.article-body-text ul li strong {
  color: var(--color-text);
  font-weight: 600;
}

.rechenbeispiel-box {
  background-color: #f8fafc;
  border: 1px solid var(--color-card-border);
  border-left: 4px solid var(--color-emerald);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-card);
  border-top: 1px solid var(--color-card-border);
  color: var(--color-text-muted);
  margin-top: auto;
  padding: 24px;
}

.footer-inner-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-legal-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--color-emerald);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .outer-container {
    width: 86%;
    min-width: 0;
    padding: 0 16px;
  }
  .main-layout-grid {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }
  .right-sidebar-column,
  .calc-info-col {
    width: 280px;
    min-width: 280px;
  }
}

/* ==========================================================================
   Mobile Devices & Tablets (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Prevent Horizontal Scrolling & Hidden Text */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  p, h1, h2, h3, h4, h5, h6, td, th, li, a, span, label, dt, dd {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  h1, .hero-heading {
    font-size: 22px !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }

  h2, .sidebar-title, .results-heading-title {
    font-size: 19px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  h3 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* 2. Stack the 70/30 Layout (Single Column) */
  .outer-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .main-layout-grid,
  .calc-tool-grid,
  .site-wrapper,
  .main-page-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px !important;
    margin-top: 14px !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .left-content-column,
  .calc-card-col,
  .left-main-column,
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    order: 1 !important;
    box-sizing: border-box !important;
  }

  .right-sidebar-column,
  .calc-info-col {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    order: 2 !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
  }

  .sidebar-card-clean {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 12px !important;
    box-sizing: border-box !important;
  }

  /* 3. Fix the Calculator Form & Inputs (Single-column stacked) */
  .calculator-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 16px !important;
    padding: 18px 14px !important;
    box-sizing: border-box !important;
  }

  .calc-card-header {
    margin-bottom: 14px !important;
    gap: 8px !important;
  }

  .calc-card-title {
    font-size: 20px !important;
  }

  .intro-paragraph {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
  }

  .form-row-modern {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative !important;
    gap: 6px !important;
    padding: 8px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid #f1f5f9;
  }

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

  .row-label-wrap {
    width: 100% !important;
    padding-right: 28px !important;
    box-sizing: border-box !important;
  }

  .row-label-wrap label,
  .row-label-wrap span {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    display: block !important;
    line-height: 1.35 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .row-icon-wrap {
    position: absolute !important;
    top: 8px !important;
    right: 0 !important;
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .row-control-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }

  .input-unit-box {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    box-sizing: border-box !important;
  }

  .input-unit-box .modern-input {
    width: 100% !important;
    height: 36px !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .input-unit-box .unit-affix {
    padding: 0 10px !important;
    font-size: 13px !important;
    min-width: 32px !important;
  }

  .modern-select {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    padding: 6px 28px 6px 10px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .radio-group-modern {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  .radio-option {
    font-size: 13.5px !important;
    gap: 6px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .subpanel-modern {
    padding: 8px 10px !important;
    margin: 6px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .subpanel-modern .form-row-modern {
    padding: 6px 0 !important;
  }

  .form-submit-row {
    padding-top: 16px !important;
    padding-bottom: 8px !important;
    width: 100% !important;
  }

  .btn-calculate-center,
  .btn-calculate-full {
    width: 100% !important;
    max-width: 100% !important;
    padding: 13px 20px !important;
    font-size: 16px !important;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
  }

  /* 4. Fix Tables & Results Panel */
  table {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .results-table-container,
  .table-responsive-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    margin: 12px 0 16px !important;
  }

  .results-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 14px !important;
    box-sizing: border-box !important;
  }

  .results-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
  }

  .results-heading-title {
    font-size: 18px !important;
    margin-bottom: 14px !important;
  }

  .netto-highlight-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 14px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .netto-highlight-label {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    width: 100% !important;
  }

  .netto-highlight-val {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    word-break: break-all !important;
  }

  .results-data-table {
    width: 100% !important;
    min-width: 290px !important;
    font-size: 13px !important;
    border-collapse: collapse !important;
    box-sizing: border-box !important;
  }

  .results-data-table th,
  .results-data-table td {
    padding: 8px 6px !important;
    font-size: 12.5px !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }

  .results-data-table thead th {
    font-size: 11px !important;
    padding: 8px 6px !important;
  }

  .results-data-table th:nth-child(1),
  .results-data-table td:nth-child(1) {
    width: 46% !important;
  }

  .results-data-table th:nth-child(2),
  .results-data-table td:nth-child(2) {
    width: 27% !important;
  }

  .results-data-table th:nth-child(3),
  .results-data-table td:nth-child(3) {
    width: 27% !important;
  }

  /* 5. Mobile Navigation & Dropdowns */
  .site-header {
    margin-top: 10px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .header-logo-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  .brand-logo-link {
    font-size: 20px !important;
  }

  .header-tagline-text {
    margin-left: 0 !important;
    margin-top: 2px !important;
    font-size: 12px !important;
  }

  .nav-bar-card {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overflow: visible !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
  }

  .nav-list {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 8px !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .nav-item-wrap,
  .nav-item,
  li.nav-item,
  li.has-dropdown,
  .has-dropdown {
    position: relative !important;
    flex: 0 0 auto !important;
  }

  .nav-pill-link {
    font-size: 13.5px !important;
    padding: 6px 10px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    border-radius: 16px !important;
  }

  /* Centered Floating Dropdown Menu: Perfectly centered under clicked menu item */
  .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    min-width: 220px !important;
    width: max-content !important;
    max-width: 90vw !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    padding: 6px 0 !important;
    margin-top: 4px !important;
  }

  /* Align ONLY Gehalt (item 1) and Studium (item 4) to open from the left towards the right */
  .nav-item.has-dropdown:nth-child(1) .dropdown-menu,
  .nav-item-wrap.has-dropdown:nth-child(1) .dropdown-menu,
  li.has-dropdown:nth-child(1) .dropdown-menu,
  .nav-item.has-dropdown:nth-child(4) .dropdown-menu,
  .nav-item-wrap.has-dropdown:nth-child(4) .dropdown-menu,
  li.has-dropdown:nth-child(4) .dropdown-menu {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }

  .dropdown-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .dropdown-menu a,
  .dropdown-menu li a {
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    padding: 6px 16px !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
  }

  .dropdown-menu a:hover,
  .dropdown-menu li a:hover {
    background: #f8fafc !important;
    color: #ea580c !important;
  }

  .content-container {
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .content-article-box,
  .seo-content-card,
  .info-content-card {
    padding: 14px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .author-trust-badge {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .seo-breadcrumb ol {
    gap: 4px !important;
    font-size: 12px !important;
  }

  .site-footer {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-links {
    gap: 10px !important;
    justify-content: center !important;
  }

  .footer-inner-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Small Mobile Devices (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .outer-container {
    padding: 0 10px !important;
  }

  .calculator-card {
    padding: 14px 10px !important;
  }

  .calc-card-title {
    font-size: 19px !important;
  }

  .results-panel {
    padding-top: 14px !important;
  }

  .results-box {
    padding: 14px 10px !important;
  }

  .results-heading-title {
    font-size: 17px !important;
    margin-bottom: 12px !important;
  }

  .netto-highlight-bar {
    padding: 12px 10px !important;
    gap: 6px !important;
  }

  .netto-highlight-label {
    font-size: 14px !important;
  }

  .netto-highlight-val {
    font-size: 1.55rem !important;
  }

  .results-data-table {
    font-size: 12.5px !important;
  }

  .results-data-table th,
  .results-data-table td {
    padding: 7px 4px !important;
    font-size: 12px !important;
  }

  .results-data-table thead th {
    font-size: 10.5px !important;
    padding: 7px 4px !important;
  }

  .nav-pill-link {
    font-size: 12.5px !important;
    padding: 5px 8px !important;
  }

  .dropdown-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    min-width: 200px !important;
    max-width: 90vw !important;
    width: max-content !important;
  }

  .nav-item.has-dropdown:nth-child(1) .dropdown-menu,
  .nav-item-wrap.has-dropdown:nth-child(1) .dropdown-menu,
  li.has-dropdown:nth-child(1) .dropdown-menu,
  .nav-item.has-dropdown:nth-child(4) .dropdown-menu,
  .nav-item-wrap.has-dropdown:nth-child(4) .dropdown-menu,
  li.has-dropdown:nth-child(4) .dropdown-menu {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }

  .dropdown-menu a,
  .dropdown-menu li a {
    padding: 6px 12px !important;
    font-size: 13px !important;
  }

  .btn-calculate-center,
  .btn-calculate-full {
    margin-bottom: 20px !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
  }
}

/* --------------------------------------------------------------------------
   Advanced SEO, E-E-A-T & Comparative Tables
   -------------------------------------------------------------------------- */
.seo-breadcrumb {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.seo-breadcrumb ol {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.seo-breadcrumb a {
  color: var(--color-emerald);
  text-decoration: none;
  font-weight: 500;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
}

.author-trust-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.author-trust-badge .badge-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-trust-badge .badge-dot-live {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.author-trust-badge .badge-right {
  font-weight: 500;
  color: #0f172a;
}

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 22px;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.seo-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  background: #ffffff;
}

.seo-data-table th,
.seo-data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-card-border);
}

.seo-data-table thead th {
  background-color: #f1f5f9;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.seo-data-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.seo-data-table tbody tr:hover {
  background-color: #f0f7e9;
}

.seo-data-table td.highlight-cell {
  font-weight: 600;
  color: var(--color-emerald);
}

.tag-pill-neu {
  display: inline-block;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.legal-source-box {
  background-color: #f8fafc;
  border-left: 3px solid var(--color-emerald);
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-source-box strong {
  color: var(--color-navy);
}

/* 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;
  }
}
