/* Schmalkoke Automobile – Theme (Kopf, Fuß, Grundtypografie, Inhaltselemente).
   Schriften liegen lokal in files/schmalkoke/fonts (angelegt von autohaus:site:theme). */

@font-face {
    font-family: Archivo;
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("/files/schmalkoke/fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/files/schmalkoke/fonts/inter-latin.woff2") format("woff2");
}

:root {
    --ah-navy: #0A2036;
    --ah-navy-2: #17324F;
    --ah-blue: #013F7E;
    --ah-cyan: #1BADD5;
    --ah-surface: #F4F6F9;
    --ah-line: #E3E8EE;
    --ah-input: #CFD8E2;
    --ah-text: #0A2036;
    --ah-muted: #4A5868;
    --ah-on-dark: #C9D6E3;
    --ah-on-dark-2: #A9B9CA;
    --ah-max-width: 1280px;
    --ah-gutter: clamp(16px, 4vw, 32px);
    --ah-font-head: Archivo, system-ui, sans-serif;
    --ah-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ah-surface);
    color: var(--ah-text);
    font: 400 16px/1.55 var(--ah-font);
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ah-blue); text-decoration: none; }
a:hover { color: var(--ah-navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--ah-cyan);
    outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--ah-font-head); color: inherit; letter-spacing: -0.01em; margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--ah-line); margin: 32px 0; }
.invisible, .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Seitenrahmen (Contao-Layout) ---------- */
#wrapper { min-height: 100vh; display: flex; flex-direction: column; }
#container { flex: 1 0 auto; }
#header .inside, #footer .inside, #main .inside { margin: 0; padding: 0; max-width: none; }
.sk-wrap { max-width: var(--ah-max-width); margin-inline: auto; padding-inline: var(--ah-gutter); }

/* Artikel: alles außer Abschnitten (Abschnitt bringt eigene Breite mit) auf Seitenbreite begrenzen */
#main .mod_article { padding-block: 0; }
#main .mod_article > :not(.content-ahp-section) {
    max-width: var(--ah-max-width);
    margin-inline: auto;
    padding-inline: var(--ah-gutter);
}
#main .mod_article:first-child > :first-child:not(.content-ahp-section) { margin-top: clamp(32px, 5vw, 56px); }
#main .mod_article:last-child > :last-child:not(.content-ahp-section) { margin-bottom: clamp(48px, 7vw, 88px); }
#main .mod_article > * + * { margin-top: 24px; }
#main .mod_article > .content-ahp-section + *,
#main .mod_article > * + .content-ahp-section { margin-top: 0; }

