/* ─── Outfit – lokal gehostet (DSGVO-konform, keine Google-Verbindung) ─── */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/Outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/Outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

:root {
  --bg-color: #050507;
  --bg-surface: #0f0f14;
  --bg-glass: rgba(15, 15, 20, 0.7);
  --text-main: #f5f5f7;
  --text-muted: #a1a1aa;

  /* Autoproff Markenfarbe: Logo-Gelb (aus autoproff-logo-invert.png gesampelt) */
  --primary-glow: #F5F200;
  --secondary-glow: #F5F200;

  /* Ehemals Gold→Blau-Gradient — jetzt einheitlich solides Logo-Gelb (Buttons + Text-Akzente) */
  --gradient-neon: #F5F200;
  --logo-yellow: #F5F200;
  --gradient-surface: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);

  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* verhindert horizontales Scrollen auf Root-Ebene (mobil) */
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  position: relative; /* iOS Safari Fix: ohne position:relative ignoriert Safari overflow-x:hidden */
}

/* Background Effects */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.35;
}
.blob-1 {
  width: 400px; height: 400px;
  background: var(--primary-glow);
  top: -10%; left: -5%;
}
.blob-2 {
  width: 500px; height: 500px;
  background: #23231c;
  right: -10%; top: 30%;
  opacity: 0.5;
}

/* Typography */
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 40px; text-align: center; }
p  { color: var(--text-muted); line-height: 1.6; font-size: 1.125rem; }

.highlight-text {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 16px 32px; font-family: inherit; font-size: 1.125rem;
  font-weight: 600; text-decoration: none; border-radius: 50px;
  cursor: pointer; transition: all 0.3s ease; border: none;
}
.btn-primary {
  background: var(--logo-yellow);
  color: #050507;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(245, 242, 0, 0.30);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(245, 242, 0, 0.50);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--bg-surface); color: var(--text-main);
  border: var(--glass-border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* Glass Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 24px; padding: 40px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Header */
header {
  position: fixed; top: 0; width: 100%; padding: 20px 0;
  z-index: 100; backdrop-filter: blur(10px);
  border-bottom: var(--glass-border);
  background: rgba(5,5,7,0.8);
}
header .container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--primary-glow); }
.logo-sub {
  font-size: 0.7rem; font-weight: 400; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
  display: block; margin-top: 2px;
}

