* {
    box-sizing: border-box;
}

:root {
    --ink: #1c1e21;
    --muted: #56615d;
    --line: #e7edeb;
    --bg-soft: #f4f7f6;
    --white: #ffffff;
    --teal: #0f7d74;
    --teal-dark: #0b5e58;
    --orange: #ef8a3c;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Mulish', system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    margin: 0;
    padding-left: 1.1rem;
}

p {
    margin: 0;
}

main {
    display: block;
}

.container {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ebefee;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 160px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    font-weight: 700;
    color: #3b4744;
}

.main-nav a:hover {
    color: var(--teal);
}

.hotline,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    border: 0;
    color: #fff;
    background: var(--orange);
    padding: 11px 22px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: 0 6px 16px rgba(239, 138, 60, .28);
}

.hotline:hover,
.btn:hover {
    transform: translateY(-1px);
    background: #de7f36;
}

.hero-ghost {
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .35);
    box-shadow: none;
}

.hero {
    position: relative;
    color: #fff;
    background-image: linear-gradient(108deg, rgba(8, 52, 48, .93) 0%, rgba(13, 104, 95, .82) 58%, rgba(15, 125, 116, .62) 100%), url('https://www.confex.de/img/header/Stuttgart-Confex-Standort.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
    padding: 78px 0 70px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .14);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 0 16px;
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    font-weight: 900;
}

.hero p {
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .9);
    max-width: 560px;
    margin: 0 0 26px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.hero-stats strong {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-size: 28px;
    line-height: 1;
}

.hero-stats span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

.location-card {
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
}

.location-card h3 {
    margin: 0 0 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.location-card p {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .87);
}

.section {
    padding: 64px 0;
}

.section-soft {
    background: var(--bg-soft);
    border-top: 1px solid #eaefed;
}

.section-intro {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 900px;
}

.section h2 {
    margin: 0 0 12px;
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    letter-spacing: -.01em;
    line-height: 1.15;
    font-weight: 800;
}

.section-intro p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.filter-btn {
    border: 1.5px solid #d9e3e0;
    background: #fff;
    color: #33403d;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.filter-btn.active {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.result-label {
    margin-bottom: 24px;
    text-align: center;
    color: #7c8682;
    font-size: 14px;
    font-weight: 700;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-row {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 22px;
    background: #fff;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.course-date {
    background: #f0f6f4;
    border-radius: 12px;
    text-align: center;
    padding: 9px 6px;
}

.course-date strong {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-size: 25px;
    line-height: 1;
    color: var(--teal);
    font-weight: 900;
}

.course-date span {
    display: block;
    margin-top: 4px;
    color: #7c8682;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
}

.course-row h3 {
    margin: 8px 0 5px;
    font-family: 'Archivo', sans-serif;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
}

.course-row p {
    color: #76817d;
    font-size: 14px;
    line-height: 1.4;
}

.course-badge {
    display: inline-block;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}

.badge-anfaenger {
    background: #e4f3ef;
    color: #0b5e58;
}

.badge-fortgeschritten {
    background: #fbeada;
    color: #b9651a;
}

.badge-spezial {
    background: #e8eaf9;
    color: #3556a8;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdfc;
    padding: 24px;
}

.card h3 {
    margin: 0 0 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.card p,
.card li {
    color: #5b6661;
    line-height: 1.6;
}

.usp-band {
    background: #0c423d;
    color: #fff;
}

.usp-band .section-intro p {
    color: rgba(255, 255, 255, .82);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.usp-grid h3 {
    margin: 0 0 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
}

.usp-grid p {
    color: rgba(255, 255, 255, .8);
    line-height: 1.55;
}

.location-grid,
.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
    align-items: start;
}

.faq-list {
    max-width: 840px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e4eae9;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 12px;
}

.faq-question {
    width: 100%;
    border: 0;
    background: none;
    padding: 20px 24px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: #525c58;
    font-size: 16px;
    line-height: 1.65;
}

.faq-item.open .faq-answer {
    display: block;
}

.city-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.city-list a {
    display: inline-block;
    border: 1px solid #e0e7e5;
    border-radius: 999px;
    padding: 9px 18px;
    color: #3b4744;
    font-size: 14px;
    font-weight: 700;
}

.city-list a.active {
    border: 1.5px solid var(--teal);
    color: var(--teal);
    background: #eef6f4;
}

.site-footer {
    background: #1c1f22;
    color: rgba(255, 255, 255, .74);
    padding: 52px 0 22px;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
}

.site-footer p {
    line-height: 1.7;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: rgba(255, 255, 255, .78);
}

.site-footer a:hover {
    color: #fff;
}

.socials {
    margin-top: 14px;
    display: flex;
    gap: 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-bottom {
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

.footer-seal {
    width: 88px;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
}

@media (max-width: 1040px) {
    .hero-grid,
    .card-grid,
    .usp-grid,
    .location-grid,
    .cta-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .course-row {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .course-row .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .main-nav {
        display: none;
    }

    .header-inner {
        min-height: 68px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(1180px, calc(100% - 28px));
    }

    .hero-grid {
        padding: 56px 0 54px;
        gap: 30px;
    }

    .hero p {
        font-size: 17px;
    }

    .section {
        padding: 52px 0;
    }

    .hotline,
    .btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .faq-question {
        font-size: 16px;
        padding: 18px 18px;
    }

    .faq-answer {
        padding: 0 18px 16px;
        font-size: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
