/* =========================================================================
   Tuning Pabst — Theme v2 (Dark / Performance)
   Handgeschriebenes Design-System, keine Framework-Abhängigkeit.
   ========================================================================= */

:root {
    --bg:        #0b0d10;
    --bg-elev:   #14181e;
    --bg-elev-2: #1b212a;
    --line:      #2a313b;
    --line-soft: #20262f;
    --text:      #eef1f5;
    --muted:     #97a1b0;
    --accent:    #ff6a1a;
    --accent-600:#e85d10;
    --accent-soft: rgba(255,106,26,.13);
    --success:   #3ad07a;
    --radius:    14px;
    --radius-sm: 9px;
    --maxw:      1180px;
    --gap:       24px;
    --shadow:    0 10px 30px rgba(0,0,0,.35);
    --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: 'Rajdhani', var(--font-body);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: .5px; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }

/* Eyebrow / Kicker */
.kicker {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    text-transform: uppercase; letter-spacing: 3px; font-size: .8rem;
    color: var(--accent); margin-bottom: 12px;
    padding-left: 34px; position: relative;
}
.kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; height: 2px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    padding: 13px 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
    cursor: pointer; transition: transform .12s ease, background .2s ease, border-color .2s ease;
    font-size: .95rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #140a03; }
.btn-accent:hover { background: var(--accent-600); color: #140a03; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11,13,16,.82); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.brand b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .95rem; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    position: relative; padding: 110px 0 90px;
    background: linear-gradient(180deg, rgba(11,13,16,.55), rgba(11,13,16,.95)), url('../img/foto_pabst_koenigstein.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--line-soft);
}
.hero-inner { display: grid; grid-template-columns: 1fr minmax(280px, 360px); align-items: center; gap: 48px; }
.hero-visual { text-align: center; }
.hero-logo { height: 260px; width: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.55)); }
.about-logo { height: 190px; width: auto; filter: drop-shadow(0 10px 26px rgba(0,0,0,.45)); }
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-visual { order: -1; text-align: center; }
    .hero-logo { height: 140px; }
    .about-logo { height: 104px; }
}
.hero h1 { max-width: 16ch; }
.hero p { max-width: 52ch; font-size: 1.15rem; color: var(--muted); }
.hero .btn { margin-top: 14px; margin-right: 12px; }

/* ---------- Feature-Grid ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 26px; transition: border-color .2s ease, transform .15s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.feature .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.5rem; margin-bottom: 16px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Konfigurator (Auswahl) ---------- */
.configurator { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.config-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; color: var(--muted); margin-bottom: 7px; }
.field select, .field input, .field textarea {
    width: 100%; background: var(--bg-elev-2); color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 1rem; font-family: var(--font-body); appearance: none;
}
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Fahrzeug-Galerie ---------- */
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.vehicle-card { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; text-align: center; transition: border-color .2s ease, transform .15s ease; }
.vehicle-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.vehicle-card a { color: var(--text); display: block; }
.vehicle-card .thumb { aspect-ratio: 4/3; display: grid; place-items: center; background: #0f1319; padding: 14px; }
.vehicle-card .thumb img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.vehicle-card .thumb--empty { color: var(--line); font-size: 2rem; }
.vehicle-card .cap { padding: 12px 10px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.vehicle-card .cap small { display: block; color: var(--muted); font-weight: 500; font-family: var(--font-body); }

/* ---------- Detail ---------- */
.detail-head { display: grid; grid-template-columns: 220px 1fr 320px; gap: 28px; align-items: start; }
.detail-media { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; text-align: center; }
.detail-media img { margin: 0 auto 10px; max-height: 130px; width: auto; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line-soft); }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.price-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-card .head { background: var(--accent-soft); color: var(--accent); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 12px 20px; }
.price-card .body { padding: 20px; }
.price-card .price { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--text); line-height: 1; }
.price-card .price s { font-size: 1.1rem; color: var(--muted); margin-left: 8px; }
.price-card .row { display: flex; justify-content: space-between; color: var(--muted); padding: 6px 0; }
.price-card .row b { color: var(--text); }

