/* =========================================================
   KOLI’S GARAGE ST. KONRAD – Landingpage Stylesheet
   Dark Theme #0d0f12 · Akzent #e63946
   ========================================================= */

:root {
  --bg: #0d0f12;
  --bg-soft: #12151a;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent: #e63946;
  --accent-dark: #c22b37;
  --text: #f2f4f7;
  --muted: #9aa3ae;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Typografie ---------- */
.tagline {
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0.4rem 0 0.9rem;
}

.section-sub {
  color: var(--muted);
  max-width: 620px;
  margin: 0;
  line-height: 1.7;
}

.accent {
  color: var(--accent);
}

section {
  padding: 90px 0;
  position: relative;
}

/* ---------- Glasmorphismus ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(230, 57, 70, 0.8);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(13, 15, 18, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(13, 15, 18, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), #7a1620);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.28s ease;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.burger {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.5rem;
  color: #fff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 20px 20px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.8rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background:
    linear-gradient(180deg, rgba(13, 15, 18, 0.86) 0%, rgba(13, 15, 18, 0.7) 40%, var(--bg) 100%),
    url("hero-werkstatt.jpg") center / cover no-repeat;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 1rem 0 1.2rem;
  max-width: 900px;
}

.hero p.lead {
  color: #c9d0d8;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 3.4rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.7rem;
  color: #fff;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 20px;
  margin-top: 3rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Service-Karten ---------- */
.card {
  padding: 28px 24px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -28px rgba(230, 57, 70, 0.65);
}

.card h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--accent);
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

/* ---------- Fahrzeug-Iframe ---------- */
.frame-wrap {
  margin-top: 2.6rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--bg-soft);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2c313a;
}

.dot.red {
  background: var(--accent);
}

.frame-wrap iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: #fff;
}

/* ---------- Über uns ---------- */
.quote {
  padding: 26px 28px;
  border-left: 4px solid var(--accent);
  font-size: 1.12rem;
  line-height: 1.8;
  color: #dde2e8;
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.person {
  overflow: hidden;
  padding: 0;
}

.person img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.person:hover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.1);
}

.person-body {
  padding: 22px 24px 26px;
}

.person-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.person-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Standort ---------- */
.media-placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.14), transparent 65%),
    var(--bg-soft);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 22px rgba(230, 57, 70, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
  }
}

.info-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}

.info-row span {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
}

.info-row strong {
  display: block;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0a0c0f;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: #6f7883;
  font-size: 0.82rem;
}

/* ---------- Scroll-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .play-btn {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav,
  .header-actions .btn-phone-text {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .frame-wrap iframe {
    height: 460px;
  }
  .header-actions .btn-appointment {
    display: none;
  }
  .hero-stats {
    gap: 1.4rem;
  }
}

/* ============ KONTAKTFORMULAR ============ */
.contact-form {
  margin-top: 1.6rem;
  text-align: left;
}
.contact-form .form-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.3rem 0 1.4rem;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.contact-form label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent, #e63946);
  background: rgba(255, 255, 255, 0.07);
}
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #e63946;
}
.contact-form .form-status {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 1.2em;
}

/* ============ WhatsApp CTA ============ */
.whatsapp-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
.btn-whatsapp {
  background: #25d366;
  color: #062813;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px -12px rgba(37, 211, 102, 0.7);
}
.btn-whatsapp:hover {
  background: #1fbe5b;
  transform: translateY(-2px);
}

/* ============ Virtuelle 360°-Tour ============ */
.tour-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--bg-soft);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.tour-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  color: var(--muted);
}
.tour-wrap iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  background: #000;
}
@media (max-width: 720px) {
  .tour-wrap iframe {
    height: 320px;
  }
}

/* ============ RECHTSSEITEN (Impressum / Datenschutz) ============ */
.legal-page {
  padding: 4.5rem 0 5rem;
}
.legal-back {
  margin-bottom: 2rem;
}
.legal-card {
  padding: 2.2rem;
  line-height: 1.8;
}
.legal-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.6rem;
}
.legal-card h2:first-child {
  margin-top: 0;
}
.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 0.95rem;
}
.legal-card p {
  margin-bottom: 0.9rem;
}
.legal-card ul {
  margin: 0 0 1rem 1.2rem;
  display: grid;
  gap: 0.35rem;
}
.legal-card strong {
  color: var(--text);
}
.legal-card a {
  color: var(--accent);
  text-decoration: none;
}
.legal-card a:hover {
  text-decoration: underline;
}
.legal-footer {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.legal-copy {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
