/* Autoskole landing — red/white palette with overridable --primary */

:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-soft: #fee2e2;
    --ink: #0f172a;
    --ink-muted: #475569;
    --line: #e2e8f0;
    --bg-soft: #fff7f7;
    --bg-page: #ffffff;
}

* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
body { background: var(--bg-page); color: var(--ink); }

/* ---------- Top navbar ---------- */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    position: sticky; top: 0; z-index: 50;
}
.site-nav .brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.site-nav .brand .logo-dot {
    width: 32px; height: 32px;
    background: var(--primary); color: white;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.site-nav .brand img { max-height: 36px; }
.site-nav .nav-link {
    color: var(--ink-muted) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 8px;
}
.site-nav .nav-link:hover { color: var(--ink) !important; background: #f8fafc; }

/* Mobile hamburger toggle + collapsed nav */
.site-nav .navbar-toggler {
    border: 1.5px solid var(--line);
    padding: 6px 10px;
    border-radius: 10px;
}
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding: 12px 0 6px; }
    .site-nav .navbar-nav .nav-link {
        padding: 12px 4px !important;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
    }
    .site-nav .navbar-nav .nav-link:hover { background: transparent; }
    .site-nav .navbar-nav .nav-meta { margin-top: 12px; }
    .site-nav .btn-signin { display: inline-flex; width: 100%; justify-content: center; }
}

.btn-signin {
    background: var(--primary);
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}
.btn-signin:hover { background: var(--primary-dark); color: white !important; }

.lang-switcher { display: inline-flex; gap: 2px; padding: 3px; background: #f1f5f9; border-radius: 8px; }
.lang-switcher .lang-link {
    padding: 4px 10px;
    font-size: .8rem; font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
}
.lang-switcher .lang-link:hover { color: var(--primary); }
.lang-switcher .lang-link.active { background: white; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(220,38,38,.18), transparent 60%),
        radial-gradient(800px 600px at 110% 10%, rgba(220,38,38,.10), transparent 60%),
        linear-gradient(180deg, var(--bg-soft), #ffffff);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--line);
}
.hero .badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-soft); color: var(--primary-dark);
    padding: 6px 14px; border-radius: 999px;
    font-weight: 600; font-size: .85rem;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800; line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--primary); }
.hero p.lead {
    font-size: 1.18rem; color: var(--ink-muted);
    max-width: 640px; margin-bottom: 28px; line-height: 1.55;
}
.hero .btn-primary-cta {
    background: var(--ink); color: white;
    padding: 14px 30px; border-radius: 12px;
    font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    transition: transform .15s ease;
}
.hero .btn-primary-cta:hover { transform: translateY(-1px); background: #1e293b; color: white; }
.hero .hero-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15,23,42,.18);
    background: #0f172a;
}
.hero .hero-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);  /* tiny over-scale to hide any decode edge */
}
.hero .hero-visual::after {
    /* Brighter wash so the photo lifts and stats card stays readable */
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(15,23,42,0) 50%, rgba(15,23,42,.45) 100%),
        linear-gradient(135deg, rgba(220,38,38,.12), rgba(249,115,22,.10) 60%);
    pointer-events: none;
}
.hero .hero-visual .klasse-floats {
    position: absolute; inset: 0;
    z-index: 2;
}

/* Glass-morphism stat card pinned to the lower-right of the hero photo */
.hero-stats-card {
    position: absolute;
    right: 18px; bottom: 18px;
    z-index: 3;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,.25);
    min-width: 240px;
}
.hero-stats-card-header {
    display: flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}
.hero-stats-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
    font-size: 1.3rem; font-weight: 800;
    color: var(--ink);
    line-height: 1; letter-spacing: -.02em;
}
.hero-stat-label {
    font-size: .68rem;
    color: var(--ink-muted);
    text-transform: lowercase;
    margin-top: 3px;
}
.klasse-float {
    position: absolute; background: white; color: var(--ink);
    padding: 10px 16px; border-radius: 14px;
    font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2);
    z-index: 2;
}
.klasse-float.k-a  { top: 8%;  left: 6%; }
.klasse-float.k-b  { top: 8%;  right: 6%; }
.klasse-float.k-ce { top: 55%; left: 4%; }