.gauges { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 26px 0; }
.perf-table { width: 100%; border-collapse: collapse; max-width: 620px; }
.perf-table th, .perf-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.perf-table thead th { color: var(--muted); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; }
.perf-table .serie { color: var(--success); }
.perf-table .opt { color: var(--accent); font-weight: 600; }
.perf-table .gain { color: var(--success); font-weight: 700; }

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.form-grid .col-2 { grid-column: span 2; }
.form-grid .col-full { grid-column: 1 / -1; }
.field .req { color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Alientech-Band ---------- */
.brandband { background: var(--accent); color: #140a03; }
.brandband .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.brandband img { max-height: 46px; }

/* ---------- Footer ---------- */
.site-footer { background: #07090b; border-top: 1px solid var(--line-soft); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); }
.site-footer h4 { color: var(--text); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-contact li { list-style: none; }
.footer-contact { padding: 0; margin: 0; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); margin-right: 8px; font-size: 1.1rem; }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.footer-bottom nav a { margin-left: 16px; }

/* ---------- Stat / Rechenbeispiel ---------- */
.stat-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 8vw, 5rem); color: var(--accent); line-height: 1; }
.highlight-box { background: var(--bg-elev); border: 1px solid var(--line-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 20px 24px; }
.highlight-box h3 { margin: 0 0 4px; }
.calc-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calc-card .head { padding: 15px 22px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.calc-card .body { padding: 22px; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.calc-row b { color: var(--text); font-weight: 600; }
.calc-result { margin-top: 18px; padding: 18px 22px; background: var(--accent-soft); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-result .big { font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; color: var(--accent); }

/* ---------- FAQ-Akkordeon (native details/summary) ---------- */
.faq-list { max-width: 880px; margin-top: 24px; display: grid; gap: 12px; }
.faq-item { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item[open] { border-color: var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\f107"; font-family: "FontAwesome"; color: var(--accent); transition: transform .2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item .answer { padding: 0 20px 18px; color: var(--muted); }
.faq-item .answer p { margin: 0 0 .8em; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item .answer a { color: var(--accent); }
.faq-item .answer ol, .faq-item .answer ul { padding-left: 1.3em; }
.faq-item .answer strong { color: var(--text); }

/* ---------- Check-Liste (Sortiment) ---------- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.check-item { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 18px; }
.check-item i { color: var(--accent); font-size: 1.1rem; flex: none; }

/* ---------- Prosa (Marketing-/Rechtstexte aus classic-Content) ---------- */
.prose { max-width: 900px; }
.prose .row { display: block; margin: 0; }
.prose [class*="col-"] { width: 100%; float: none; padding: 0; }
.prose section { background: transparent !important; padding: 0 0 8px !important; margin: 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose .section-heading { color: var(--text); font-family: var(--font-head); text-transform: none; margin: 1.4em 0 .5em; }
.prose h2, .prose .section-heading { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose p, .prose li, .prose label { color: var(--muted); }
.prose .lead, .prose .section-lead { font-size: 1.15rem; color: var(--text); }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose img { border-radius: 10px; margin: 6px 0; }
.prose strong, .prose b { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line-soft); padding: 9px 8px; text-align: left; }
.prose .glyphicon, .prose .texticon-icon { color: var(--accent); }

/* ---------- Referenzen-/Partner-Grid ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.ref-card { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, transform .15s ease; }
.ref-card:hover { border-color: var(--line); transform: translateY(-3px); }
.ref-card .img { aspect-ratio: 4/3; background: #0f1319; }
.ref-card .img img { width: 100%; height: 100%; object-fit: cover; }
.ref-card .cap { padding: 13px 15px; }
.ref-card .cap b { font-family: var(--font-head); font-weight: 600; }
.ref-card .cap small { display: block; color: var(--muted); margin-top: 2px; }

.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.partner-card { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--text); transition: border-color .2s ease, transform .15s ease; }
.partner-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.partner-card .logo { background: #fff; border-radius: 8px; height: 70px; display: grid; place-items: center; padding: 10px; margin-bottom: 12px; }
.partner-card .logo img { max-height: 100%; width: auto; }
.partner-card b { font-family: var(--font-head); display: block; }
.partner-card small { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3, .config-row, .detail-head, .footer-grid, .form-grid { grid-template-columns: 1fr; }
    .form-grid .col-2 { grid-column: 1 / -1; }
    .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg-elev); border-bottom: 1px solid var(--line); padding: 8px 20px; display: none; }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
    .nav-toggle { display: block; }
    .detail-head { gap: 18px; }
}
