/* ===================================================
   DEVUS Autopartner – style.css
   Brand: Orange #E8751C · Blau #1A9FD9 · Grau #3A3C3F
   Design: Hell & Clean
   =================================================== */

/* ── Reset & Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #3A3C3F;
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Variables ───────────────────────────────────── */
:root {
  --orange:      #E8751C;   /* Logo-Orange */
  --orange-dark: #C4601A;
  --blue:        #1A9FD9;   /* Logo-Blau */
  --blue-dark:   #1180B4;
  --text:        #3A3C3F;   /* Logo-Dunkelgrau */
  --muted:       #6B6E72;
  --bg:          #fff;
  --bg-alt:      #F5F6F7;
  --border:      #E4E5E7;
  --max:         1100px;
  --radius:      6px;

  /* Hauptakzent = Orange */
  --accent:      var(--orange);
  --accent-dark: var(--orange-dark);
}

/* ── Layout ──────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ──────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 63px;
}

.nav-logo img {
  height: 63px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-menu a:hover { color: var(--text); }

.nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--orange-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  line-height: 0;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 88px;
  min-height: 440px;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Material/DSCF7045.jpg');
  background-size: cover;
  background-position: center 62%;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 32, 34, 0.72) 0%,
    rgba(30, 32, 34, 0.62) 60%,
    rgba(20, 22, 24, 0.80) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
  color: #fff;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: #aaa; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }

.btn-tel {
  background: var(--orange);
  color: #fff;
  font-size: 1.05rem;
  padding: 16px 36px;
}
.btn-tel:hover { background: var(--orange-dark); }

.btn-mail {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  font-size: 1rem;
  padding: 16px 36px;
}
.btn-mail:hover { border-color: #999; }

/* ── Sections ────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 36px;
}

/* ── Feature-Banner (Fahrzeugfoto + Text) ────────── */
.feature-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 420px;
  background: #111;
}

.feature-banner-img {
  background-image: url('Material/Freiburg_Porsche01-1500x844.jpg');
  background-size: cover;
  background-position: center 65%;
  min-height: 320px;
}

.feature-banner-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #111;
  color: #fff;
}

.feature-banner-content .section-label { color: var(--orange); }

.feature-banner-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.2;
  color: #fff;
}

.feature-banner-content p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 400px;
}

/* ── Cards Grid ──────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
}

.card-icon {
  width: 46px;
  height: 46px;
  background: #FFF0E4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

.card-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-details li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-details li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── mobile.de Trust Badge ───────────────────────── */
/* Echte mobile.de Brand-Farben:                      */
/*   Violett #3D1A6E · Orange-Quadrat #E84118         */

.hero-trust {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* Shared Badge-Basis */
.mobile-badge,
.mobile-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 40px;
  padding: 8px 18px;
  text-decoration: none;
  transition: all 0.15s;
}

/* Variante: dunkler Hero-Hintergrund */
.mobile-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
}
.mobile-badge:hover { background: rgba(255,255,255,0.2); }

/* Variante: heller Hintergrund */
.mobile-badge-light {
  background: #fff;
  border: 1.5px solid var(--border);
}
.mobile-badge-light:hover { border-color: #bbb; }

/* Logo: echte PNG-Datei */
.mobile-logo-img {
  height: 14px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.mobile-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.mobile-badge-light .mobile-divider { background: var(--border); }

.mobile-stars {
  color: #FFB800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  line-height: 1;
}

.mobile-score {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-badge .mobile-score       { color: rgba(255,255,255,0.85); }
.mobile-badge-light .mobile-score { color: var(--muted); }

/* ── Team / Ansprechpartner ──────────────────────── */
.team-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.team-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.team-photo-wrap {
  position: relative;
}

.team-photo-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
  object-position: top center;
}

.team-badge {
  position: absolute;
  bottom: -16px;
  left: 20px;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(26, 159, 217, 0.35);
}

.team-content { padding-bottom: 0; }

.team-content .section-label { margin-bottom: 10px; }

.team-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  line-height: 1.15;
}

.team-role {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.team-content p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 520px;
}

.team-contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ── Page Header ─────────────────────────────────── */
.page-header {
  background: var(--bg-alt);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Finanzierung Hero ───────────────────────────── */
.finanz-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-color: #1a1c1e;
  background-image: url('Material/DSCF7156.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 38% bottom;
  color: #fff;
}

.finanz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(20,22,24,0.55);
}

.finanz-hero .container {
  position: relative;
  z-index: 1;
}

.finanz-hero .section-label {
  color: var(--orange);
  margin-bottom: 10px;
}

.finanz-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 480px;
}

