/* =============================================
   NP-TRUCKS — Main Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
  --primary:      #0f172a;
  --primary-dark: #020617;
  --accent:       #16a34a;
  --accent-hover: #15803d;
  --bg:           #f8fafc;
  --bg-alt:       #ffffff;
  --text:         #0f172a;
  --text-muted:   #475569;
  --border:       #e2e8f0;
  --nav-h:        96px;
  --radius:       0;
  --shadow:       0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --transition:   0.2s ease;
}

/* --- Self-hosted Inter font --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-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;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  line-height: 1;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px rgba(22, 163, 74, 0.3);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.navbar .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 88px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
}

/* --- Hero (Home) --- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--primary);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}
.hero-video ~ .hero-bg {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-headline {
  color: #fff;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-actions .btn {
  gap: 10px;
}
.hero-actions .btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  background: var(--primary);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/daf-blue-lowloader.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p {
  color: rgba(255,255,255,0.75);
  margin-top: 0.6rem;
  font-size: 1.05rem;
}

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

.section-header { margin-bottom: 48px; }
.section-header.centered {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.section-header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* --- Cards Grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-bottom: 0.75rem; }
.card p  { font-size: 0.95rem; }
.card .btn { margin-top: 1.5rem; }

/* --- Card Backgrounds for Services --- */
.card-ankauf {
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('../assets/images/mercedes-actros-1848-blue.webp');
  background-size: cover;
  background-position: center;
}
.card-verkauf {
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('../assets/images/mercedes-atego-crane-yard.webp');
  background-size: cover;
  background-position: center;
}
.card-geprueft {
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('../assets/images/mercedes-actros-military.webp');
  background-size: cover;
  background-position: center;
}
.card-beratung {
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('../assets/images/volvo-grille-orange.webp');
  background-size: cover;
  background-position: center;
}
.card-service {
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('../assets/images/sprinter-flatbed-blue.webp');
  background-size: cover;
  background-position: center;
}

.card-ankauf h3, 
.card-verkauf h3,
.card-geprueft h3,
.card-beratung h3,
.card-service h3 {
  color: #ffffff;
}
.card-ankauf p, 
.card-verkauf p,
.card-geprueft p,
.card-beratung p,
.card-service p {
  color: rgba(255, 255, 255, 0.85);
}
.card-ankauf .card-icon,
.card-verkauf .card-icon,
.card-geprueft .card-icon,
.card-beratung .card-icon,
.card-service .card-icon {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.card-ankauf,
.card-verkauf,
.card-geprueft,
.card-beratung,
.card-service {
  transition: background-size 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform var(--transition), box-shadow var(--transition);
  background-size: 105%;
}

.card-ankauf:hover, 
.card-verkauf:hover, 
.card-geprueft:hover, 
.card-beratung:hover, 
.card-service:hover {
  background-size: 112%;
}

/* --- Split layout (image + text) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.split-text h2 { margin-bottom: 1rem; }
.split-text p  { margin-bottom: 1rem; }
.split-text .btn { margin-top: 0.5rem; }

/* --- Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1.25rem 0;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.feature-list li::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  background: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Service Categories --- */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 1.5rem;
}
.category-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary);
  text-align: center;
}

/* --- Contact Strip --- */
.contact-strip {
  background: var(--primary);
  padding: 52px 0;
}
.contact-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  transition: color var(--transition);
}
a.contact-value:hover {
  color: var(--accent);
}

/* --- Contact Info Block --- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 2rem;
}
.contact-info-block h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.contact-info-block p,
.contact-info-block address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}
.contact-info-block a { color: var(--accent); }

/* --- Form --- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hidden { display: none; }
.form-submit { margin-top: 8px; }

/* --- Impressum --- */
.impressum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.impressum-block { margin-bottom: 2rem; }
.impressum-block h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.impressum-block p,
.impressum-block address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
}
.impressum-block a { color: var(--accent); }

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  padding: 36px 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.footer-design {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-design a,
.footer-design span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2d5a1b;
  color: rgba(255,255,255,0.9);
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.footer-design span:hover { background: #3a7322; }
.footer-design img {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 580px;
  width: calc(100% - 32px);
  background: #ffffff;
  color: var(--text);
  padding: 24px 24px 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 10px rgba(0,0,0,0.07);
}
#cookie-banner p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text);
}
#cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 4px;
}
#cookie-accept,
#cookie-decline {
  flex: 1 1 0;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border-radius: 6px;
  transition: background var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
#cookie-accept:hover,
#cookie-decline:hover {
  background: var(--accent-hover);
}
@media (max-width: 400px) {
  #cookie-banner {
    padding: 16px 16px 14px;
    gap: 8px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
  #cookie-banner p {
    font-size: 0.8rem;
  }
  #cookie-accept,
  #cookie-decline {
    padding: 9px 12px;
    font-size: 0.8rem;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0 24px 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }

  .section { padding: 56px 0; }

  .hero-content { max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-img img { height: 240px; }

  .cards { grid-template-columns: 1fr; }

  .form-wrap { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

  .impressum-grid { grid-template-columns: 1fr; gap: 0; }

  .contact-strip .container { flex-direction: column; align-items: flex-start; gap: 20px; }

  .footer .container { flex-direction: column; align-items: center; text-align: center; }
}