/* ---------- Category cards ---------- */
.section { padding: 70px 0; }
.section h2 {
    font-size: 2rem; font-weight: 800;
    margin-bottom: 36px; letter-spacing: -.01em;
}
.cat-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 18px; padding: 28px; height: 100%;
    transition: all .2s ease; text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
}
.cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 14px 30px rgba(220,38,38,.12);
}
.cat-card .icon-wrap {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 18px;
}
.cat-card .klasse-badge {
    display: inline-block;
    background: var(--ink); color: white;
    padding: 4px 12px; border-radius: 8px;
    font-weight: 800; font-size: .85rem; letter-spacing: .04em;
    margin-bottom: 10px;
}
.cat-card h3 { font-weight: 700; margin-bottom: 6px; }
.cat-card .cat-tag { font-size: .85rem; color: var(--ink-muted); margin-bottom: 18px; }
.cat-card .cat-count {
    margin-top: auto;
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 18px; border-top: 1px solid var(--line);
    color: var(--primary); font-weight: 700;
}

/* ---------- Stats strip ---------- */
.stats-strip {
    background: linear-gradient(135deg, var(--ink), #1e293b);
    color: white;
    padding: 50px 0;
}
.stats-strip .stat-num {
    font-size: 2.6rem; font-weight: 800; line-height: 1;
    letter-spacing: -.02em;
    color: white;
}
.stats-strip .stat-label {
    margin-top: 6px;
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    text-transform: lowercase;
}

/* ---------- Feature cards ---------- */
.feature-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 22px;
    height: 100%;
    transition: all .2s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(220,38,38,.12);
}
.feature-card .feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.feature-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { color: var(--ink-muted); font-size: .92rem; line-height: 1.55; margin-bottom: 0; }

/* ---------- How it works ---------- */
.how { background: #f8fafc; }
.how-step {
    background: white; border-radius: 18px; padding: 32px 28px;
    height: 100%; text-align: left;
    border: 1px solid var(--line);
}
.how-step .step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
    margin-bottom: 16px;
}
.how-step h4 { font-weight: 700; margin-bottom: 8px; }
.how-step p { color: var(--ink-muted); margin-bottom: 0; line-height: 1.55; }

/* ---------- Sample flashcards ---------- */
.flash-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.flash-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 22px;
    transition: all .2s ease;
    position: relative;
}
.flash-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.flash-card .flash-pill {
    display: inline-block;
    background: var(--primary-soft); color: var(--primary-dark);
    padding: 3px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; margin-bottom: 14px;
}
.flash-card .flash-q { font-weight: 600; line-height: 1.45; color: var(--ink); margin-bottom: 0; }

/* ---------- About school ---------- */
.about-card {
    background: linear-gradient(135deg, var(--ink), #1e293b);
    color: white;
    border-radius: 24px;
    padding: 48px;
}
.about-card h2 { color: white; font-weight: 800; margin-bottom: 18px; }
.about-card .meta-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.about-card .meta-row i { color: var(--primary-soft); font-size: 1.2rem; width: 24px; }
.about-card .meta-row .label { opacity: .65; font-size: .85rem; min-width: 90px; }
.about-card .btn-contact {
    background: white; color: var(--ink);
    padding: 12px 24px; border-radius: 10px;
    font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.about-card .school-intro {
    color: rgba(255,255,255,.82);
    line-height: 1.6;
    max-width: 640px;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a; color: #cbd5e1;
    padding: 50px 0 30px;
    margin-top: 70px;
}
.site-footer h6 { color: white; font-weight: 700; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: white; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px; margin-top: 30px;
    font-size: .85rem; color: #94a3b8;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.site-footer .disclaimer { font-size: .8rem; color: #64748b; max-width: 520px; }
.site-footer .builtby { font-size: .85rem; }
.site-footer .builtby-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted rgba(255,255,255,.25);
}
.site-footer .builtby-link:hover { color: white; border-bottom-color: white; }
