/* ============================================
   AUTOHAUS WAGNER – Complete Stylesheet
   ============================================ */

:root {
  /** Base colors */
  --clr-dark-a0: #000000;
  --clr-light-a0: #d8cece;

  /** Theme primary colors */
  --clr-primary-a0: #133a7c;
  --clr-primary-a10: #364d8a;
  --clr-primary-a20: #516198;
  --clr-primary-a30: #6a76a7;
  --clr-primary-a40: #828bb5;
  --clr-primary-a50: #9ba1c4;
  --clr-primary-a60: #b3b8d2;
  --clr-primary-a70: #cccfe1;
  --clr-primary-a80: #e5e7f0;
  --clr-primary-a90: #ffffff;

  /** Theme surface colors */
  --clr-surface-a0: #323232;
  --clr-surface-a10: #464646;
  --clr-surface-a20: #5a5a5a;
  --clr-surface-a30: #707070;
  --clr-surface-a40: #868686;
  --clr-surface-a50: #9d9d9d;
  --clr-surface-a60: #b5b5b5;
  --clr-surface-a70: #cdcdcd;

  /** Theme tonal surface colors */
  --clr-surface-tonal-a0: #323339;
  --clr-surface-tonal-a10: #46474c;
  --clr-surface-tonal-a20: #5a5b60;
  --clr-surface-tonal-a30: #707175;
  --clr-surface-tonal-a40: #86878b;
  --clr-surface-tonal-a50: #9d9ea1;
  --clr-surface-tonal-a60: #b5b5b8;
  --clr-surface-tonal-a70: #cdcdcf;

  /** Success colors */
  --clr-success-a0: #22946e;
  --clr-success-a10: #47d5a6;
  --clr-success-a20: #9ae8ce;

  /** Warning colors */
  --clr-warning-a0: #a87a2a;
  --clr-warning-a10: #d7ac61;
  --clr-warning-a20: #ecd7b2;

  /** Danger colors */
  --clr-danger-a0: #9c2121;
  --clr-danger-a10: #d94a4a;
  --clr-danger-a20: #eb9e9e;

  /** Info colors */
  --clr-info-a0: #21498a;
  --clr-info-a10: #4077d1;
  --clr-info-a20: #92b2e5;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--clr-surface-tonal-a10);
  background-color: var(--clr-light-a0);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-primary-a0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  margin-bottom: 30px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-inner {
  width: 0%;
  height: 100%;
  background: var(--clr-light-a0);
  border-radius: 3px;
  animation: loading 1.8s ease-in-out forwards;
}

@keyframes loading {
  0% {
    width: 0;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(19, 58, 124, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.navbar.scrolled .nav-logo-img {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--clr-light-a0);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--clr-light-a0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--clr-light-a0);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition:
    opacity 1.2s ease,
    transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(19, 58, 124, 0.85) 0%,
    rgba(19, 58, 124, 0.5) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--clr-light-a0);
  max-width: 800px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-logo {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.hero-logo img {
  max-width: 600px;
  width: 90%;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-title span {
  display: block;
  background: linear-gradient(
    135deg,
    var(--clr-primary-a60),
    var(--clr-primary-a80)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--clr-light-a0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  animation: float 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-light-a0), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes scrollLine {
  0% {
    opacity: 1;
    height: 40px;
  }
  50% {
    opacity: 0.3;
    height: 20px;
  }
  100% {
    opacity: 1;
    height: 40px;
  }
}

/* Hero slideshow controls */
.hero-controls {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--clr-light-a0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  width: 30px;
  background: var(--clr-light-a0);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--clr-primary-a0);
  color: var(--clr-light-a0);
  border-color: var(--clr-primary-a0);
}

.btn-primary:hover {
  background: var(--clr-primary-a10);
  border-color: var(--clr-primary-a10);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(19, 58, 124, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--clr-light-a0);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--clr-light-a0);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--clr-light-a0);
  border-color: var(--clr-light-a0);
}

.btn-outline-light:hover {
  background: var(--clr-light-a0);
  color: var(--clr-primary-a0);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--clr-primary-a0);
  padding: 50px 0;
  position: relative;
  z-index: 3;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  color: var(--clr-light-a0);
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number::after {
  content: "+";
  font-size: 1.5rem;
  opacity: 0.7;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 400;
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--clr-primary-a0);
  background: var(--clr-primary-a80);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-surface-tonal-a0);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--clr-primary-a0);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--clr-surface-a30);
  line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--clr-light-a0);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.about-img-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-main:hover img {
  transform: scale(1.05);
}

