/* ============================================================
   Fahrschule Alt-Speed – Stylesheet
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.65;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

hr {
    border: none;
    border-top: 3px solid #b0b8c1;
    margin: 16px 0;
}

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

ul {
    list-style: none;
}

/* ---- Layout ---- */
.container {
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.3rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: 0.97rem; }

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.announcement-banner {
    background: #D13535;
    color: #fff;
    text-align: center;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.announcement-banner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 0.92rem;
    color: #444;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #222;
    border-bottom-color: #222;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    border-top: 1px solid #eee;
    padding: 8px 0 16px;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a {
    display: block;
    padding: 12px 24px;
    font-size: 0.97rem;
    color: #333;
}

.mobile-nav a:hover {
    background: #f8f8f8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 28px;
    font-size: 0.97rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #D13535;
    color: #fff;
}

.btn-primary:hover {
    background: #FC5E5E;
}

.btn-blue {
    background: #2563eb;
    color: #fff;
}

.btn-blue:hover {
    background: #1d4ed8;
}

.btn-dark {
    background: #111;
    color: #fff;
}

.btn-dark:hover {
    background: #333;
}

/* ============================================================
   THEORIE-WIDGET
   ============================================================ */
.theorie-widget {
    background: #eef1fa;
    padding: 48px 0 40px;
    border-bottom: 2px solid #c5cce8;
}

/* Titel-Zeile mit Legende rechts daneben */
.theorie-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.theorie-widget__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 0;
}

/* Layout: Heute | Morgen oben – Diese Woche (zentriert, 68% Breite) unten */
.theorie-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.theorie-col--wide {
    grid-column: 1 / -1;
    justify-self: center;
    width: 68%;
}

.theorie-col {
    background: #fff;
    border-radius: 10px;
    padding: 18px 16px;
    min-height: 80px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.theorie-col__head {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Heute-Spalte – stärker hervorgehoben */
.theorie-col--today .theorie-col__head {
    color: #D13535;
    border-bottom-color: #f5c6c6;
}

.theorie-col--today .theorie-name {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Einzelner Event-Chip */
.theorie-event {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--eb);
    border-left: 3px solid var(--ec);
    border-radius: 6px;
    padding: 7px 10px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}

.theorie-event:last-child {
    margin-bottom: 0;
}

.theorie-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ec);
    flex-shrink: 0;
}

.theorie-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    flex: 1;
    min-width: 0;
}

.theorie-loc {
    font-size: 0.75rem;
    color: var(--ec);
    font-weight: 600;
    white-space: nowrap;
}

.theorie-none {
    font-size: 0.83rem;
    color: #aaa;
    font-style: italic;
    margin: 4px 0 0;
}

/* "Diese Woche" – Tage mit Label */
.theorie-day-group {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.theorie-day-group:last-child {
    margin-bottom: 0;
}

.theorie-day-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #999;
    width: 72px;
    min-width: 72px;
    white-space: nowrap;
    overflow: visible;
    padding-top: 8px;
    flex-shrink: 0;
}

.theorie-day-events {
    flex: 1;
    min-width: 0;
}

.theorie-day-events .theorie-event {
    margin-bottom: 5px;
}

/* Legende (inline neben dem Titel) */
.theorie-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.theorie-legend__item {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theorie-legend__item::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ec);
}

/* CTA-Button Theorie-Widget */
.theorie-cta {
    margin-top: 20px;
    text-align: center;
}

.btn-theorie-cta {
    display: inline-block;
    padding: 9px 22px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3f51b5;
    border: 1.5px solid #3f51b5;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.18s, color 0.18s;
}

.btn-theorie-cta:hover {
    background: #3f51b5;
    color: #fff;
}

/* ============================================================
   HERO – Einzelnes Hintergrundbild
   ============================================================ */
.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('/img/back.jpg') center center / cover no-repeat;
}

/* Hero-Collage-Grid ausgeblendet – Bild jetzt als CSS background */
.hero-bg-grid {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 80px 24px;
    max-width: 780px;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 36px;
    opacity: 0.9;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   LEISTUNGEN – HOME (4 Karten mit Fotos, 2×2 Grid)
   ============================================================ */
.home-leistungen {
    padding: 80px 0;
    background: #fff;
}

.home-leistungen .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.home-leistungen .section-header h2 {
    margin-bottom: 10px;
}

.home-leistungen .section-header p {
    color: #666;
    font-size: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Karte mit Foto oben */
.card-with-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}

.card-with-img:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}

