/* ============================================
   Self-hosted fonts (no external request to Google)
   ============================================ */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-variable.woff2") format("woff2-variations"),
       url("fonts/Inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-variable.woff2") format("woff2-variations"),
       url("fonts/Oswald-variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   T&T Car Detailing — Design Tokens
   ============================================ */
:root {
  /* Colors */
  --bg: #0a0b0d;
  --bg-alt: #101114;
  --surface: #17181c;
  --surface-2: #1e2025;
  --border: #2b2d33;
  --text: #f3f2ef;
  --text-muted: #a6abb3;
  --text-faint: #8b909a; /* WCAG AA: ~6.1:1 on --bg (was #6f747c at ~4.2:1, failed AA) */
  --accent-gold: #c9a227;
  --accent-gold-light: #e0c15a;
  --accent-red: #d1242f;
  --accent-red-light: #eb3d47;
  --focus-ring: #e0c15a;

  /* Typography */
  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale */
  --step-body: 1rem;
  --step-sm: 0.875rem;
  --step-lg: 1.125rem;
  --step-xl: 1.5rem;
  --step-2xl: 2rem;
  --step-3xl: 2.75rem;
  --step-4xl: 3.5rem;

  /* Spacing (8pt rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --container: 1200px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --duration: 220ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Focus visibility (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-red);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ============================================
   Layout helpers
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-4); }
}

section { padding-block: var(--space-6); }
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.eyebrow {
  display: inline-block;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--step-sm);
  margin-bottom: var(--space-2);
}
.section-title {
  font-size: var(--step-3xl);
  color: var(--text);
}
.section-desc {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--step-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--step-body);
  border: 1px solid transparent;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  cursor: pointer;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(209, 36, 47, 0.35);
}
.btn-primary:hover { background: var(--accent-red-light); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold-light); }
.btn-block { width: 100%; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand-mark {
  color: var(--accent-gold);
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-4);
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--step-sm);
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); border-color: var(--accent-gold); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  border-radius: 8px;
}
.mobile-menu a:hover { background: var(--surface); color: var(--text); }
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  padding-block: var(--space-7);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(8,9,11,0.55) 0%, rgba(8,9,11,0.75) 55%, rgba(8,9,11,0.97) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-title {
  font-size: clamp(2.25rem, 5vw + 1rem, var(--step-4xl));
  color: var(--text);
  text-wrap: balance;
}
.hero-title .accent { color: var(--accent-gold); }
.hero-sub {
  margin-top: var(--space-3);
  font-size: var(--step-lg);
  color: var(--text-muted);
  max-width: 56ch;
}
.hero-actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.hero-meta {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--step-sm);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--accent-gold); flex-shrink: 0; }

/* ============================================
   Trust strip
   ============================================ */
.trust-strip {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: var(--step-sm);
}
.trust-item svg { width: 26px; height: 26px; color: var(--accent-gold); flex-shrink: 0; }

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent-gold); }
.service-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.12);
  color: var(--accent-gold);
  margin-bottom: var(--space-3);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--step-xl); margin-bottom: var(--space-2); }
.service-list { margin-top: var(--space-2); display: flex; flex-direction: column; gap: 0.6rem; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: var(--step-sm);
}
.service-list svg { width: 18px; height: 18px; color: var(--accent-gold); flex-shrink: 0; margin-top: 2px; }

/* ============================================
   Pricing / Pakete
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.price-card:hover { transform: translateY(-4px); }
.price-card.is-featured {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(201,162,39,0.08), var(--surface) 40%);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: var(--space-4);
  background: var(--accent-gold);
  color: #14140f;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.price-name { font-size: var(--step-xl); }
.price-tag {
  margin-top: var(--space-1);
  color: var(--accent-gold-light);
  font-family: var(--font-heading);
  font-size: var(--step-lg);
}
.price-desc { margin-top: var(--space-1); color: var(--text-faint); font-size: var(--step-sm); }
.price-features { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; flex-grow: 1; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: var(--step-sm);
}
.price-features svg { width: 18px; height: 18px; color: var(--accent-gold); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: var(--space-4); }

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0;
  min-height: 44px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-2);
  font-size: var(--step-sm);
  color: var(--text);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  text-align: left;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 8, 0.9);
  padding: var(--space-3);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-list { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.about-list li { display: flex; gap: 0.75rem; color: var(--text-muted); }
.about-list svg { width: 22px; height: 22px; color: var(--accent-gold); flex-shrink: 0; margin-top: 2px; }
.about-signature { margin-top: var(--space-4); color: var(--text-faint); font-size: var(--step-sm); }
.about-signature strong { color: var(--text); font-family: var(--font-heading); font-weight: 500; }

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  min-width: 0;
}
.contact-grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 640px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-3); }
.field label { font-size: var(--step-sm); color: var(--text-muted); }
.field label .req { color: var(--accent-red-light); margin-left: 0.15rem; }
.field input,
.field select,
.field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  min-height: 48px;
  color: var(--text);
  font-family: inherit;
  font-size: var(--step-body);
  transition: border-color var(--duration) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-gold);
  outline: none;
}
.field small { color: var(--text-faint); font-size: 0.8rem; }
.form-note {
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-faint);
}
.form-note a { color: var(--accent-gold-light); text-decoration: underline; }
.form-status {
  margin-top: var(--space-3);
  font-size: var(--step-sm);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(46, 160, 67, 0.12); color: #6fd07f; border: 1px solid rgba(46,160,67,0.35); }
.form-status.error { background: rgba(209, 36, 47, 0.12); color: #ff8087; border: 1px solid rgba(209,36,47,0.35); }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.info-row { display: flex; gap: 0.85rem; align-items: flex-start; }
.info-row svg { width: 22px; height: 22px; color: var(--accent-gold); flex-shrink: 0; margin-top: 2px; }
.info-row a:hover { color: var(--accent-gold-light); }
.info-row .info-label { font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-consent {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-3);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--step-sm);
}
.map-consent svg { width: 32px; height: 32px; color: var(--accent-gold); }
.map-consent p { max-width: 32ch; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-5);
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--step-sm); max-width: 40ch; }
.footer-col h3 { font-size: var(--step-body); color: var(--text); margin-bottom: var(--space-2); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-muted); font-size: var(--step-sm); }
.footer-col a:hover { color: var(--accent-gold-light); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}
.footer-bottom a { color: var(--text-faint); text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent-gold-light); }

/* Prevent grid items from overflowing their track (min-width:auto fix) */
.services-grid > *,
.pricing-grid > *,
.gallery-grid > *,
.about-grid > *,
.trust-grid > *,
.footer-grid > *,
.form-row > * {
  min-width: 0;
}

/* Legal pages (Impressum / Datenschutz) */
.legal-page { max-width: 760px; padding-block: var(--space-6); }
.legal-page h1 { font-size: var(--step-3xl); margin-bottom: var(--space-4); }
.legal-page h2 { font-size: var(--step-xl); margin-top: var(--space-5); margin-bottom: var(--space-2); color: var(--accent-gold-light); }
.legal-page p, .legal-page li { color: var(--text-muted); margin-bottom: var(--space-2); }
.legal-page ul { padding-left: 1.2rem; list-style: disc; }
.legal-page a { color: var(--accent-gold-light); text-decoration: underline; }
.legal-page .back-link { display: inline-block; margin-bottom: var(--space-4); color: var(--text-muted); }

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