.finanz-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 420px;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .finanz-hero {
    background-position: center bottom;
    background-size: contain;
    padding-bottom: 220px;
  }
  .finanz-hero::before {
    background: linear-gradient(to bottom, rgba(20,22,24,0.92) 50%, rgba(20,22,24,0.2) 100%);
  }
}

/* ── Stats Bar ───────────────────────────────────── */
.stats-bar {
  background: #2c2e30;
  color: #fff;
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.25);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq-section {
  padding: 80px 0;
  background: #fff;
}

.faq-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--bg-alt); }

.faq-question.is-open { background: var(--bg-alt); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.faq-question.is-open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.faq-answer.is-open { display: block; }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── IHK Trust Badge ─────────────────────────────── */
.ihk-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0f7ff;
  border: 1px solid #c8dff5;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a5fa0;
  margin-top: 20px;
}

.ihk-badge svg { flex-shrink: 0; }

/* ── CTA Dark Section ────────────────────────────── */
.cta-dark {
  background: #111;
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta-dark h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-dark p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Contact Layout ──────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.contact-card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: #FFF0E4;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.contact-card address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
}

.hours-table {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  font-size: 0.875rem;
}

.hours-table dt { color: var(--muted); }
.hours-table dd { color: var(--text); font-weight: 500; }

.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ── Map ─────────────────────────────────────────── */
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Prose (Impressum / Datenschutz) ─────────────── */
.prose-wrap { padding: 64px 0 80px; }

.prose { max-width: 720px; }

.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.prose ul { padding-left: 20px; }
.prose a { color: var(--orange); text-decoration: underline; }
.prose strong { color: var(--text); font-weight: 600; }

/* ── Footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo { height: 48px; width: auto; margin-bottom: 10px; }

.footer-address {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: normal;
}

.footer-address a { color: var(--muted); }
.footer-address a:hover { color: var(--text); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.83rem;
  color: var(--muted);
  transition: color 0.15s;
}

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

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 860px) {
  .feature-banner {
    grid-template-columns: 1fr;
  }

  .feature-banner-img { min-height: 260px; }

  .feature-banner-content {
    padding: 48px 32px;
  }

  .team-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-photo-wrap {
    max-width: 320px;
    margin: 0 auto;
  }

  .team-photo-wrap img { aspect-ratio: 4/5; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: none; }

  .nav-menu a {
    display: block;
    padding: 15px 24px;
    font-size: 1rem;
    color: var(--text);
  }

  .nav-cta {
    margin: 10px 16px !important;
    text-align: center !important;
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
  }

  .hero { padding: 72px 0 60px; }
  .section { padding: 56px 0; }
  .team-section { padding: 56px 0; }

  .btn-tel, .btn-mail { width: 100%; justify-content: center; }

  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { gap: 16px; }

  .map-wrap { height: 300px; }

  .team-contact-line { flex-direction: column; align-items: flex-start; }
}

/* ── Cookie / Datenschutz-Banner ─────────────────── */
#privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #2c2e30;
  color: #e8e8e8;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.18);
}
#privacy-banner a {
  color: var(--orange);
  text-decoration: underline;
  white-space: nowrap;
}
#privacy-banner-ok {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
#privacy-banner-ok:hover { background: var(--orange-dark); }
