﻿/* ================================================
   LAYOUT: BOLD DYNAMIC
   Nordline Automobile OHG — Flensburg
   Markenfarben: Schwarz / Weiß / Rot
   ================================================ */

:root {
  --bg:           #ffffff;
  --bg-section:   #f7f7f7;
  --bg-dark:      #111111;
  --bg-dark-2:    #181818;
  --text:         #111111;
  --text-inv:     #ffffff;
  --text-muted:   #666666;
  --text-dim:     rgba(255, 255, 255, 0.5);
  --accent:       #dc2626;
  --accent-dk:    #b91c1c;
  --border:       #e3e3e3;
  --border-dark:  rgba(255, 255, 255, 0.1);
  --radius:       0px;
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* --- Container --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typografie --- */
h1, h2, h3 {
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 3.5rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  line-height: 1.7;
}

/* --- Links & Buttons --- */
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-dk); }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 1rem 2.75rem;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 3px solid var(--accent);
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-inv);
  padding: 1rem 2.75rem;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 3px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-whatsapp {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: 1rem 2.75rem;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 3px solid #25d366;
  transition: background 0.15s;
}
.btn-whatsapp:hover { background: #1aaf56; color: #fff; }

/* ================================================
   HEADER
   ================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
  /* Kein Filter: Logo hat eigenen schwarzen Hintergrund, passt zum dunklen Header */
}

nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-left: auto;
}

nav a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
}
nav a:hover { color: #fff; }

nav a.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.35rem;
  letter-spacing: 0.09em;
  border: 2px solid var(--accent);
}
nav a.btn-nav:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }

.header-contact a {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: auto;
}

/* Mobile Nav-Overlay */
nav.nav-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-top: 2px solid var(--accent);
  padding: 1.5rem;
  gap: 1.25rem;
  z-index: 200;
}
nav.nav-open a { font-size: 0.95rem; }

/* ================================================
   HERO
   ================================================ */
#hero {
  color: var(--text-inv);
  padding: 8rem 0 7rem;
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

/* Autohaus-Bild als Hintergrund mit dunklem Overlay */
#hero.hero-has-img {
  background:
    linear-gradient(
      to right,
      rgba(10, 10, 10, 0.97) 0%,
      rgba(10, 10, 10, 0.80) 50%,
      rgba(10, 10, 10, 0.45) 100%
    ),
    url('assets/autohaus-nordline-flensburg.avif') center / cover no-repeat;
}


.hero-overlay { display: none; }

#hero .container { position: relative; z-index: 3; }

#hero h1 {
  color: var(--text-inv);
  max-width: 820px;
  margin-bottom: 0;
}
#hero h1 span { color: var(--accent); }

#hero > .container > p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
  font-size: 1.1rem;
  margin: 2.25rem 0 3.25rem;
  line-height: 1.75;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ================================================
   TRUST BAR
   ================================================ */
#trust {
  background: var(--accent);
  padding: 3rem 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 2.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.trust-item:last-child { border-right: none; }

.trust-item strong {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1;
  font-family: var(--font);
}

.trust-item span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-top: 0.4rem;
}

/* ================================================
   LEISTUNGEN
   ================================================ */
#leistungen {
  padding: 7rem 0;
  background: var(--bg);
}

/* Grid-Rahmen-Trick: parent-bg = Rahmenfarbe, gap = Rahmenbreite */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--text);
  border: 3px solid var(--text);
}

.leistung-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.15s;
  position: relative;
}
.leistung-card:hover { background: var(--accent); }
.leistung-card:hover .leistung-icon,
.leistung-card:hover h3,
.leistung-card:hover p { color: #fff; }

.leistung-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1.25rem;
  transition: color 0.15s;
}

.leistung-card h3 {
  color: var(--text);
  margin-bottom: 0.7rem;
  transition: color 0.15s;
}

.leistung-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  transition: color 0.15s;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ================================================
   FAHRZEUGE (mobile.de iframe)
   ================================================ */
#fahrzeuge {
  padding: 7rem 0 0;
  background: var(--bg-dark);
}

#fahrzeuge h2 { color: var(--text-inv); }
#fahrzeuge .section-lead { color: var(--text-dim); }

.iframe-wrapper {
  margin-top: 2.5rem;
  width: 100%;
  background: #1a1a1a;
  overflow: hidden;
}

.iframe-wrapper iframe {
  display: block;
  width: 100%;
  height: 1800px;
  border: none;
  background: #fff;
}

