/* ==========================================================================
   TAXI4YOU KREMS – Stylesheet
   ========================================================================== */

@font-face {
  font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/anton-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/lato-latin.woff2) format('woff2');
}

:root {
  --yellow: #ffd405;
  --yellow-dark: #d1ad00;
  --black: #000;
  --dark: #232428;
  --dark-2: #333;
  --footer: #222;
  --text: #ccc;
  --muted: #979797;
  --line: rgba(229, 229, 231, .25);
  --radius: 6px;
  --container: 1200px;
  --header-h: 140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h);-webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 16px/1.6 'Lato', Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover, a:focus-visible { color: #fff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3, h4, h5 {
  font-family: 'Anton', Impact, sans-serif; font-weight: 400; line-height: 1.25;
  color: #fff; margin: 0 0 .5em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
.yellow { color: var(--yellow); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section-title { text-align: center; color: var(--yellow); margin-bottom: 60px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 10px 15px; background: var(--yellow); color: #000;
}
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.button {
  display: inline-block; padding: 8px 26px; border: 0; border-radius: 500px;
  background: #000; color: #fff; font: inherit; cursor: pointer;
  transition: background .2s, color .2s;
}
.button:hover, .button:focus-visible { background: #222; color: var(--yellow); }
.button:disabled { opacity: .6; cursor: wait; }
.button-yellow { background: var(--yellow); color: #000; }
.button-yellow:hover, .button-yellow:focus-visible { background: #fff; color: #000; }
.button-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.button-outline:hover, .button-outline:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.header { background: #000; position: sticky; top: 0; z-index: 50; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  max-width: 1400px; margin: 0 auto; padding: 0 40px; min-height: var(--header-h);
  transition: min-height .3s ease;
}
.logo img { width: 200px; transition: width .3s ease; }
.nav ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 10px 25px;
  font-family: 'Anton', Impact, sans-serif; font-size: 1.15rem; text-transform: uppercase;
  color: #fff; transition: color .2s;
}
.nav a:hover, .nav a:focus-visible, .nav a.active { color: var(--yellow); }
.header-phone {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: 'Anton', Impact, sans-serif; font-size: 1.6rem; color: var(--yellow);
}
.header-phone img { width: 28px; transition: width .3s ease; }
.header-phone:hover { color: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: 8px; padding: 8px 0;
  background: none; border: 0; color: #fff; font: inherit; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.header-phone-mobile {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 2px solid var(--yellow); border-radius: 6px;
  color: var(--yellow); transition: width .3s ease, height .3s ease, background .2s, color .2s;
}
.header-phone-mobile:hover, .header-phone-mobile:focus-visible, .header-phone-mobile:active { background: var(--yellow); color: #000; }
.header-phone-mobile svg { width: 22px; height: 22px; display: block; }
.nav a, .header-phone { transition: color .2s, font-size .3s ease, padding .3s ease; }

/* Beim Scrollen kompakter Header (Klasse per JS auf <html>) */
html.scrolled { --header-h: 80px; }
html.scrolled .header { box-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
html.scrolled .logo img { width: 110px; }
html.scrolled .nav a { font-size: 1rem; padding-top: 6px; padding-bottom: 6px; }
html.scrolled .header-phone { font-size: 1.25rem; }
html.scrolled .header-phone img { width: 22px; }

/* Offcanvas */
.offcanvas[hidden] { display: none; }
.offcanvas { position: fixed; inset: 0; z-index: 300; }
.offcanvas-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s; }
.offcanvas-bar {
  position: absolute; top: 0; bottom: 0; left: 0; width: 280px; max-width: 85vw;
  padding: 60px 30px 30px; background: #111; overflow-y: auto;
  transform: translateX(-100%); transition: transform .3s;
}
.offcanvas.open .offcanvas-overlay { opacity: 1; }
.offcanvas.open .offcanvas-bar { transform: none; }
.offcanvas-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.offcanvas ul { list-style: none; margin: 0; padding: 0; }
.offcanvas a {
  display: block; padding: 10px 0;
  font-family: 'Anton', Impact, sans-serif; font-size: 1.3rem; text-transform: uppercase; color: var(--yellow);
}
.offcanvas a:hover, .offcanvas a:focus-visible { color: rgba(255, 255, 255, .8); }
.offcanvas .offcanvas-phone { margin-top: 20px; color: #fff; }

/* ==========================================================================
   Hero mit Anfrageformular
   ========================================================================== */
.hero {
  position: relative; padding: 80px 0;
  background: #000 url(../img/hero-audi.jpg) center / cover no-repeat;
}
.hero { background-image: image-set(url(../img/hero-audi.webp) type('image/webp'), url(../img/hero-audi.jpg) type('image/jpeg')); }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.hero .container {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.hero h1 { font-size: 2.3rem; }
.hero h1 > span { display: block; }
.hero-text p { font-size: 1.1rem; max-width: 34em; }
.hero-text h2 { font-size: 1.9rem; margin-top: 1.4em; }
.hero-phone { font-family: 'Anton', Impact, sans-serif; font-size: 1.9rem; color: var(--yellow); }
.hero-phone a:hover { color: #fff; }

.request {
  background: var(--yellow); color: #000; padding: 30px; border-radius: 6px;
}
.request h2 { color: #000; font-size: 1.6rem; margin-bottom: 1em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.form-row { margin-bottom: 14px; }
.form-row { min-width: 0; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { display: block; margin-bottom: 3px; font-weight: 500; }
.form-row input, .form-row textarea {
  width: 100%; padding: 6px 10px; border: 1px solid #fff; border-radius: 0;
  background: #fff; color: #000; font: inherit; font-size: 15px;
}
.form-row input { height: 36px; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid #000; outline-offset: 0; }
.form-row textarea { min-height: 90px; resize: vertical; }
/* Leeres Datum/Uhrzeit: Platzhaltertext ausblenden, Symbol bleiben sichtbar */
.form-row input.is-empty { color: transparent; }
.form-row input.is-empty::-webkit-datetime-edit { color: transparent; }
/* iOS Safari: Datum/Uhrzeit haben eine eigene Mindestbreite und ragen sonst rechts aus dem Formular */
@supports (-webkit-touch-callout: none) {
  .form-row input[type=date], .form-row input[type=time] {
    -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%;
  }
  .form-row input::-webkit-date-and-time-value { text-align: left; margin: 0; }
}
/* Firefox zeichnet das Symbol in Textfarbe → bei leerem Feld als Hintergrund ergänzen */
@supports (-moz-appearance: none) {
  .form-row input.is-empty { background: #fff no-repeat right 10px center / 16px; }
  .form-row input[type=date].is-empty { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
  .form-row input[type=time].is-empty { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
}
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.form-check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; }
.form-check a { color: #000; text-decoration: underline; }
.form-check a:hover { color: #444; }
altcha-widget {
  display: block; max-width: 300px;
  --altcha-color-base: #fff;
  --altcha-color-base-content: #000;
  --altcha-color-primary: #000;
  --altcha-color-primary-content: #fff;
  --altcha-border-color: #fff;
  --altcha-border-radius: 2px;
}
.hp { position: absolute !important; left: -9999px; }
.form-actions { text-align: center; margin-top: 6px; }
.form-status { margin: 14px 0 0; padding: 10px 14px; font-size: 15px; border-radius: 2px; }

.form-status.error { background: #fff; color: #b00020; border-left: 4px solid #b00020; }

/* ==========================================================================
   Leistungen
   ========================================================================== */
.services { background: var(--dark); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service {
  padding: 30px 20px 25px; text-align: center;
  border: 1px solid rgba(229, 229, 229, .1); border-radius: var(--radius);
  background: rgba(0, 0, 0, .12);
}
.service img { width: 150px; margin: 0 auto 20px; }
.service h3 { margin: 0; font-size: 1.4rem; }

/* ==========================================================================
   Fahrzeuge / Galerie
   ========================================================================== */
.vehicles { background: var(--dark-2); }
.gallery-page { background: #000; padding-top: 60px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.gallery a { display: block; overflow: hidden; border-radius: 3px; }
.gallery img { width: 100%; aspect-ratio: 376 / 294; object-fit: cover; transition: transform .4s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact { background: #000; padding-bottom: 80px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 30px; }
.contact-item { padding: 0 20px 20px; }
.contact-item + .contact-item { border-left: 1px solid var(--line); }
.contact-item svg { width: 50px; height: 50px; color: var(--yellow); margin: 0 auto 30px; display: block; }
.contact-item h3 { font-size: 1.6rem; margin-bottom: .6em; overflow-wrap: anywhere; }
.contact-item h3 a { color: #fff; }
.contact-item h3 a:hover { color: var(--yellow); }
.contact-item p { margin: 0; font-size: 1.15rem; color: var(--muted); }

.map { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.map iframe, .consent-placeholder { display: block; width: 100%; height: 450px; border: 0; }
.consent-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 20px; text-align: center; background: #1a1a1a; border: 1px dashed #444; color: var(--text);
}
.consent-placeholder p { margin: 0; max-width: 36em; }

/* ==========================================================================
   Rechtstexte
   ========================================================================== */
.legal { padding: 60px 0 100px; }
.legal .container { max-width: 900px; }
.legal h1 { color: var(--yellow); margin-bottom: 1em; }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.3rem; margin-top: 1.6em; color: var(--yellow); }
.legal h4 { font-size: 1.05rem; margin: 1.2em 0 .3em; }
.legal ul { padding-left: 1.2em; }
.legal a { overflow-wrap: anywhere; }
.legal table { width: 100%; border-collapse: collapse; margin: .5em 0 1.5em; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #333; vertical-align: top; }
.legal th { color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--footer); padding: 60px 0; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer ul a, .footer ul button {
  padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 1.05rem; text-transform: uppercase; color: var(--muted);
}
.footer ul a:hover, .footer ul button:hover, .footer ul a:focus-visible, .footer ul button:focus-visible { color: #fff; }
.powered { font-size: 12px; color: var(--muted); margin: 0; }
.powered a { color: #fff; }
.powered a:hover { color: var(--yellow); }

/* ==========================================================================
   Cookie-Banner
   ========================================================================== */
.cookie-banner {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 15px; background: rgba(0, 0, 0, .55);
}
.cookie-box {
  width: 100%; max-width: 520px; padding: 25px 25px 20px;
  background: #111; color: var(--text); border: 1px solid #333; border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5); font-size: 15px;
}
.cookie-title { font-family: 'Anton', Impact, sans-serif; font-size: 1.4rem; color: var(--yellow); margin: 0 0 .5em; }
.cookie-box a { text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 1.2em; }

/* ==========================================================================
   Danke-Popup (Anfrage gesendet)
   ========================================================================== */
.thanks-dialog {
  width: calc(100% - 32px); max-width: 460px; padding: 40px 30px 30px;
  border: 0; border-radius: 6px; background: var(--yellow); color: #000; text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.thanks-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.thanks-title { font-family: 'Anton', Impact, sans-serif; font-size: 1.7rem; line-height: 1.25; margin: 0 0 .6em; }
.thanks-dialog p { margin: 0 0 1.2em; font-size: 1.05rem; }
.thanks-close {
  position: absolute; top: 6px; right: 10px; padding: 4px 8px;
  background: none; border: 0; color: #000; font-size: 2rem; line-height: 1; cursor: pointer;
}
.thanks-close:hover, .thanks-close:focus-visible { color: #444; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(0, 0, 0, .92); color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox figure {
  margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 60px;
}
.lightbox { overflow: hidden; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain;
  will-change: transform; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 3rem; line-height: 1; padding: 10px 16px;
}
.lightbox button:hover, .lightbox button:focus-visible { color: var(--yellow); }
.lb-close { top: 5px; right: 10px; }
.lb-prev { left: 5px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 5px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 18px; left: 20px; margin: 0; font-size: 14px; color: #aaa; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .nav a { padding: 10px 14px; }
  .header-phone { font-size: 1.35rem; }
  .logo img { width: 170px; }
}
@media (max-width: 959px) {
  :root { --header-h: 90px; }
  .nav, .header-phone { display: none; }
  .nav-toggle, .header-phone-mobile { display: flex; }
  .header-inner { padding: 0 20px; }
  html.scrolled { --header-h: 60px; }
  html.scrolled .logo img { width: 80px; }
  .nav-toggle, .header-phone-mobile svg { transition: font-size .3s ease, width .3s ease, height .3s ease; }
  html.scrolled .nav-toggle { font-size: 14px; }
  html.scrolled .header-phone-mobile { width: 38px; height: 38px; }
  html.scrolled .header-phone-mobile svg { width: 18px; height: 18px; }
  .logo img { width: 120px; }
  .hero .container { grid-template-columns: 1fr; }
  .service-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery { gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-item + .contact-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 30px; }
}
@media (max-width: 639px) {
  .container, .map { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-title { margin-bottom: 35px; }
  h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 40px 0; }
  .hero-text h2, .hero-phone { font-size: 1.5rem; }
  .request { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .service { padding: 20px 10px; }
  .service img { width: 90px; margin-bottom: 12px; }
  .service h3 { font-size: 1.1rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .map iframe, .consent-placeholder { height: 340px; }
  .footer .container { flex-direction: column; align-items: center; text-align: center; }
  .footer ul { flex-direction: column; align-items: center; gap: 12px; }
  .footer ul a, .footer ul button { display: block; padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .header .nav, .nav-toggle, .offcanvas, .cookie-banner, .map, .request { display: none !important; }
  body { background: #fff; color: #000; }
}
