/* ==========================================================================
   Bacher Transportservice e.K. – Static Site Stylesheet
   ========================================================================== */

@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Michroma-Regular.ttf') format('truetype');
}

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #171717;
  --color-bg-footer: #161616;
  --color-bg-footer-dark: #111111;
  --color-header: #1c1c1c;
  --color-yellow: #ffff08;
  --color-text: #bababa;
  --color-text-soft: rgba(255, 255, 255, 0.6);
  --color-heading: #ffffff;
  --color-border: rgba(255, 255, 8, 0.35);
  --font-heading: 'Michroma', Helvetica, Arial, Lucida, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-button: 'Michroma', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-yellow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 72px 0;
}

.section--alt { background: var(--color-bg-alt); }
.section--alt2 { background: #292929; }
.section--black { background: #000; }

.section--light {
  background: #ffffff;
  color: #444;
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 {
  color: #000;
}

.section--light .feature-list strong {
  color: #000;
}

.eyebrow {
  font-family: var(--font-heading);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-yellow);
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 16px;
  display: inline-block;
}

.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: #000;
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--color-yellow);
  color: #000;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 8, 0.18);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--yellow {
  background: var(--color-yellow);
  color: #000;
}

.btn--yellow:hover {
  background: #000;
  color: var(--color-yellow);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-yellow);
  color: var(--color-yellow);
}

.btn--outline:hover {
  background: var(--color-yellow);
  color: #000;
}

/* ---------- Header / Navigation ---------- */

#site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-header);
  border-bottom: 3px solid var(--color-yellow);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.logo {
  background: #fff;
  width: 68px;
  height: 68px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

nav.main-nav a:hover,
nav.main-nav a.is-active {
  color: var(--color-yellow);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover span {
  background: var(--color-yellow);
}

#site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  min-height: 560px;
  background: #0a0a0a;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px 60px;
  overflow: hidden;
}

.hero-media__bg {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

.hero-media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-media .hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-content h1 {
  text-transform: uppercase;
}

.hero-sidebar {
  background: var(--color-yellow);
  color: #000;
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-sidebar h3 {
  font-family: var(--font-heading);
  color: #000;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.hero-sidebar p, .hero-sidebar a {
  color: #000;
  margin: 0;
  font-weight: 600;
}

.hero-sidebar--cards {
  gap: 4px;
  overflow-y: auto;
}

.sidebar-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.sidebar-card:last-of-type {
  border-bottom: none;
}

.sidebar-card:hover {
  background-color: rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.sidebar-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sidebar-card:hover .sidebar-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.sidebar-card__icon img {
  height: 22px;
  width: 22px;
  filter: brightness(0) invert(1);
}

.sidebar-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-yellow);
  fill: none;
  stroke-width: 1.8;
}

.sidebar-card h3 {
  margin-bottom: 3px;
}

.sidebar-card p {
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.4;
}

.hero-sidebar .btn {
  margin-top: 22px;
  align-self: flex-start;
  color: #fff;
}

.hero-sidebar .btn:hover {
  color: #000;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 90px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #111 0%, var(--color-bg) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero .eyebrow { margin-bottom: 8px; }

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-text);
}

.photo-hero {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  padding: 130px 0 100px;
}

.photo-hero__bg {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

.photo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1;
}

.photo-hero .container {
  position: relative;
  z-index: 2;
}

.photo-hero p {
  color: #e2e2e2;
}

/* ---------- Services icon row ---------- */

.service-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.service-item {
  flex: 0 1 150px;
  text-align: center;
  padding: 20px 10px;
  border-radius: 6px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.service-item:hover {
  background-color: rgba(255, 255, 8, 0.06);
  transform: translateY(-4px);
}

.service-item img {
  height: 56px;
  margin: 0 auto 16px;
  transition: transform 0.3s ease;
}

.service-item:hover img {
  transform: scale(1.12);
}

.service-item h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Stats counters ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--color-yellow);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

/* ---------- Two-column content blocks ---------- */

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: start;
}

.content-block h2 { margin-bottom: 18px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 8, 0.3);
}

.card img {
  height: 48px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.95rem; }

/* ---------- Feature list (Warum Bacher / Karriere Vorteile) ---------- */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.feature-list li {
  padding-left: 28px;
  position: relative;
}

.feature-list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--color-yellow);
  font-weight: 700;
  transition: transform 0.25s ease;
}