.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid var(--clr-light-a0);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--clr-primary-a0);
  color: var(--clr-light-a0);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(19, 58, 124, 0.3);
  animation: badgePulse 3s ease-in-out infinite;
}

.badge-number {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.about-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--clr-surface-tonal-a0);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--clr-surface-a30);
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0 35px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-item i {
  font-size: 1.4rem;
  color: var(--clr-primary-a0);
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-surface-tonal-a0);
  margin-bottom: 2px;
}

.feature-item span {
  font-size: 0.82rem;
  color: var(--clr-surface-a40);
}

/* ============================================
   MARKEN SECTION
   ============================================ */
.marken {
  background: var(--clr-primary-a80);
}

.gebrauchtwagen {
  background: var(--clr-light-a0);
}

.marken-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.marke-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.marke-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.marke-card-bg--logo {
  background-size: 45% auto;
  background-repeat: no-repeat;
  background-position: center 38%;
  background-color: #f0f2f5;
}

.marke-card:hover .marke-card-bg {
  transform: scale(1.1);
}

.marke-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(19, 58, 124, 0.9) 0%,
    rgba(19, 58, 124, 0.3) 100%
  );
  transition: var(--transition);
}

.marke-card-overlay--light {
  background: linear-gradient(
    to top,
    rgba(10, 30, 65, 0.95) 0%,
    rgba(19, 58, 124, 0.4) 50%,
    rgba(19, 58, 124, 0.15) 100%
  );
}

.marke-card:hover .marke-card-overlay {
  background: linear-gradient(
    to top,
    rgba(19, 58, 124, 0.95) 0%,
    rgba(19, 58, 124, 0.5) 100%
  );
}

.marke-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  color: var(--clr-light-a0);
  z-index: 1;
  transform: translateY(20px);
  transition: var(--transition);
}

.marke-card:hover .marke-card-content {
  transform: translateY(0);
}

.marke-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.marke-logo {
  margin-bottom: 20px;
}

.marke-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.4s ease;
}

.marke-card:hover .marke-logo img {
  transform: scale(1.1);
}

.marke-card-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 12px;
}

.marke-card-content p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 20px;
}

.marke-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.marke-card:hover .marke-link {
  opacity: 1;
  transform: translateX(0);
}

.marke-link i {
  transition: transform 0.3s ease;
}

.marke-card:hover .marke-link i {
  transform: translateX(5px);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: #f5f7fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--clr-light-a0);
  border: 1px solid var(--clr-primary-a80);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--clr-primary-a0),
    var(--clr-primary-a40)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(19, 58, 124, 0.12);
  border-color: transparent;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--clr-primary-a80);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--clr-primary-a0);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--clr-primary-a0);
  color: var(--clr-light-a0);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clr-surface-tonal-a0);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--clr-surface-a30);
  line-height: 1.7;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.galerie {
  background: var(--clr-light-a0);
}

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--clr-primary-a60);
  background: transparent;
  color: var(--clr-primary-a0);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--clr-primary-a0);
  border-color: var(--clr-primary-a0);
  color: var(--clr-light-a0);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 58, 124, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--clr-light-a0);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay i {
  font-size: 1.5rem;
}

.gallery-item-overlay span {
  font-size: 0.85rem;
  font-weight: 500;
}

.gallery-item.hidden-item {
  display: none;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--clr-light-a0);
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}
.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
  background: var(--clr-primary-a80);
}

/* ===== ORG TREE / FAMILY TREE ===== */
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.tree-root {
  display: flex;
  justify-content: center;
}

.tree-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 10px;
}

/* Avatars - round profile pictures */
.tree-avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.tree-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.tree-avatar--lg {
  width: 150px;
  height: 150px;
  border: 4px solid var(--clr-primary-a0);
  box-shadow:
    0 10px 35px rgba(19, 58, 124, 0.25),
    0 0 0 8px rgba(19, 58, 124, 0.08);
}

.tree-avatar--md {
  width: 110px;
  height: 110px;
  border: 3px solid var(--clr-primary-a0);
  box-shadow: 0 6px 25px rgba(19, 58, 124, 0.18);
}

.tree-avatar--sm {
  width: 88px;
  height: 88px;
  border: 3px solid rgba(19, 58, 124, 0.5);
  box-shadow: 0 4px 18px rgba(19, 58, 124, 0.12);
}

.tree-node:hover .tree-avatar {
  transform: scale(1.1);
  box-shadow: 0 14px 40px rgba(19, 58, 124, 0.3);
}

