/* Performance Manufaktur – Website-Styles */
:root {
    --navy: #0d1b2e;
    --navy2: #14263f;
    --blue: #2f6fd8;
    --blue-dark: #1e4fa3;
    --bg: #f5f7fa;
    --card: #ffffff;
    --line: #e3e8ef;
    --text: #1a2333;
    --muted: #64748b;
    --ok: #16a34a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / Navigation ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand img { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.main-nav > ul > li > a { display: block; color: #dbe4f0; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .9rem .8rem; border-radius: .4rem; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.act > a { color: #fff; background: rgba(255,255,255,.08); }
.main-nav li { position: relative; }
.main-nav .caret { font-size: .7rem; opacity: .7; }
.main-nav .sub { display: none; position: absolute; top: 100%; left: 0; background: var(--navy2); min-width: 220px; flex-direction: column; gap: 0; padding: .4rem; border-radius: .5rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: flex; }
.main-nav .sub a { display: block; color: #dbe4f0; text-decoration: none; padding: .55rem .8rem; border-radius: .4rem; font-size: .9rem; }
.main-nav .sub a:hover { background: rgba(255,255,255,.1); color: #fff; }
.main-nav .cta a { background: var(--blue); color: #fff !important; margin-left: .5rem; }
.main-nav .cta a:hover { background: var(--blue-dark); }
.main-nav .user-menu > a { color: #ffd166; }
.main-nav .user-menu .sub { left: auto; right: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }
@media (max-width: 920px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy2); padding: .75rem; }
    body.nav-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; }
    .main-nav .sub { display: flex; position: static; box-shadow: none; padding-left: 1.25rem; }
    .main-nav .cta a { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.hero .wrap { position: relative; padding: 5.5rem 1.25rem; max-width: 1180px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.9rem); margin: 0 0 1rem; max-width: 720px; }
.hero p { font-size: 1.1rem; color: #c9d5e6; max-width: 620px; margin: 0 0 1.75rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: .8rem 1.6rem; border-radius: .5rem; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--blue-dark); }
.btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,.5); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.light { background: #fff; color: var(--navy); }

/* ---------- Sections ---------- */
section.block { padding: 3.5rem 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 2.25rem; }
.sec-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .5rem; }
.sec-head p { color: var(--muted); margin: 0; }

/* Karten */
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.scard { background: var(--card); border: 1px solid var(--line); border-radius: .8rem; padding: 1.5rem; display: flex; flex-direction: column; }
.scard h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.scard p { color: var(--muted); font-size: .92rem; flex: 1; margin: 0 0 1rem; }
.scard .ic { width: 52px; height: 52px; border-radius: .6rem; background: #e8f0fd; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.5rem; }

/* USP-Band */
.usp-band { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #fff; text-align: center; padding: 2.5rem 1rem; }
.usp-band .items { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: .5rem; }
.usp-band .items b { display: block; font-size: 1.3rem; }
.usp-band .items span { color: #b9c8de; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

/* Bild+Text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border-radius: .8rem; box-shadow: 0 12px 40px rgba(13,27,46,.18); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- Konfigurator ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: #b3bdcc; }

.steps { display: flex; gap: .35rem; margin: 0 0 1.75rem; flex-wrap: wrap; }
.steps span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 99px; background: #e6ebf2; color: var(--muted); }
.steps span.done { background: #d9e7fb; color: var(--blue-dark); }
.steps span.cur { background: var(--blue); color: #fff; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.tile { display: flex; align-items: center; gap: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: .7rem; padding: .9rem 1rem; text-decoration: none; color: var(--text); font-weight: 600; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(47,111,216,.15); }
.tile .badge { width: 42px; height: 42px; flex: none; border-radius: .5rem; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 700; }
.tile small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.tile.engine { flex-direction: column; align-items: flex-start; gap: .3rem; }
.tile .fuel { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .55rem; border-radius: 99px; background: #e6ebf2; color: var(--muted); }
.tile .fuel.Diesel { background: #e2e8f0; color: #334155; }
.tile .fuel.Benzin { background: #fee2e2; color: #b91c1c; }

.konf-search { margin: 0 0 1.25rem; }
.konf-search input { width: 100%; max-width: 420px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: .5rem; font-size: 1rem; }

/* Detailseite */
.detail-head { background: var(--navy); color: #fff; padding: 2.25rem 0; }
.detail-head h1 { margin: 0 0 .25rem; font-size: clamp(1.3rem, 3vw, 2rem); }
.detail-head .sub { color: #aebdd3; }
.stage-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .stage-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: .8rem; padding: 1.5rem; }
.panel h2 { margin: 0 0 1rem; font-size: 1.15rem; }

table.vals { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.vals th, table.vals td { padding: .65rem .5rem; text-align: center; border-bottom: 1px solid var(--line); }
table.vals th:first-child, table.vals td:first-child { text-align: left; }
table.vals .s1 { color: var(--blue-dark); font-weight: 700; }
table.vals .gain { color: var(--ok); font-weight: 700; }

.bars { margin-top: 1.25rem; display: grid; gap: .9rem; }
.bar-row { font-size: .8rem; color: var(--muted); }
.bar-row .bar { height: 14px; border-radius: 99px; background: #e6ebf2; overflow: hidden; margin-top: .25rem; }
.bar-row .bar i { display: block; height: 100%; border-radius: 99px; }
.bar-row .bar i.orig { background: #94a3b8; }
.bar-row .bar i.tuned { background: linear-gradient(90deg, var(--blue), var(--blue-dark)); }
.bar-row .bar i.anim { animation: growbar 1.4s cubic-bezier(.25,.7,.3,1) both; }
.bar-row .bar i.tuned.anim { animation-duration: 1.6s; }
@keyframes growbar { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .bar-row .bar i.anim { animation: none; } }

/* Stage-Tabs + Tacho-Anzeigen (Fahrzeug-Detailseite) */
.stage-tabs { display: flex; gap: .35rem; border-bottom: 2px solid var(--line); margin-bottom: 0; padding: 0 .5rem; }
.stab { border: 1px solid var(--line); border-bottom: none; background: #eef2f7; color: var(--muted); font-weight: 700; padding: .55rem 1.6rem .5rem; border-radius: .6rem .6rem 0 0; cursor: pointer; font-size: .95rem; line-height: 1.25; text-align: center; margin-bottom: -2px; position: relative; top: 0; transition: background .15s, color .15s; }
.stab small { display: block; font-size: .7rem; font-weight: 600; opacity: .7; }
.stab:hover { background: #f6f8fb; color: var(--blue-dark); }
.stab.act { background: #fff; color: var(--blue-dark); border-top: 3px solid var(--blue); border-bottom: 2px solid #fff; padding-top: .45rem; }
.stage-pane { background: #fff; padding-top: 1.25rem; }
/* Race-Dashboard: Carbon-Panel mit LED-Segment-Anzeigen + Shift-Lights */
.gauges { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem;
    max-width: 560px; margin: 0 auto 1.25rem; padding: .9rem .9rem 1rem; overflow: hidden;
    background: #0c1017 repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 6px);
    border: 1px solid #232b3a; border-radius: 1rem;
    box-shadow: inset 0 0 45px rgba(0,0,0,.55), 0 12px 30px rgba(11,19,34,.35); }
.gauges::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, transparent, #ef2d38 18%, #ff7a45 50%, #ef2d38 82%, transparent); }
.gauges::after { content: ""; position: absolute; top: -25px; right: -45px; width: 170px; height: 85px;
    background: repeating-linear-gradient(115deg, rgba(239,45,56,.14) 0 9px, transparent 9px 26px);
    transform: skewX(-18deg); pointer-events: none; }
.shiftlights { grid-column: 1 / -1; display: flex; justify-content: center; gap: .5rem; padding: .1rem 0 .5rem; }
.shiftlights i { width: 11px; height: 11px; border-radius: 50%; background: #1d2432; border: 1px solid #2e3950;
    transition: background .08s, box-shadow .08s; }
.shiftlights i.on.g { background: #22c55e; border-color: #4ade80; box-shadow: 0 0 8px 1px rgba(34,197,94,.85); }
.shiftlights i.on.y { background: #facc15; border-color: #fde047; box-shadow: 0 0 8px 1px rgba(250,204,21,.85); }
.shiftlights i.on.r { background: #ef2d38; border-color: #ff6b73; box-shadow: 0 0 10px 2px rgba(239,45,56,.95); }
.shiftlights.peak i.on { animation: slblink .16s steps(2, jump-none) 4; }
@keyframes slblink { 50% { filter: brightness(.2); } }
.gauge { text-align: center; }
.gauge svg { width: 100%; max-width: 230px; height: auto; display: block; margin: 0 auto; }
.gauge .glabel { display: inline-block; font-weight: 800; font-style: italic; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .14em; color: #e8edf5; margin-bottom: .2rem; }
.gauge .glabel::before { content: "//"; color: #ef2d38; margin-right: .45em; letter-spacing: .02em; }
.gauge .gserie { font-size: .72rem; color: #77879f; margin-top: .15rem; letter-spacing: .04em; }
.gauge .seg { stroke: #222b3c; transition: stroke .1s; }
.gauge .seg.base { stroke: #cfdcee; }
.gauge .seg.gain { stroke: #ff2f3d; filter: drop-shadow(0 0 3.5px rgba(255,47,61,.9)); }
.gauge .gval, .gauge .gpop { transform-box: fill-box; transform-origin: center; }
.gauge .gval.peak { animation: gvalpulse .4s cubic-bezier(.2,1.8,.4,1) 1; }
@keyframes gvalpulse { 40% { transform: scale(1.18); } }
.gauge .gpop { opacity: 0; }
.gauge .gpop.show { animation: gpopin .45s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes gpopin { from { opacity: 0; transform: translateY(9px) scale(.55); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .shiftlights.peak i.on, .gauge .gval.peak { animation: none; }
    .gauge .gpop.show { animation: none; opacity: 1; }
}

/* Marken-Logos in den Kacheln */
.tile .blogo { width: 42px; height: 42px; flex: none; object-fit: contain; }

/* Mobile-Feinschliff */
@media (max-width: 700px) {
    section.block { padding: 2.25rem 0; }
    .hero .wrap { padding: 3.25rem 1.25rem; }
    .stage-grid { gap: 1rem; }
    .panel { padding: 1.1rem; }
    table.vals { font-size: .85rem; }
    table.vals th, table.vals td { padding: .5rem .3rem; }
    .stage-price { font-size: .95rem; padding: .7rem .9rem; }
    .stage-price b { font-size: 1.15rem; }
    .stab { padding: .5rem 1.1rem .45rem; font-size: .88rem; }
    .detail-head { padding: 1.5rem 0; }
    .page-head { padding: 1.75rem 0; }
    .tile-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
    .cards4 { gap: .8rem; }
    .usp-band .items { gap: 1.25rem 2rem; }
    .foot-grid { padding: 2rem 1.25rem; gap: 1.25rem; }
}
@media (max-width: 430px) {
    .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; padding: .7rem .5rem .8rem; }
    .gauge svg { max-width: 165px; }
    .gauge .glabel { font-size: .68rem; letter-spacing: .1em; }
    .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crumbs { font-size: .78rem; }
    .steps span { font-size: .68rem; padding: .28rem .6rem; }
}
.stage-price { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; background: linear-gradient(135deg, #eef4fd, #e3edfb); border: 1px solid #cfdff7; border-radius: .7rem; padding: .8rem 1.1rem; font-size: 1.05rem; }
.stage-price b { font-size: 1.35rem; color: var(--blue-dark); }
.stage-price .btn.small-cta { padding: .5rem 1.2rem; font-size: .9rem; }

.optlist { display: flex; flex-wrap: wrap; gap: .4rem; }
.optlist span { background: #eef2f7; border: 1px solid var(--line); color: #35425a; border-radius: 99px; padding: .3rem .8rem; font-size: .82rem; font-weight: 600; }
.optlist span.has-tip { position: relative; cursor: help; border-bottom-style: dashed; }
.optlist span.has-tip::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px);
    transform: translateX(-50%); width: min(340px, 82vw); background: #111827; color: #f3f4f6;
    font-size: .78rem; font-weight: 400; line-height: 1.45; padding: .6rem .75rem;
    border-radius: .5rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); white-space: normal;
    opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 50; pointer-events: none;
}
.optlist span.has-tip::before {
    content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: #111827;
    opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 50; pointer-events: none;
}
.optlist span.has-tip:hover::after, .optlist span.has-tip:focus::after,
.optlist span.has-tip:hover::before, .optlist span.has-tip:focus::before { opacity: 1; visibility: visible; }
.note { font-size: .8rem; color: var(--muted); margin-top: .9rem; }

.cta-box { background: linear-gradient(120deg, var(--blue), var(--blue-dark)); color: #fff; border-radius: .8rem; padding: 1.5rem; }
.cta-box h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.cta-box p { color: #d6e4fa; font-size: .92rem; }
.cta-box .btn { background: #fff; color: var(--navy); width: 100%; text-align: center; margin-top: .5rem; }

/* ---------- Inhaltseiten ---------- */
.page-head { background: var(--navy); color: #fff; padding: 2.5rem 0; }
.page-head h1 { margin: 0; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 2rem; }
.prose .lead { font-size: 1.12rem; color: #33415c; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.8rem; position: relative; margin: .45rem 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
form.contact label { display: block; font-weight: 600; font-size: .9rem; margin: .9rem 0 .25rem; }
form.contact input, form.contact textarea { width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .5rem; font-size: 1rem; font-family: inherit; }
form.contact .hp { position: absolute; left: -9999px; }
.alert { border-radius: .5rem; padding: .8rem 1rem; margin: 1rem 0; }
.alert.ok { background: #ecfdf5; border: 1px solid #6ee7b7; }
.alert.err { background: #fef2f2; border: 1px solid #fca5a5; }

/* Garantie-Tabelle (wie im NSA-Flyer) */
.garantie-tab { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.garantie-tab th { background: var(--navy); color: #fff; padding: .7rem .9rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.garantie-tab td { padding: .65rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
.garantie-tab tr:nth-child(odd) td { background: #f8fafc; }
.garantie-tab td strong { display: block; margin-bottom: .15rem; }
.garantie-tab td .teile { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.garantie-tab td.chk { text-align: center; font-weight: 700; font-size: 1rem; width: 90px; }
.garantie-tab td.chk.t2 { color: #fff; background: var(--blue) !important; }
.garantie-tab td.chk.t5 { color: #fff; background: #64748b !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6d9; margin-top: 4rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding: 3rem 1.25rem; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #b9c6d9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .small { font-size: .78rem; color: #7e8da3; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; font-size: .85rem; text-align: center; }