/* Stats Bar */
.stats-bar {
  background: rgba(17,17,20,0.6);
  border-top: var(--glass-border); border-bottom: var(--glass-border);
  padding: 28px 0;
}
.stats-bar .container {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800;
  background: var(--gradient-neon); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; display: block; line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* Hero */
.hero { padding-top: 180px; min-height: 100vh; display: flex; align-items: center; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content p { font-size: 1.25rem; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 20px; }
.hero-image {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8); border: var(--glass-border);
}
.hero-image img { width: 100%; height: auto; display: block; transform: scale(1.02); }

/* CEO Quote */
.ceo-quote { padding: 80px 0; position: relative; }
.quote-wrapper {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 60px; align-items: center;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border); border-radius: 32px;
  padding: 50px; box-shadow: var(--glass-shadow);
  position: relative; overflow: hidden;
}
.quote-wrapper::before {
  content: ''; position: absolute;
  width: 300px; height: 300px;
  background: var(--primary-glow); filter: blur(120px);
  top: -50px; right: -50px; opacity: 0.1; z-index: 0; pointer-events: none;
}
.quote-image {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 15px 45px rgba(0,0,0,0.5);
  border: var(--glass-border); z-index: 1; aspect-ratio: 1/1;
}
.quote-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.quote-wrapper:hover .quote-image img { transform: scale(1.04); }
.quote-content { position: relative; z-index: 1; }
.quote-icon { font-size: 3rem; color: var(--primary-glow); opacity: 0.3; margin-bottom: 20px; line-height: 1; }
.quote-content blockquote {
  font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 400; line-height: 1.65;
  color: var(--text-main); margin: 0 0 25px 0; font-style: italic;
}
.quote-content cite { display: flex; flex-direction: column; gap: 4px; font-style: normal; }
.quote-content cite strong {
  font-size: 1.2rem; font-weight: 800;
  background: var(--gradient-neon); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.quote-content cite span { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Social Proof */
.social-proof {
  background: rgba(17,17,20,0.5);
  border-top: var(--glass-border); border-bottom: var(--glass-border);
  padding: 60px 0;
}
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; margin-top: 40px;
}
.testimonial-card { padding: 30px; font-style: italic; color: #e2e8f0; position: relative; }
.testimonial-card::before {
  content: '\201E'; font-size: 4rem; position: absolute;
  top: 10px; left: 10px; color: var(--primary-glow); opacity: 0.2; font-family: serif;
}
.author { margin-top: 20px; font-style: normal; font-weight: 800; color: var(--primary-glow); font-size: 0.9rem; }

/* Split Sections */
.split-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; margin: 80px 0;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.feature-img-wrapper {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6); border: var(--glass-border);
}
.feature-img-wrapper img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.feature-img-wrapper:hover img { transform: scale(1.05); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { color: var(--text-muted); line-height: 1; margin-bottom: 14px; font-size: 1.05rem; display: flex; align-items: flex-start; gap: 10px; }
.check-list li i { color: var(--primary-glow); flex-shrink: 0; margin-top: 3px; }
.check-list.blue li i { color: var(--secondary-glow); }

/* Features Grid */
.features-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; margin-top: 60px;
}
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-icon { flex-shrink: 0; color: var(--primary-glow); font-size: 1.5rem; }
.feature-text h4 { margin: 0 0 10px 0; font-size: 1.2rem; color: #fff; }
.feature-text p { font-size: 1rem; margin: 0; }

/* Ambassador Badge */
.ambassador-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(245, 242, 0, 0.12);
  border: 1px solid rgba(245, 242, 0, 0.38);
  border-radius: 50px; padding: 8px 20px;
  font-size: 0.85rem; font-weight: 600; color: var(--primary-glow);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px;
}

/* Problem Box */
.problem-box {
  background: rgba(245, 242, 0, 0.06);
  border: 1px solid rgba(245, 242, 0, 0.2);
  border-left: 4px solid var(--primary-glow);
  border-radius: 12px; padding: 24px 28px; margin: 32px 0;
}
.problem-box p { color: var(--text-main); margin: 0; font-size: 1.05rem; }

/* FAQ */
.faq-grid { display: grid; gap: 20px; max-width: 800px; margin: 40px auto 0; }
.faq-item { background: var(--bg-surface); border: var(--glass-border); border-radius: 12px; padding: 24px; }
.faq-item h4 { margin: 0 0 10px 0; color: #fff; font-size: 1.15rem; }
.faq-item p { margin: 0; font-size: 0.95rem; }

/* Contact */
.contact-section { padding: 120px 0; }
.contact-card { max-width: 800px; margin: 0 auto; text-align: center; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.form-control {
  width: 100%; padding: 16px;
  background: rgba(0,0,0,0.5); border: var(--glass-border);
  border-radius: 12px; color: #fff; font-family: inherit;
  font-size: 1rem; box-sizing: border-box; transition: border-color 0.3s ease;
}
.form-control:focus { outline: none; border-color: var(--primary-glow); }

/* Footer */
footer {
  text-align: center; padding: 40px 0;
  border-top: var(--glass-border); color: var(--text-muted); font-size: 0.875rem;
}
footer a { color: var(--text-muted); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--primary-glow); }

/* Autoproff Logo Partner Bar */
.partner-note {
  text-align: center; padding: 24px 0 0;
  font-size: 0.82rem; color: var(--text-muted); letter-spacing: 1px;
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Logo-Bild im Header ─────────────────────────────────────────── */
.logo img { height: 52px; width: auto; display: block; }

/* ─── Mission / Über Bernd ────────────────────────────────────────── */
.mission-quote {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.5;
  color: var(--text-main); font-style: italic; margin: 0 0 8px;
}
.mission-quote cite {
  display: block; font-style: normal; font-weight: 800; color: var(--primary-glow);
  font-size: 1rem; margin-top: 18px; letter-spacing: 1px;
}
.eyebrow {
  color: var(--primary-glow); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 0.85rem; margin: 0 0 14px;
}
.mission-list { list-style: none; padding: 0; margin: 28px 0 0; }
.mission-list li {
  color: var(--text-muted); margin-bottom: 12px; display: flex; gap: 10px;
  align-items: flex-start; font-size: 1.05rem; line-height: 1.5;
}
.mission-list li i { color: var(--primary-glow); margin-top: 5px; flex-shrink: 0; }

/* ─── Nettoerlös-Statement ────────────────────────────────────────── */
.net-return { text-align: center; max-width: 900px; margin: 0 auto; }
.net-tagline {
  display: inline-block; margin-top: 28px; font-weight: 800; font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--primary-glow);
}

/* ─── Säulen-/Segment-Raster ─────────────────────────────────────── */
.pillar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 48px;
}
.pillar-card h4 { color: #fff; font-size: 1.3rem; margin: 0 0 12px; }
.pillar-card .pill-tag {
  display: inline-block; font-weight: 800; letter-spacing: 0.5px;
  color: var(--primary-glow); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 8px;
}
.pillar-card p { font-size: 0.98rem; margin: 0; }

/* ─── Marktposition-Karten (grafisch angereichert) ───────────────── */
.market-grid { position: relative; }
.market-card .check-list li i { width: 18px; text-align: center; }
.market-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(245, 242, 0, 0.1); border: 1px solid rgba(245, 242, 0, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary-glow); margin-bottom: 18px;
}
.market-connector {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--logo-yellow); color: #050507;
  font-size: 1.3rem; z-index: 2; position: relative;
  margin: -14px auto;
  box-shadow: 0 0 0 8px var(--bg-color), 0 0 30px rgba(245, 242, 0, 0.5);
}
@media (min-width: 993px) {
  .market-connector {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
}
.market-tagline {
  position: relative; display: table; margin: 56px auto 0;
  padding: 4px 6px; font-weight: 800; font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem); color: #050507;
}
.market-tagline::before {
  content: ''; position: absolute; inset: -4px -16px;
  background: var(--primary-glow);
  transform: skew(-6deg) rotate(-1deg);
  z-index: -1; border-radius: 6px 20px 6px 20px;
}