/* Node text */
.tree-node h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-surface-tonal-a0);
  margin-top: 14px;
  margin-bottom: 3px;
  white-space: nowrap;
}

.tree-role {
  font-size: 0.8rem;
  color: var(--clr-primary-a0);
  font-weight: 500;
}

.tree-role--accent {
  background: var(--clr-primary-a0);
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Contact icons on hover */
.tree-contact {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.tree-node:hover .tree-contact {
  opacity: 1;
  transform: translateY(0);
}

.tree-contact a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-primary-a80);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary-a0);
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.tree-contact a:hover {
  background: var(--clr-primary-a0);
  color: #fff;
}

/* Vertical stem connector between tiers */
.tree-stem {
  width: 2px;
  height: 45px;
  background: linear-gradient(
    to bottom,
    rgba(19, 58, 124, 0.3),
    rgba(19, 58, 124, 0.12)
  );
  flex-shrink: 0;
}

/* Branch rows (tier 2 + 3) */
.tree-branches {
  display: grid;
  gap: 30px;
  position: relative;
  padding-top: 40px;
  width: 100%;
  max-width: 950px;
}

.tree-branches--4 {
  grid-template-columns: repeat(4, 1fr);
}

.tree-branches--6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Horizontal connector line across the top of branch tiers */
.tree-branches::before {
  content: "";
  position: absolute;
  top: 0;
  height: 2px;
  background: rgba(19, 58, 124, 0.2);
}

.tree-branches--4::before {
  left: 12.5%;
  right: 12.5%;
}

.tree-branches--6::before {
  left: 8.33%;
  right: 8.33%;
}

/* Vertical drop lines from horizontal bar to each node */
.tree-branches .tree-node::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: rgba(19, 58, 124, 0.2);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(19, 58, 124, 0.92),
    rgba(19, 58, 124, 0.8)
  );
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--clr-light-a0);
}

.cta-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 35px;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   KONTAKT SECTION
   ============================================ */
.kontakt {
  background: var(--clr-light-a0);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.kontakt-info-card {
  background: var(--clr-primary-a0);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--clr-light-a0);
  margin-bottom: 24px;
}

.kontakt-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.kontakt-info-item:last-child {
  margin-bottom: 0;
}

.kontakt-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.kontakt-info-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.kontakt-info-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.kontakt-info-item a {
  color: var(--clr-light-a0);
}

.kontakt-info-item a:hover {
  text-decoration: underline;
}

.kontakt-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.kontakt-map iframe {
  width: 100%;
  display: block;
}

/* Contact Form */
.kontakt-form-wrap {
  background: var(--clr-light-a0);
}

.kontakt-form {
  background: var(--clr-light-a0);
  border: 1px solid var(--clr-primary-a80);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.kontakt-form h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--clr-surface-tonal-a0);
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-surface-tonal-a10);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--clr-primary-a80);
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--clr-surface-tonal-a0);
  background: var(--clr-light-a0);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary-a0);
  box-shadow: 0 0 0 4px rgba(19, 58, 124, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-surface-a50);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--clr-primary-a0);
}

.form-check label {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--clr-surface-a30);
  line-height: 1.5;
}

.form-check label a {
  color: var(--clr-primary-a0);
  text-decoration: underline;
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--clr-success-a20);
  color: var(--clr-success-a0);
}

.form-status.error {
  display: block;
  background: var(--clr-danger-a20);
  color: var(--clr-danger-a0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--clr-surface-tonal-a0);
  color: var(--clr-surface-a60);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--clr-surface-a60);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--clr-primary-a0);
  color: var(--clr-light-a0);
}

.footer-col h4 {
  color: var(--clr-light-a0);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--clr-surface-a60);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--clr-primary-a50);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact li i {
  margin-top: 4px;
  color: var(--clr-primary-a40);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--clr-surface-a60);
}

