/* =========================================================
   ZAUBERTEMPLATES – AUTOWERKSTATT PRO
   Main stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
    --bg: #0b0d10;
    --bg-soft: #12161b;
    --panel: #171c22;
    --panel-2: #1d232b;
    --text: #f4f6f8;
    --muted: #aab2bd;
    --line: #2a323c;
    --accent: #d61f2c;
    --accent-2: #ff5a66;
    --max: 1180px;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(0,0,0,.28)
}

/* ---------- Reset & base ---------- */
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

body.nav-open {
    overflow: hidden
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

button,input,select,textarea {
    font: inherit
}

.container {
    width: min(calc(100% - 40px),var(--max));
    margin-inline: auto
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 9999;
    background: #fff;
    color: #000;
    padding: 10px 14px;
    border-radius: 10px
}

.skip-link:focus {
    top: 16px
}

/* ---------- Header & navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11,13,16,.83);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06)
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg,var(--accent),#82111a);
    font-weight: 900;
    letter-spacing: -.04em;
    box-shadow: 0 10px 30px rgba(214,31,44,.25)
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.brand-copy strong {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.brand-copy small {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #dce1e7;
    font-size: 14px;
    font-weight: 700
}

.main-nav a:hover,.main-nav a.is-active {
    background: #1a2027;
    color: #fff
}

.main-nav .nav-cta {
    background: var(--accent);
    color: #fff;
    padding-inline: 16px
}

.main-nav .nav-cta:hover {
    background: var(--accent-2)
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: .2s
}

/* ---------- Hero ---------- */
.hero {
    padding: 92px 0 72px;
    overflow: hidden;
    position: relative
}

.hero:before {
    content: "";
    position: absolute;
    inset: -30% auto auto 55%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle,rgba(214,31,44,.19),transparent 66%);
    pointer-events: none
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 60px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff8e96;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px
}

.eyebrow:before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent)
}

h1,
h2,
h3 {
    margin: 0 0 .65em;
    line-height: 1.05;
    letter-spacing: -.035em
}

h1 {
    font-size: clamp(44px,7vw,84px);
    max-width: 950px
}

h2 {
    font-size: clamp(32px,4.5vw,56px)
}

h3 {
    font-size: 22px
}

.hero p,
.page-hero p {
    color: #bac2cb;
    font-size: clamp(17px,2vw,20px);
    max-width: 720px
}

.gradient-text {
    background: linear-gradient(135deg,#fff 15%,#ff7a83 48%,var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 19px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-weight: 850;
    cursor: pointer;
    transition: transform .2s ease,background .2s ease,border .2s ease
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-primary {
    background: var(--accent);
    color: #fff
}

.btn-primary:hover {
    background: var(--accent-2)
}

.btn-secondary {
    background: #151a20;
    border-color: var(--line)
}

.hero-card {
    min-height: 480px;
    border-radius: 30px;
    background: linear-gradient(145deg,#20262e,#101419);
    border: 1px solid #2d3640;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px
}

.hero-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,transparent 30%,rgba(214,31,44,.1))
}

.hero-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(8px);
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
    color: #d7dce2
}

.car-visual {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 25%;
    height: 160px
}

.car-visual:before {
    content: "";
    position: absolute;
    left: 12%;
    right: 9%;
    top: 28%;
    height: 76px;
    border: 5px solid rgba(255,255,255,.86);
    border-radius: 75px 90px 24px 24px;
    transform: skewX(-8deg);
    filter: drop-shadow(0 12px 30px rgba(214,31,44,.25))
}

