:root {
  --primary: #f58220;
  --primary-dark: #d96d10;
  --accent: #ffaa4d;
  --bg: #faf9f8;
  --bg-alt: #ffffff;
  --text-main: #3c3c3b;
  --text-muted: #5a5a59;
  --border-subtle: #e5e3e0;
  --shadow-soft: 0 22px 45px rgba(60, 60, 59, 0.15);
  --radius-lg: 18px;
  --radius-md: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.4s;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes resultFlash {
  0% { background-color: rgba(245, 130, 32, 0.25); }
  100% { background-color: transparent; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.anim-fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease-out) forwards;
}

.anim-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.anim-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim-fade-in {
    opacity: 1;
  }
  .anim-on-scroll {
    opacity: 1;
    transform: none;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Skip Link (Accessibility) */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 244, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.logo-text strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
}

.nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: #374151;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.nav a:hover {
  border-bottom-color: var(--primary);
}

.header-cta {
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(245, 130, 32, 0.35);
  transition: transform 0.2s var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(245, 130, 32, 0.4);
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, #4a4a49 0%, #3c3c3b 45%, #2a2a29 100%);
  color: #f9fafb;
  padding: 40px 0 36px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.22);
  background: rgba(15, 23, 42, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5e7eb;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: 2.1rem;
}

.hero-text p {
  margin: 0 0 16px;
  color: #e5e7eb;
  max-width: 520px;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 14px 35px rgba(245, 130, 32, 0.4);
  transition: transform 0.2s var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(245, 130, 32, 0.45);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.7);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.hero-visual {
  flex-shrink: 0;
}

.hero-mockup {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px 32px;
  min-width: 280px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  animation: float 4s ease-in-out infinite;
}

.mockup-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 1rem;
}

.mockup-label {
  color: #d1d5db;
  font-weight: 500;
}

.mockup-value {
  color: #f9fafb;
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.mockup-value.deduct {
  color: #fca5a5;
}

.mockup-divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  margin: 6px 0;
}

