@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');


:root {
    --red: #D71920;
    --red-light: #EF3B43;

    --black: #101010;
    --dark: #181818;
    --dark-2: #222222;

    --light: #f3f1ec;
    --white: #ffffff;

    --text: #1b1b1b;
    --muted: #6f6f6f;

    --border: #ddd9d0;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   NAVIGATION
========================= */

.navbar {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 20;

    border-bottom: 1px solid rgba(255,255,255,.2);
}

.nav-inner {
    height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;

    font-family: 'Barlow Condensed', sans-serif;

    font-size: 27px;
    font-weight: 700;

    line-height: .8;

    letter-spacing: 1px;
}

.logo span {
    display: block;

    font-size: 13px;

    letter-spacing: 3px;

    color: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 32px;
}

.nav-links a {
    color: white;

    font-size: 14px;
    font-weight: 600;

    transition: color .2s ease;
}

.nav-links a:hover {
    color: var(--red);
}

.menu-toggle {
    display: none;

    border: none;
    background: transparent;

    color: white;

    font-size: 30px;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 760px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-image: url("../img/auto.jpg");

    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.68) 42%,
            rgba(0,0,0,.15) 100%
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    padding-top: 80px;
}

.hero-text {
    max-width: 760px;
}

.eyebrow {
    margin-bottom: 18px;

    color: var(--red);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.hero h1 {
    color: white;

    font-family: 'Barlow Condensed', sans-serif;

    font-size: clamp(70px, 9vw, 125px);

    font-weight: 800;

    line-height: .82;

    text-transform: uppercase;

    letter-spacing: -2px;
}

.hero h1 span {
    display: block;

    color: var(--red);
}

.hero-description {
    max-width: 620px;

    margin-top: 32px;

    color: rgba(255,255,255,.85);

    font-size: 18px;

    line-height: 1.7;
}

.hero-buttons {
    display: flex;

    gap: 14px;

    margin-top: 35px;

    flex-wrap: wrap;
}


/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 26px;

    border: 2px solid transparent;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .7px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        border-color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-gold {
    background: var(--red);

    color: var(--black);
}

.button-gold:hover {
    background: var(--red-light);
}

.button-outline {
    border-color: rgba(255,255,255,.7);

    color: white;

    background: transparent;
}

.button-outline:hover {
    background: white;
    color: var(--black);
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 760px;

    margin-bottom: 55px;
}

.section-heading h2,
.registration-intro h2,
.contact-information h2 {
    font-family: 'Barlow Condensed', sans-serif;

    font-size: clamp(55px, 7vw, 85px);

    font-weight: 800;

    line-height: .85;

    text-transform: uppercase;
}

.section-heading h2 span,
.registration-intro h2 span,
.contact-information h2 span {
    display: block;

    color: var(--red);
}

.section-heading > p:last-child {
    max-width: 650px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 16px;
}


/* =========================
   FEATURE CARDS
========================= */

.about-section {
    background: var(--light);
}

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.feature-card {
    position: relative;

    min-height: 270px;

    padding: 32px;

    background: white;

    border: 1px solid var(--border);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.feature-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 45px rgba(0,0,0,.08);
}

.feature-number {
    color: var(--red);

    font-family: 'Barlow Condensed', sans-serif;

    font-size: 36px;
    font-weight: 700;
}

.feature-card h3 {
    margin-top: 35px;

    font-family: 'Barlow Condensed', sans-serif;

    font-size: 28px;

    text-transform: uppercase;

    line-height: 1;
}

.feature-card p {
    margin-top: 15px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================
   F�HRERSCHEINKLASSEN
========================= */

.classes-section {
    background: var(--dark);

    color: white;
}

.dark-heading h2 {
    color: white;
}

.class-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.class-card {
    position: relative;

    min-height: 340px;

    padding: 35px;

    border: 1px solid rgba(255,255,255,.13);

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.class-card:hover {
    transform: translateY(-7px);

    border-color: var(--red);

    background: var(--dark-2);
}

.class-number {
    color: var(--red);

    font-family: 'Barlow Condensed', sans-serif;

    font-size: 105px;

    font-weight: 800;

    line-height: .8;
}

.class-card h3 {
    margin-top: 35px;

    font-family: 'Barlow Condensed', sans-serif;

    font-size: 32px;

    text-transform: uppercase;
}

.class-card p {
    margin-top: 8px;

    color: #aaa;

    font-size: 14px;
}

.class-card > a {
    color: var(--red);

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .8px;
}


/* =========================
   ANMELDUNG
========================= */

.registration-section {
    background: var(--light);
}

.registration-intro {
    max-width: 760px;

    margin-bottom: 50px;
}

.registration-intro > p:last-child {
    max-width: 680px;

    margin-top: 25px;

    color: var(--muted);
}

.registration-form {
    padding: 45px;

    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 20px 60px rgba(0,0,0,.05);
}

.form-title {
    margin-bottom: 35px;

    font-family: 'Barlow Condensed', sans-serif;

    font-size: 32px;

    font-weight: 700;

    text-transform: uppercase;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 24px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 15px;

    border: 1px solid #d4d0c8;

    background: #faf9f6;

    color: var(--text);

    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px rgba(214,162,30,.13);
}

.form-group textarea {
    resize: vertical;

    min-height: 130px;
}

.privacy-check {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin: 28px 0;

    font-size: 12px;

    color: var(--muted);
}

.privacy-check input {
    margin-top: 3px;
}

.submit-button {
    border: none;
}

.form-note {
    margin-top: 18px;

    color: #888;

    font-size: 11px;
}

.form-success {
    display: none;

    margin-top: 25px;

    padding: 16px;

    background: #e8f5e9;

    color: #28632c;

    border-left: 4px solid #3b873e;

    font-size: 14px;
}


/* =========================
   KONTAKT
========================= */

.contact-section {
    background: #e8e5de;
}

.contact-grid {
    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap: 60px;

    align-items: center;
}

.contact-information h2 {
    margin-bottom: 35px;
}

.address {
    margin-bottom: 25px;

    font-size: 16px;
}

.address strong {
    font-size: 18px;
}

.address p {
    margin-top: 7px;

    color: var(--muted);

    line-height: 1.7;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details a {
    font-weight: 700;
}

.map-container {
    height: 450px;

    overflow: hidden;

    border: 1px solid #ccc;

    background: #ddd;

    box-shadow:
        0 15px 40px rgba(0,0,0,.08);
}

.map-container iframe {
    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================
   FOOTER
========================= */

footer {
    background: var(--black);

    color: #aaa;

    padding: 25px 0;
}

.footer-inner {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    font-size: 12px;
}

.footer-links {
    display: flex;

    gap: 25px;
}

.footer-links a:hover {
    color: var(--red);
}


/* =========================
   SCROLL ANIMATION
========================= */

.feature-card,
.class-card {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.feature-card.visible,
.class-card.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .nav-links {
        position: absolute;

        top: 88px;

        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        padding: 25px 20px;

        background: var(--black);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

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

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

}


@media (max-width: 650px) {

    .container {
        width:
            calc(100% - 30px);
    }

    .hero {
        min-height: 680px;
    }

    .hero h1 {
        font-size: 68px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .section {
        padding: 75px 0;
    }

    .section-heading h2,
    .registration-intro h2,
    .contact-information h2 {
        font-size: 58px;
    }

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

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

    .form-group.full {
        grid-column: auto;
    }

    .registration-form {
        padding: 25px 20px;
    }

    .map-container {
        height: 350px;
    }

    .footer-inner {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 400px) {

    .hero h1 {
        font-size: 58px;
    }

    .section-heading h2,
    .registration-intro h2,
    .contact-information h2 {
        font-size: 50px;
    }

}