.car-visual:after {
    content: "";
    position: absolute;
    left: 7%;
    right: 6%;
    bottom: 18px;
    height: 18px;
    background: linear-gradient(90deg,transparent,var(--accent),#fff,var(--accent),transparent);
    border-radius: 100%;
    filter: blur(12px);
    opacity: .68
}

.hero-stat {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px
}

.hero-stat div {
    padding: 15px;
    border-radius: 16px;
    background: rgba(8,10,12,.7);
    border: 1px solid rgba(255,255,255,.08)
}

.hero-stat strong {
    display: block;
    font-size: 21px
}

.hero-stat span {
    display: block;
    font-size: 11px;
    color: var(--muted)
}

/* ---------- Sections & reusable components ---------- */
.section {
    padding: 88px 0
}

.section-soft {
    background: var(--bg-soft);
    border-block: 1px solid rgba(255,255,255,.05)
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px
}

.section-head>p {
    max-width: 520px;
    color: var(--muted)
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.card {
    background: linear-gradient(150deg,#181d23,#11151a);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    min-height: 220px;
    transition: .22s
}

.card:hover {
    transform: translateY(-5px);
    border-color: #3b4652
}

.card p {
    color: var(--muted)
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(214,31,44,.13);
    color: #ff7d86;
    margin-bottom: 22px;
    font-size: 24px
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px;
    align-items: center
}

.media-placeholder {
    min-height: 440px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: repeating-linear-gradient(135deg,#151a20 0,#151a20 22px,#181e25 22px,#181e25 44px);
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative
}

.media-placeholder:after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(255,255,255,.02),0 0 0 96px rgba(255,255,255,.015)
}

.placeholder-label {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(8,10,12,.72);
    padding: 15px 18px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.08)
}

.placeholder-label strong,.placeholder-label span {
    display: block
}

.placeholder-label span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px
}

.text-muted {
    color: var(--muted)
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0
}

.feature-list li {
    padding: 11px 0 11px 30px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: relative
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff6973;
    font-weight: 900
}

.numbers {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px
}

.numbers div {
    padding: 25px;
    border-left: 2px solid var(--accent)
}

.numbers strong {
    font-size: clamp(30px,5vw,50px);
    display: block
}

.numbers span {
    color: var(--muted)
}

.cta {
    border-radius: 28px;
    padding: 34px 38px;
    background: linear-gradient(120deg,var(--accent),#7c1119);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 22px 60px rgba(214,31,44,.2)
}

.cta p {
    margin: 0;
    color: #ffe4e6
}

.cta .btn {
    background: #fff;
    color: #16191d
}

.badge,
.service-tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 850;
    background: rgba(255,255,255,.11)
}

/* ---------- Inner-page hero ---------- */
.page-hero {
    padding: 80px 0 48px;
    background: radial-gradient(circle at 80% 20%,rgba(214,31,44,.16),transparent 35%)
}

.page-hero h1 {
    font-size: clamp(44px,6vw,76px)
}

/* ---------- Services ---------- */
.service-row {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--line)
}

.service-row>strong {
    font-size: 22px
}

.service-row p {
    margin: 0;
    color: var(--muted)
}

.service-tag {
    background: #1d232a;
    color: #dfe4e9;
    border: 1px solid var(--line)
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 14px
}

.gallery-item {
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg,#1d232a,#11151a);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
    position: relative
}

.gallery-item:before {
    content: "";
    position: absolute;
    inset: 18% 8%;
    border: 2px dashed rgba(255,255,255,.12);
    border-radius: 18px
}

.gallery-item strong {
    position: relative;
    z-index: 2;
    background: rgba(7,9,11,.72);
    padding: 8px 10px;

    border-radius: 10px
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
    grid-column: span 7
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
    grid-column: span 5
}

.gallery-item:nth-child(5),
.gallery-item:nth-child(6) {
    grid-column: span 6
}