/* ─── Used Car Intelligence ──────────────────────────────────────── */
.tag-list {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 920px; margin: 28px auto 0;
}
.tag-list span {
  background: rgba(245, 242, 0, 0.07); border: 1px solid rgba(245, 242, 0, 0.25);
  color: var(--text-main); padding: 8px 16px; border-radius: 50px; font-size: 0.9rem;
}
.q-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; max-width: 900px; margin: 40px auto 0;
}
.q-row .q-item {
  border-left: 3px solid var(--primary-glow); padding: 6px 0 6px 18px;
  color: var(--text-main); font-weight: 600; font-size: 1.02rem;
}

/* Responsive – Tablet */
@media(max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .split-section { grid-template-columns: 1fr; }
  .split-reverse { direction: ltr; }
  .quote-wrapper { grid-template-columns: 1fr; gap: 40px; padding: 40px 30px; }
  .quote-image { max-width: 320px; margin: 0 auto; }
  .stats-bar .container { flex-direction: column; gap: 30px; }
}

/* Responsive – Mobile (verhindert horizontalen Scroll) */
@media(max-width: 600px) {
  /* Blobs auf Mobile kleiner und innerhalb des Viewports */
  .blob-1 { width: 220px; height: 220px; left: -60px; }
  .blob-2 { width: 240px; height: 240px; right: -60px; }

  /* Alle inline-flex/inline-block Elemente dürfen nicht überlaufen */
  .ambassador-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Header: Button schrumpft und Text bleibt zentriert */
  header .container { gap: 10px; }
  header .btn {
    font-size: 0.8rem;
    padding: 10px 14px;
    flex-shrink: 1;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .logo-sub { display: none; }

  /* Hero-Buttons untereinander statt nebeneinander */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-buttons .btn { width: 100%; box-sizing: border-box; }

  /* Kontakt-Karte kompakter */
  .glass-card.contact-card { padding: 40px 24px; }

  /* Sicherheitsnetz: kein Element darf breiter als der Viewport sein */
  * { max-width: 100%; box-sizing: border-box; }
  img { width: 100%; height: auto; }
}