.mockup-line.result .mockup-label {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.mockup-value.netto {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
}

/* Sections */

.section {
  padding: 40px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.section-subtitle {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Rechner */

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 10px;
}

.card {
  background: #f9fafb;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
}

.card:hover {
  box-shadow: 0 24px 50px rgba(60, 60, 59, 0.18);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.mode-toggle {
  display: flex;
  flex-wrap: wrap;
  background: var(--border-subtle);
  border-radius: 12px;
  transition: box-shadow var(--dur) var(--ease-out);
  padding: 3px;
  margin-bottom: 14px;
  gap: 2px;
}

.mode-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-align: center;
}

.mode-btn.active {
  background: var(--bg-alt);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mode-btn:hover:not(.active) {
  color: var(--text-main);
}

.mode-btn:active {
  transform: scale(0.98);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 14px;
  margin-bottom: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.field span {
  color: var(--text-main);
}

.field small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

input[type="number"],
select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: #f9fafb;
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input[type="number"]:focus,
select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(245, 130, 32, 0.35);
  background-color: #ffffff;
}

/* Currency input wrapper */
.input-currency-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-currency-wrap input {
  padding-right: 32px;
}

.input-currency-symbol {
  position: absolute;
  right: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  pointer-events: none;
}

/* Breakdown bar */
.breakdown-wrap {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  margin-bottom: 14px;
}

.breakdown-wrap.visible {
  opacity: 1;
  max-height: 120px;
}

.breakdown-bar {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.bar-segment {
  height: 100%;
  width: 0%;
  flex: none;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

.bar-netto {
  background: #22c55e;
  border-radius: 8px 0 0 8px;
}

.bar-sozial {
  background: var(--primary, #f58220);
}

.bar-steuer {
  background: #ef4444;
  border-radius: 0 8px 8px 0;
}

.breakdown-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dot-netto  { background: #22c55e; }
.dot-sozial { background: var(--primary, #f58220); }
.dot-steuer { background: #ef4444; }

.legend-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.primary-button {
  margin-top: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(245, 130, 32, 0.4);
}

.primary-button:hover {
  filter: brightness(1.05);
}

.status-hint {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: rgba(245, 130, 32, 0.08);
  border: 1px solid rgba(245, 130, 32, 0.25);
  color: var(--text-main);
  font-size: 0.82rem;
  line-height: 1.5;
}

.status-hint em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legal-micro {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.status-hint.hidden {
  display: none;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  transition: background var(--dur) var(--ease-out);
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(245, 130, 32, 0.12),
    rgba(245, 130, 32, 0.03)
  );
  border: 1px solid rgba(245, 130, 32, 0.35);
}

.result-summary > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-summary span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.result-summary strong {
  font-size: 1.1rem;
}

.result-summary.is-updated {
  animation: resultFlash 0.6s var(--ease-out);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.result-grid > .result-group:last-child {
  grid-column: 1 / -1;
}

.result-group h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.li-total--stacked .ag-total-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.9em;
}

.li-total--stacked .ag-total-row {
  display: block;
  text-align: right;
}

.li-total--stacked .ag-total-values strong {
  font-variant-numeric: tabular-nums;
}

.result-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
}

.result-group li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 9px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
}


.result-group li:last-child {
  border-bottom: none;
}

.result-group span {
  color: var(--text-muted);
}

.result-group strong {
  font-variant-numeric: tabular-nums;
}

.result-group small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.result-group .li-total {
  background: rgba(245, 130, 32, 0.06);
  font-weight: 600;
}

.result-group li.hidden {
  display: none;
}

.ag-details {
  margin-top: 8px;
}

.ag-details summary {
  font-size: 0.82rem;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
}

.ag-details summary:hover {
  color: var(--primary);
}

.ag-details ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border-radius: var(--radius-md);
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
}

.ag-details li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 9px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ag-details li:last-child {
  border-bottom: none;
}

.ag-details span {
  color: var(--text-muted);
}

.ag-details strong {
  font-variant-numeric: tabular-nums;
}

.ag-divider {
  border: none;
  border-top: 1px dashed var(--border-subtle);
  margin: 10px 0 6px;
}

.ag-sub-heading {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 4px;
}

.ag-umlage-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}


.notes {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.notes li + li {
  margin-top: 3px;
}

/* FAQ */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.faq-item[open] {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--primary);
}

.faq-item p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-legal {
  margin: 16px auto 0;
  max-width: 780px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Kontakt */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: flex-start;
}

.contact-layout p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

.contact-phone {
  margin-top: 10px !important;
}

.contact-phone a {
  color: var(--primary-dark);
  font-weight: 600;
}

.contact-form {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 20px 18px 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 14px;
  margin-bottom: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.form-field > span:first-child {
  color: var(--text-main);
  font-weight: 500;
}

.form-required {
  color: #ef4444;
  margin-left: 2px;
}

.form-error {
  color: #ef4444;
  font-size: 0.76rem;
  min-height: 14px;
  display: block;
}

input.input-error,
select.input-error,
textarea.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3) !important;
}

.form-footer {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 6px;
}

.form-note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  max-width: 380px;
}

.form-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: none;
}

.form-status:not(:empty) {
  display: block;
}

.form-status--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #15803d;
}

.form-status--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}

/* DSGVO-Hinweis am Formular */

.dsgvo-notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dsgvo-notice p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.dsgvo-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-main);
  line-height: 1.4;
}

.dsgvo-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Modal */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 101;
  background: #fff;
  border-radius: var(--radius-lg);
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #f3f4f6;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 102;
}

.modal-close:hover {
  background: #e5e7eb;
}

.modal-body {
  overflow-y: auto;
  padding: 20px 22px 24px;
}

.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0;
}