/* ---------- Contact & forms ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 24px
}

.contact-panel,
.form-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 25px
}

.contact-list a,.contact-list div {
    padding: 14px;
    border-radius: 13px;
    background: #101419;
    border: 1px solid #252d36
}

.form-help {
    color: var(--muted);
    margin-top: -8px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.field {
    display: grid;
    gap: 7px
}

.field-full {
    grid-column: 1/-1
}

.field label {
    font-weight: 800;
    font-size: 13px
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #303943;
    background: #0e1216;
    color: #fff;
    border-radius: 12px;
    padding: 12px 13px;
    outline: none;
    transition: .2s
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(214,31,44,.15)
}

.field textarea {
    min-height: 150px;
    resize: vertical
}

.notice {
    padding: 13px 15px;
    border-radius: 12px;
    margin: 0 0 18px
}

.notice-success {
    background: #11251b;
    border: 1px solid #235b3b;
    color: #aee8c5
}

.notice-error {
    background: #2a1417;
    border: 1px solid #6a2b33;
    color: #ffc2c6
}

/* ---------- Legal pages & 404 ---------- */
.legal {
    max-width: 850px
}

.legal h2 {
    font-size: 28px;
    margin-top: 38px
}

.legal p {
    color: #c1c8d0
}

.not-found {
    min-height: 65vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 60px 0
}

.not-found strong {
    font-size: clamp(90px,20vw,220px);
    line-height: .8;
    color: #1e242b;
    display: block
}

/* ---------- Footer ---------- */
.site-footer {
    background: #080a0c;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 62px 0 22px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr .7fr;
    gap: 30px
}

.footer-grid h3 {
    font-size: 14px;
    letter-spacing: .05em
}

.footer-grid p,
.footer-grid a,
.hours {
    color: #9fa8b2;
    font-size: 14px
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.hours {
    margin: 0
}

.hours div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0
}

.hours dt {
    font-weight: 700
}

.hours dd {
    margin: 0;
    text-align: right
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    margin-top: 34px;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: 12px;
    color: #89939e
}

/* ---------- Scroll reveal animation ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease,transform .55s ease
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none
    }

    .btn,.card {
        transition: none
    }

}

/* ---------- Responsive: tablet ---------- */
@media (max-width:900px) {
    .nav-toggle {
        display: block
    }

    .main-nav {
        position: fixed;
        left: 20px;
        right: 20px;
        top: 94px;
        background: #11161c;
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow)
    }

    .main-nav.is-open {
        display: flex
    }

    .main-nav a {
        padding: 13px 14px
    }

    .hero-grid,
.split,
.contact-grid {
        grid-template-columns: 1fr
    }

    .hero {
        padding-top: 65px
    }

    .hero-card {
        min-height: 390px
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr
    }

    .numbers {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .service-row {
        grid-template-columns: 1fr auto
    }

    .service-row p {
        grid-column: 1/-1
    }

    .gallery-item:nth-child(n) {
        grid-column: span 6
    }

    .section-head {
        align-items: start;
        flex-direction: column;
        gap: 10px
    }

}

/* ---------- Responsive: mobile ---------- */
@media (max-width:620px) {
    .container {
        width: min(calc(100% - 28px),var(--max))
    }

    .brand-copy small {
        display: none
    }

    .hero {
        padding: 50px 0
    }

    .hero-card {
        min-height: 335px;
        padding: 18px
    }

    .car-visual {
        top: 24%;
        left: 4%;
        right: 4%
    }

    .hero-stat {
        grid-template-columns: 1fr
    }

    .hero-stat div:nth-child(n+2) {
        display: none
    }

    .section {
        padding: 64px 0
    }

    .grid-3,
.numbers,
.footer-grid,
.form-grid {
        grid-template-columns: 1fr
    }

    .cta {
        padding: 28px;
        align-items: flex-start;
        flex-direction: column
    }

    .gallery-item:nth-child(n) {
        grid-column: span 12
    }

    .media-placeholder {
        min-height: 330px
    }

    .service-row {
        grid-template-columns: 1fr
    }

    .service-tag {
        justify-self: start
    }

    .footer-bottom {
        flex-direction: column
    }

    .page-hero {
        padding-top: 58px
    }

}