.footer-legal a:hover {
  color: var(--clr-primary-a50);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--clr-primary-a0);
  color: var(--clr-light-a0);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 900;
  box-shadow: 0 4px 15px rgba(19, 58, 124, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-primary-a10);
  transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS – REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-fade-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-img-secondary {
    right: 20px;
  }
  .marken-grid {
    grid-template-columns: 1fr;
  }
  .marke-card {
    height: 350px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tree-branches--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .tree-branches--6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .tree-branches--6::before {
    left: 16.67%;
    right: 16.67%;
  }
  .kontakt-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .hero-logo img {
    max-width: 480px;
  }
  .section-header {
    margin-bottom: 45px;
  }
  .cta-banner {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--clr-primary-a0);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 60px 30px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 14px 20px;
    border-radius: 8px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-logo img {
    max-width: 380px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-number {
    font-size: 2.2rem;
  }

  .about-img-main img {
    height: 300px;
  }
  .about-img-secondary {
    width: 150px;
    height: 150px;
    right: 10px;
    bottom: -20px;
  }
  .about-experience-badge {
    width: 80px;
    height: 80px;
    top: -15px;
    left: -10px;
  }
  .badge-number {
    font-size: 1.4rem;
  }
  .badge-text {
    font-size: 0.65rem;
  }
  .about-features {
    grid-template-columns: 1fr;
  }

  .marke-card {
    height: 300px;
  }
  .marke-card-content {
    padding: 25px;
  }
  .marke-card-content h3 {
    font-size: 1.6rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 30px 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tree-branches--4,
  .tree-branches--6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 20px;
  }
  .tree-branches::before,
  .tree-branches .tree-node::before {
    display: none;
  }
  .tree-stem {
    height: 25px;
  }
  .tree-avatar--lg {
    width: 125px;
    height: 125px;
  }
  .tree-avatar--md {
    width: 95px;
    height: 95px;
  }
  .tree-avatar--sm {
    width: 78px;
    height: 78px;
  }
  .tree-contact {
    opacity: 1;
    transform: none;
  }

  .cta-banner {
    padding: 60px 0;
  }
  .cta-bg {
    background-attachment: scroll !important;
  }
  .cta-content p {
    font-size: 1rem;
  }

  .kontakt-info-card {
    padding: 30px;
  }
  .kontakt-map iframe {
    height: 300px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .kontakt-form {
    padding: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-controls {
    bottom: 80px;
  }
  .hero-scroll-indicator {
    display: none;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
  .lightbox-content {
    max-width: 95%;
    max-height: 80%;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: 40px;
  }
  .section-desc {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 55px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-logo img {
    max-width: 280px;
  }
  .hero-subtitle {
    font-size: 0.78rem;
    letter-spacing: 2px;
  }
  .hero-text {
    font-size: 0.92rem;
    margin-bottom: 30px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .hero-controls {
    bottom: 60px;
  }
  .hero-prev,
  .hero-next {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }
  .hero-dot {
    width: 10px;
    height: 2px;
  }
  .hero-dot.active {
    width: 24px;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.82rem;
  }

  .about-img-main img {
    height: 250px;
  }
  .about-img-secondary {
    width: 120px;
    height: 120px;
    right: 5px;
    bottom: -15px;
  }
  .about-experience-badge {
    width: 70px;
    height: 70px;
    top: -12px;
    left: -5px;
  }
  .badge-number {
    font-size: 1.2rem;
  }
  .badge-text {
    font-size: 0.6rem;
  }
  .about-content h3 {
    font-size: 1.3rem;
  }
  .about-content p {
    font-size: 0.92rem;
  }

  .marke-card {
    height: 260px;
  }
  .marke-card-content {
    padding: 20px;
  }
  .marke-card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }
  .marke-card-content p {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  .marke-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 14px;
  }

  .service-card {
    padding: 25px 20px;
  }
  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }
  .service-card h3 {
    font-size: 1.05rem;
  }
  .service-card p {
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-filter {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .tree-branches--4,
  .tree-branches--6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
  }
  .tree-avatar--lg {
    width: 110px;
    height: 110px;
  }
  .tree-avatar--md {
    width: 82px;
    height: 82px;
  }
  .tree-avatar--sm {
    width: 68px;
    height: 68px;
  }
  .tree-node h4 {
    font-size: 0.88rem;
  }
  .tree-role {
    font-size: 0.72rem;
  }

  .cta-banner {
    padding: 45px 0;
  }
  .cta-content h2 {
    font-size: 1.5rem;
  }
  .cta-content p {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .kontakt-form {
    padding: 24px;
  }
  .kontakt-info-card {
    padding: 24px;
  }
  .kontakt-info-item {
    gap: 12px;
    margin-bottom: 22px;
  }
  .kontakt-icon {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  .kontakt-form h3 {
    font-size: 1.3rem;
    margin-bottom: 22px;
  }

  .footer {
    padding-top: 50px;
  }
  .footer-grid {
    gap: 30px;
    padding-bottom: 30px;
  }
  .footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  .footer-bottom {
    padding: 18px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }
  .section-tag {
    font-size: 0.72rem;
    padding: 5px 14px;
    letter-spacing: 2px;
  }
  .section-desc {
    font-size: 0.9rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
  .lightbox-content img {
    max-height: 70vh;
  }
}