/* ---------- Buttons ---------- */
.sk-btn, .content-hyperlink a.btn, a.sk-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
    font: 600 15px/1.2 var(--ah-font); text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.sk-btn--primary { background: var(--ah-blue); color: #fff; }
.sk-btn--primary:hover { background: var(--ah-navy); color: #fff; }
.sk-btn--accent { background: var(--ah-cyan); color: var(--ah-navy); font-weight: 700; }
.sk-btn--accent:hover { background: #fff; color: var(--ah-navy); }
.sk-btn--outline { border-color: #3A5675; color: #fff; }
.sk-btn--outline:hover { border-color: #fff; color: #fff; }

/* ---------- Infoleiste ---------- */
.sk-topbar { background: var(--ah-navy); color: var(--ah-on-dark); font-size: 13px; }
.sk-topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center; padding-block: 10px; }
.sk-topbar__info, .sk-topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.sk-topbar a { color: var(--ah-on-dark); }
.sk-topbar a:hover { color: #fff; }
.sk-topbar__phone { color: #fff !important; font-weight: 600; }

/* ---------- Kopf ---------- */
.sk-header { background: #fff; border-bottom: 1px solid var(--ah-line); position: relative; z-index: 20; }
.sk-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 18px; }
.sk-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.sk-header__logo img { height: 48px; width: auto; display: block; }
.sk-header__name { font: 800 22px/1 var(--ah-font-head); color: var(--ah-navy); }

.sk-nav { display: flex; align-items: center; gap: 16px 32px; }
.sk-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.sk-nav ul a { color: var(--ah-navy); font-weight: 500; font-size: 15px; padding-block: 6px; border-bottom: 2px solid transparent; }
.sk-nav ul a:hover { color: var(--ah-blue); }
.sk-nav ul a.is-active { color: var(--ah-blue); border-bottom-color: var(--ah-cyan); }
.sk-nav__phone { display: none; }

.sk-burger { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ah-input); border-radius: 10px; background: #fff; color: var(--ah-navy); font: 600 15px var(--ah-font); cursor: pointer; }
.sk-burger__bar, .sk-burger__bar::before, .sk-burger__bar::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.sk-burger__bar::before, .sk-burger__bar::after { content: ""; position: absolute; left: 0; }
.sk-burger__bar::before { top: -6px; }
.sk-burger__bar::after { top: 6px; }
.sk-burger[aria-expanded="true"] .sk-burger__bar { background: transparent; }
.sk-burger[aria-expanded="true"] .sk-burger__bar::before { transform: translateY(6px) rotate(45deg); }
.sk-burger[aria-expanded="true"] .sk-burger__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
    .sk-header__logo img { height: 40px; }
    .sk-burger { display: inline-flex; }
    .sk-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 16px;
        background: #fff; border-bottom: 1px solid var(--ah-line);
        padding: 8px var(--ah-gutter) 24px; box-shadow: 0 16px 32px rgba(10, 32, 54, .12);
    }
    .sk-nav.is-open { display: flex; }
    .sk-nav ul { flex-direction: column; gap: 0; }
    .sk-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ah-line); font-size: 17px; }
    .sk-nav ul a.is-active { border-bottom-color: var(--ah-line); box-shadow: inset 3px 0 0 var(--ah-cyan); padding-left: 12px; }
    .sk-nav__phone { display: block; text-align: center; font-weight: 600; }
}
@media (max-width: 767px) {
    .sk-topbar__info { display: none; }
    .sk-topbar__inner { justify-content: center; }
}

/* ---------- Fuß ---------- */
.sk-footer { background: var(--ah-navy); color: var(--ah-on-dark-2); font-size: 14px; }
.sk-footer a { color: var(--ah-on-dark-2); }
.sk-footer a:hover { color: #fff; }
.sk-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sk-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 56px 28px; }
.sk-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.sk-footer__brand img { height: 44px; width: auto; align-self: flex-start; }
.sk-footer__name { font: 800 20px/1 var(--ah-font-head); color: #fff; }
.sk-footer__title { color: #fff; font-weight: 600; margin: 0 0 12px; }
.sk-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 20px 32px; border-top: 1px solid #1E3A57; font-size: 13px; }
.sk-footer__bottom ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 1024px) {
    .sk-footer__grid { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
}

/* ---------- Inhaltselemente (Contao-Standard) ---------- */
.content-text .rte > * + *, .content-text > * + * { margin-top: .9em; }
.content-text .rte ul li + li { margin-top: .3em; }
.content-image figure, .content-text figure, .content-gallery figure { margin: 0; }
.content-image img, .content-text figure img, .content-gallery img { border-radius: 16px; display: block; }
.content-gallery ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.content-headline { margin-bottom: 0; }
.content-element-group + .content-element-group { margin-top: 32px; }

/* Abschnitt dunkel / Marke: Text hell */
.ahp-bg--dark, .ahp-bg--brand { color: var(--ah-on-dark); }
.ahp-bg--dark h1, .ahp-bg--dark h2, .ahp-bg--dark h3, .ahp-bg--brand h1, .ahp-bg--brand h2, .ahp-bg--brand h3 { color: #fff; }
.ahp-bg--dark a.sk-btn--primary { background: var(--ah-cyan); color: var(--ah-navy); }

/* Kicker über Überschriften: <p class="sk-kicker"> */
.sk-kicker { color: var(--ah-cyan); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.ahp-bg--light .sk-kicker, .ahp-bg--white .sk-kicker { color: var(--ah-blue); }
.sk-lead { font-size: clamp(17px, 1.6vw, 19px); }

/* Karten: Inhaltselemente in Rastern als Kacheln */
.ahp-grid--tiles > .ahp-grid__item, .sk-card {
    background: #fff; border: 1px solid var(--ah-line); border-radius: 16px; padding: 24px;
    transition: box-shadow .2s, transform .2s;
}
.ahp-bg--white .ahp-grid--tiles > .ahp-grid__item { background: var(--ah-surface); border-color: transparent; }

/* ---------- Formulare (Formulargenerator) ---------- */
.mod_form, form .widget { font-size: 15px; }
form .widget { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
form .widget > label, form fieldset legend { font-size: 13px; font-weight: 600; color: var(--ah-muted); }
form input.text, form input[type="text"], form input[type="email"], form input[type="tel"], form input[type="number"], form input[type="date"], form select, form textarea {
    width: 100%; min-height: 48px; border: 1px solid var(--ah-input); border-radius: 10px; padding: 10px 14px;
    font: 500 15px var(--ah-font); color: var(--ah-text); background: #fff;
}
form textarea { min-height: 140px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { border-color: var(--ah-blue); outline: none; box-shadow: 0 0 0 3px rgba(27, 173, 213, .25); }
form .widget-checkbox fieldset, form .widget-radio fieldset { border: 0; padding: 0; margin: 0; }
form .widget-checkbox span, form .widget-radio span { display: flex; gap: 10px; align-items: flex-start; }
form .widget-submit button, form button.submit {
    min-height: 48px; padding: 12px 24px; border: 0; border-radius: 10px; background: var(--ah-blue); color: #fff;
    font: 600 15px var(--ah-font); cursor: pointer;
}
form .widget-submit button:hover { background: var(--ah-navy); }
form p.error, form .error { color: #B42318; font-size: 13px; }
form input.error, form select.error, form textarea.error { border-color: #B42318; }

/* ---------- Druck ---------- */
@media print {
    .sk-topbar, .sk-nav, .sk-burger, .sk-footer__grid { display: none !important; }
    .sk-header { border: 0; }
    body { background: #fff; }
}

/* =========================================================
   Seitenbausteine (Startseite, Werkstatt, Ankauf, Standort)
   ========================================================= */
.sk-link { font-weight: 600; color: var(--ah-blue); }
.sk-link:hover { color: var(--ah-navy); text-decoration: underline; }
.sk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sk-warning { font-size: 13px; font-weight: 700; }
.sk-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sk-check li { position: relative; padding-left: 30px; }
.sk-check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(27, 173, 213, .15); color: var(--ah-blue); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ahp-bg--dark .sk-check li::before { color: var(--ah-cyan); }
.sk-check--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Einstieg (Hero) */
.sk-hero .ahp-section__inner { padding-bottom: 0; }
.sk-hero h1 { color: #fff; }
.sk-hero .sk-lead { color: var(--ah-on-dark); max-width: 560px; }
.sk-hero-img img, .sk-media img { width: 100%; height: clamp(240px, 32vw, 400px); object-fit: cover; display: block; border-radius: 20px; }
.sk-hero .sk-hero-img img { border-radius: 20px 20px 0 0; object-position: 22% center; }
.sk-page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.sk-page-hero .sk-hero-img img { border-radius: 20px; }

/* Suche überlappt den Einstieg */
.sk-hero-search { position: relative; z-index: 3; margin-top: clamp(-56px, -4vw, -32px); }

/* Vorteile */
.sk-usp { display: flex; gap: 14px; align-items: flex-start; }
.sk-usp h3 { font-size: 17px; margin: 0 0 4px; }
.sk-usp p { font-size: 14px; color: var(--ah-muted); }
.sk-usp::before { content: ""; flex: 0 0 44px; height: 44px; border-radius: 12px; background: rgba(27, 173, 213, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23013F7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* Karten */
.sk-card { height: 100%; display: flex; flex-direction: column; gap: 8px; }
.sk-card h3 { margin: 0; font-size: 20px; }
.sk-card p { color: var(--ah-muted); font-size: 15px; }
.sk-card .sk-link { margin-top: auto; padding-top: 8px; }
.sk-card:hover { box-shadow: 0 12px 32px rgba(10, 32, 54, .12); transform: translateY(-2px); }
.sk-card--plain:hover { box-shadow: none; transform: none; }

/* Schritte (Ankauf) */
.sk-step { counter-increment: sk-step; }
.sk-step h3 { font-size: 19px; display: flex; align-items: center; gap: 12px; }
.sk-step h3::before { content: counter(sk-step); flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--ah-blue); color: #fff; font: 700 18px/40px var(--ah-font-head); text-align: center; }
.ahp-grid:has(.sk-step) { counter-reset: sk-step; }

/* Kasten-Hinweis */
.sk-note { background: var(--ah-surface); border-radius: 14px; padding: 18px 20px; font-size: 15px; }
.ahp-bg--light .sk-note { background: #fff; }

/* =========== Team =========== */
.sk-team__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.sk-chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ah-input); background: #fff; color: var(--ah-navy); font: 600 14px var(--ah-font); cursor: pointer; }
.sk-chip:hover { border-color: var(--ah-blue); }
.sk-chip.is-active { background: var(--ah-blue); border-color: var(--ah-blue); color: #fff; }
.sk-team__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.sk-person { background: #fff; border: 1px solid var(--ah-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.sk-person[hidden] { display: none; }
.sk-person__photo { aspect-ratio: 4 / 5; background: var(--ah-surface); }
.sk-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.sk-person__initials { display: grid; place-items: center; height: 100%; font: 800 44px var(--ah-font-head); color: var(--ah-blue); }
.sk-person__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.sk-person__name { font-size: 18px; margin: 0; }
.sk-person__position { color: var(--ah-muted); font-size: 14px; margin: 0; }
.sk-person__areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.sk-person__areas span { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(27, 173, 213, .14); color: var(--ah-blue); }
.sk-person__contact { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 14px; font-weight: 600; }

/* =========== Standort =========== */
.sk-hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 0 0 8px; }
.sk-hours dt { font-weight: 600; }
.sk-hours dd { margin: 0; }
.sk-location__note { font-size: 14px; color: var(--ah-muted); }
.sk-location--band { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.sk-location--band .sk-location__col { background: #fff; border: 1px solid var(--ah-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sk-location--band h3 { font-size: 19px; margin: 0; }
.sk-location__phone { font: 700 22px var(--ah-font-head); }
.sk-location--card { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border: 1px solid var(--ah-line); border-radius: 20px; overflow: hidden; }
.sk-location--card .sk-location__photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.sk-location--card .sk-location__body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sk-location--card h2 { margin: 0; }
.sk-location--card h3 { font-size: 18px; margin: 8px 0 0; }
.sk-location__contact { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.sk-location__contact span { font-weight: 400; }
@media (min-width: 900px) { .sk-location--card { grid-template-columns: 1.1fr 1fr; } }

/* =========== Formulare: Spalten, Pflichtfeld-Hinweis, Anliegen als Schaltflächen =========== */
.sk-form { background: #fff; border: 1px solid var(--ah-line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
.ahp-bg--white .sk-form { background: var(--ah-surface); border-color: transparent; }
.sk-form form > .formbody, .sk-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.sk-form form > .formbody > *, .sk-form form > * { grid-column: 1 / -1; }
.sk-form .widget.w50 { grid-column: auto; }
.sk-form fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.sk-form fieldset.sk-group > legend { font: 700 18px var(--ah-font-head); color: var(--ah-navy); margin-bottom: 12px; }
.sk-form .sk-pills span { display: inline-flex; margin: 0 8px 8px 0; position: relative; }
.sk-form .sk-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sk-form .sk-pills label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ah-input); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; color: var(--ah-navy); cursor: pointer; }
.sk-form .sk-pills input:checked + label { background: var(--ah-blue); border-color: var(--ah-blue); color: #fff; }
.sk-form .sk-pills input:focus-visible + label { outline: 3px solid var(--ah-cyan); outline-offset: 2px; }
.sk-form .widget-checkbox label { font-size: 14px; color: var(--ah-text); font-weight: 400; }
.sk-form .widget-explanation { font-size: 13px; color: var(--ah-muted); }
.sk-form .widget-upload input[type="file"] { width: 100%; padding: 18px; border: 2px dashed var(--ah-input); border-radius: 12px; background: var(--ah-surface); font: 500 14px var(--ah-font); }
@media (max-width: 599px) { .sk-form .widget.w50 { grid-column: 1 / -1; } }

/* Ergänzungen Seitenbausteine */
.sk-btn--ghost { background: #fff; border-color: var(--ah-input); color: var(--ah-navy); }
.sk-btn--ghost:hover { border-color: var(--ah-blue); color: var(--ah-blue); }
.sk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-block: 8px 16px; }
.sk-two h3 { font-size: 18px; }
.sk-hero .ahp-grid__item:first-child { padding-bottom: clamp(40px, 6vw, 88px); }
.sk-hero .ahp-grid--text-media > .ahp-grid__item:last-child { order: 0; align-self: end; }
.sk-hero .ahp-grid { align-items: end; }
.sk-page-hero .ahp-grid--text-media > .ahp-grid__item:last-child { order: 0; }
.sk-thanks { text-align: center; }
.sk-thanks .sk-actions { justify-content: center; }
.sk-thanks .ahp-section__inner { max-width: 760px; }
.sk-offers .ahp-section__inner > * + * { margin-top: 20px; }
.sk-services .ahp-section__inner > * + *, .sk-steps .ahp-section__inner > * + *, .sk-team-section .ahp-section__inner > * + *, .sk-page-intro .ahp-section__inner > * + * { margin-top: 32px; }
.sk-buy-form .ahp-section__inner { max-width: 960px; }
.sk-buy-form .ahp-section__inner > * + * { margin-top: 24px; }
.sk-sticky { position: sticky; top: 24px; }
#anfrage, #termin, #kontakt, #aufbereitung, #ankaufformular { scroll-margin-top: 16px; }

.sk-pos-left img { object-position: 15% center !important; }
.sk-pos-right img { object-position: 85% center !important; }
/* Feldgruppen im Formular ebenfalls zweispaltig */
.sk-form fieldset.sk-group, .sk-form fieldset:has(> .widget) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; grid-column: 1 / -1; }
.sk-form fieldset.sk-group > *, .sk-form fieldset:has(> .widget) > * { grid-column: 1 / -1; }
.sk-form fieldset .widget.w50 { grid-column: auto; }
@media (max-width: 599px) { .sk-form fieldset .widget.w50 { grid-column: 1 / -1; } }

/* Fahrzeuganfrage: Fahrzeug sichtbar, schreibgeschützt */
.sk-form input.sk-vehicle-ref[readonly], .sk-form .sk-vehicle-ref input[readonly] {
    background: rgba(27, 173, 213, .08); border-color: rgba(1, 63, 126, .25); color: var(--ah-blue); font-weight: 600; cursor: default;
}

/* =========== Formulare: Beschriftung als Platzhalter =========== */
.sk-form .widget-text > label, .sk-form .widget-textarea > label, .sk-form .widget-select > label {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sk-form .widget { margin-bottom: 12px; gap: 4px; }
.sk-form input::placeholder, .sk-form textarea::placeholder { color: var(--ah-muted); opacity: 1; }
.sk-form select:has(option[value=""]:checked) { color: var(--ah-muted); }
.sk-form select option { color: var(--ah-text); }
/* Fahrzeugfeld der Anfrage behält seine Beschriftung */
.sk-form .widget-text.sk-vehicle-ref > label, .sk-form .widget-text:has(input.sk-vehicle-ref) > label {
    position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
}
.sk-form .sk-full, .sk-form .widget-dropzone { grid-column: 1 / -1; }

/* =========== Dropzone =========== */
.sk-dropzone__title { font: 700 16px var(--ah-font-head) !important; color: var(--ah-navy) !important; }
.sk-dropzone { position: relative; border: 2px dashed var(--ah-input); border-radius: 14px; background: var(--ah-surface); transition: border-color .15s, background .15s; }
.ahp-bg--light .sk-form .sk-dropzone { background: #fff; }
.sk-dropzone:hover, .sk-dropzone.is-over { border-color: var(--ah-blue); background: rgba(27, 173, 213, .08); }
.sk-dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.sk-dropzone__input:focus-visible + .sk-dropzone__ui { outline: 3px solid var(--ah-cyan); outline-offset: 4px; border-radius: 10px; }
.sk-dropzone__ui { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; text-align: center; color: var(--ah-text); }
.sk-dropzone__ui strong { font-size: 16px; }
.sk-dropzone__ui u { color: var(--ah-blue); text-decoration-thickness: 1px; font-weight: 600; }
.sk-dropzone__ui small { color: var(--ah-muted); font-size: 12px; margin-top: 4px; }
.sk-dropzone__icon { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: rgba(27, 173, 213, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23013F7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16.5V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2.5'/%3E%3Cpath d='M12 3v13'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3C/svg%3E") center / 24px no-repeat; }
.sk-dropzone.has-files .sk-dropzone__ui { padding-block: 18px; }
.sk-dropzone__list { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.sk-dropzone.has-files .sk-dropzone__list { padding-bottom: 12px; }
.sk-dropzone__list li { position: relative; background: #fff; border: 1px solid var(--ah-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.sk-dropzone__list img, .sk-dropzone__file { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; background: var(--ah-surface); font-weight: 700; color: var(--ah-muted); }
.sk-dropzone__name { font-size: 11px; padding: 4px 6px; color: var(--ah-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sk-dropzone__list button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(10, 32, 54, .75); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.sk-dropzone__list button:hover { background: #B42318; }
.sk-dropzone__msg { margin: 0; padding: 0 12px 10px; font-size: 13px; position: relative; z-index: 2; }
.sk-dropzone__msg:empty { display: none; }

/* =========== Startseite: Hero-Bild wie auf den Unterseiten (gerundet, mittig) =========== */
.ahp-space--hero { padding-block: clamp(40px, 6vw, 72px) clamp(88px, 9vw, 120px); }
.sk-hero .ahp-grid { align-items: center; }
.sk-hero .ahp-grid__item:first-child { padding-bottom: 0; }
.sk-hero .ahp-grid--text-media > .ahp-grid__item:last-child { align-self: center; }
.sk-hero .sk-hero-img img { border-radius: 20px; object-position: center 30%; }
[tabindex="-1"]:focus { outline: none; }

/* Contao setzt .block/.mod_article auf overflow:hidden – das schneidet Klapplisten ab */
#main .mod_article, #main .block { overflow: visible; }
#wrapper { overflow-x: clip; }

/* =========== Fenster: Hinweis-Popup, Gewährleistung =========== */
html.sk-noscroll { overflow: hidden; }
.sk-popup {
    width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px;
    background: #fff; color: var(--ah-text); box-shadow: 0 30px 80px rgba(6, 18, 31, .35); overflow: auto;
}
.sk-popup--wide { width: min(760px, calc(100vw - 32px)); }
.sk-popup::backdrop { background: rgba(6, 18, 31, .6); backdrop-filter: blur(2px); }
.sk-popup[open] { animation: sk-pop .25s ease-out; }
@keyframes sk-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sk-popup[open] { animation: none; } }
.sk-popup__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .9); color: var(--ah-navy); font-size: 26px; line-height: 1; cursor: pointer; z-index: 1; box-shadow: 0 2px 8px rgba(10, 32, 54, .15); }
.sk-popup__close:hover { background: var(--ah-surface); }
.sk-popup__image { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.sk-popup__body { padding: clamp(20px, 4vw, 32px); }
.sk-popup__body h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 40px 12px 0; }
.sk-popup__text > * + * { margin-top: .8em; }
.sk-popup .sk-actions { margin-top: 20px; }

.sk-warranty { margin: 0; }
.sk-warranty img { display: block; width: 100%; max-width: 760px; height: auto; margin-inline: auto; }
.sk-warranty figcaption { text-align: center; font-size: 13px; margin-top: 8px; }
.sk-popup--wide .sk-popup__body { padding: 48px 16px 16px; }