.iframe-link-fallback {
  background: var(--bg-dark);
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

/* ================================================
   BEWERTUNGEN
   ================================================ */
#bewertungen {
  padding: 7rem 0;
  background: var(--bg-section);
}

/* ================================================
   ABLAUF
   ================================================ */
#ablauf {
  padding: 7rem 0;
  background: var(--bg-dark);
}

#ablauf h2 { color: var(--text-inv); margin-bottom: 4.5rem; }

.ablauf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--border-dark);
}

.step {
  background: var(--bg-dark-2);
  padding: 3.25rem 2.75rem;
}

.step-number {
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 0.85;
  display: block;
  margin-bottom: 1.75rem;
  letter-spacing: -0.06em;
}

.step h3 {
  color: var(--text-inv);
  margin-bottom: 0.8rem;
  letter-spacing: 0.09em;
}

.step p {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.75;
}

/* ================================================
   FAQ
   ================================================ */
#faq {
  padding: 7rem 0;
  background: var(--bg);
}

.faq-list { max-width: 740px; }

.faq-item {
  border-bottom: 2px solid var(--text);
}
.faq-item:first-child { border-top: 2px solid var(--text); }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text);
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }

.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: '\00D7'; }

.faq-item p {
  padding: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ================================================
   KONTAKT CTA
   ================================================ */
#kontakt {
  padding: 8rem 0;
  background: var(--accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#kontakt::before {
  content: 'KONTAKT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: min(20vw, 220px);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.05em;
  user-select: none;
}

#kontakt .container { position: relative; z-index: 1; }

#kontakt h2 { color: #fff; margin-bottom: 1rem; }

#kontakt > .container > p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  margin-bottom: 3.25rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.7;
}

.kontakt-options { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

#kontakt .btn-primary { background: #fff; color: var(--accent); border-color: #fff; }
#kontakt .btn-primary:hover { background: #f5f5f5; }
#kontakt .btn-secondary { border-color: rgba(255,255,255,0.45); color: #fff; }
#kontakt .btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: var(--bg-dark);
  padding: 5.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-datenschutz {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(255,255,255,0.28);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-datenschutz:hover { color: rgba(255,255,255,0.6); }

.footer-col h3 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

footer p, footer a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  line-height: 2.1;
  display: block;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
footer a:hover { color: #fff; }

/* Kontakt-Spalte: Label + Link auf einer Zeile */
.footer-contact p { display: block; white-space: nowrap; }
.footer-contact p a { display: inline; color: rgba(255,255,255,0.65); }
.footer-contact p a:hover { color: #fff; }

/* ================================================
   FLOATING CONTACT WIDGET
   ================================================ */
.floating-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
}

.fc-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #1a1a1a;
  border-left: 3px solid var(--accent);
  box-shadow: -4px 0 24px rgba(0,0,0,0.5);
}

.fc-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, color 0.15s;
}
.fc-item:hover { background: var(--accent); color: #fff; }
.fc-item:last-child { border-bottom: none; }

/* ================================================
   FOOTER LEGAL NOTE (unter Adresse)
   ================================================ */
.footer-legal-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.28) !important;
  font-size: 0.8rem !important;
  line-height: 2 !important;
}

/* ================================================
   STICKY MOBILE CTA
   ================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg-dark);
  border-top: 3px solid var(--accent);
  padding: 0.7rem 1rem;
  gap: 0.75rem;
}

.sticky-cta a {
  display: block;
  flex: 1;
  text-align: center;
  padding: 0.875rem;
  font-weight: 900;
  font-size: 0.8rem;
  color: #fff;
  background: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sticky-cta a:last-child { background: #25d366; }

/* Theme Switcher entfernt — Design fest auf Bold / Nordline-Markenfarben */

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .trust-items { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); align-items: flex-start; padding: 1rem 1.5rem; }
  .trust-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  nav { display: none; }
  nav.nav-open { display: flex; }
  .nav-toggle { display: block; }
  .header-contact { display: none; }

  #hero { padding: 5rem 0 4rem; min-height: 70vh; }

  .leistungen-grid { grid-template-columns: 1fr 1fr; }
  .ablauf-steps { grid-template-columns: 1fr; }

  .iframe-wrapper iframe { height: 1200px; }

  #fahrzeuge { padding: 5rem 0 0; }
  #leistungen, #bewertungen, #ablauf, #faq, #kontakt { padding: 5rem 0; }

  .sticky-cta { display: flex; }
  .floating-contact { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-contact p { white-space: normal; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 0.85rem 1.5rem; }
  .trust-item strong { font-size: 1.9rem; }
}
