/* ==========================================================================
   DeutschlandBerechnet.de - Premium Design System (Exakter cvwerk.com Stil)
   Modern, extrem detailreich, mikro-interaktiv, 100% solide (kein Fading/Transparenz)
   ========================================================================== */

:root {
  --color-brand-green: #10b981;
  --color-brand-green-dark: #059669;
  --color-brand-green-light: #d1fae5;
  
  --color-brand-blue: #0284c7;
  --color-brand-blue-dark: #0369a1;
  
  --color-brand-red: #ef4444;
  --color-brand-red-dark: #b91c1c;
  
  --color-brand-orange: #f97316;
  --color-brand-orange-dark: #c2410c;

  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50:  #f8fafc;
  --color-white:     #ffffff;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 12px 20px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
}

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

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: var(--color-slate-800);
  line-height: 1.5;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   HEADER (cvwerk.com Toolbar Style)
   ========================================================================== */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.site-header .container {
  max-width: 1380px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon-box {
  background-color: var(--color-brand-green-dark);
  color: var(--color-white);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.5rem;
  color: var(--color-slate-700);
  cursor: pointer;
}

/* CVwerk Toolbar Menu mit Mini-Icons */
.cvwerk-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: visible;
}

.cvwerk-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-slate-700);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all 0.15s;
}

.nav-item:hover {
  background-color: var(--color-slate-100);
  color: var(--color-slate-900);
}

.nav-item.active {
  background-color: var(--color-slate-100);
  color: var(--color-brand-blue-dark);
}

.nav-item.highlight-green {
  color: var(--color-brand-green-dark);
  font-weight: 700;
}

.nav-item.highlight-green:hover {
  background-color: var(--color-brand-green-light);
}

.nav-item.highlight-red {
  color: var(--color-brand-red-dark);
  font-weight: 700;
}

.nav-item.highlight-red:hover {
  background-color: #fee2e2;
}

/* Navigation Dropdown: Rechner Menü (.nav-more) Desktop */
.nav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-more summary.nav-item {
  list-style: none;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.nav-more summary::-webkit-details-marker,
.nav-more summary::marker {
  display: none !important;
}

.nav-more .nav-more-caret {
  font-size: 0.65rem;
  margin-left: 0.2rem;
  display: inline-block;
  transition: transform 0.2s ease;
  color: var(--color-slate-500);
}

.nav-more[open] > summary.nav-item {
  background-color: var(--color-slate-100);
  color: var(--color-brand-green-dark);
}

.nav-more[open] .nav-more-caret {
  transform: rotate(180deg);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: 320px;
  max-width: 90vw;
  max-height: calc(85vh - 70px);
  overflow-y: auto;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.2), 0 8px 10px -6px rgba(15, 23, 42, 0.1) !important;
  padding: 0.65rem 0.45rem !important;
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-sizing: border-box;
}

.nav-more-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b !important;
  text-decoration: none;
  border-radius: 8px;
  background: #ffffff !important;
  transition: background-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.nav-more-menu a:hover,
.nav-more-menu a.active {
  background: #f1f5f9 !important;
  color: #047857 !important;
}

.nav-cat-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b !important;
  padding: 0.45rem 0.75rem 0.15rem 0.75rem;
  background: transparent !important;
}

.nav-more-divider {
  height: 1px;
  background: #e2e8f0 !important;
  margin: 0.35rem 0.5rem;
  border: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-slate-700);
  background: var(--color-slate-100);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
}

/* ==========================================================================
   HERO MIT DOTTED GRID BACKGROUND (cvwerk.com)
   ========================================================================== */
.cvwerk-hero {
  background-color: #ffffff;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--color-slate-200);
  padding: 3rem 0 3.5rem 0;
  text-align: center;
  position: relative;
}

.hero-ad-slot {
  max-width: 728px;
  margin: 0 auto 2rem auto;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-subtle);
}

.hero-ad-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.hero-main-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-slate-900);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead-text {
  font-size: 1.15rem;
  color: var(--color-slate-600);
  max-width: 780px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.hero-inline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.95em;
}

/* cvwerk Feature Badges (Pills mit Icons) */
.cvwerk-pills-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.cvwerk-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-slate-800);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cvwerk-pill-icon {
  font-size: 1rem;
}

.cvwerk-pill-icon.green {
  color: var(--color-brand-green-dark);
}

/* cvwerk Bunte Quick-Action Buttons */
.cvwerk-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
}

