/* Visual enhancements only — does not restyle header / footer / pricing chrome */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Trust logo marquee —— */
.zf-logo-marquee {
  position: relative;
  z-index: 1;
  margin: 1.5rem auto 2.75rem;
  max-width: 72rem;
  padding: 1.5rem 0 1.25rem;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

@media (max-width: 767px) {
  .zf-logo-marquee {
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 14px;
  }
}

.zf-logo-marquee-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.zf-logo-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2.75rem;
  padding: 0.25rem 1.5rem;
  animation: zf-logo-scroll 40s linear infinite;
}

@keyframes zf-logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.zf-logo-marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 3rem;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.zf-logo-marquee-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.zf-logo-marquee-item img,
.zf-logo-marquee-item svg {
  height: 2.35rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.zf-logo-marquee-item--seal {
  height: 4.25rem;
}

.zf-logo-marquee-item--seal img {
  height: 4rem;
  width: auto;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .zf-logo-marquee-item img,
  .zf-logo-marquee-item svg {
    height: 2.75rem;
  }
  .zf-logo-marquee-item--seal {
    height: 4.75rem;
  }
  .zf-logo-marquee-item--seal img {
    height: 4.5rem;
  }
}

.zf-logo-marquee-captions {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 1.25rem 0;
  text-align: center;
}

.zf-logo-marquee-caption {
  margin: 0;
  color: #4b5568;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* —— Norman-style strike stats —— */
.zf-strike-stats {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  color: #fff;
  text-align: center;
}

.zf-strike-stats-lead {
  max-width: 42rem;
  margin: 2.5rem auto 2.75rem;
  padding: 0.5rem 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.08rem;
  line-height: 1.65;
}

.zf-strike-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 800px) {
  .zf-strike-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.zf-strike-stats-value {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: line-through;
  text-decoration-thickness: 0.08em;
  text-decoration-color: rgba(196, 181, 253, 0.85);
}

.zf-strike-stats-text {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* —— Resonance diagonal marquees (rotate on wrapper, scroll on track) —— */
.zf-benefit-marquees {
  position: relative;
  z-index: 2;
  /* Extra vertical room so rotated bands are not clipped by overflow:hidden parents */
  overflow: hidden;
  padding: 5.5rem 0 6.5rem;
  margin: 1.5rem 0 0;
  /* Soft edge fade — less abrupt cut at left/right */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.zf-mq {
  width: 100%;
  overflow: visible;
}

.zf-mq + .zf-mq {
  margin-top: 2.25rem;
}

.zf-mq-rotate {
  width: 140%;
  margin-left: -20%;
  will-change: transform;
}

.zf-mq-rotate--left {
  transform: rotate(-3deg);
  background: #7c3aed;
  color: #fff;
  padding: 0.85rem 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.zf-mq-rotate--right {
  transform: rotate(3deg);
}

.zf-mq-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
}

.zf-mq-track--left {
  animation: zf-scroll-loop 36s linear infinite;
  font-size: clamp(1.35rem, 4.2vw, 3.25rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.zf-mq-track--left > span {
  display: inline-block;
  padding-right: 0.75em;
  white-space: nowrap;
}

.zf-mq-track--left > span::after {
  content: "·";
  margin-left: 0.75em;
  opacity: 0.45;
  font-weight: 400;
}

.zf-mq-track--right {
  /* Same seamless loop as top strip: 0 → -50% with content duplicated exactly 2x */
  animation: zf-scroll-loop 32s linear infinite;
  gap: 0.65rem;
  padding: 0.2rem 0;
}

.zf-mq-track--right > span {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.85em;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #0b132e;
  color: #fff;
  font-size: clamp(0.9rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes zf-scroll-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— FAQ / security — same dark glass language as landing —— */
.zf-curve-band {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 0 3.5rem;
  background: transparent;
  color: #fff;
}

.zf-curve-band::before {
  display: none;
}

.zf-curve-band .erechnung-landing-security {
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.75rem 1.35rem;
  border-radius: 18px;
  border: 0;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.zf-curve-band .erechnung-landing-security h2 {
  margin: 0;
  color: #010101;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.zf-curve-band .erechnung-landing-security p {
  margin: 0.55rem 0 0;
  color: #4b5568;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 46rem;
}

/* FAQ = same glass shell as other landing blocks */
.zf-curve-band .erechnung-landing-info.zf-accordion {
  margin: 0;
  padding: 1.75rem 1.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  max-width: none;
  box-shadow: none;
}

.zf-curve-band .erechnung-landing-info.zf-accordion > h2 {
  text-align: left;
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.zf-curve-band .erechnung-landing-blocks {
  margin-top: 0.25rem;
  gap: 0;
}

.zf-curve-band .erechnung-landing-block.zf-acc {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.zf-curve-band .erechnung-landing-block.zf-acc:last-child {
  border-bottom: 0;
}

.zf-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0.1rem;
  border: 0;
  background: transparent;
  color: #f1f5f9;
  font: inherit;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.zf-acc-trigger:hover {
  color: #c4b5fd;
}

.zf-acc.is-open .zf-acc-trigger {
  color: #ddd6fe;
}

.zf-acc-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  position: relative;
  opacity: 0.85;
}

.zf-acc-icon::before,
.zf-acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #c4b5fd;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.zf-acc-icon::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.zf-acc-icon::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.zf-acc.is-open .zf-acc-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.zf-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.zf-acc.is-open .zf-acc-panel {
  grid-template-rows: 1fr;
}

.zf-acc-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

.zf-acc.is-open .zf-acc-panel-inner {
  padding: 0 0.1rem 1.2rem;
}

.zf-curve-band .erechnung-landing-prose,
.zf-curve-band .erechnung-landing-list,
.zf-curve-band .erechnung-landing-note,
.zf-curve-band .erechnung-landing-table td,
.zf-curve-band .erechnung-landing-timeline-label,
.zf-curve-band .erechnung-landing-list li {
  color: #cbd5e1;
}

.zf-curve-band .erechnung-landing-prose[style*="color:#e2e8f0"],
.zf-curve-band .erechnung-landing-prose[style*="color: #e2e8f0"] {
  color: #e2e8f0 !important;
}

.zf-curve-band .erechnung-landing-table th,
.zf-curve-band .erechnung-landing-period,
.zf-curve-band .erechnung-landing-block h3,
.zf-curve-band .erechnung-landing-format-card h4 {
  color: #fff;
}

.zf-curve-band .erechnung-landing-callout {
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-left: 3px solid rgba(251, 191, 36, 0.65);
  background: rgba(245, 158, 11, 0.1);
  color: rgba(255, 251, 235, 0.95);
  border-radius: 0.5rem;
}

.zf-curve-band .erechnung-landing-table {
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0.75rem;
  overflow: hidden;
}

.zf-curve-band .erechnung-landing-table th,
.zf-curve-band .erechnung-landing-table td {
  border-color: rgba(255, 255, 255, 0.1);
}

.zf-curve-band .erechnung-landing-timeline li {
  border-left: 2px solid rgba(196, 181, 253, 0.35);
  padding-left: 1rem;
}

.zf-curve-band .erechnung-landing-format-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
}

.zf-curve-band .erechnung-landing-format-card.brand {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.1);
}

.zf-curve-band .erechnung-landing-format-card.brand h4 {
  color: #7dd3fc;
}

/* —— Scroll reveal —— */
.zf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.zf-reveal.is-in {
  opacity: 1;
  transform: none;
}

.zf-reveal-rotate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.zf-reveal-rotate.is-in {
  opacity: 1;
  transform: none;
}

.erechnung-landing-hero h1,
.erechnung-landing-hero-lead,
.erechnung-landing-cta-row,
.erechnung-landing-badge {
  animation: zf-hero-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.erechnung-landing-hero-lead { animation-delay: 0.12s; }
.erechnung-landing-cta-row { animation-delay: 0.22s; }

@keyframes zf-hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zf-logo-marquee-track,
  .zf-mq-track--left,
  .zf-mq-track--right,
  .erechnung-landing-hero h1,
  .erechnung-landing-hero-lead,
  .erechnung-landing-cta-row,
  .erechnung-landing-badge {
    animation: none !important;
  }
  .zf-reveal,
  .zf-reveal-rotate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Steuerrechner — light Norman-style layout */
.zf-steuer-page--light {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
  font-family: Inter, system-ui, sans-serif;
  overflow-x: clip;
  max-width: 100%;
}

.zf-steuer-main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  overflow-x: clip;
  box-sizing: border-box;
}

.zf-steuer-page--light .zf-logo-marquee {
  box-shadow: none;
  border: 1px solid #e5e7eb;
  margin: 2rem auto 2.5rem;
}

.zf-steuer-hero {
  text-align: center;
  padding: 2.5rem 0 0.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.zf-steuer-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #0f172a;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.zf-steuer-hero-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 1.5rem;
}

.zf-steuer-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.zf-steuer-hero-cta:hover {
  background: #1e293b;
  color: #fff;
}

.zf-steuer-section {
  margin-top: 3.5rem;
}

.zf-steuer-section--center {
  text-align: center;
}

.zf-steuer-section--center > h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.25;
  color: #0f172a;
}

.zf-steuer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.zf-steuer-section--calc > h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.25;
  color: #0f172a;
}

.zf-steuer-intro {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.zf-steuer-intro--narrow {
  margin-left: auto;
  margin-right: auto;
}

.zf-steuer-calc-shell {
  margin-top: 1.5rem;
  min-width: 0;
  max-width: 100%;
}

.zf-steuer-calc-grid {
  display: grid;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: visible;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1125px) {
  .zf-steuer-calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.zf-steuer-panel {
  padding: 1.25rem 1.35rem 1.5rem;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.zf-steuer-panel--in {
  border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 1125px) {
  .zf-steuer-panel--in {
    border-bottom: none;
    border-right: 1px solid #e2e8f0;
  }
}

.zf-steuer-panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #0f172a;
}

.zf-steuer-field-block {
  margin-bottom: 1.35rem;
}

.zf-steuer-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.zf-steuer-segment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  max-width: 100%;
}

.zf-steuer-segment-btn {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.zf-steuer-segment-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.zf-steuer-segment-btn span {
  display: block;
  text-align: center;
  padding: 0.65rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.zf-steuer-segment-btn:last-child span {
  border-right: none;
}

.zf-steuer-segment-btn:has(input:checked) span {
  background: #f8fafc;
  box-shadow: inset 0 0 0 2px #0f172a;
  font-weight: 600;
}

.zf-steuer-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
}

.zf-steuer-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.zf-steuer-slider-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.zf-steuer-range {
  width: 100%;
  accent-color: #0f172a;
  height: 4px;
}

.zf-steuer-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #0f172a;
  background: #fff;
}

.zf-steuer-text {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #0f172a;
  background: #fff;
}

.zf-steuer-combobox {
  position: relative;
}

.zf-steuer-combobox-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.zf-steuer-combobox-option {
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #0f172a;
  cursor: pointer;
}

.zf-steuer-combobox-option:hover,
.zf-steuer-combobox-option:focus {
  background: #f1f5f9;
}

.zf-steuer-trader-fields {
  margin-bottom: 1.35rem;
  padding: 1rem 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zf-steuer-trader-fields[hidden],
[data-steuer-trader-hint][hidden],
[data-steuer-freelancer-hint][hidden],
[data-steuer-trade-gross-row][hidden],
[data-steuer-trade-credit-row][hidden] {
  display: none !important;
}

.zf-steuer-trader-fields .zf-steuer-field-block--flush {
  margin-bottom: 0;
}

.zf-steuer-hebesatz-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.zf-steuer-label--inline {
  margin-bottom: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.zf-steuer-text--hebesatz {
  width: 6.25rem;
  max-width: 100%;
  flex: 0 0 auto;
}

.zf-steuer-field-block--flush {
  margin-bottom: 0;
}

.zf-steuer-children {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.zf-steuer-child-btn {
  margin: 0;
  cursor: pointer;
}

.zf-steuer-child-btn input {
  position: absolute;
  opacity: 0;
}

.zf-steuer-child-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
}

.zf-steuer-child-btn:has(input:checked) span {
  border-color: #0f172a;
  box-shadow: inset 0 0 0 1px #0f172a;
}

.zf-steuer-disclaimer-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #64748b;
}

.zf-steuer-disclaimer-box strong {
  display: block;
  color: #334155;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
}

.zf-steuer-disclaimer-box p {
  margin: 0;
}

.zf-steuer-logic-box {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-align: left;
}

.zf-steuer-logic-box strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.zf-steuer-logic-box p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #475569;
}

.zf-steuer-results-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zf-steuer-out-card {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.zf-steuer-out-card h4 {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.zf-steuer-lines {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.8125rem;
  color: #475569;
}

.zf-steuer-lines li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.15rem 0;
}

.zf-steuer-lines li > span:first-child {
  flex: 1 1 8.5rem;
  min-width: 0;
}

.zf-steuer-lines li > span:last-child {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}

.zf-steuer-out-total {
  margin: 0;
  text-align: right;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.zf-steuer-out-total--lg {
  font-size: 1.5rem;
}

.zf-steuer-out-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  text-align: left;
}

.zf-steuer-section--examples .zf-steuer-examples-inner {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

.zf-steuer-section--examples .zf-steuer-intro {
  margin-bottom: 1rem;
}

.zf-steuer-table-scroll {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-top: 1rem;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.zf-steuer-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.zf-steuer-section--examples .zf-steuer-table--examples thead th:not(:first-child),
.zf-steuer-section--examples .zf-steuer-table--examples td {
  text-align: center;
}

.zf-steuer-section--examples .zf-steuer-table--examples tbody th {
  text-align: left;
}

@media (min-width: 1125px) {
  .zf-steuer-section--examples .zf-steuer-table-scroll {
    overflow-x: visible;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples {
    width: 100%;
    min-width: 0;
    max-width: none;
    table-layout: fixed;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples thead th:first-child,
  .zf-steuer-section--examples .zf-steuer-table--examples tbody th {
    width: 36%;
    max-width: none;
    position: static;
    box-shadow: none;
    vertical-align: middle;
    padding-right: 1rem;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples thead th:not(:first-child) {
    width: calc(64% / 3);
    position: static;
    box-shadow: none;
    vertical-align: bottom;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples tbody td {
    width: calc(64% / 3);
    vertical-align: middle;
  }

  .zf-steuer-section--examples .zf-steuer-table-strong tbody th,
  .zf-steuer-section--examples .zf-steuer-table-strong td {
    vertical-align: middle;
  }
}

.zf-steuer-section--examples .zf-steuer-table thead th {
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 0.55rem 0.5rem;
}

.zf-steuer-section--examples .zf-steuer-table tbody th,
.zf-steuer-section--examples .zf-steuer-table td {
  padding: 0.5rem 0.5rem;
}

.zf-steuer-table th,
.zf-steuer-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.zf-steuer-table thead th {
  font-weight: 600;
  color: #0f172a;
  vertical-align: bottom;
}

.zf-steuer-table tbody th {
  font-weight: 500;
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 1px 0 0 #e2e8f0;
  max-width: 11rem;
  white-space: normal;
  vertical-align: top;
}

.zf-steuer-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 #e2e8f0;
}

.zf-steuer-table-strong tbody th {
  background: #fff;
}

.zf-steuer-table td {
  text-align: right;
  white-space: nowrap;
}

.zf-steuer-table-strong th,
.zf-steuer-table-strong td {
  font-weight: 700;
  color: #0f172a;
}

.zf-steuer-cols-3 {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

@media (min-width: 768px) {
  .zf-steuer-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.zf-steuer-col h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.zf-steuer-col p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.zf-steuer-grid-2 {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

@media (min-width: 768px) {
  .zf-steuer-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zf-steuer-num-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 8rem;
  overflow: hidden;
}

.zf-steuer-num {
  position: absolute;
  right: 0.75rem;
  bottom: 0.25rem;
  font-size: 3.5rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
  pointer-events: none;
}

.zf-steuer-num-card h3 {
  position: relative;
  z-index: 1;
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.zf-steuer-num-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.zf-steuer-faq-title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  text-align: center;
}

.zf-steuer-faq-list {
  border-top: 1px solid #e2e8f0;
}

.zf-steuer-faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.zf-steuer-faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.zf-steuer-faq-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
}

.zf-steuer-faq-icon::before,
.zf-steuer-faq-icon::after {
  content: "";
  position: absolute;
  background: #0f172a;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.zf-steuer-faq-icon::before {
  width: 12px;
  height: 2px;
}

.zf-steuer-faq-icon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.2s ease;
}

.zf-steuer-faq-item.is-open .zf-steuer-faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.zf-steuer-faq-panel {
  display: none;
  padding: 0 0 1rem;
}

.zf-steuer-faq-item.is-open .zf-steuer-faq-panel {
  display: block;
}

.zf-steuer-faq-panel p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #475569;
}

/* Calculator + examples: narrow layout below 1125px */
@media (max-width: 1124px) {
  .zf-steuer-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .zf-steuer-hero {
    padding-top: 1.5rem;
    text-align: left;
    max-width: none;
  }

  .zf-steuer-hero h1 {
    font-size: clamp(1.25rem, 5.2vw, 1.85rem);
    line-height: 1.2;
  }

  .zf-steuer-hero-lead {
    font-size: 0.9375rem;
  }

  .zf-steuer-section {
    margin-top: 2.5rem;
  }

  .zf-steuer-section--calc > h2,
  .zf-steuer-section--center > h2 {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    overflow-wrap: anywhere;
    text-align: left;
  }

  .zf-steuer-section--center {
    text-align: left;
  }

  .zf-steuer-intro {
    max-width: none;
    text-align: left;
  }

  .zf-steuer-intro--narrow {
    margin-left: 0;
    margin-right: 0;
  }

  .zf-steuer-calc-grid {
    grid-template-columns: 1fr !important;
  }

  .zf-steuer-panel--in {
    border-bottom: 1px solid #e2e8f0 !important;
    border-right: none !important;
  }

  .zf-steuer-page--light .zf-logo-marquee {
    margin: 1.25rem 0 1.75rem;
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    padding: 0.85rem 0 0.75rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .zf-steuer-page--light .zf-logo-marquee-mask {
    max-width: 100%;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .zf-steuer-page--light .zf-logo-marquee-track {
    animation: none !important;
    transform: none !important;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    width: 100% !important;
    max-width: 100%;
    gap: 0.65rem 0.85rem;
    padding: 0 0.65rem;
  }

  .zf-steuer-page--light .zf-logo-marquee-item[aria-hidden="true"] {
    display: none !important;
  }

  .zf-steuer-page--light .zf-logo-marquee-item img,
  .zf-steuer-page--light .zf-logo-marquee-item svg {
    height: 1.75rem;
  }

  .zf-steuer-page--light .zf-logo-marquee-item--seal {
    height: 2.75rem;
  }

  .zf-steuer-page--light .zf-logo-marquee-item--seal img {
    height: 2.6rem;
  }

  .zf-steuer-page--light .zf-logo-marquee-captions {
    margin: 0.65rem 0.75rem 0;
    text-align: left;
  }

  .zf-steuer-page--light .zf-logo-marquee-caption {
    font-size: 0.8125rem;
  }

  .zf-steuer-segment {
    grid-template-columns: 1fr;
  }

  .zf-steuer-segment-btn span {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.7rem 0.75rem;
  }

  .zf-steuer-segment-btn:last-child span {
    border-bottom: none;
  }

  .zf-steuer-section--examples .zf-steuer-table-scroll {
    overflow-x: visible;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples {
    min-width: 0;
    width: 100%;
    display: block;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples thead {
    display: none;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples tbody {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples tbody tr {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.65rem 0.85rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .zf-steuer-section--examples .zf-steuer-table--examples tbody th {
    position: static;
    box-shadow: none;
    max-width: none;
    display: block;
    padding: 0 0 0.5rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.3rem 0;
    border-bottom: none;
    white-space: normal;
    text-align: right;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples tbody td::before {
    content: attr(data-label);
    font-weight: 500;
    color: #64748b;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
  }

  .zf-steuer-section--examples .zf-steuer-table--examples tbody tr.zf-steuer-table-strong {
    border-color: #cbd5e1;
    background: #f8fafc;
  }
}

@media (max-width: 639px) {
  .zf-steuer-main {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .zf-steuer-section--examples .zf-steuer-examples-inner {
    max-width: none;
  }

  .zf-steuer-panel {
    padding: 0.875rem 0.875rem 1.1rem;
  }

  .zf-steuer-page--light .erechnung-public-header-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .zf-steuer-children {
    gap: 0.35rem;
  }

  .zf-steuer-child-btn span {
    padding: 0.55rem 0.25rem;
    font-size: 0.8125rem;
  }

  .zf-steuer-out-total--lg {
    font-size: 1.35rem;
  }
}
