/* =========================================================
   Himmelmann Motorgeräte – Stylesheet
   ========================================================= */

:root {
    --blue: #24368a;
    --blue-dark: #18245e;
    --blue-soft: #eef1fa;
    --red: #e3271b;
    --red-dark: #b81d13;
    --ink: #161b2e;
    --text: #2c3346;
    --muted: #5d6579;
    --line: #e2e5ee;
    --bg: #ffffff;
    --bg-alt: #f5f6fa;
    --ok: #17803d;
    --warn: #b45309;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(22, 27, 46, .06), 0 8px 24px rgba(22, 27, 46, .06);
    --shadow-lg: 0 2px 4px rgba(22, 27, 46, .06), 0 18px 40px rgba(22, 27, 46, .12);
    --wrap: 1200px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 750; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide-sm { }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 28px; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .72em 1.3em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
    background: var(--blue-soft); color: var(--blue);
}
.btn:hover { transform: translateY(-1px); color: var(--blue); background: #e1e6f6; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
.btn--sm { padding: .45em .9em; font-size: .9rem; }
.btn--danger { background: #fde8e7; color: var(--red-dark); }
.btn--danger:hover { background: var(--red); color: #fff; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Topbar ---------- */
.topbar { background: var(--blue-dark); color: #dfe4f5; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; padding-block: 6px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #ffd2cf; }
.topbar__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }
.topbar a.status:hover { color: #fff; text-decoration: underline; }
.status__dot { width: .55em; height: .55em; border-radius: 50%; background: #9aa3bd; }
.status--open .status__dot { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
@media (max-width: 640px) {
    .hide-sm { display: none !important; }
    .topbar__inner { justify-content: center; }
}

/* ---------- Header & Navigation ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.logo img { width: clamp(190px, 22vw, 250px); height: auto; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: .55em .7em; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.nav__link:hover { color: var(--red); background: var(--bg-alt); }
.nav__item.is-active > .nav__link { color: var(--blue); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav__subtoggle { display: none; }
.nav__sub {
    list-style: none; margin: 0; padding: .45rem; position: absolute; top: 100%; left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.nav__item.has-sub:hover .nav__sub, .nav__item.has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: .55em .8em; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500; }
.nav__sub a:hover { background: var(--bg-alt); color: var(--red); }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
    /* backdrop-filter würde das fixierte Menü an den Header binden */
    .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    .nav-toggle {
        display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
        border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer;
    }
    .nav-toggle .icon { width: 24px; height: 24px; }
    .nav-toggle .icon--close, .nav-open .nav-toggle .icon--open { display: none; }
    .nav-open .nav-toggle .icon--close { display: block; }
    .nav {
        position: fixed; inset: 0 0 0 auto; top: var(--header-bottom, 116px); width: min(420px, 100%);
        flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 16px 2rem;
        background: #fff; border-left: 1px solid var(--line); overflow-y: auto;
        transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
    }
    .nav-open .nav { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .nav__link { flex: 1; padding: .9em .4em; font-size: 1.05rem; }
    .nav__item.is-active > .nav__link { box-shadow: none; color: var(--red); }
    .nav__subtoggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; }
    .nav__subtoggle .icon { transition: transform .2s; }
    .nav__subtoggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
    .nav__sub { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .6rem .6rem; display: none; min-width: 0; }
    .nav__sub.is-open { display: block; }
    .nav__item.has-sub:hover .nav__sub { transform: none; }
    .nav__cta { align-self: stretch; }
}

/* ---------- Adminbar ---------- */
.adminbar { background: #fff7e6; border-bottom: 1px solid #f5d9a8; font-size: .9rem; }
.adminbar__inner { display: flex; gap: 1.25rem; align-items: center; min-height: 42px; flex-wrap: wrap; }
.adminbar__logout { margin-left: auto; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section__head { max-width: 720px; margin-bottom: 2.25rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

.page-head { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(227, 39, 27, .5); }
.page-head h1 { color: #fff; margin-bottom: .3em; position: relative; z-index: 1; }
.page-head p { color: #d6dcf2; max-width: 680px; margin: 0; font-size: 1.1rem; position: relative; z-index: 1; }
.breadcrumb { font-size: .875rem; margin-bottom: .75rem; position: relative; z-index: 1; }
.breadcrumb a { color: #c9d1ef; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--blue-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 24, 64, .94) 0%, rgba(24, 36, 94, .82) 45%, rgba(24, 36, 94, .25) 100%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 3rem + 8vw, 8.5rem); max-width: 680px; }
.hero h1 { color: #fff; }
.hero h1 span { color: #ff8a80; }
.hero p { font-size: 1.2rem; color: #e1e6f7; margin-bottom: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.25rem; padding: 0; list-style: none; font-size: .95rem; color: #d6dcf2; }
.hero__facts li { display: flex; align-items: center; gap: .45em; }
.hero__facts .icon { color: #3ddc84; }
@media (max-width: 700px) { .hero::before { background: linear-gradient(180deg, rgba(16, 24, 64, .78), rgba(16, 24, 64, .92)); } }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 2rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.2fr 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.service { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfd5e6; color: var(--text); }
.service__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: .6rem; }
.service__icon .icon { width: 26px; height: 26px; }
.service--red .service__icon { background: #fdeceb; color: var(--red); }
.service__more { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .35em; font-weight: 650; color: var(--blue); }
.service:hover .service__more { color: var(--red); }

.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.media img { width: 100%; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .6em; align-items: flex-start; }
.checklist .icon { color: var(--ok); margin-top: .3em; }

.questions { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.questions li { background: var(--bg-alt); border-left: 4px solid var(--red); padding: .7rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; color: var(--ink); }

/* ---------- Promo ---------- */
.promo { display: grid; gap: 0; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: linear-gradient(135deg, #0f1a4a, var(--blue)); color: #fff; box-shadow: var(--shadow-lg); }
@media (min-width: 860px) { .promo { grid-template-columns: 1.1fr 1fr; } }
.promo__body { padding: clamp(1.75rem, 1rem + 3vw, 3rem); align-self: center; }
.promo__body h2 { color: #fff; }
.promo__body p { color: #d6dcf2; }
.promo__media { background: #fff; display: grid; place-items: center; padding: 1.5rem; }
.promo__media img { max-height: 380px; width: auto; }
.badge { display: inline-block; padding: .3em .75em; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--red); color: #fff; margin-bottom: 1rem; }
.badge--soft { background: var(--blue-soft); color: var(--blue); margin: 0; }
.badge--green { background: #e3f5ea; color: var(--ok); margin: 0; }
.badge--amber { background: #fff1db; color: var(--warn); margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
.stat { padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--bg-alt); }
.stat strong { display: block; font-size: 1.9rem; color: var(--blue); line-height: 1.1; }
.stat span { font-size: .92rem; color: var(--muted); }

/* ---------- Marken ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.brand { display: grid; place-items: center; height: 96px; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; }
.brand img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.brand:hover { box-shadow: var(--shadow); border-color: #cfd5e6; }
.brand:hover img { filter: none; opacity: 1; }
.brand-group + .brand-group { margin-top: 2.5rem; }
.brand-group h3 { display: flex; align-items: center; gap: .6rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 1rem; padding: 0 0 1.75rem 32px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline__year { font-weight: 800; color: var(--blue); font-size: 1.05rem; line-height: 1.5; }
.timeline h3 { margin-bottom: .25em; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 520px) {
    .timeline li { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- Bilder / Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .75rem; }
.gallery a { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.04); }
.figure { margin: 0; }
.figure a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.figure a:hover img { transform: scale(1.03); }
.figure figcaption { font-size: .92rem; color: var(--muted); padding-top: .6rem; }

.album-card { display: block; text-decoration: none; color: var(--text); border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .2s; }
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.album-card__img { aspect-ratio: 4 / 3; background: var(--bg-alt); display: grid; place-items: center; color: #b4bbcc; }
.album-card__img img { width: 100%; height: 100%; object-fit: cover; }
.album-card__img .icon { width: 48px; height: 48px; }
.album-card__body { padding: 1rem 1.25rem 1.25rem; }
.album-card__body h3 { margin: 0 0 .2em; font-size: 1.1rem; }
.album-card__body p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Marktplatz ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chip span { background: var(--bg-alt); color: var(--muted); border-radius: 999px; padding: 0 .55em; font-size: .82rem; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.is-active span { background: rgba(255,255,255,.2); color: #fff; }

.product { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.product__img { aspect-ratio: 4 / 3; background: var(--bg-alt); display: grid; place-items: center; color: #b4bbcc; position: relative; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__img .icon { width: 44px; height: 44px; }
.product__img .badge { position: absolute; top: .75rem; left: .75rem; margin: 0; }
.product__body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.product__type { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.product__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0; }
.product__price { margin-top: auto; padding-top: .6rem; font-size: 1.35rem; font-weight: 800; color: var(--red); }

.detail { display: grid; gap: 2rem; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.detail__main { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.detail__main img { width: 100%; height: 100%; object-fit: contain; }
.detail__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .5rem; margin-top: .75rem; }
.detail__thumbs a { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; }
.detail__thumbs a:hover { border-color: var(--blue); }
.detail__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail__price { font-size: 2.2rem; font-weight: 800; color: var(--red); margin: .25rem 0 1rem; }
.specs { margin: 0 0 1.5rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 650; color: var(--muted); }
.specs dd { margin: 0; }

/* ---------- Mietpark ---------- */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.rent-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.rent-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.rent-table th, .rent-table td { padding: .8rem .9rem; text-align: right; border-bottom: 1px solid var(--line); }
.rent-table thead th { background: var(--blue); color: #fff; font-weight: 650; font-size: .85rem; line-height: 1.3; vertical-align: bottom; }
.rent-table thead th small { display: block; font-weight: 400; opacity: .8; }
.rent-table th[scope="row"], .rent-table thead th:first-child { text-align: left; }
.rent-table th[scope="row"] { font-weight: 650; color: var(--ink); }
.rent-table th[scope="row"] small { display: block; font-weight: 400; color: var(--muted); }
.rent-table tbody tr:nth-child(even) { background: #fafbfd; }
.rent-table tbody tr:hover { background: var(--blue-soft); }
.rent-table td.na { color: #aab1c2; }
.rent-foot { padding: .9rem 1.1rem; font-size: .92rem; color: var(--muted); background: var(--bg-alt); }
@media (max-width: 820px) {
    .rent-table thead { display: none; }
    .rent-table, .rent-table tbody, .rent-table tr, .rent-table th, .rent-table td { display: block; }
    .rent-table tr { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 0; }
    .rent-table tbody tr:nth-child(even) { background: #fff; }
    .rent-table th[scope="row"] { grid-column: 1 / -1; border: 0; padding: 0 0 .5rem; font-size: 1.05rem; }
    .rent-table td { border: 0; padding: .3rem 0; display: flex; justify-content: space-between; gap: .5rem; text-align: right; font-size: .92rem; }
    .rent-table td::before { content: attr(data-label); color: var(--muted); text-align: left; }
    .rent-table td { white-space: nowrap; border-bottom: 1px dashed var(--line); }
    .rent-table td::before { white-space: normal; }
    .rent-table td.na { display: none; }
}

/* ---------- Kontakt / Formulare ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .service__icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.contact-list .service__icon .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); }
.hours { margin: 0; display: grid; gap: .35rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dt { font-weight: 500; white-space: nowrap; }
.hours dd { margin: 0; text-align: right; white-space: nowrap; }
.qr { width: 140px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--ink); }
.field small { color: var(--muted); font-size: .85rem; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="number"], .field input[type="url"], .field textarea, .field select {
    width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #cdd2df; border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 54, 138, .15); }
.field input[type="file"] { font: inherit; font-size: .92rem; max-width: 100%; }
.radio-group { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.radio-group label, .check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; cursor: pointer; }
.check--block { display: flex; align-items: flex-start; }
.check--block input { margin-top: .3em; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .88rem; color: var(--muted); }

.notice { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin: 1rem 0; background: var(--blue-soft); color: var(--blue-dark); border-left: 4px solid var(--blue); }
.notice--ok { background: #e7f6ec; color: #0f5a2b; border-color: var(--ok); }
.notice--warn, .notice--error { background: #fdf0ef; color: #8a1a12; border-color: var(--red); }
.notice ul { margin: .5rem 0 0; }

/* ---------- Einwilligung (Karte / Video) ---------- */
.consent { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #e9ecf5, #f6f7fb); display: grid; place-items: center; text-align: center; border: 1px solid var(--line); }
.consent--map { aspect-ratio: 4 / 3; }
.consent__box { max-width: 460px; padding: 1.5rem; font-size: .92rem; color: var(--muted); }
.consent__box .icon--big { width: 48px; height: 48px; margin: 0 auto .75rem; color: var(--blue); }
.consent__box strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .35rem; }
.consent__box .btn { margin-top: .9rem; }
.consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card .consent { border-radius: 0; border: 0; }
.video-card__body { padding: 1rem 1.25rem 1.25rem; }
.video-card__body p { margin: 0; }
.video-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: .25rem !important; }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }

/* ---------- CTA ---------- */
.cta { background: var(--red); color: #fff; border-radius: calc(var(--radius) + 4px); padding: clamp(1.75rem, 1rem + 3vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin: 0 0 .25em; }
.cta p { margin: 0; color: #ffe1de; }
.cta .btn { background: #fff; color: var(--red-dark); }
.cta .btn--ghost { background: transparent; color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #0f1638; color: #b9c0d9; font-size: .95rem; margin-top: 0; }
.footer a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: #ff8a80; }
.footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer__grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer__brand { grid-column: span 1; }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1.25fr 1fr; } }
.footer__logo { background: #fff; padding: .7rem 1rem; border-radius: 10px; width: 220px; margin-bottom: 1rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer .hours dt { color: #b9c0d9; }
.footer .hours dd { color: #fff; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--red); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; padding-block: 1.25rem; }
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 11, 26, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); display: grid; gap: .6rem; justify-items: center; }
.lightbox img { max-width: min(1400px, calc(100vw - 32px)); max-height: calc(100vh - 110px); width: auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #e4e7f2; font-size: .95rem; text-align: center; }
.lightbox button { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button .icon { width: 26px; height: 26px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__prev .icon { transform: rotate(90deg); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next .icon { transform: rotate(-90deg); }
.lightbox.single .lightbox__nav { display: none; }

/* ---------- Verwaltung ---------- */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.admin-table th, .admin-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table thead th { background: var(--bg-alt); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admin-table img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.admin-table .num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.img-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.img-edit figure { margin: 0; background: var(--bg-alt); border-radius: var(--radius-sm); padding: .5rem; display: grid; gap: .4rem; font-size: .88rem; }
.img-edit img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); background: var(--bg-alt); border-radius: var(--radius); }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .topbar, .header, .footer, .adminbar { display: none; }
}

/* ---------- Paketshop ---------- */
.parcel-logos { display: inline-flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.parcel-logos img { height: 34px; width: auto; }
.parcel-logos--lg img { height: 48px; }
.parcel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.parcel h2 { font-size: 1.35rem; margin: 0 0 .2em; }
.parcel p { margin: 0; color: var(--muted); }
.parcel__text { display: flex; gap: 1rem; align-items: center; flex: 1 1 320px; }
.parcel__text .service__icon { margin: 0; flex: none; }