.modal-tab {
  padding: 8px 14px;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

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

.modal-content h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.modal-content h3 {
  margin: 16px 0 4px;
  font-size: 1rem;
}

.modal-content p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal-content a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-update {
  color: var(--text-muted);
  font-size: 0.8rem !important;
  margin-bottom: 12px !important;
}

.modal-content.hidden {
  display: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #f9fafb;
  padding: 10px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.footer-links .link-btn {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

/* ===== Large Desktop (>1200px) ===== */
@media (min-width: 1201px) {
  .container {
    max-width: 1120px;
  }
}

/* ===== Tablet Landscape / Small Desktop (<=1024px) ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  .calc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-box {
    width: min(680px, calc(100vw - 32px));
  }
}

/* ===== Tablet Portrait (<=768px) ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 6px;
    font-size: 0.82rem;
  }

  .header-cta {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text h1 {
    font-size: 1.55rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-mockup {
    min-width: auto;
    width: 100%;
  }

  .section {
    padding: 28px 0;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .breakdown-bar {
    height: 26px;
  }

  .result-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .card {
    padding: 14px 14px 16px;
  }

  .faq-item summary {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .faq-item p {
    padding: 0 14px 12px;
    font-size: 0.85rem;
  }

  .contact-form {
    padding: 16px 14px 14px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer-links {
    justify-content: center;
  }

  .modal-body {
    padding: 16px 16px 20px;
  }

  .modal-content h2 {
    font-size: 1.2rem;
  }
}

/* ===== Mobile (<=480px) ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-text strong {
    font-size: 0.82rem;
  }

  .logo-text {
    font-size: 0.65rem;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 20px 0 18px;
  }

  .hero-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-mockup {
    padding: 18px 16px;
  }

  .mockup-line {
    font-size: 0.88rem;
  }

  .mockup-value {
    font-size: 0.95rem;
  }

  .mockup-value.netto {
    font-size: 1.15rem;
  }

  .section {
    padding: 22px 0;
  }

  .section h2 {
    font-size: 1.15rem;
  }

  .section-subtitle {
    font-size: 0.82rem;
  }

  .card {
    padding: 12px 12px 14px;
  }

  .card h3 {
    font-size: 0.98rem;
  }

  .mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
    gap: 2px;
  }

  .mode-btn {
    padding: 8px 6px;
    font-size: 0.76rem;
    border-radius: 8px;
  }

  .field {
    font-size: 0.82rem;
  }

  input[type="number"],
  select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px;
  }

  .primary-button {
    width: 100%;
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .breakdown-bar {
    height: 22px;
    border-radius: 6px;
  }

  .bar-netto  { border-radius: 6px 0 0 6px; }
  .bar-steuer { border-radius: 0 6px 6px 0; }

  .breakdown-legend {
    gap: 4px 12px;
  }

  .legend-label {
    font-size: 0.72rem;
  }

  .legend-dot {
    width: 8px;
    height: 8px;
  }

  .result-summary {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px 10px;
  }

  .result-summary span {
    font-size: 0.75rem;
  }

  .result-summary strong {
    font-size: 0.95rem;
  }

  .result-group li {
    padding: 6px 8px;
    font-size: 0.8rem;
    gap: 2px;
  }

  .result-group li strong {
    font-size: 0.8rem;
  }

  .result-group h4 {
    font-size: 0.88rem;
  }

  .notes {
    font-size: 0.75rem;
    padding-left: 14px;
  }

  .faq-item summary {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .faq-item p {
    padding: 0 12px 10px;
    font-size: 0.8rem;
  }

  .contact-layout h2 {
    font-size: 1.15rem;
  }

  .contact-form {
    padding: 14px 12px 12px;
  }

  .dsgvo-notice {
    padding: 10px 10px;
    font-size: 0.76rem;
  }

  .dsgvo-checkbox {
    font-size: 0.78rem;
  }

  .form-footer {
    flex-direction: column;
    gap: 8px;
  }

  .form-note {
    max-width: 100%;
  }

  .modal-box {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  .modal-body {
    padding: 14px 12px 16px;
  }

  .modal-tab {
    font-size: 0.82rem;
    padding: 6px 10px;
  }

  .modal-content h2 {
    font-size: 1.1rem;
  }

  .modal-content h3 {
    font-size: 0.92rem;
  }

  .modal-content p {
    font-size: 0.82rem;
  }

  .site-footer {
    font-size: 0.72rem;
    padding: 8px 0;
  }

  .footer-links .link-btn {
    font-size: 0.72rem;
  }
}

/* ===== Very small screens (<=360px) ===== */
@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .hero-text h1 {
    font-size: 1.15rem;
  }

  .card {
    padding: 10px 10px 12px;
  }

  .mode-btn {
    padding: 7px 4px;
    font-size: 0.7rem;
  }

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

/* Ratgeber */
.ratgeber {
  max-width: 820px;
}

.ratgeber-article h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
  color: var(--text-main);
}

.ratgeber-article h3:first-child {
  margin-top: 0;
}

.ratgeber-article p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.ratgeber-article a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ratgeber-article a:hover {
  color: var(--primary);
}

.ratgeber-table-wrap {
  overflow-x: auto;
  margin: 12px 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.ratgeber-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--bg-alt);
}

.ratgeber-table th {
  background: #f3f4f6;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.ratgeber-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

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

.ratgeber-table td strong {
  color: var(--text-main);
}

.ratgeber-note {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

.ratgeber-list {
  margin: 8px 0 16px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.ratgeber-list li {
  margin-bottom: 6px;
}

.ratgeber-list li strong {
  color: var(--text-main);
}

@media (max-width: 480px) {
  .ratgeber-article h3 {
    font-size: 1.02rem;
  }
  .ratgeber-article p {
    font-size: 0.85rem;
  }
  .ratgeber-table {
    font-size: 0.78rem;
  }
  .ratgeber-table th,
  .ratgeber-table td {
    padding: 6px 8px;
  }
}

/* Subpage shared styles */
.subpage-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.subpage-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}

.subpage-nav a:hover, .subpage-nav a.active {
  border-color: var(--primary);
  background: rgba(245,130,32,.06);
  color: var(--primary-dark);
}

/* Affiliate / Steuersoftware */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.affiliate-card {
  display: block;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.affiliate-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(245, 130, 32, 0.1);
}

.affiliate-card strong {
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.affiliate-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 6px 0 10px;
}

.affiliate-cta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
}

.affiliate-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* AdSense Ad Containers */
.ad-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  overflow: hidden;
}

.ad-container ins.adsbygoogle {
  display: block;
}

.ad-container--top {
  padding-top: 16px;
  padding-bottom: 4px;
}

.ad-container--mid {
  padding-top: 8px;
  padding-bottom: 8px;
}

.ad-container--bottom {
  padding-top: 8px;
  padding-bottom: 16px;
}

@media (max-width: 480px) {
  .ad-container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* OG Webforge Banner */
.og-banner-section {
  padding: 24px 0;
}

.og-banner {
  display: block;
  max-width: 780px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.og-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
}

.og-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.og-banner-text {
  max-width: 780px;
  margin: 16px auto 0;
  text-align: center;
}

.og-banner-text p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.og-banner-text p strong {
  color: var(--text-main);
  font-size: 1rem;
}

.og-banner-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3c3c3b, #2a2a29);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.og-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .og-banner-section {
    padding: 16px 0;
  }

  .og-banner {
    border-radius: 12px;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  color: #e2e8f0;
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  min-width: 260px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-inner .link-btn {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn.btn-ghost {
  background: transparent;
  border: 1px solid #64748b;
  color: #cbd5e1;
}

.cookie-btn.btn-ghost:hover {
  border-color: #94a3b8;
  color: #fff;
}