.action-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.action-card-btn.orange { background-color: #c2410c; }
.action-card-btn.orange:hover { background-color: #9a3412; }

.action-card-btn.green { background-color: #059669; }
.action-card-btn.green:hover { background-color: #047857; }

.action-card-btn.blue { background-color: #0284c7; }
.action-card-btn.blue:hover { background-color: #0369a1; }

.action-card-btn.purple { background-color: #7c3aed; }
.action-card-btn.purple:hover { background-color: #6d28d9; }

.action-card-btn.red { background-color: #b91c1c; }
.action-card-btn.red:hover { background-color: #991b1b; }

/* ==========================================================================
   RECHNER KATALOG KARTEN (cvwerk Vorlagen-Galerie Stil)
   ========================================================================== */
.rechner-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.tool-card {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-slate-300);
}

.tool-card-topbar {
  height: 6px;
  width: 100%;
}

.tool-card-topbar.green { background-color: #059669; }
.tool-card-topbar.blue { background-color: #0284c7; }
.tool-card-topbar.orange { background-color: #f97316; }
.tool-card-topbar.purple { background-color: #7c3aed; }
.tool-card-topbar.red { background-color: #ef4444; }

.tool-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tool-card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  max-width: 100%;
}

.category-tag.green { background: #d1fae5; color: #047857; }
.category-tag.blue { background: #e0f2fe; color: #0369a1; }
.category-tag.orange { background: #ffedd5; color: #c2410c; }
.category-tag.purple { background: #ede9fe; color: #6d28d9; }
.category-tag.red { background: #fee2e2; color: #b91c1c; }

.legal-badge {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--color-slate-600);
  background: var(--color-slate-100);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-slate-300);
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

.tool-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.tool-card-desc {
  font-size: 0.925rem;
  color: var(--color-slate-600);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.tool-card-features {
  list-style: none;
  margin-bottom: 1.75rem;
  margin-top: auto;
  border-top: 1px solid var(--color-slate-100);
  padding-top: 1rem;
}

.tool-card-features li {
  font-size: 0.85rem;
  color: var(--color-slate-700);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.tool-card-features li svg {
  color: var(--color-brand-green-dark);
  flex-shrink: 0;
}

.tool-card-cta {
  background-color: var(--color-slate-900);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s;
}

.tool-card-cta:hover {
  background-color: var(--color-brand-green-dark);
}

/* ==========================================================================
   RECHNER PAGE LAYOUT (Eingabe Links, Live Result Rechts)
   ========================================================================== */
.rechner-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 2.25rem;
  margin: 2.5rem 0;
  align-items: start;
}

.card-solid {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.card-header {
  border-bottom: 1px solid var(--color-slate-200);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-slate-900);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--color-slate-500);
  margin-top: 0.25rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 0.45rem;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--color-slate-500);
  margin-top: 0.35rem;
}

.input-solid, .select-solid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  font-size: 1.05rem;
  color: var(--color-slate-900);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  transition: all 0.15s;
}

.input-solid:focus, .select-solid:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.input-group {
  display: flex;
  position: relative;
}

.input-group .input-solid {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-suffix {
  display: flex;
  align-items: center;
  padding: 0 1.15rem;
  background-color: var(--color-slate-100);
  border: 1.5px solid var(--color-slate-300);
  border-left: none;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  color: var(--color-slate-700);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Radio Pill Selector */
.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-option {
  position: relative;
}

.pill-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-label {
  display: inline-block;
  padding: 0.55rem 1rem;
  background-color: var(--color-slate-100);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-slate-700);
  cursor: pointer;
  transition: all 0.15s;
}

.pill-option input[type="radio"]:checked + .pill-label {
  background-color: var(--color-slate-900);
  color: var(--color-white);
  border-color: var(--color-slate-900);
}

/* Sticky Result Box */
.result-box {
  background-color: var(--color-white);
  border: 2px solid var(--color-brand-green-dark);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-card-hover);
  position: sticky;
  top: 5.5rem;
}

.result-badge {
  display: inline-block;
  background-color: #d1fae5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.result-main-value {
  font-size: 2.85rem;
  font-weight: 900;
  color: var(--color-slate-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.result-sub-label {
  font-size: 0.925rem;
  color: var(--color-slate-500);
  margin-bottom: 1.75rem;
}

.result-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
}

.result-table tr {
  border-bottom: 1px solid var(--color-slate-100);
}

.result-table td {
  padding: 0.75rem 0.25rem;
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.result-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--color-slate-900);
  word-break: break-word;
  overflow-wrap: break-word;
}

.btn-cta {
  background-color: var(--color-brand-green-dark);
  color: var(--color-white) !important;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(5, 150, 105, 0.2);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.btn-cta:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-slate-100);
  color: var(--color-slate-800);
  border: 1px solid var(--color-slate-300);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background-color: var(--color-slate-200);
}

/* ==========================================================================
   EDITORIAL SECTION (AdSense E-E-A-T & Ratgeber)
   ========================================================================== */
.article-section {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-subtle);
}

.article-section h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-slate-100);
}

.article-section h2:first-child { margin-top: 0; }

.article-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-section p {
  margin-bottom: 1.25rem;
  color: var(--color-slate-700);
  line-height: 1.75;
  font-size: 1.025rem;
}

.article-section ul, .article-section ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--color-slate-700);
  line-height: 1.75;
}

.article-section li { margin-bottom: 0.5rem; }

.example-box {
  background-color: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
}

.example-box h4 {
  color: #166534;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.callout-box {
  background-color: var(--color-slate-100);
  border-left: 4px solid var(--color-brand-blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
}

.callout-box.warning {
  border-left-color: #f59e0b;
  background-color: #fffbeb;
}

.callout-title {
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background-color: var(--color-white);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--color-white);
  padding: 1.15rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-slate-800);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover { background-color: var(--color-slate-50); }

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--color-slate-600);
  line-height: 1.7;
}

/* ==========================================================================
   FOOTER (Exakter cvwerk.com 4-Spalten Stil)
   ========================================================================== */
.site-footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 4.5rem 0 2.5rem 0;
  margin-top: auto;
  border-top: 1px solid #1f2937;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 1040px) {
  .header-inner {
    height: 60px !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .brand-logo {
    order: unset !important;
    font-size: 1.15rem;
    gap: 0.5rem;
  }
  .brand-icon-box {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
    flex-shrink: 0;
  }
  .header-right {
    order: unset !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  .header-right .lang-badge,
  .header-right .btn-cta {
    display: none !important;
  }
  .mobile-toggle {
    display: inline-flex !important;
  }

  .cvwerk-nav { display: none; }

  body.nav-open .cvwerk-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-card-hover);
  }

  body.nav-open .cvwerk-nav .nav-item { justify-content: flex-start; padding: 0.6rem 0.7rem; font-size: 0.95rem; }
  body.nav-open .cvwerk-nav .nav-badge { display: inline-block; }
  body.nav-open .cvwerk-nav .nav-more { position: static; width: 100%; display: block; }
  body.nav-open .cvwerk-nav .nav-more summary.nav-item { width: 100%; justify-content: space-between; }
  body.nav-open .cvwerk-nav .nav-more-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding: 0.35rem 0.5rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    border-radius: var(--radius-md) !important;
    margin-top: 0.25rem !important;
  }
  body.nav-open .cvwerk-nav .nav-more-menu a {
    background: transparent !important;
    padding: 0.45rem 0.65rem !important;
  }
  body.nav-open .cvwerk-nav .nav-more-menu a:hover {
    background: #e2e8f0 !important;
  }

  .rechner-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem !important;
    margin: 1.75rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .result-box {
    position: static !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    scroll-margin-top: 80px;
  }
  .card-solid {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    scroll-margin-top: 80px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-main-title { font-size: 1.85rem !important; }
  .cvwerk-actions-grid { grid-template-columns: 1fr; }
  h1 {
    font-size: 1.65rem !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .card-solid {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .result-box {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .article-section {
    padding: 1.5rem 1rem !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 2rem !important;
  }
  .article-section h2 {
    font-size: 1.3rem !important;
    word-break: break-word !important;
  }
  .article-section h3 {
    font-size: 1.1rem !important;
    word-break: break-word !important;
  }

  /* 2- und 3-Spalten-Formulare mobil sauber einspaltig */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1.4fr 1fr"],
  div[style*="grid-template-columns: 1fr 1.6fr"],
  div[style*="grid-template-columns: 1fr 1.3fr"],
  div[style*="grid-template-columns: repeat(3, 1fr)"]:not(.pill-selector),
  .form-row-2col,
  .form-row-3col {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  /* Rechner-Katalog mobil sauber einspaltig */
  .rechner-card-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .tool-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Steuerklasse Mobil: 2 Zeilen à 3 Spalten */
  .pill-selector[style*="repeat(6, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
  }

  .pill-label {
    padding: 0.55rem 0.35rem !important;
    font-size: 0.88rem !important;
  }

  .result-main-value {
    font-size: 2.1rem !important;
  }

  .result-table td {
    padding: 0.55rem 0.25rem !important;
    font-size: 0.88rem !important;
  }
  .result-table td:last-child {
    font-size: 0.92rem !important;
  }

  h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }
  .hero-tag {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.5rem !important;
  }
}

/* Mobiler schwebender Schnell-Ergebnisbalken */
.mobile-result-bar {
  display: none;
}

@media (max-width: 992px) {
  .mobile-result-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #0f172a;
    color: #ffffff;
    border-top: 2px solid var(--color-brand-green);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
    padding: 0.65rem 1rem;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .mobile-result-bar.hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  .mobile-result-bar-info {
    display: flex;
    flex-direction: column;
  }
  .mobile-result-bar-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
  }
  .mobile-result-bar-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: #34d399;
    line-height: 1.1;
  }
  .mobile-result-bar-btn {
    background: var(--color-brand-green-dark);
    color: #ffffff;
    font-size: 0.825rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
}
