.contact-page { background: var(--navy); color: white; }
.contact-hero { min-height: 70vh; display: flex; align-items: center; justify-content: center; position: relative; isolation: isolate; padding: 110px 24px 60px; text-align: center; }
.contact-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.contact-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0b152440, #0b1524a6); }
.contact-hero h1 { font-size: 60px; line-height: 60px; font-weight: 700; letter-spacing: normal; margin-bottom: 24px; }
.contact-facts { padding: 56px 0 0; background: var(--navy); }
.contact-facts-grid { max-width: 1280px; padding-inline: 32px; margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.contact-facts article { padding: 28px; text-align: left; border: 1px solid #374151; border-radius: 12px; background: var(--navy-light); }
.fact-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; margin: 0 0 20px; border-radius: 50%; background: var(--red); }
.fact-icon svg { width: 26px; height: 26px; }
.contact-facts h2 { font-size: 20px; line-height: 28px; margin: 0 0 16px; }
.contact-facts p, .contact-facts address { font-size: 16px; line-height: 24px; color: #d1d5db; }
.contact-facts a { display: block; }
.fact-phone { font-size: 24px; line-height: 32px; font-weight: 600; color: white; }
.fact-email, .fact-whatsapp { font-size: 14px; line-height: 20px; margin-top: 8px; overflow-wrap: anywhere; }
.fact-email { color: #9ca3af; }
.fact-whatsapp { color: var(--accent-light); }
.contact-facts a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.contact-address address strong, .contact-address address span { display: block; }
.contact-address address strong { margin-bottom: 12px; color: white; font-size: 18px; }
.contact-address .address-district { margin-top: 12px; color: var(--accent-light); font-size: 14px; }
.directions-section { padding: 48px 32px 88px; background: var(--navy); }
.directions-inner { max-width: 1216px; margin: auto; }
.directions-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.directions-eyebrow { margin-bottom: 8px; color: var(--accent-light); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.directions-inner h2 { font-size: 32px; }
.directions-map-wrap { position: relative; }
.directions-map { display: block; width: 100%; height: 420px; border-radius: 12px; background: var(--navy-light); }
.directions-marker { filter: drop-shadow(0 2px 5px #0005); }
.directions-marker-badge { position: relative; display: flex; align-items: center; justify-content: center; width: 108px; height: 52px; padding: 7px; border: 2px solid var(--red); border-radius: 10px; background: #fff; }
.directions-marker-badge::before, .directions-marker-badge::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border-left: 10px solid transparent; border-right: 10px solid transparent; }
.directions-marker-badge::before { bottom: -14px; border-top: 14px solid var(--red); }
.directions-marker-badge::after { bottom: -10px; border-left-width: 7px; border-right-width: 7px; border-top: 10px solid #fff; }
.directions-marker img { width: 100%; height: 100%; object-fit: contain; }
.directions-profile { position: absolute; z-index: 1001; top: 16px; left: 16px; width: min(320px, calc(100% - 80px)); padding: 14px 16px; border-radius: 8px; background: #fff; color: #202124; box-shadow: 0 2px 12px #0004; font: 14px/1.45 Arial, sans-serif; }
.directions-profile strong, .directions-profile span, .directions-profile a { display: block; }
.directions-profile strong { font-size: 16px; }
.directions-profile span { margin-top: 4px; color: #5f6368; }
.directions-profile a { margin-top: 8px; color: #1a73e8; text-decoration: underline; }
.directions-link { position: absolute; z-index: 1001; left: 16px; bottom: 36px; text-align: center; box-shadow: 0 2px 12px #0004; }
.appointment-section { padding: 80px 0; background: linear-gradient(#f4f4f54d,#f4f4f54d), url('medien/bremsenpruefstand-vw-werkstatt-service.webp') center/cover fixed; }
.appointment-container { max-width: 768px; padding-inline: 32px; margin: auto; }
.appointment-card { position: relative; z-index: 1; background: rgba(9, 24, 42, .5); backdrop-filter: blur(8px) saturate(110%); -webkit-backdrop-filter: blur(8px) saturate(110%); border: 1px solid #ffffff40; border-radius: 12px; box-shadow: 0 12px 36px #07182d30; }
.appointment-heading { padding: 24px; }
.appointment-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.025em; }
.appointment-heading svg { color: var(--accent-light); }
.appointment-heading p { font-size: 16px; line-height: 24px; color: #d1d5db; margin-top: 6px; }
.appointment-form { padding: 0 24px 24px; scroll-margin-top: 100px; }
.appointment-form > * + * { margin-top: 16px; }
.appointment-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.vehicle-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(90px,.48fr); }
.appointment-form label, .appointment-form .field-label { display: inline-block; color: #e5e7eb; font-size: 14px; line-height: 20px; font-weight: 500; }
.appointment-form input, .appointment-form select, .appointment-form textarea { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 10px 12px; min-height: 44px; border-radius: 6px; border: 1px solid #ffffff40; background: rgba(9, 24, 42, .5); color: white; font: inherit; font-size: 16px; line-height: 22px; color-scheme: dark; box-shadow: 0 1px 2px #0001; }
.appointment-form textarea { height: auto; min-height: 78px; padding: 8px 12px; resize: vertical; }
.appointment-form select:disabled { opacity: .5; cursor: not-allowed; }
.appointment-form :is(input,select,textarea):focus { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.validation-summary { padding: 14px 16px; border: 1px solid #ff9b9b; border-left-width: 4px; border-radius: 8px; background: #4b1d2cbf; color: #fff; font-size: 14px; line-height: 1.5; }
.validation-summary[hidden] { display: none; }
.validation-summary ul { margin: 8px 0 0; padding-left: 20px; }
.validation-summary a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.appointment-form :is(input,select,textarea)[aria-invalid="true"], .service-dropdown > summary[aria-invalid="true"] { border-color: #ff9b9b; box-shadow: 0 0 0 1px #ff9b9b; }
.appointment-form .field-error { display: block; margin-top: 7px; color: #ffd1d1; font-size: 13px; line-height: 18px; }
.appointment-note { color: #e5edf7; font-size: 14px; line-height: 20px; }
.appointment-submit { width: 100%; min-height: 48px; padding: 10px 16px; border: none; border-radius: 6px; background: var(--red); color: white; font-size: 18px; line-height: 28px; font-weight: 500; transition: background .2s; }
.appointment-submit:hover { background: var(--red-dark); }
.appointment-submit:disabled { opacity: .5; cursor: not-allowed; }
.form-feedback { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #86b5e6; border-left: 4px solid #86b5e6; border-radius: 8px; background: #0c2c48; color: white; }
.form-feedback[hidden] { display: none; }
.form-feedback[data-type="error"] { border-color: #ff8888; }
.form-feedback[data-type="success"] { border-color: #88d5ae; }
.feedback-symbol { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff20; font-weight: 700; }
.appointment-form .form-status { margin: 0; padding: 0; border: 0; background: transparent; color: white; font-size: 14px; line-height: 1.5; }
.form-feedback:focus-within { outline: 2px solid #c8ddff; outline-offset: 2px; }
.appointment-form .form-status:focus { outline: 0; }
.contact-page .direct-contact { text-align: center; margin-top: 32px; padding: 28px; border: 1px solid #ffffff40; border-radius: 12px; background: rgba(9, 24, 42, .7); backdrop-filter: blur(8px); }
.direct-contact h2 { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.contact-page .direct-contact p { color: #d1d5db; font-size: 15px; line-height: 24px; }
.direct-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.direct-actions a { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 56px; padding: 12px; border-radius: 8px; background: white; color: var(--navy); font-size: 18px; line-height: 24px; font-weight: 700; text-decoration: none; }
.direct-actions a:hover { background: #eaf2ff; }
.direct-actions a:focus-visible { outline: 3px solid #c8ddff; outline-offset: 3px; }
.direct-actions svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--red); }
.direct-actions a:last-child svg { color: #128c5e; }
@media (max-width: 767px) {
  .contact-hero { min-height: 60vh; }
  .contact-hero h1 { font-size: 48px; line-height: 48px; }
  .contact-facts-grid { grid-template-columns: 1fr; padding-inline: 16px; gap: 24px; }
  .directions-section { padding: 40px 16px 64px; }
  .directions-heading { flex-direction: column; align-items: stretch; }
  .directions-map { height: 420px; }
  .directions-profile { padding: 10px 12px; }
  .directions-profile span { display: none; }
  .directions-link { right: 16px; bottom: 52px; }
  .appointment-container { padding-inline: 16px; }
  .appointment-row { grid-template-columns: 1fr; }
  .appointment-form input, .appointment-form textarea { font-size: 16px; line-height: 24px; }
  .appointment-section { background-attachment: scroll; }
}
@media (max-width: 420px) { .direct-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .appointment-section { background-attachment: scroll; } }

/* Separate the current status from the regular weekly schedule. */
.contact-hours .opening-widget {
  max-width: 320px; margin: 18px auto 20px; padding: 12px 14px;
  border-radius: 10px; background: #ffffff08; border: 1px solid #ffffff14;
}
.contact-hours .opening-dot { margin-top: 7px; }
.contact-hours .opening-widget [data-opening-message] { color: #d1d5db; font-size: 14px; line-height: 22px; }
.hours-schedule { max-width: 320px; margin-inline: auto; text-align: left; }
.contact-hours .hours-schedule { max-width: none; margin: 0; }
.contact-facts .hours-days { margin: 0 0 10px; color: #fff; font-size: 15px; font-weight: 600; }
.hours-times { margin: 0; }
.hours-times > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-block: 7px; }
.hours-times dt { color: #aebdce; font-size: 14px; }
.hours-times dd { margin: 0; color: #f3f7fc; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact-facts .hours-closed { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #ffffff14; color: #aebdce; font-size: 13px; line-height: 20px; }

.appointment-form .required-mark { color: #ff7777; font-weight: 700; }
.appointment-form .message-field[hidden], .appointment-form .message-hint[hidden], .appointment-form .required-mark[hidden] { display: none; }
.appointment-form .message-field.is-required { padding-left: 12px; border-left: 3px solid #ff7777; }
.appointment-form .message-hint { margin: 8px 0; color: #cbd5e1; font-size: 14px; line-height: 20px; }

.appointment-form input[type="hidden"] { display: none; }
.appointment-form input::placeholder { color: #bac8d8; }
.plate-field { min-width: 0; }
.plate-parts { display: grid; grid-template-columns: minmax(56px, .6fr) auto minmax(96px, 1.4fr); align-items: center; gap: 6px; }
.plate-parts > span { color: #fff; font-size: 22px; font-weight: 700; }
.appointment-form .plate-parts input { padding-inline: 8px; text-transform: uppercase; }
.field-hint { display: block; margin-top: 6px; color: #d6e3f1; font-size: 12px; line-height: 17px; }
@media (max-width: 767px) { .vehicle-row { grid-template-columns: 1fr; } }
.appointment-form :is(#email,#brand,#model)::selection { background: #2b5e91; color: #fff; }
.appointment-form #time:disabled { opacity: .55; cursor: not-allowed; }
.time-unavailable { margin: 8px 0 0; color: #ffd6a5; font-size: 13px; line-height: 19px; }
.time-unavailable[hidden] { display: none; }
.appointment-form #time optgroup, .appointment-form #time option { background: #112e4a; color: #fff; }
.service-error { display: block; margin-top: 7px; color: #ff9b9b; font-size: 13px; }
.service-error[hidden] { display: none; }

.appointment-form .service-picker { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
.appointment-form .service-picker legend { margin-bottom: 10px; color: #e5e7eb; font-size: 14px; font-weight: 500; }
.service-dropdown { position: relative; }
.service-dropdown > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 12px; border: 1px solid #ffffff55; border-radius: 8px; background: rgba(9, 24, 42, .5); color: #fff; cursor: pointer; list-style: none; }
.service-dropdown > summary::-webkit-details-marker { display: none; }
.service-dropdown > summary svg { width: 22px; height: 22px; color: #9fc8ff; }
.service-dropdown > summary .service-current-icon { width: 28px; height: 28px; padding: 4px; color: #9fc8ff; }
.service-dropdown > summary svg:last-child { width: 18px; height: 18px; margin-left: auto; transition: transform .2s; }
.service-dropdown[open] > summary svg:last-child { transform: rotate(180deg); }
.service-dropdown > summary:focus-visible { outline: 2px solid #c8ddff; outline-offset: 3px; }
.service-options { position: absolute; z-index: 1002; top: calc(100% + 6px); left: 0; right: 0; display: grid; gap: 4px; max-height: 310px; overflow-y: auto; padding: 6px; border: 1px solid #ffffff66; border-radius: 10px; background: rgba(9, 24, 42, .92); backdrop-filter: blur(8px); box-shadow: 0 12px 30px #07182d66; }
.appointment-form .service-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; color: #fff; font-size: 14px; line-height: 19px; cursor: pointer; }
.appointment-form .service-option:hover { border-color: #8db8ee; background: #2b5e91; }
.appointment-form .service-option:has(input:checked) { border-color: #7db2f7; background: #214668; color: #fff; }
.appointment-form .service-option:has(input:focus-visible) { outline: 2px solid #c8ddff; outline-offset: 2px; }
.appointment-form .service-option input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; }
.appointment-form .service-option svg { width: 28px; height: 28px; flex: 0 0 28px; padding: 4px; color: #9fc8ff; }
.appointment-form .service-option span { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .appointment-form .service-option { transition: none; } }
@media (max-width: 600px) {
  .service-options { position: static; max-height: none; overflow: visible; margin-top: 6px; }
  .appointment-form .service-option { min-height: 48px; }
}

.calendar-backdrop { position: fixed; inset: 0; z-index: 9998; background: rgba(9, 24, 42, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.calendar-backdrop[hidden] { display: none; }
.flatpickr-calendar { z-index: 9999; border: 1px solid #ffffff66; border-radius: 12px; background: rgba(9, 24, 42, .5); backdrop-filter: blur(8px) saturate(110%); -webkit-backdrop-filter: blur(8px) saturate(110%); box-shadow: 0 14px 40px #07182d77; color: white; }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after, .flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none; }
.flatpickr-months, .flatpickr-weekdays, .flatpickr-weekday, .flatpickr-months .flatpickr-month, .flatpickr-current-month, .flatpickr-current-month .cur-month { background: transparent; color: white; }
.flatpickr-current-month input.cur-year { color: white; }
.flatpickr-weekdays span.flatpickr-weekday { color: #e5efff; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { color: #e5efff; fill: #e5efff; }
.flatpickr-day { color: white; }
.flatpickr-day:hover, .flatpickr-day:focus { background: #2b5e91; border-color: #2b5e91; }
.flatpickr-day.today { border-color: #9fc8ff; }
.flatpickr-day.selected { background: var(--red); border-color: var(--red); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #adbacb; background: transparent; border-color: transparent; text-decoration: none; cursor: not-allowed; }
.flatpickr-day.is-closed-day { color: #c9d1dc; background: #ffffff18; border-color: transparent; text-decoration: none; cursor: default; }
@media (max-width: 600px) {
  .flatpickr-calendar.open { position: fixed !important; top: calc((100dvh - 90px) / 2) !important; left: 50% !important; right: auto !important; transform: translate(-50%, -50%) !important; }
}
@media (max-width: 360px) {
  .flatpickr-calendar { width: calc(100% - 24px); }
  .flatpickr-rContainer, .flatpickr-days, .flatpickr-calendar .dayContainer { width: 100%; min-width: 0; max-width: 100%; }
}

#contact-security { padding: 12px 14px; border: 1px solid #ffffff40; border-radius: 6px; background: rgba(9, 24, 42, .35); }
#contact-security.is-idle { height: 0; margin-top: 0; padding: 0; border: 0; background: none; overflow: hidden; }
#contact-security #security-status { color: #fff; font-size: .9rem; margin: 0 0 4px; }
#contact-security small { color: #d1dbe9; }
#contact-security a { color: #c8ddff; text-underline-offset: 2px; }
