/* Fahrdynamik Fahrschule — gemeinsames Design aller Seiten. */

:root {
    --bg: #0a0f1e;
    --bg-soft: #0f1629;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --text: #eef2ff;
    --text-muted: #94a3c7;
    --accent: #3b82f6;
    --accent-2: #8b5cf6;
    --accent-3: #22d3ee;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 55%, #22d3ee 100%);
    --radius: 18px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --font-head: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection {
    background: rgba(139, 92, 246, 0.45);
    color: #fff;
}
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse 60% 45% at 12% -5%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 50% 110%, rgba(34, 211, 238, 0.10), transparent 65%),
    var(--bg);
}
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}
header.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(10, 15, 30, 0.72);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}
.logo-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
}
.logo-text small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 10px;
    transition: all 0.22s ease;
}
.nav-links a:hover {
    color: var(--text);
    background: var(--surface-strong);
}
.nav-links a.active {
    color: #fff;
    background: var(--surface-strong);
    box-shadow: inset 0 0 0 1px var(--border);
}
.nav-cta {
    background: var(--gradient) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    position: relative;
    transition: all 0.25s ease;
}
.burger span::before {
    position: absolute;
    top: -7px;
}
.burger span::after {
    position: absolute;
    top: 7px;
}
.burger.open span {
    background: transparent;
}
.burger.open span::before {
    top: 0;
    transform: rotate(45deg);
}
.burger.open span::after {
    top: 0;
    transform: rotate(-45deg);
}
@media (max-width: 860px) {
    .burger {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(10, 15, 30, 0.97);
        border-bottom: 1px solid var(--border);
        padding: 14px 20px 22px;
        gap: 4px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.28s ease;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a {
        padding: 13px 16px;
        font-size: 1rem;
    }
}
main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
section {
    padding: 72px 0 30px;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-3);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.22);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.section-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 10px var(--accent-3);
}
h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
}
h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 14px;
}
h3 {
    font-size: 1.2rem;
}
.lead {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 640px;
}
.grad-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-head {
    margin-bottom: 44px;
    max-width: 720px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.22s ease;
}
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(99, 102, 241, 0.55);
}
.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--surface-strong);
    transform: translateY(-2px);
}
.hero {
    padding: 88px 0 60px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}
