:root {
  --blue-ink: #0c5c95;
  --blue-deep: #084a78;
  --blue-soft: rgba(12, 92, 149, 0.12);
  --blue-border: rgba(12, 92, 149, 0.26);
  --green-ink: #225b35;
  --green-deep: #173f24;
  --green-soft: rgba(34, 91, 53, 0.13);
  --green-border: rgba(34, 91, 53, 0.28);
  color: var(--blue-deep);
  background:
    radial-gradient(circle at top left, rgba(255, 241, 199, 0.75), transparent 32%),
    linear-gradient(135deg, #ffba39 0%, #ffc857 48%, #ffb221 100%);
  font-family: "Avenir Next", "Futura", "Trebuchet MS", sans-serif;
  line-height: 1.4;
  font-weight: 500;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 32px 18px 48px;
}

.hero-card {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 32px;
  border: 2px solid var(--blue-border);
  border-radius: 28px;
  background: rgba(255, 250, 235, 0.8);
  box-shadow: 0 24px 60px rgba(12, 92, 149, 0.14);
  backdrop-filter: blur(8px);
}

.hero-header {
  display: block;
}

.hero-copy {
  min-width: 0;
  padding-right: 250px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-ink);
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.subtitle {
  max-width: 36rem;
  margin: 14px 0 28px;
  color: var(--blue-deep);
  font-size: clamp(1.3rem, 2.6vw, 1.62rem);
}

.hero-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: min(182px, 22vw);
  height: auto;
  display: block;
  transform: translateY(-18px);
  transform-origin: top right;
  z-index: 2;
}

.hero-qr {
  display: none;
  position: absolute;
  top: 22px;
  right: -320px;
  width: clamp(190px, 16vw, 250px);
  height: auto;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 16px 34px rgba(12, 92, 149, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  opacity: 0.95;
  pointer-events: none;
}

@media (min-width: 1520px) {
  .hero-qr {
    display: block;
  }
}

.table-frame {
  overflow-x: auto;
  padding-bottom: 8px;
}

.table-frame::-webkit-scrollbar {
  height: 8px;
}

.table-frame::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(12, 92, 149, 0.22);
}

.comparison-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: middle;
}

.comparison-table thead th {
  border-bottom: 2px solid rgba(12, 92, 149, 0.2);
  color: var(--blue-deep);
  font-size: 1rem;
}

.comparison-table thead span {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.7;
}

.comparison-table tbody th {
  width: 12rem;
  font-size: 1.15rem;
}

.comparison-table tbody tr[data-vehicle="benzin"] td,
.comparison-table tbody tr[data-vehicle="benzin"] th,
.comparison-table tbody tr[data-vehicle="diesel"] td,
.comparison-table tbody tr[data-vehicle="diesel"] th {
  background: transparent;
  color: var(--blue-deep);
}

.comparison-table tbody tr[data-vehicle="elektro"] td,
.comparison-table tbody tr[data-vehicle="elektro"] th {
  background: transparent;
  color: var(--green-deep);
}