.card-img-wrap {
    height: 220px;
    overflow: hidden;
    background: #b8c4ce;
    flex-shrink: 0;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-with-img:hover .card-img-wrap img {
    transform: scale(1.04);
}

.card-body {
    background: #ECF0F3;
    padding: 28px 24px 32px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #111;
}

.card-body p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 22px;
    line-height: 1.65;
    flex: 1;
}

/* ============================================================
   FERIENKURSE SECTION (dunkel, 2-spaltig)
   ============================================================ */
.ferienkurse-section {
    background: #1C2A38;
    padding: 80px 0;
    overflow: hidden;
}

.ferienkurse-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    min-height: 340px;
}

.ferienkurse-text {
    color: #fff;
    padding-right: 48px;
}

.ferienkurse-text h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 20px;
}

.ferienkurse-text p {
    color: #c8d8e8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.ferienkurse-text .highlight {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ferienkurse-text .dates {
    font-weight: 600;
    font-size: 1rem;
    color: #c8d8e8;
    margin-bottom: 28px;
}

/* Foto mit Diagonalschnitt */
.ferienkurse-img-wrap {
    height: 380px;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    background: #2d4155;
}

.ferienkurse-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   UNTERRICHT SECTION (weiß)
   ============================================================ */
.unterricht-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.unterricht-section h2 {
    margin-bottom: 36px;
}

/* Tabelle Unterrichtszeiten */
.unterricht-table {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 36px;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.unterricht-table th,
.unterricht-table td {
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.unterricht-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.unterricht-table td:first-child {
    font-weight: 600;
    color: #222;
}

.unterricht-table td:nth-child(2),
.unterricht-table td:nth-child(3) {
    color: #D13535;
}

.unterricht-info {
    max-width: 680px;
    margin: 0 auto 36px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.unterricht-info a {
    color: #D13535;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.unterricht-highlight {
    margin: 32px auto;
    max-width: 680px;
}

.unterricht-highlight h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #111;
    margin-bottom: 6px;
}

.unterricht-highlight h3 .time {
    color: #D13535;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.unterricht-highlight .sub {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 24px;
}

/* Google Calendar Embed */
.calendar-embed {
    max-width: 860px;
    margin: 40px auto 0;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-embed iframe {
    width: 100%;
    height: 600px;
    display: block;
    border: 1px solid #dde2e8 !important;
    border-radius: 8px;
}

/* ============================================================
   FUHRPARK SECTION (2×2 Bildgitter)
   ============================================================ */
.fuhrpark-section {
    background: #1C2A38;
    padding: 80px 0;
}

.fuhrpark-header {
    text-align: center;
    margin-bottom: 40px;
}

.fuhrpark-header h2 {
    color: #f1f1f1;
    margin-bottom: 10px;
}

.fuhrpark-header p {
    color: #8aa5bb;
    font-size: 1rem;
}

/* 2×2 Bildgitter */
.fuhrpark-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.fuhrpark-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    background: #2d4155;
}

.fuhrpark-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fuhrpark-img-wrap:hover img {
    transform: scale(1.04);
}

/* ============================================================
   PAGE HEADER (innere Seiten)
   ============================================================ */
.page-header {
    padding: 60px 0 48px;
    text-align: center;
}

.page-header h1 {
    color: #111;
}

/* ============================================================
   LEISTUNGEN PAGE
   ============================================================ */
.leistungen-block {
    padding: 60px 0;
}

.leistungen-block + .leistungen-block {
    border-top: 1px solid #eee;
}

.block-heading {
    font-size: 1.6rem;
    margin-bottom: 32px;
    color: #111;
    padding-left: 16px;
    border-left: 4px solid #D13535;
}

.klasse-item {
    margin-bottom: 28px;
    padding: 24px 26px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fafafa;
    transition: box-shadow 0.2s;
}

.klasse-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}

.klasse-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #D13535;
}

.klasse-item p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.75;
}

.info-box {
    background: #ECF0F3;
    border-radius: 10px;
    padding: 28px 30px;
    margin-bottom: 28px;
}

.info-box h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: #111;
}

.info-box p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 8px;
}

.info-box ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 8px;
}

.info-box li {
    color: #555;
    font-size: 0.92rem;
    margin-bottom: 6px;
    line-height: 1.65;
}

.info-box-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #D13535;
    margin: 18px 0 8px;
    display: block;
}

.info-box-label:first-child {
    margin-top: 0;
}

.list-accent {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.list-accent li {
    color: #D13535;
    font-size: 0.92rem;
    margin-bottom: 6px;
    line-height: 1.65;
    padding-left: 18px;
    position: relative;
}

.list-accent li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D13535;
}

/* Leistungen / ASF table */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
}