.hero p.lead {
    margin: 20px 0 34px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-visual {
    position: relative;
}
.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 34px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 10%, rgba(139, 92, 246, 0.22), transparent 55%);
    pointer-events: none;
}
.hero-card .big-price {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 8px 0 2px;
}
.hero-card .big-price small {
    font-size: 1rem;
    -webkit-text-fill-color: var(--text-muted);
}
.hero-card ul {
    list-style: none;
    margin-top: 22px;
    display: grid;
    gap: 12px;
}
.hero-card li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.94rem;
}
.hero-card li strong {
    color: var(--text);
    font-weight: 600;
}
.check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    display: grid;
    place-items: center;
    margin-top: 1px;
}
.check svg {
    stroke: #34d399;
}
.float-chip {
    position: absolute;
    background: rgba(15, 22, 41, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: floaty 5s ease-in-out infinite;
}
.float-chip strong {
    font-family: var(--font-head);
    font-size: 1rem;
    display: block;
}
.float-chip span {
    color: var(--text-muted);
    font-size: 0.76rem;
}
.chip-1 {
    top: -20px;
    right: -10px;
}
.chip-2 {
    bottom: -18px;
    left: -14px;
    animation-delay: 1.6s;
}
@keyframes floaty {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 56px;
    }
    .float-chip {
        display: none;
    }
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 26px 0 20px;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    transition: all 0.25s ease;
}
.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
}
.stat .num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat .lbl {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-top: 4px;
}
@media (max-width: 760px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.28s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--shadow);
}
.card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.card:hover::after {
    transform: scaleX(1);
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}
.card h3 {
    margin-bottom: 10px;
}
.card p {
    color: var(--text-muted);
    font-size: 0.94rem;
}
.card .price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.94rem;
}
.card .price-row:last-of-type {
    border-bottom: none;
}
.card .price-row span {
    color: var(--text-muted);
}
.card .price-row strong {
    font-family: var(--font-head);
    font-size: 1.05rem;
}
.class-badge {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.6rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}
.class-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    margin-bottom: 14px;
}
.open-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.02rem;
    padding: 10px 20px;
    border-radius: 999px;
    margin-bottom: 30px;
}
.open-status.open {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}
.open-status.closed {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}
.hours-table {
    width: 100%;
    border-collapse: collapse;
}
.hours-table th, .hours-table td {
    text-align: left;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.96rem;
}
.hours-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hours-table td:last-child, .hours-table th:last-child {
    text-align: right;
}
.hours-table tr.today td {
    background: rgba(99, 102, 241, 0.09);
    color: #fff;
    font-weight: 600;
}
.hours-table tr.today td:first-child {
    border-radius: 12px 0 0 12px;
}
.hours-table tr.today td:last-child {
    border-radius: 0 12px 12px 0;
}
.badge-today {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--gradient);
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
    vertical-align: middle;
}
.cta-band {
    margin: 60px 0 30px;
    border-radius: 26px;
    padding: 52px 48px;
    background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(139,92,246,0.16));
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -40%, rgba(34, 211, 238, 0.25), transparent 60%);
    pointer-events: none;
}
.cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta-band p {
    color: var(--text-muted);
    margin: 12px auto 28px;
    max-width: 520px;
}
.cta-band .hero-actions {
    justify-content: center;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-item .ci-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    display: grid;
    place-items: center;
}
.contact-item h4 {
    font-family: var(--font-head);
    font-size: 0.98rem;
    margin-bottom: 3px;
}
.contact-item p, .contact-item a {
    color: var(--text-muted);
    font-size: 0.93rem;
    text-decoration: none;
}
.contact-item a:hover {
    color: var(--accent-3);
}
form .field {
    margin-bottom: 16px;
}
form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text);
}
form input, form select, form textarea {
    width: 100%;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
form input:focus, form select:focus, form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
form textarea {
    resize: vertical;
    min-height: 120px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 620px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 14px;
}
footer {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    background: rgba(10, 15, 30, 0.6);
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 52px 24px 30px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}
@media (max-width: 860px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 520px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
footer h4 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
footer p, footer a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}
footer a:hover {
    color: var(--accent-3);
}
.footer-links {
    list-style: none;
    display: grid;
    gap: 10px;
}
.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 {
    transition-delay: 0.08s;
}
.reveal-d2 {
    transition-delay: 0.16s;
}
.reveal-d3 {
    transition-delay: 0.24s;
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .float-chip, .pulse-dot {
        animation: none;
    }
}
.price-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
table.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.price-table th, .price-table td {
    padding: 17px 22px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.price-table th {
    background: rgba(15, 22, 41, 0.7);
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.price-table tr:last-child td {
    border-bottom: none;
}
.price-table tbody tr {
    transition: background 0.2s ease;
}
.price-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.06);
}
.price-table td:last-child {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
}
/* Social Media dauerhaft rechts am Bildschirm */
.social-rail {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.social-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    transition: transform .28s,filter .28s;
    box-shadow: 0 5px 18px rgba(0,0,0,.22);
}
.social-link svg {
    width: 24px;
    height: 24px;
}
.social-link:hover {
    transform: translateX(-7px) scale(1.12);
    filter: brightness(1.16);
}
.social-link.instagram {
    background: linear-gradient(135deg,#7356d9,#d9468c,#f59e0b);
}
.social-link.tiktok {
    background: #111;
}
.social-link.phone {
    background: #20a879;
}
.social-link.email {
    background: #2785d8;
}
.social-link:focus-visible {
    outline: 3px solid #75e0b1;
    outline-offset: 3px;
}
@media (max-width:760px) {
    .social-rail {
        right: 5px;
        padding: 0;
        gap: 9px;
    }
    .social-link {
        width: 36px;
        height: 36px;
    }
    .social-link svg {
        width: 21px;
        height: 21px;
    }
}
.logo-image {
    width: 58px;
    height: 46px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: logoFloat 5s ease-in-out infinite;
}
.social-rail {
    gap: 12px;
    right: 8px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.social-link {
    animation: railIn .65s cubic-bezier(.2,.8,.2,1) both;
}
.social-link:nth-child(2) {
    animation-delay: .08s;
}
.social-link:nth-child(3) {
    animation-delay: .16s;
}
.social-link:nth-child(4) {
    animation-delay: .24s;
}
@keyframes logoFloat {
    0%,100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}
@keyframes railIn {
    from {
        opacity: 0;
        transform: translateX(18px) scale(.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
.reveal {
    transition: opacity .75s ease,transform .75s cubic-bezier(.2,.8,.2,1);
}
.btn {
    transition: transform .25s ease,box-shadow .25s ease,filter .25s ease;
}
.btn:hover {
    transform: translateY(-4px);
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgba(32,168,121,.2);
}
.card,.class-card,.price-card,.step-card,.contact-card {
    transition: transform .3s ease,box-shadow .3s ease;
}
.card:hover,.class-card:hover,.price-card:hover,.step-card:hover,.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
}
@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* Fahrdynamik 2026 — additive redesign, original content & images retained */
:root {
    --bg: #080e1b;
    --bg-soft: #101b2b;
    --surface: rgba(255,255,255,.055);
    --surface-strong: rgba(255,255,255,.085);
    --border: rgba(205,224,255,.14);
    --text: #f5f8ff;
    --text-muted: #a6b7d0;
    --accent: #50a8ff;
    --accent-2: #738bff;
    --accent-3: #55e4db;
    --gradient: linear-gradient(110deg,#58c8ff 0%,#618dff 55%,#ac9cff 100%);
    --radius: 24px;
    --shadow: 0 24px 75px rgba(0,0,0,.28);
}
body {
    letter-spacing: -.01em;
    background: var(--bg);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 86% 12%,rgba(77,148,255,.1),transparent 36%),radial-gradient(circle at 12% 76%,rgba(33,192,199,.08),transparent 35%);
}
h1,h2,h3,h4 {
    letter-spacing: -.045em;
    text-wrap: balance;
}
p {
    line-height: 1.78;
}
a,button {
    -webkit-tap-highlight-color: transparent;
}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible {
    outline: 3px solid #83ddff;
    outline-offset: 4px;
}
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,14,27,.83);
    border-bottom: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: box-shadow .3s,background .3s;
}
.nav.scrolled {
    background: rgba(8,14,27,.96);
    box-shadow: 0 12px 34px #0004;
}
.nav-inner {
    gap: 20px;
}
.nav-links {
    gap: 5px;
}
.nav-links a {
    border-radius: 12px;
    transition: background .25s,color .25s,transform .25s !important;
}
.nav-links a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.075);
}
.nav-links a.active:not(.nav-cta) {
    background: rgba(80,168,255,.14);
    color: #b5e7ff;
}
.nav-links .nav-cta {
    box-shadow: 0 9px 24px #3679e437;
}
.logo-image {
    object-fit: contain;
}
.hero {
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 7% 0 auto auto;
    width: 36vw;
    height: 36vw;
    border: 1px solid rgba(111,176,255,.07);
    border-radius: 50%;
    pointer-events: none;
}
.hero h1 {
    line-height: 1.09;
}
.hero .lead {
    max-width: 65ch;
}
.btn,.nav-cta {
    transition: transform .22s ease,box-shadow .22s ease,filter .22s ease !important;
}
.btn:hover,.nav-cta:hover {
    transform: translateY(-3px) !important;
    filter: brightness(1.08);
}
.btn:active {
    transform: translateY(0) scale(.98) !important;
}
.hero-card,.float-chip,.feature-card,.class-card,.step-card,.price-card,.about-card,.about-image-frame {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .26s ease,box-shadow .3s ease,border-color .3s ease !important;
}
.hero-card:hover,.feature-card:hover,.class-card:hover,.step-card:hover,.price-card:hover,.about-card:hover {
    border-color: rgba(107,191,255,.45) !important;
    box-shadow: 0 24px 60px rgba(14,67,125,.22) !important;
}
.driving-image-row img,.about-image-frame img,main img:not(.logo-image) {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 18px 42px rgba(0,0,0,.23);
    transition: transform .5s ease,filter .5s ease;
}
main img:hover {
    transform: scale(1.025);
    filter: saturate(1.08);
}
section {
    scroll-margin-top: 96px;
}
.section-tag {
    letter-spacing: .12em;
}
.reveal {
    transition: opacity .65s ease,transform .65s cubic-bezier(.2,.8,.2,1) !important;
}
/* About page */
.about-hero {
    padding: 115px 0 55px;
}
.about-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: clamp(28px,6vw,100px);
}
.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .16em;
    font-weight: 800;
    color: #8bdcff;
    margin-bottom: 22px;
}
.about-hero h1 {
    font-size: clamp(2.7rem,5.2vw,5.6rem);
    max-width: 13ch;
    line-height: 1.08;
    margin-bottom: 26px;
}
.about-hero p {
    max-width: 58ch;
    color: var(--text-muted);
    font-size: 1.08rem;
}
.about-hero .hero-actions {
    margin-top: 30px;
}
.about-image-frame {
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(150deg,rgba(83,158,248,.13),rgba(255,255,255,.025));
    padding: 22px;
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-image-frame img {
    max-height: 370px;
    width: 100%;
    object-fit: contain;
}
.about-image-label {
    position: absolute;
    left: 24px;
    bottom: 20px;
    background: rgba(8,14,27,.8);
    backdrop-filter: blur(15px);
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-weight: 700;
}
.about-section {
    padding: 75px 0;
}
.about-section h2 {
    font-size: clamp(1.8rem,3.5vw,3rem);
    margin: 12px 0 16px;
}
.about-section .intro {
    max-width: 680px;
    color: var(--text-muted);
    margin-bottom: 34px;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
.about-card {
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(150deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
}
.about-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    color: #b7eaff;
    background: rgba(80,168,255,.13);
    font-size: 1.55rem;
    margin-bottom: 27px;
}
.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.about-card p {
    color: var(--text-muted);
    font-size: .96rem;
}
.about-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: linear-gradient(120deg,rgba(65,127,239,.2),rgba(43,206,201,.06));
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 28px;
}
.about-banner h2 {
    margin: 0 0 8px;
}
.about-banner p {
    color: var(--text-muted);
}
/* Stronger visual rhythm and accessible mobile menu */
main>section:not(.hero):not(.about-hero) {
    position: relative;
}
footer {
    margin-top: 45px;
}
.burger {
    z-index: 110;
}
.nav-links.open {
    z-index: 105;
}
@media (min-width:851px) {
    .nav-inner {
        max-width: 1280px;
    }
    .nav-links {
        display: flex;
        align-items: center;
    }
    .nav-links a {
        padding: 10px 13px;
    }
    .about-grid .about-card:nth-child(2) {
        transform: translateY(12px);
    }
}
@media (max-width:850px) {
    .nav {
        position: sticky;
    }
    .nav-links {
        background: rgba(12,23,39,.98) !important;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,.14);
        box-shadow: 0 24px 70px #0007;
    }
    .nav-links li,.nav-links a {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 14px 16px;
    }
    .about-hero {
        padding: 70px 0 35px;
    }
    .about-hero-grid {
        grid-template-columns: 1fr;
    }
    .about-image-frame {
        min-height: 280px;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width:600px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-hero h1 {
        font-size: clamp(2.45rem,12vw,3.5rem);
    }
    .about-section {
        padding: 48px 0;
    }
    .about-card {
        padding: 25px;
    }
    .about-banner {
        padding: 27px;
    }
    .about-image-frame {
        min-height: 240px;
        padding: 15px;
    }
    .hero::before {
        display: none;
    }
    .float-chip {
        animation: none !important;
    }
}
@media (hover:none),(pointer:coarse) {
    .tilt-card,.hero-card,.price-card {
        transform: none !important;
    }
}
@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
/* Existing content cards: pricing, class overview and theory steps */
.grid-3>.card,.grid-2>.card,.price-table-wrap {
    border-radius: 24px;
}
.grid-3>.card,.grid-2>.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
    border: 1px solid var(--border);
    transition: transform .28s ease,border-color .3s ease,box-shadow .3s ease !important;
    transform-style: preserve-3d;
}
.grid-3>.card:hover,.grid-2>.card:hover {
    border-color: rgba(111,201,255,.48);
    box-shadow: 0 22px 50px rgba(7,58,111,.2);
}
.grid-3>.card::after,.grid-2>.card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg,transparent,rgba(127,211,255,.35),transparent);
    pointer-events: none;
}
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.price-table tr {
    transition: background .2s;
}
.price-table tr:hover {
    background: rgba(92,163,253,.075);
}
.price-table th,.price-table td {
    padding-block: 15px;
}
.hours-table tr {
    transition: background .2s;
}
.hours-table tr:hover {
    background: rgba(92,163,253,.075);
}
/* 2026 brand refinement — central stylesheet for every page */
:root {
    --bg: #090f13;
    --bg-soft: #111d22;
    --surface: rgba(255,255,255,.045);
    --surface-strong: rgba(255,255,255,.085);
    --border: rgba(164,234,217,.17);
    --text: #f5fbfa;
    --text-muted: #a9c0bf;
    --accent: #37c2a5;
    --accent-2: #7ce6d0;
    --accent-3: #31a991;
    --gradient: linear-gradient(110deg,#34c5aa,#63dac5 55%,#3ea7a2);
}
.page-bg {
    background: radial-gradient(ellipse 58% 44% at 13% 0%,rgba(38,198,163,.14),transparent 70%),radial-gradient(ellipse 50% 35% at 90% 15%,rgba(55,170,171,.1),transparent 70%),var(--bg);
}
.nav.scrolled {
    background: rgba(8,18,20,.97);
}
.nav {
    background: rgba(8,18,20,.88);
}
.nav-links a.active:not(.nav-cta) {
    color: #8af0d5;
    background: rgba(50,194,165,.13);
}
.nav-links .nav-cta {
    color: #061a17 !important;
    box-shadow: 0 9px 24px rgba(39,180,148,.22);
}
.grad-text,.big-price {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.btn-primary {
    color: #06221d !important;
}
.hero-image-section {
    padding-top: 8px;
    padding-bottom: 12px;
}
.hero-image-section .feature-photo {
    display: block;
    width: 100%;
    height: clamp(220px,45vw,530px);
    object-fit: cover;
    object-position: center 45%;
    border-radius: 28px;
    border: 1px solid var(--border);
}
.image-caption {
    font-size: .84rem;
    color: var(--text-muted);
    margin-top: 12px;
}
.about-hero {
    padding-block: 90px 48px;
}
.about-hero-grid {
    grid-template-columns: 1fr 1fr;
}
.about-image-frame {
    padding: 9px;
    overflow: hidden;
}
.about-image-frame img {
    width: 100%;
    height: clamp(350px,47vw,600px);
    max-height: none;
    object-fit: cover;
    object-position: center 64%;
    border-radius: 23px;
}
.about-image-label {
    z-index: 2;
    max-width: calc(100% - 45px);
}
.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-mission img {
    width: 100%;
    max-height: 410px;
    object-fit: cover;
    object-position: center 42%;
}
.about-mission p {
    color: var(--text-muted);
    margin-bottom: 14px;
}
.about-card {
    height: 100%;
}
.site-photo {
    width: 100%;
    display: block;
    max-height: 460px;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--border);
    border-radius: 22px;
}
.media-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 42px auto;
}
.media-split p {
    color: var(--text-muted);
}
.media-split h2 {
    margin: 12px 0 14px;
}
.media-split .site-photo {
    max-height: 420px;
}
.media-split>div {
    min-width: 0;
}
main,section,.container,.nav-inner {
    min-width: 0;
}
img {
    max-width: 100%;
}
.price-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.price-table {
    min-width: 540px;
}
@media (max-width:850px) {
    .about-hero-grid,.about-mission,.media-split {
        grid-template-columns: 1fr;
    }
    .about-hero {
        padding-top: 52px;
    }
    .about-image-frame img {
        height: 390px;
    }
    .nav-links {
        background: rgba(9,24,24,.98) !important;
    }
}
@media (max-width:600px) {
    .hero-image-section .feature-photo {
        height: 240px;
    }
    .about-image-frame img {
        height: 320px;
    }
    .site-photo {
        max-height: 340px;
    }
    .media-split {
        gap: 20px;
    }
    .nav-inner {
        padding-inline: 16px;
    }
    .logo-text {
        font-size: .91rem;
    }
    .logo-text small {
        font-size: .58rem;
    }
    .logo-image {
        width: 48px;
        height: 40px;
    }
    .hero h1 {
        overflow-wrap: anywhere;
    }
}
/* ============================================================ */
/* Navigation, layout safeguards and accessibility */
/* ============================================================ */
:root {
    color-scheme: dark;
}
html {
    scroll-padding-top: 88px;
}
body {
    min-width: 320px;
}
main, .container, .nav-inner, section, .hero > *, .about-hero-grid > * {
    min-width: 0;
}
.nav-inner {
    position: relative;
}
.nav-links {
    flex-wrap: nowrap;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.nav-links a:focus-visible, .burger:focus-visible, .btn:focus-visible {
    outline: 3px solid #7ce6d0;
    outline-offset: 3px;
}
.nav-links a[aria-current="page"] {
    color: #8af0d5;
    background: rgba(50,194,165,.13);
}
.hero-visual {
    isolation: isolate;
}
.hero-card {
    z-index: 1;
}
/* All extra floating class badges around the driving-lesson panel are intentionally removed. */
.hero-visual .float-chip {
    display: none !important;
}
.hero-card::before {
    pointer-events: none;
}
.hero::before {
    pointer-events: none;
}
img {
    max-width: 100%;
}
.btn, button, a {
    touch-action: manipulation;
}
@media (max-width: 860px) {
    .nav-inner {
        height: 72px;
    }
    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 12px;
        right: 12px;
        width: auto;
        z-index: 500;
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        padding: 14px;
        border-radius: 0 0 16px 16px;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
    }
    .nav-links.open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-links li, .nav-links a {
        width: 100%;
    }
    .nav-links a {
        justify-content: flex-start;
        white-space: normal;
    }
    .burger {
        position: relative;
        z-index: 501;
        flex: 0 0 44px;
    }
    .nav {
        z-index: 1000;
    }
}
@media (max-width: 480px) {
    .nav-inner {
        gap: 9px;
    }
    .logo {
        min-width: 0;
    }
    .logo-text {
        overflow-wrap: anywhere;
    }
    .hero-actions .btn {
        max-width: 100%;
    }
    .hero-card {
        padding: 22px;
    }
    .stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Einheitliches Komponenten-Finish – auf allen Seiten */
:root { --control-radius: 13px; }
.btn, .nav-links .nav-cta, button[type="submit"] {
  min-height: 46px; border-radius: var(--control-radius); display: inline-flex;
  align-items: center; justify-content: center; gap: .6rem;
  font-weight: 700; line-height: 1.2; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:hover, .nav-links .nav-cta:hover, button[type="submit"]:hover { transform: translateY(-2px); }
.btn:active, .nav-links .nav-cta:active, button[type="submit"]:active { transform: translateY(0); }
.btn:focus-visible, .nav-links a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-2); outline-offset: 3px;
}
.btn svg { flex-shrink: 0; }
img { height: auto; }
.photo-showcase { margin-block: clamp(2rem, 5vw, 4.5rem); }
.photo-showcase .showcase-figure { margin: 0; padding: .6rem; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.photo-showcase .showcase-figure img { width: 100%; height: clamp(220px, 38vw, 480px); object-fit: cover; border-radius: 17px; display: block; }
.photo-showcase .showcase-figure figcaption { padding: .9rem .65rem .4rem; color: var(--text-muted); font-size: .94rem; }
.photo-showcase .showcase-heading { margin-bottom: 1.25rem; }
.photo-showcase .showcase-heading h2 { margin-bottom: .6rem; }
.photo-showcase .showcase-heading p { color: var(--text-muted); }
.photo-showcase .poster-figure img { object-fit: contain; height: auto; max-height: 680px; background: #0b1519; }
.photo-showcase .photo-double { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-submit { width: 100%; justify-content: center; }
@media(max-width:640px) {
  .photo-showcase .photo-double { grid-template-columns: 1fr; }
  .photo-showcase .showcase-figure img { height: 270px; }
  .photo-showcase .poster-figure img { height: auto; }
  .hero-actions .btn { width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  .btn, .nav-links .nav-cta, button[type="submit"] { transition: none; }
  .btn:hover, .nav-links .nav-cta:hover, button[type="submit"]:hover { transform: none; }
}


/* 2026 V2 — erkennbare Bedienelemente, saubere Medien und Fotovorschau */
:root { --control-shadow: 0 9px 22px rgba(0,0,0,.22); }
a.btn,button.btn,.nav-links a.nav-cta {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  gap:.65rem; padding: .88rem 1.5rem; min-height:49px;
  font-size:.95rem; font-weight:750; line-height:1.25; text-align:center;
  text-decoration:none; white-space:normal; border-radius:13px;
  border:1px solid transparent; box-shadow:var(--control-shadow);
  cursor:pointer; position:relative; isolation:isolate;
}
a.btn-primary,button.btn-primary,.nav-links a.nav-cta {
  color:#05241d !important; background:linear-gradient(115deg,#81edcf,#40c9a8) !important;
  border-color:#a5f5df !important; box-shadow:0 7px 21px rgba(46,199,161,.2) !important;
}
a.btn-secondary,a.btn-ghost,button.btn-secondary,button.btn-ghost {
  color:#eafffa !important; background:#173b3b !important;
  border:1px solid #59bda9 !important; box-shadow:0 7px 20px rgba(0,0,0,.22) !important;
}
a.btn-secondary:hover,a.btn-ghost:hover,button.btn-secondary:hover,button.btn-ghost:hover {
 background:#23534c !important; border-color:#9eeed7 !important;
}
a.btn:hover,button.btn:hover,.nav-links a.nav-cta:hover {
  transform:translateY(-2px); filter:brightness(1.06); box-shadow:0 12px 27px rgba(18,170,136,.23) !important;
}
a.btn:active,button.btn:active,.nav-links a.nav-cta:active{transform:translateY(1px)}
a.btn:focus-visible,button.btn:focus-visible,.photo-open:focus-visible,.lightbox-close:focus-visible {outline:3px solid #b7ffe9;outline-offset:4px}
.hero-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.hero-actions .btn{flex:0 1 auto}
/* Keine angeschnittenen Hochformatbilder, keine irreführend vergrößerten Bildteile. */
.photo-showcase .photo-double{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;max-width:950px;margin-inline:auto}
.photo-showcase .showcase-figure{overflow:hidden;min-width:0}
.photo-showcase .showcase-figure img{height:auto !important;width:100%;object-fit:contain !important;max-height:650px;background:#0e2024}
.photo-showcase .poster-figure{max-width:1000px;margin-inline:auto}
.photo-showcase .poster-figure img{height:auto !important;max-height:none !important;aspect-ratio:auto;object-fit:contain}
.photo-showcase:not(:has(.photo-double)):not(:has(.poster-figure)) .showcase-figure{max-width:660px;margin-inline:auto}
.media-split .site-photo{height:auto;max-height:none;object-fit:contain}
.site-photo[src$="fahrschulauto-angebot.webp"]{height:auto !important; max-height:none;object-fit:contain;object-position:center;background:#0e2024}
/* Auf bestehenden großen Bildflächen bleibt das ganze Motiv sichtbar. */
.hero-image-section .feature-photo{object-fit:contain;height:auto;max-height:500px;background:#0d2022}
.photo-frame{position:relative;min-width:0}
.photo-open{position:relative;display:block;cursor:zoom-in;width:100%;padding:0;margin:0;border:0;border-radius:18px;background:transparent;overflow:hidden;color:#fff;text-align:inherit}
.photo-open img{display:block;width:100%;transition:transform .2s ease,filter .2s ease}
.photo-open:hover img{transform:scale(1.012);filter:brightness(.94)}
.photo-open::after{content:'⛶  Bild öffnen';position:absolute;bottom:14px;right:14px;background:rgba(4,24,26,.92);border:1px solid rgba(150,244,216,.5);border-radius:10px;padding:9px 13px;color:white;font-size:13px;font-weight:750;box-shadow:0 6px 18px #0005;pointer-events:none}
.photo-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(3,12,16,.94);display:none;align-items:center;justify-content:center;padding:65px 22px 50px;overscroll-behavior:contain}
.photo-lightbox[open]{display:flex;flex-direction:column;gap:14px}
.photo-lightbox img{max-width:min(1200px,100%);max-height:calc(100dvh - 145px);height:auto;width:auto;object-fit:contain;border-radius:10px;box-shadow:0 16px 70px #0009}
.lightbox-close{position:absolute;top:15px;right:clamp(16px,4vw,54px);border-radius:12px;border:1px solid #83d5be;background:#143a38;color:white;cursor:pointer;font-size:17px;font-weight:700;padding:12px 18px}
.lightbox-caption{color:#eafcf7;font-size:14px;text-align:center;max-width:85ch}
body.lightbox-active{overflow:hidden}
@media(max-width:700px){.photo-showcase .photo-double{grid-template-columns:1fr;max-width:480px}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn{width:100%}.photo-open::after{font-size:12px;padding:8px 10px}.photo-showcase .showcase-figure img{max-height:none}}
@media(prefers-reduced-motion:reduce){.photo-open img{transition:none}}

/* V3 – Original-Bildformat statt Letterboxing. Keine gestreckten oder abgeschnittenen Motive. */
.hero-image-section {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 0;
}
.hero-image-section .photo-frame,
.hero-image-section .photo-open {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}
.hero-image-section .feature-photo,
.hero-image-section .photo-open .feature-photo {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: initial !important;
  border: 0;
  border-radius: 20px;
  background: transparent;
}
.photo-showcase .showcase-figure,
.photo-showcase .photo-open,
.photo-showcase .poster-figure,
.media-split .photo-open {
  background: transparent;
}
.photo-showcase .showcase-figure img,
.photo-showcase .poster-figure img {
  height: auto !important;
  max-height: none !important;
  object-fit: initial !important;
  background: transparent;
}
.photo-open::after {
  bottom: 12px;
  right: 12px;
}
@media(max-width: 640px) {
  .hero-image-section .feature-photo,
  .hero-image-section .photo-open .feature-photo { border-radius: 12px; }
  .hero-image-section .photo-open { border-radius: 12px; }
}

/* V4 – Einheitliche Lern-App-Sektion auf allen Seiten */
.learning-app-section{position:relative;padding:clamp(48px,7vw,90px) 24px;background:linear-gradient(120deg,#071a1c,#0c2929 70%,#0a2022);border-top:1px solid rgba(109,235,202,.15);border-bottom:1px solid rgba(109,235,202,.15)}
.learning-app-inner{width:min(1100px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.65fr);align-items:center;gap:clamp(24px,6vw,90px)}
.learning-app-eyebrow{display:inline-block;color:#78e6c6;letter-spacing:.2em;font-size:12px;font-weight:800;margin-bottom:13px}
.learning-app-copy h2{font-size:clamp(29px,4.3vw,49px);line-height:1.12;letter-spacing:-.035em;color:#fff;margin:0 0 18px}
.learning-app-copy p{font-size:clamp(15px,1.65vw,18px);line-height:1.7;color:#d4e8e5;max-width:580px;margin:0 0 24px}
.learning-app-copy>small{display:block;margin-top:16px;color:#b7cfca;font-size:12px;line-height:1.6;max-width:560px}
.learning-app-actions{display:flex;flex-wrap:wrap;gap:12px}.learning-app-actions .btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 21px;font-weight:750;border-radius:13px;text-decoration:none!important;gap:10px}.learning-app-actions .btn-ghost{border:1px solid #72dcc0;color:#f0fff9;background:#133a3b}.learning-app-actions .btn-ghost:hover{background:#1d5250}
.nav-links .nav-app-link{white-space:nowrap;color:#8df0ce!important;font-weight:750}
.learning-app-visual{display:grid;place-items:center;min-width:0}.learning-app-phone{width:min(205px,75%);aspect-ratio: .54;border:6px solid #435d5c;outline:2px solid #719e98;border-radius:34px;background:#050f13;padding:12px;box-shadow:0 25px 70px #0007;transform:rotate(5deg)}.learning-app-camera{background:#030b0c;width:42%;height:13px;margin:-5px auto 12px;border-radius:0 0 11px 11px}.learning-app-screen{height:calc(100% - 20px);border-radius:19px;background:linear-gradient(165deg,#183b40,#102025 68%,#0d141b);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;padding:10px;color:white}.learning-app-icon{display:grid;place-items:center;border-radius:20px;width:53px;height:53px;font-size:34px;font-weight:900;color:#102b29;background:#84ecc9}.learning-app-screen strong{font-size:25px;line-height:1.05;letter-spacing:.1em}.learning-app-screen>span:not(.learning-app-icon){font-size:10px;color:#bfe0d9}.learning-app-progress{height:7px;width:92%;background:#38605e;border-radius:99px;overflow:hidden;margin-top:17px}.learning-app-progress i{display:block;width:68%;height:100%;background:#85edc9}.learning-app-screen .learning-app-label{font-size:9px}
/* AGB als einmaliges Overlay; kein Text im Seitenlayout */
.terms-overlay[hidden]{display:none!important}.terms-overlay{position:fixed;inset:0;z-index:999999;background:rgba(2,11,14,.82);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}.terms-dialog{position:relative;background:#102426;border:1px solid #4b8980;border-radius:22px;width:min(570px,100%);max-height:min(92dvh,900px);padding:clamp(22px,4vw,34px);display:flex;flex-direction:column;color:#f3fffb;box-shadow:0 24px 85px #0009;overflow:hidden}.terms-accent{height:5px;background:linear-gradient(90deg,#75efd0,#1c9e95);position:absolute;top:0;left:0;right:0}.terms-eyebrow{font-size:11px;letter-spacing:.2em;color:#82eccd;font-weight:800;margin:4px 0 9px}.terms-dialog h2{color:white;font-size:clamp(23px,4vw,29px);line-height:1.17;margin:0 0 11px}.terms-dialog>p:not(.terms-eyebrow){color:#c8e2dc;line-height:1.55;font-size:14px;margin:0 0 15px}.terms-scroll{overflow-y:auto;min-height:90px;flex:1 1 auto;padding:14px 16px;background:#071c1e;border:1px solid #315552;border-radius:12px;scrollbar-color:#4a9188 #0d292b}.terms-scroll h3{font-size:14px;color:#9cf6d9;margin:12px 0 5px}.terms-scroll h3:first-child{margin-top:0}.terms-scroll p{font-size:13px;line-height:1.65;color:#dbeae7;margin:0 0 10px}.terms-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:17px}.terms-actions button{font:inherit;font-weight:800;min-height:49px;border-radius:12px;cursor:pointer;transition:background .2s,transform .2s}.terms-reject{background:#183539;color:#eafffb;border:1px solid #669d93}.terms-accept{background:#86eccb;color:#062622;border:1px solid #86eccb}.terms-actions button:hover{transform:translateY(-2px)}.terms-actions button:focus-visible{outline:3px solid white;outline-offset:3px}.terms-dialog .terms-footnote{font-size:11px!important;margin:10px 0 0!important;color:#9fc4bc!important}
body.terms-active{overflow:hidden}
@media(max-width:700px){.learning-app-inner{grid-template-columns:1fr}.learning-app-visual{display:none}.learning-app-actions .btn{flex:1 1 150px}.terms-dialog{max-height:94dvh;padding:20px}.terms-scroll{padding:12px}.terms-actions{gap:9px}}
@media(prefers-reduced-motion:reduce){.terms-actions button{transition:none}.terms-actions button:hover{transform:none}}

/* Neue Über-uns-Erzählung – Layout-Ergänzung in den unveränderten Originalfarben */
.about-story { padding-top: 62px; padding-bottom: 40px; }
.about-story-intro { max-width: 790px; margin-bottom: 33px; }
.about-story-intro h2 { max-width: 780px; margin-bottom: 18px; }
.about-story-intro p { color: var(--text-muted); font-size: 1.05rem; }
.about-story-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
.story-panel { position: relative; overflow: hidden; padding: clamp(26px,3.1vw,43px); background: linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025)); border: 1px solid var(--border); border-radius: 24px; }
.story-panel::before { content:""; position:absolute; top:0; left:0; width:76px; height:3px; background: var(--gradient); }
.story-panel.story-panel-wide { grid-column: 1 / -1; background: linear-gradient(110deg,rgba(55,194,165,.095),rgba(255,255,255,.037)); }
.story-panel .story-index { display:inline-block; font:700 .73rem var(--font-body); letter-spacing:.16em; color:var(--accent-2); margin-bottom:16px; }
.story-panel h3 { font-size: clamp(1.35rem,2.4vw,1.8rem); margin-bottom:20px; }
.story-panel p { margin:0 0 15px; color:var(--text-muted); line-height:1.85; }
.story-panel p:last-child { margin-bottom:0; }
@media (max-width:760px) { .about-story { padding-top:36px; } .about-story-grid { grid-template-columns:1fr; } .story-panel.story-panel-wide { grid-column:auto; } }

/* ==========================================================
   Abstand zwischen Beschreibung und Button (23.10.2026)
   Gilt für die drei Text-Bild-Abschnitte auf der Startseite,
   der Führerscheinklassen-Seite und der Theorie-Seite.
   ========================================================== */
.media-split > div > p + a.btn {
    margin-top: 28px;
}
