:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #eef6f2;
  --text: #173229;
  --muted: #5e7069;
  --line: #d7e3dd;
  --green: #0f6b4b;
  --green-2: #25a36f;
  --green-dark: #0a4d37;
  --yellow: #f6cc4b;
  --shadow: 0 18px 45px rgba(15, 73, 52, .10);
  --radius: 22px;
  --wrap: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 250, 248, .90); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(215, 227, 221, .85); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--green), var(--green-2)); box-shadow: 0 9px 24px rgba(15, 107, 75, .25); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--muted); margin-top: 4px; }
nav { display: flex; gap: 22px; }
nav a { text-decoration: none; font-weight: 650; color: #35544a; }
nav a:hover { color: var(--green); }
.version-badge { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: #fff; font-size: .83rem; font-weight: 750; }

.hero { overflow: hidden; background: radial-gradient(circle at 20% 15%, #e4f6ee 0, transparent 31%), linear-gradient(180deg, #f9fcfa 0%, #eef7f3 100%); border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 570px; display: grid; grid-template-columns: 1.03fr .97fr; gap: 34px; align-items: center; padding-block: 72px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: .82rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.1; margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(2.6rem, 5.5vw, 5rem); letter-spacing: -.055em; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 3.5vw, 3.35rem); letter-spacing: -.04em; }
h3 { letter-spacing: -.02em; }
.lead { max-width: 690px; color: #486159; font-size: 1.14rem; }
.lead-small { color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 16px; border: 1px solid transparent; border-radius: 13px; font-weight: 800; text-decoration: none; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--green); box-shadow: 0 8px 20px rgba(15, 107, 75, .2); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { color: var(--green); border-color: #a9d3c2; background: #fff; }
.button.ghost { color: var(--text); border-color: var(--line); background: transparent; }
.button.small { min-height: 39px; padding: 8px 12px; font-size: .9rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: #486159; font-size: .92rem; }
.hero-visual { padding: 24px; }
.hero-visual svg { width: 100%; filter: drop-shadow(0 25px 42px rgba(13, 75, 53, .12)); }

.stats-section { position: relative; z-index: 2; margin-top: -40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 26px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong, .stat span { display: block; }
.stat strong { font-size: 1.65rem; }
.stat span { margin-top: 4px; color: var(--muted); }

.section { padding: 94px 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; margin-bottom: 34px; }
.section-heading p:last-child { color: var(--muted); margin-bottom: 8px; }

.filters { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 9px 30px rgba(15, 73, 52, .05); }
.field { display: grid; gap: 6px; }
.field span { font-size: .8rem; font-weight: 800; color: #49635a; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--text); background: #fbfdfc; border: 1px solid #ceddd6; border-radius: 11px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(37, 163, 111, .13); }
.check-field { display: flex; align-items: center; gap: 9px; grid-column: span 2; font-weight: 650; color: #3f5b51; }
.check-field input { width: 18px; height: 18px; accent-color: var(--green); }
.filters > .button { align-self: end; }
.result-bar { display: flex; justify-content: space-between; gap: 20px; padding: 20px 4px 14px; color: var(--muted); }
.result-bar strong { color: var(--text); }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer-card { display: flex; flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(15, 73, 52, .06); }
.offer-card:hover { border-color: #afd5c5; box-shadow: var(--shadow); }
.offer-head, .offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.provider-pill { display: inline-flex; align-items: center; gap: 7px; color: #466258; font-size: .82rem; font-weight: 750; }
.status-dot { width: 8px; height: 8px; background: var(--green-2); border-radius: 50%; box-shadow: 0 0 0 4px rgba(37, 163, 111, .11); }
.compare-check { display: flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 750; color: var(--muted); }
.compare-check input { accent-color: var(--green); }
.offer-title { margin: 22px 0 14px; }
.offer-title p, .offer-title h3, .offer-title span { margin: 0; }
.offer-title p { color: var(--green); font-size: .82rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.offer-title h3 { margin: 5px 0 8px; font-size: 1.45rem; }
.offer-title span { color: var(--muted); font-size: .88rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 5px 8px; color: #315247; background: #edf7f3; border-radius: 8px; font-size: .74rem; font-weight: 750; }
.rate-box { padding: 18px; margin: 18px 0; background: linear-gradient(140deg, #e8f7f0, #f7fbf9); border: 1px solid #cbe8dc; border-radius: 16px; }
.rate-box strong, .rate-box small { display: block; }
.rate-box strong { font-size: 1.7rem; }
.rate-box small { color: var(--muted); margin-top: 2px; }
.offer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.offer-facts div { padding: 11px 12px; }
.offer-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.offer-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
.offer-facts dt { color: var(--muted); font-size: .72rem; }
.offer-facts dd { margin: 2px 0 0; font-weight: 800; font-size: .9rem; }
.range-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 11px 13px; background: #fbfcfb; border: 1px solid var(--line); border-radius: 11px; font-size: .82rem; }
.include-list { margin: 17px 0; padding-left: 19px; color: #3f5c52; font-size: .88rem; }
.include-list li + li { margin-top: 4px; }
.caveat { padding: 12px 13px; margin-top: auto; color: #6a5821; background: #fff8df; border: 1px solid #efdda1; border-radius: 11px; font-size: .83rem; }
.offer-foot { margin-top: 18px; }
.offer-foot > span { color: var(--muted); font-size: .75rem; }
.source-type { margin: 12px 0 0; color: #789086; font-size: .72rem; text-align: right; }
.empty-state { padding: 60px 20px; text-align: center; background: #fff; border: 1px dashed #a8c7ba; border-radius: 18px; }

.providers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.provider-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.provider-top { display: flex; align-items: center; justify-content: space-between; }
.provider-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--green); border-radius: 13px; font-weight: 900; }
.verified { color: var(--green); font-size: .78rem; font-weight: 850; }
.provider-card h3 { margin: 20px 0 7px; font-size: 1.15rem; }
.provider-card p { color: var(--muted); font-size: .88rem; }
.provider-kind { min-height: 42px; font-weight: 700; color: #3e5b51 !important; }
.provider-type { padding: 10px; background: var(--surface-2); border-radius: 10px; font-size: .81rem; }
.provider-links { display: grid; gap: 7px; margin-top: 16px; }
.provider-links a { color: var(--green); font-size: .86rem; font-weight: 800; }

.calculator-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.note-card { padding: 18px; margin-top: 28px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 15px; }
.note-card strong, .note-card code { display: block; }
.note-card code { margin-top: 8px; color: var(--green-dark); white-space: normal; }
.calculator-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.calc-results div { padding: 16px; background: #eaf6f1; border-radius: 13px; }
.calc-results span, .calc-results strong { display: block; }
.calc-results span { min-height: 38px; color: var(--muted); font-size: .76rem; }
.calc-results strong { margin-top: 5px; font-size: 1.1rem; }

.models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.model-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 19px; }
.model-silhouette { display: grid; place-items: center; height: 120px; margin-bottom: 18px; color: #fff; background: radial-gradient(circle at 65% 28%, #f6cc4b 0 17%, transparent 18%), linear-gradient(145deg, #0f6b4b, #72c5a3); border-radius: 15px; font-size: 2.2rem; }
.model-card > p { color: var(--green); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.model-card h3 { font-size: 1.35rem; }
.model-card dl { margin: 0 0 17px; }
.model-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.model-card dt { color: var(--muted); }
.model-card dd { margin: 0; font-weight: 800; text-align: right; }
.model-card a { color: var(--green); font-weight: 800; font-size: .86rem; }

.method-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; }
.method-list { display: grid; gap: 14px; }
.method-list article { display: grid; grid-template-columns: 46px 1fr; gap: 15px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.method-list article > span { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--green); border-radius: 12px; font-weight: 900; }
.method-list h3, .method-list p { margin: 0; }
.method-list p { margin-top: 5px; color: var(--muted); }
.disclaimer { padding: 20px; margin-top: 36px; color: #5c512d; background: #fff9e7; border: 1px solid #ecdda7; border-radius: 15px; }

.compare-tray { position: fixed; left: 50%; bottom: 18px; z-index: 90; transform: translateX(-50%); width: min(760px, calc(100% - 28px)); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 16px; color: #fff; background: #173b30; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: 0 22px 60px rgba(4, 28, 20, .32); }
.compare-tray strong, .compare-tray span { display: block; }
.compare-tray span { opacity: .72; font-size: .8rem; }
.tray-actions { display: flex; gap: 8px; }
.compare-tray .button.ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.compare-dialog { width: min(1120px, calc(100% - 30px)); max-height: 88vh; padding: 24px; border: 0; border-radius: 22px; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.compare-dialog::backdrop { background: rgba(10, 28, 22, .62); backdrop-filter: blur(4px); }
.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.5rem; }
.compare-table-wrap { overflow: auto; margin: 16px 0 22px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare-table th, .compare-table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .86rem; }
.compare-table thead th { background: var(--surface-2); }
.compare-table tbody th { width: 170px; background: #fafcfb; }

.site-footer { padding: 35px 0; color: #d5e6df; background: #12372b; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid p { margin: 4px 0 0; opacity: .75; }
.footer-grid > div:last-child { display: grid; gap: 5px; text-align: right; }
.noscript { position: fixed; left: 15px; right: 15px; bottom: 15px; z-index: 1000; padding: 14px; color: #fff; background: #8c3d20; border-radius: 12px; text-align: center; }

@media (max-width: 1050px) {
  nav { display: none; }
  .hero-grid, .section-heading, .calculator-grid, .method-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-visual { max-width: 700px; margin: -20px auto 0; }
  .offers-grid { grid-template-columns: 1fr 1fr; }
  .providers-grid { grid-template-columns: repeat(3, 1fr); }
  .models-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
}

@media (max-width: 720px) {
  :root { --wrap: min(100% - 22px, 1180px); }
  .site-header .version-badge { display: none; }
  .nav-wrap { min-height: 66px; }
  .hero-grid { padding-block: 50px; }
  h1 { font-size: 2.75rem; }
  .hero-visual { padding: 0; }
  .stats-section { margin-top: -18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 70px 0; }
  .filters, .offers-grid, .providers-grid, .models-grid, .calc-fields, .calc-results { grid-template-columns: 1fr; }
  .search-field, .check-field { grid-column: span 1; }
  .result-bar, .offer-foot, .footer-grid, .compare-tray { align-items: stretch; flex-direction: column; }
  .compare-tray { width: calc(100% - 20px); }
  .tray-actions { width: 100%; }
  .tray-actions .button { flex: 1; }
  .footer-grid > div:last-child { text-align: left; }
}

@media print {
  .site-header, .hero-actions, .filters, .compare-tray, .site-footer, .button, .compare-check { display: none !important; }
  body { background: #fff; }
  .hero-grid { min-height: auto; padding: 20px 0; }
  .hero-visual { display: none; }
  .section { padding: 25px 0; }
  .offers-grid { grid-template-columns: 1fr 1fr; }
  .offer-card { break-inside: avoid; box-shadow: none; }
}

/* WeltAuto Live-Konfigurator · Version 1.0 */
.weltauto-section { background: linear-gradient(180deg, #f4faf7 0%, #fff 100%); }
.weltauto-panel { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.weltauto-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.weltauto-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.connection-state { display: flex; gap: 12px; align-items: flex-start; padding: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 15px; }
.connection-state strong, .connection-state p { display: block; margin: 0; }
.connection-state p { margin-top: 5px; color: var(--muted); font-size: .84rem; }
.connection-dot { flex: 0 0 auto; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: #82968e; box-shadow: 0 0 0 5px rgba(130,150,142,.14); }
.connection-state[data-state="loading"] .connection-dot { background: #d99c20; box-shadow: 0 0 0 5px rgba(217,156,32,.15); animation: live-pulse 1.2s infinite; }
.connection-state[data-state="success"] .connection-dot { background: #1e9b62; box-shadow: 0 0 0 5px rgba(30,155,98,.15); }
.connection-state[data-state="error"] .connection-dot { background: #b64b34; box-shadow: 0 0 0 5px rgba(182,75,52,.14); }
@keyframes live-pulse { 50% { transform: scale(.68); opacity: .6; } }
.live-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 24px 0 14px; }
.live-toolbar strong { color: var(--green-dark); }
.live-toolbar a { color: var(--green); font-size: .86rem; font-weight: 800; }
.live-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.live-offer-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 9px 26px rgba(18,55,43,.06); }
.live-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.live-card-head h3 { margin: 4px 0 0; font-size: 1.12rem; }
.live-source-name { margin: 0; color: var(--green); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.live-badge { display: inline-flex; max-width: 145px; padding: 6px 8px; border-radius: 999px; font-size: .68rem; font-weight: 850; line-height: 1.25; text-align: center; }
.live-badge.positive { color: #0c603f; background: #e3f5ed; }
.live-badge.neutral { color: #675619; background: #fff4cc; }
.live-price { display: block; margin: 20px 0 15px; color: var(--green-dark); font-size: 1.5rem; }
.live-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.live-facts div { padding: 10px 11px; }
.live-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.live-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
.live-facts dt { color: var(--muted); font-size: .7rem; }
.live-facts dd { margin: 2px 0 0; font-size: .84rem; font-weight: 850; }
.live-dealer { margin: 14px 0 0; color: #36564a; font-size: .82rem; font-weight: 700; }
.live-caveat { margin: 14px 0 18px; color: #6a5821; font-size: .78rem; }
.button.full { width: 100%; margin-top: auto; text-align: center; }
.live-empty { grid-column: 1 / -1; padding: 30px; background: #fff; border: 1px dashed #9fbeaf; border-radius: 17px; text-align: center; }
.live-empty.error { border-color: #d5ad9f; background: #fffaf8; }
.live-empty h3 { margin-top: 0; }
.live-empty p { max-width: 720px; margin: 0 auto 18px; color: var(--muted); }
.integration-note { margin: 20px 0 0; padding: 15px 17px; color: #526b61; background: #f7faf8; border: 1px solid var(--line); border-radius: 13px; font-size: .82rem; }
#weltautoLoad[aria-busy="true"] { opacity: .72; cursor: progress; }

@media (max-width: 1050px) {
  .weltauto-panel { grid-template-columns: 1fr; }
  .weltauto-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-results-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .weltauto-form, .live-results-grid { grid-template-columns: 1fr; }
  .weltauto-actions, .live-toolbar { align-items: stretch; flex-direction: column; }
  .weltauto-actions .button { width: 100%; text-align: center; }
  .live-card-head { flex-direction: column; }
  .live-badge { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .connection-state[data-state="loading"] .connection-dot { animation: none; }
}
