:root {
    color-scheme: light;
    --navy: #13243b;
    --dark: #0d1b2c;
    --ink: #17283e;
    --muted: #506074;
    --gold: #ffcd66;
    --line: #d9e1e9;
    --paper: #f3f6fa;
    --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid #3972b1;
    outline-offset: 3px;
}
.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }

.topbar {
    background: var(--white);
    color: var(--ink);
    border-bottom: 2px solid var(--gold);
}
.topbar-inner, .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-block: 16px;
}
.topbar-inner { padding-block: 8px; }
.brand img { width: clamp(165px, 24vw, 196px); height: auto; }
.topbar-note { color: var(--muted); font-size: .91rem; }
.footer-address { color: #d2dbe7; font-size: .91rem; }
.topbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.topbar-links a { color: var(--navy); font-size: .91rem; font-weight: 750; text-underline-offset: 3px; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(42px, 6vw, 78px);
    color: var(--white);
    background: linear-gradient(115deg, var(--navy) 25%, #243f60);
}
.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: repeating-linear-gradient(120deg, transparent 0 35px, #ffffff16 35px 36px);
    mask-image: linear-gradient(to right, transparent 48%, #000);
    pointer-events: none;
}
.eyebrow {
    margin-bottom: 10px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
    max-width: 800px;
    font-size: clamp(2.2rem, 6.2vw, 4.35rem);
    font-weight: 850;
    line-height: 1.03;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.hero-claim-accent { display: block; color: var(--gold); }
.hero-copy { margin-top: 20px; color: #e0e8f3; font-size: clamp(1rem, 2vw, 1.12rem); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.button-gold { background: var(--gold); color: var(--dark); }
.button-gold:hover { background: #ffda8e; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.hero-links > a:not(.button) { font-weight: 700; text-underline-offset: 3px; }
.hero a:focus-visible { outline-color: var(--gold); }

.tariffs { padding-top: clamp(32px, 5vw, 58px); scroll-margin-top: 18px; }
.fleet, .contact { padding-block: clamp(32px, 5vw, 58px); scroll-margin-top: 18px; }
.tariffs h2, .fleet h2, .inquiry h2, .contact h2 {
    font-size: clamp(1.7rem, 4vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -.045em;
}
.section-intro { margin: 9px 0 21px; color: var(--muted); }
.tariff-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 14px;
    padding: 0;
    list-style: none;
}
.tariff-card, .contact-card {
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}
.tariff-card h3, .contact-card h3 { margin: 0; font-size: 1rem; }
.contact-grid { margin-bottom: 0; }
.tariff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-card { display: grid; align-content: start; justify-items: start; gap: 8px; min-width: 0; }
.contact-card address { font-style: normal; }
.contact-link { font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-link:hover { color: #2b486a; }
.tariff-price { font-size: 1.85rem; font-weight: 800; letter-spacing: -.045em; }
.tariff-price small { font-size: .95rem; font-weight: 650; letter-spacing: 0; }
.tariff-duration { color: var(--muted); font-size: .91rem; }
.preisvergleich { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.preisvergleich summary { padding: 12px 16px; font-weight: 750; cursor: pointer; }
.modell-preisliste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 16px; }
.modell-preise { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; scroll-margin-top: 18px; }
.modell-preise:target { border-color: #a87519; }
.modell-preise h3 { font-size: 1rem; overflow-wrap: anywhere; }
.modell-preise dl { margin: 6px 0 0; }
.modell-preise dl div { display: flex; justify-content: space-between; gap: 8px; padding-block: 4px; }
.modell-preise dd { margin: 0; font-weight: 750; white-space: nowrap; }
.terms {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    padding: 16px 20px;
    border: 1px solid #e4bd66;
    border-radius: 12px;
    background: #fff5dc;
}
.terms h3 { font-size: 1rem; }
.terms p { font-size: .92rem; }
.deposit { color: var(--dark); font-size: 1.2rem; font-weight: 800; }
.trailer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.soon-banner { margin: 0; padding: 12px 16px; background: #ffd166; color: #13243b; font-weight: 800; }
.soon-content { padding: 16px; }
.soon-content h3 { margin: 0 0 8px; }
.soon-content p { margin: 0; color: var(--muted); }
.trailer-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 24px #13243b0b;
}
.trailer-photo {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    aspect-ratio: 1.75;
    overflow: hidden;
    background: #e6edf5;
    color: var(--muted);
}
.trailer-photo > * { grid-area: 1 / 1; }
.trailer-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.trailer-photo--gespann img { object-fit: contain; }
.trailer-photo[hidden], .trailer-photo-controls[hidden] { display: none; }
.trailer-photo-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.trailer-photo-controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font-size: 1.65rem;
    cursor: pointer;
}
.trailer-photo-controls button:hover { background: #e6edf5; }
.trailer-photo-status { font-size: .85rem; text-align: center; }
.trailer-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(16px, 3vw, 24px);
}
.trailer-content h3 { font-size: 1.32rem; line-height: 1.2; overflow-wrap: anywhere; }
.trailer-description { margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.trailer-day-price { margin-top: 8px; font-weight: 700; }
.availability { margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; }
.availability summary { padding: 10px 12px; border-radius: 8px; background: var(--gold); color: var(--dark); cursor: pointer; font-weight: 750; }
.availability summary:hover { background: #ffda8e; }
.availability summary:focus-visible { outline: 3px solid #3972b1; outline-offset: 2px; }
.availability[open] summary { border-radius: 8px 8px 0 0; }
.calendar-content { padding: 0 10px 10px; }
.availability noscript { display: block; padding: 0 10px 10px; }
.calendar-bar, .calendar-legend { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 6px; text-align: center; }
.calendar-grid > * { min-width: 0; min-height: 32px; padding: 2px; border: 1px solid transparent; border-radius: 5px; }
.calendar-grid > span { display: grid; place-items: center; }
.calendar-bar button, .calendar-grid button, .calendar-options button { border-radius: 5px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.calendar-bar button { min-width: 38px; min-height: 38px; }
.calendar-bar button:disabled { opacity: .4; cursor: default; }
.calendar-grid .free { background: #e6f4e9; }
.calendar-grid .partial { background: #fff1cf; }
.calendar-grid .busy { background: #e9edf2; color: var(--muted); }
.calendar-grid .past { color: var(--muted); opacity: .65; }
.calendar-grid [aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.calendar-legend { justify-content: flex-start; flex-wrap: wrap; color: var(--muted); font-size: .78rem; }
.calendar-legend span { padding: 2px 4px; border-radius: 4px; }
.calendar-legend .free { background: #e6f4e9; }
.calendar-legend .partial { background: #fff1cf; }
.calendar-legend .busy { background: #e9edf2; }
.calendar-options { display: grid; gap: 6px; margin-top: 9px; font-size: .85rem; }
.calendar-options button { text-align: left; padding: 6px 8px; }
.calendar-options button:hover { background: var(--paper); }
.trailer-license {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    font-size: .92rem;
}
.trailer-license h4 { margin: 0 0 4px; font-size: .98rem; }
.trailer-license ul { margin: 6px 0 0; padding-inline-start: 19px; }
.trailer-license p + p { margin-top: 4px; }
.license-note { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.license-note a { text-underline-offset: 3px; }
.trailer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 19px;
}
.button-dark { background: var(--navy); color: var(--white); }
.button-dark:hover { background: #2b486a; }
.fleet-notice {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.inquiry { padding-block: clamp(32px, 5vw, 58px); background: #e7edf5; scroll-margin-top: 12px; }
.inquiry-inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(22px, 5vw, 58px);
}
.inquiry-copy { padding-top: 12px; }
.inquiry-copy > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.inquiry-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: clamp(16px, 4vw, 28px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 24px #13243b0b;
}
.field { display: grid; gap: 5px; min-width: 0; }
.full { grid-column: 1 / -1; }
.field label, .tariff-field legend { font-size: .92rem; font-weight: 700; }
.field input:not([type="checkbox"]), .field select {
    min-width: 0;
    width: 100%;
    min-height: 45px;
    padding: 8px 10px;
    border: 1px solid #aebbc9;
    border-radius: 7px;
    background: var(--white);
    color: var(--ink);
}
.tariff-field { margin: 0; padding: 0; min-inline-size: 0; border: 0; }
.tariff-field legend { margin-bottom: 6px; padding: 0; }
.tariff-choice, .strap-choice {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
}
.tariff-choice + .tariff-choice { margin-top: 6px; }
.tariff-choice:has(:checked), .strap-choice:has(:checked) { background: #fff5dc; border-color: #e4bd66; }
.tariff-choice input, .strap-choice input { margin: 0; flex: none; accent-color: var(--navy); }
.tariff-choice span { flex: 1; }
.tariff-choice small { display: block; color: var(--muted); }
.tariff-choice strong { white-space: nowrap; }
.delivery-address {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 15px;
    margin: 0;
    padding: 10px 12px 12px;
    min-inline-size: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
}
.delivery-address legend { padding-inline: 4px; font-size: .92rem; font-weight: 700; }
.form-deposit { padding: 10px 12px; border-radius: 7px; background: #fff5dc; font-size: .92rem; }
.form-deposit a { text-underline-offset: 3px; }
.form-note { color: var(--muted); font-size: .85rem; }
.inquiry-form [hidden] { display: none; }
.contract-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 15px;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.form-note a, .footer-links a { text-underline-offset: 3px; }
footer { background: var(--dark); color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .91rem; }
.footer-links a:focus-visible { outline-color: var(--gold); }

.back-to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 100;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid var(--gold);
    border-radius: 14px;
    background: var(--navy);
    color: var(--gold);
    box-shadow: 0 4px 16px #0d1b2c33;
    cursor: pointer;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }
.back-to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media print { .back-to-top { display: none; } }

@media (max-width: 900px) {
    .tariff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .trailer-grid, .inquiry-inner, .contact-grid { grid-template-columns: 1fr; }
    .inquiry-copy { padding-top: 0; }
}
@media (max-width: 620px) {
    .tariff-grid { gap: 8px; }
    .tariff-card { padding: 10px; }
    .tariff-card h3 { overflow-wrap: anywhere; }
    .tariff-price { font-size: 1.5rem; }
    .tariff-duration { font-size: .83rem; }
    .modell-preisliste { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .topbar-note { display: none; }
}
@media (max-width: 430px) {
    .wrap { width: calc(100% - 32px); }
    .inquiry-form, .delivery-address, .contract-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