.feature-list li:hover::before {
  transform: translateX(6px);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .hero-media::before {
    animation: none;
  }

  .btn:hover,
  .card:hover,
  .card:hover img,
  .service-item:hover,
  .service-item:hover img,
  .sidebar-card:hover,
  .sidebar-card:hover .sidebar-card__icon,
  .logo:hover {
    transform: none;
  }
}

.feature-list strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: #000;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 { margin-bottom: 10px; }
.cta-band .phone-link {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  color: var(--color-yellow);
}

.cta-band--photo {
  position: relative;
  overflow: hidden;
}

.cta-band__bg {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

.cta-band--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 1;
}

.cta-band--photo .container {
  position: relative;
  z-index: 2;
}

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
}

form.contact-form label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 6px;
}

form.contact-form .field {
  margin-bottom: 22px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-yellow);
}

form.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

form.contact-form .captcha-question {
  color: var(--color-yellow);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

form.contact-form .captcha-error {
  display: none;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin: -14px 0 18px;
}

form.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info h3 {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-yellow);
  margin-bottom: 6px;
}

.contact-info .info-block {
  margin-bottom: 28px;
}

.contact-info p { margin: 0; color: #fff; }

.map-embed {
  position: relative;
  margin-top: 28px;
  min-height: 260px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ---------- Consent gate for embeds ---------- */

.consent-gate {
  position: relative;
  min-height: 320px;
  background: #111 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="4" height="4" fill="%23161616"/></svg>');
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.consent-gate p {
  max-width: 420px;
  color: #fff;
  margin-bottom: 18px;
}

.consent-gate[data-loaded="true"] {
  padding: 0;
  background: none;
}

.consent-gate iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ---------- Footer ---------- */

#site-footer {
  background: var(--color-bg-footer);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}

.footer-grid h2 { margin-bottom: 24px; }

.footer-address h3 {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-yellow);
  margin: 24px 0 6px;
}

.footer-address h3:first-child { margin-top: 0; }

.footer-address p { color: #fff; margin: 0; }

.footer-contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  text-align: center;
  padding-bottom: 56px;
}

.footer-contact-bar h2 {
  width: 100%;
  margin-bottom: 8px;
}

.footer-contact-bar .block h3 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--color-yellow);
  margin-bottom: 6px;
}

.footer-contact-bar .block p {
  color: #fff;
  margin: 0;
}

.footer-bottom {
  background: var(--color-bg-footer-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--color-text-soft);
  font-size: 0.85rem;
}

.footer-nav a:hover { color: var(--color-yellow); }

.copyright {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* ---------- Cookie banner ---------- */

#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #171717;
  border-top: 2px solid var(--color-yellow);
  padding: 22px 32px;
  display: none;
}

#cookie-banner.is-visible { display: block; }

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

#cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: #ddd;
  max-width: 640px;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Legal pages ---------- */

.legal-content h2 { margin-top: 44px; }
.legal-content h3 { margin-top: 28px; color: var(--color-yellow); font-family: var(--font-body); font-size: 1.05rem; }
.legal-content p, .legal-content li { color: var(--color-text); }
.legal-content ul { padding-left: 20px; }
.legal-content a { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header);
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.4s ease;
  }

  #site-header.nav-open nav.main-nav {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    padding: 22px 32px 30px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.35);
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 18px;
  }

  nav.main-nav ul li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #site-header.nav-open nav.main-nav ul li {
    opacity: 1;
    transform: translateY(0);
  }

  #site-header.nav-open nav.main-nav ul li:nth-child(1) { transition-delay: 0.08s; }
  #site-header.nav-open nav.main-nav ul li:nth-child(2) { transition-delay: 0.14s; }
  #site-header.nav-open nav.main-nav ul li:nth-child(3) { transition-delay: 0.2s; }
  #site-header.nav-open nav.main-nav ul li:nth-child(4) { transition-delay: 0.26s; }
  #site-header.nav-open nav.main-nav ul li:nth-child(5) { transition-delay: 0.32s; }

  body:has(#site-header.nav-open)::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 400;
    animation: nav-backdrop-in 0.3s ease forwards;
  }

  @keyframes nav-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .stats-row { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 52px 0; }
  .container { padding: 0 20px; }
  .nav-wrap { padding: 0 20px; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  nav.main-nav, nav.main-nav ul li, .nav-toggle span {
    transition: none !important;
  }
  body:has(#site-header.nav-open)::after {
    animation: none;
  }
}