.comparison-table tbody tr th:first-child {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.comparison-table tbody tr td:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid rgba(12, 92, 149, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  transition:
    border-color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

input:focus {
  outline: none;
  border-color: var(--blue-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(12, 92, 149, 0.18);
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unit-label {
  flex: 0 0 auto;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

.disabled-cell {
  min-height: 49px;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(12, 92, 149, 0.05) 0%,
      rgba(12, 92, 149, 0.05) 44%,
      rgba(12, 92, 149, 0.12) 44%,
      rgba(12, 92, 149, 0.12) 56%,
      rgba(12, 92, 149, 0.05) 56%,
      rgba(12, 92, 149, 0.05) 100%
    );
}

.result-value {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.result-field {
  padding: 12px 14px;
  border: 2px solid rgba(12, 92, 149, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  user-select: text;
}

.comparison-table tbody tr[data-vehicle="benzin"] input,
.comparison-table tbody tr[data-vehicle="diesel"] input {
  border-color: var(--blue-border);
  color: var(--blue-deep);
}

.comparison-table tbody tr[data-vehicle="elektro"] input {
  border-color: var(--green-border);
  color: var(--green-deep);
}

.comparison-table tbody tr[data-vehicle="elektro"] input:focus {
  border-color: var(--green-ink);
  box-shadow: 0 10px 24px rgba(34, 91, 53, 0.18);
}

.comparison-table tbody tr[data-vehicle="benzin"] .unit-label,
.comparison-table tbody tr[data-vehicle="diesel"] .unit-label,
.comparison-table tbody tr[data-vehicle="benzin"] .result-value,
.comparison-table tbody tr[data-vehicle="diesel"] .result-value {
  color: var(--blue-deep);
}

.comparison-table tbody tr[data-vehicle="elektro"] .unit-label,
.comparison-table tbody tr[data-vehicle="elektro"] .result-value {
  color: var(--green-deep);
}

.comparison-table tbody tr[data-vehicle="benzin"] .result-field,
.comparison-table tbody tr[data-vehicle="diesel"] .result-field {
  border-color: var(--blue-border);
}

.comparison-table tbody tr[data-vehicle="elektro"] .result-field {
  border-color: var(--green-border);
}

.comparison-table tbody tr[data-vehicle="elektro"] .disabled-cell {
  background:
    linear-gradient(
      135deg,
      rgba(34, 91, 53, 0.05) 0%,
      rgba(34, 91, 53, 0.05) 44%,
      rgba(34, 91, 53, 0.12) 44%,
      rgba(34, 91, 53, 0.12) 56%,
      rgba(34, 91, 53, 0.05) 56%,
      rgba(34, 91, 53, 0.05) 100%
    );
}

.comparison-table td[data-label]::before,
.reference-table td[data-label]::before {
  content: attr(data-label);
  display: none;
}

.reference-card {
  width: min(1120px, 100%);
  margin: 26px auto 0;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 248, 228, 0.86);
  border: 2px solid var(--blue-border);
  box-shadow: 0 20px 50px rgba(12, 92, 149, 0.08);
  backdrop-filter: blur(8px);
}

.reference-card h2 {
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.mobile-results-card {
  display: none;
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  border: 2px solid rgba(12, 92, 149, 0.16);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 30px rgba(12, 92, 149, 0.08);
}

.mobile-results-card h2 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.mobile-results-table {
  display: grid;
  gap: 10px;
}

.mobile-results-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 235, 0.9);
  border: 1px solid rgba(12, 92, 149, 0.12);
}

.mobile-results-label {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-results-value {
  min-width: 7ch;
  text-align: right;
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
}

.reference-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
}

.reference-table th,
.reference-table td {
  padding: 14px 12px;
  text-align: left;
}

.reference-table thead th {
  border-bottom: 2px solid rgba(12, 92, 149, 0.18);
  color: var(--blue-deep);
  font-size: 1rem;
}

.reference-table tbody th {
  width: 12rem;
  font-size: 1.1rem;
}

.reference-table tbody td {
  font-variant-numeric: lining-nums tabular-nums;
}

.reference-table tbody tr[data-vehicle="benzin"] td,
.reference-table tbody tr[data-vehicle="benzin"] th,
.reference-table tbody tr[data-vehicle="diesel"] td,
.reference-table tbody tr[data-vehicle="diesel"] th {
  background: linear-gradient(180deg, rgba(12, 92, 149, 0.05), rgba(12, 92, 149, 0.1));
  color: var(--blue-deep);
}

.reference-table tbody tr[data-vehicle="elektro"] td,
.reference-table tbody tr[data-vehicle="elektro"] th {
  background: linear-gradient(180deg, rgba(34, 91, 53, 0.05), rgba(34, 91, 53, 0.11));
  color: var(--green-deep);
}

.reference-table tbody tr th:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.reference-table tbody tr td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.site-credit {
  width: min(1120px, 100%);
  margin: 18px auto 0;
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: 0.98rem;
  text-align: center;
}

.site-credit a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.site-credit a:hover,
.site-credit a:focus-visible {
  text-decoration: underline;
}

.legal-shell {
  min-height: 100vh;
  padding: 36px 18px 52px;
}

.legal-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 30px 32px;
  border: 2px solid var(--blue-border);
  border-radius: 28px;
  background: rgba(255, 250, 235, 0.84);
  box-shadow: 0 24px 60px rgba(12, 92, 149, 0.12);
  backdrop-filter: blur(8px);
}

.legal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.legal-backlink,
.legal-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(12, 92, 149, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-backlink:hover,
.legal-backlink:focus-visible,
.legal-nav a:hover,
.legal-nav a:focus-visible {
  text-decoration: underline;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.legal-eyebrow {
  margin: 0 0 8px;
  color: var(--blue-ink);
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-title {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.legal-intro {
  max-width: 46rem;
  margin: 16px 0 0;
  color: var(--blue-deep);
  font-size: 1.08rem;
}

.legal-note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--blue-ink);
  border-radius: 18px;
  background: rgba(12, 92, 149, 0.08);
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
}

.legal-note p {
  margin: 0;
}

.legal-section {
  margin-top: 28px;
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.legal-section h3 {
  margin: 20px 0 8px;
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: 1.02rem;
}

.legal-section p,
.legal-section li {
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-address {
  margin: 0;
  font-style: normal;
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  line-height: 1.65;
}

.legal-address a,
.legal-section a,
.legal-note a {
  color: inherit;
  font-weight: 700;
}

.legal-meta {
  margin-top: 26px;
  color: var(--blue-deep);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: 0.95rem;
  opacity: 0.9;
}

.totals-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 63, 36, 0.96), rgba(34, 91, 53, 0.94));
  color: #fff7e6;
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  box-shadow: 0 24px 40px rgba(23, 63, 36, 0.2);
}

.totals-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}

.totals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.total-tile {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(190, 226, 198, 0.09));
  border: 1px solid rgba(214, 240, 216, 0.12);
}

.total-tile h3 {
  margin: 0 0 10px;
  font-family: "Helvetica Neue", "Arial", "Verdana", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.total-tile p {
  margin: 0;
  min-height: 2.6rem;
  font-family: "Arial", "Helvetica Neue", "Verdana", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.025em;
  word-spacing: 0.08em;
  font-variant-numeric: lining-nums tabular-nums;
}

@media (max-width: 820px) {
  .page-shell {
    padding: 18px 12px 32px;
  }

  .hero-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .reference-card {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .hero-header {
    display: block;
  }

  .hero-logo {
    top: 18px;
    right: 18px;
    width: min(138px, 29vw);
    transform: none;
  }

  .hero-copy {
    padding-right: 160px;
  }

  .hero-qr {
    display: none;
  }

  h1 {
    line-height: 0.98;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
  }

  .input-with-unit {
    min-width: 13rem;
  }

  .totals-card {
    padding: 20px;
  }

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

  .legal-shell {
    padding: 22px 12px 34px;
  }

  .legal-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .legal-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px 10px 24px;
  }

  .hero-card,
  .reference-card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .hero-header {
    display: flex;
    flex-direction: column-reverse;
    gap: 14px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-logo {
    position: static;
    width: min(172px, 54vw);
    margin-left: auto;
    align-self: flex-end;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 0.74rem;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .subtitle {
    margin: 10px 0 22px;
    font-size: 1.1rem;
  }

  .table-frame {
    overflow: visible;
    padding-bottom: 0;
  }

  .comparison-table,
  .reference-table,
  .comparison-table tbody,
  .reference-table tbody {
    display: block;
    min-width: 0;
  }

  .comparison-table thead,
  .reference-table thead {
    display: none;
  }

  .comparison-table tr,
  .reference-table tr {
    display: block;
  }

  .comparison-table tbody tr,
  .reference-table tbody tr {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(12, 92, 149, 0.12);
    background: rgba(255, 255, 255, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .comparison-table tbody tr[data-vehicle="elektro"],
  .reference-table tbody tr[data-vehicle="elektro"] {
    border-color: rgba(34, 91, 53, 0.18);
    background: rgba(222, 239, 227, 0.35);
  }

  .comparison-table tbody th,
  .reference-table tbody th {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 800;
  }

  .comparison-table td,
  .reference-table td {
    display: block;
    padding: 0;
    border-radius: 0;
  }

  .comparison-table td + td,
  .reference-table td + td {
    margin-top: 12px;
  }

  .comparison-table td[data-label]::before,
  .reference-table td[data-label]::before {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.74;
  }

  .comparison-table .cell-disabled {
    display: none;
  }

  .input-with-unit {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .unit-label {
    font-size: 0.88rem;
  }

  input,
  .result-field {
    min-height: 52px;
    padding: 13px 14px;
  }

  .result-value {
    min-height: 52px;
    font-size: 1rem;
    white-space: normal;
  }

  .totals-card {
    margin-top: 22px;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .mobile-results-card {
    display: block;
  }

  .totals-card h2,
  .reference-card h2 {
    line-height: 1.2;
  }

  .total-tile {
    padding: 16px;
  }

  .total-tile p {
    min-height: 0;
    font-size: clamp(1.2rem, 7vw, 1.7rem);
  }

  .site-credit {
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .legal-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .legal-title {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .legal-intro,
  .legal-section p,
  .legal-section li {
    font-size: 0.97rem;
  }
}