.leistungen-table {
    width: 100%;
    min-width: 420px;   /* triggers scroll before columns disappear */
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0;
}

.leistungen-table th {
    background: #1C2A38;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.leistungen-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #dde2e8;
    color: #444;
    vertical-align: top;
}

.leistungen-table tr:last-child td {
    border-bottom: none;
}

.leistungen-table tr.row-highlight td {
    background: #f0f4f8;
    font-style: italic;
}

.leistungen-table tr:hover td {
    background: #f7f9fb;
}

/* ============================================================
   STANDORTE PAGE
   ============================================================ */
.standorte-list {
    padding: 20px 0 80px;
}

.standort-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    align-items: start;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.standort-item:last-child {
    border-bottom: none;
}

.standort-map {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    background: #ECF0F3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
}

.standort-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.standort-info h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #111;
}

.standort-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D13535;
    margin-bottom: 20px;
    display: block;
}

.standort-info p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 4px;
}

.standort-info a {
    color: #D13535;
}

.standort-photo {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

.standort-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px 0 80px;
}

.team-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s, transform 0.25s;
}

.team-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}

.team-photo {
    height: 280px;
    background: #b8c4ce;
    position: relative;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-overlay {
    background: #1C2A38;
    color: #fff;
    padding: 18px 22px;
}

.team-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-overlay p {
    font-size: 0.82rem;
    color: #8aa5bb;
    line-height: 1.5;
}

/* ============================================================
   KONTAKT PAGE
   ============================================================ */
.kontakt-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    padding: 20px 0 80px;
}

.kontakt-info h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #111;
}

.kontakt-info p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.85;
    margin-bottom: 6px;
}

.kontakt-info a {
    color: #D13535;
}

.kontakt-info .contact-block {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
}

.kontakt-info .contact-block:last-child {
    border-bottom: none;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: #111;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: inherit;
    background: #f8f8f8;
    color: #222;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #D13535;
    background: #fff;
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.form-center {
    text-align: center;
    margin-top: 8px;
}

/* Checkboxes & Radios */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 8px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    cursor: pointer;
    color: #444;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #D13535;
}

/* Status-Meldungen */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.93rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.required-note {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 20px;
}

/* ============================================================
   FERIENFAHRSCHULE PAGE
   ============================================================ */
.anmeldung-intro {
    background: #ECF0F3;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 36px;
    font-size: 0.93rem;
    color: #444;
    line-height: 1.75;
}

.anmeldung-intro p + p {
    margin-top: 10px;
}

.form-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D13535;
    margin: 28px 0 16px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.form-section-title:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================================
   IMPRESSUM / DATENSCHUTZ
   ============================================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 80px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin: 36px 0 12px;
    color: #111;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 8px;
    color: #333;
}

.legal-content p {
    color: #555;
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal-content li {
    color: #555;
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 4px;
}

.legal-content a {
    color: #D13535;
    text-decoration: underline;
}

.todo-marker {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.82rem;
    color: #856404;
    font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #1C2A38;
    color: #fff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-col h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.footer-col p {
    font-size: 0.88rem;
    color: #8aa5bb;
    line-height: 1.9;
}

.footer-col a {
    color: #8aa5bb;
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #2d4155;
    padding: 18px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #5a7a96;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .standort-item {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "map photo"
            "info info";
    }

    .standort-map  { grid-area: map; }
    .standort-photo { grid-area: photo; }
    .standort-info { grid-area: info; }

    .ferienkurse-inner {
        grid-template-columns: 1fr;
    }

    .ferienkurse-text {
        padding-right: 0;
    }

    .ferienkurse-img-wrap {
        clip-path: none;
        height: 280px;
    }

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

@media (max-width: 768px) {
    .theorie-cols {
        grid-template-columns: 1fr;
    }

    .theorie-col--wide {
        grid-column: 1 / -1;
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Ferienkurse: reduce section padding, bleed image to edges */
    .ferienkurse-section {
        padding: 48px 0 0;
    }

    .ferienkurse-img-wrap {
        height: 210px;
        margin-top: 36px;
        margin-left: -24px;
        margin-right: -24px;
        border-radius: 0;
    }

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

    .standort-item {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "map   map"
            "info  photo";
        gap: 16px;
    }

    .standort-map   { grid-area: map; }
    .standort-info  { grid-area: info; }
    .standort-photo {
        grid-area: photo;
        height: 200px;
    }

    .kontakt-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fuhrpark-img-wrap {
        height: 220px;
    }
}

@media (max-width: 560px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .hero {
        min-height: 420px;
    }

    .standort-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "map"
            "info"
            "photo";
    }

    .standort-photo {
        height: 180px;
    }
}
