/* ===================================================
   CNI München GmbH – Hauptstyles
   Font: Montserrat (Google Fonts)
   Design: Luxury Minimalism (ciavolich.com inspired)
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

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

:root {
  --color-dark:    #1a1a1a;
  --color-accent:  #E87A3B;
  --color-white:   #ffffff;
  --color-offwhite:#f8f6f3;
  --color-mid:     #6b6b6b;
  --color-footer:  #111111;
  --font:          'Montserrat', sans-serif;
  --transition:    0.35s ease;
  --max-w:         1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ---- Utility ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 100px 0; }
.section--alt { background: var(--color-offwhite); }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.section-title strong { font-weight: 700; }

.section-body {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-mid);
  max-width: 560px;
  line-height: 1.85;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover { background: var(--color-accent); color: var(--color-white); }
.btn--white { border-color: var(--color-white); color: var(--color-white); }
.btn--white:hover { background: var(--color-white); color: var(--color-dark); }
.btn--solid { background: var(--color-accent); color: var(--color-white); }
.btn--solid:hover { background: #705c43; border-color: #705c43; }

/* ===================================================
   NAVIGATION
=================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  padding: 16px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 52px;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav__logo-wrap {
  display: inline-flex;
  align-items: center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.nav__links a:hover::after { width: 100%; }
.nav__links a:hover { color: var(--color-white); }

.nav.scrolled .nav__links a { color: var(--color-dark); }
.nav.scrolled .nav__links a:hover { color: var(--color-accent); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  width: 26px; height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}
.nav.scrolled .nav__hamburger span { background: var(--color-dark); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--color-accent); }
.nav__mobile-close {
  position: absolute;
  top: 28px; right: 40px;
  font-size: 32px;
  color: var(--color-white);
  cursor: pointer;
  line-height: 1;
}

/* ===================================================
   HERO CAROUSEL
=================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__slide.active { opacity: 1; z-index: 1; }
.hero__slide.prev { opacity: 0; z-index: 0; }

.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.40) 50%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero__logo-wrap {
  display: inline-flex;
  align-items: center;
  margin-bottom: 32px;
}

.hero__logo {
  height: 80px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.55));
}

.hero__tagline {
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 36px;
}
.hero__title strong { font-weight: 700; }

/* Dots */
.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero__dot.active {
  background: var(--color-white);
  transform: scale(1.3);
}

/* Scroll arrow */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero__scroll svg { width: 20px; height: 20px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===================================================
   LEISTUNGEN
=================================================== */
.leistungen { background: var(--color-white); }
.leistungen__header { text-align: center; margin-bottom: 64px; }
.leistungen__header .section-body { max-width: 600px; margin: 0 auto; text-align: center; }

.leistungen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #e8e3db;
}

.leistungen__card {
  background: var(--color-white);
  padding: 52px 40px;
  transition: background var(--transition), transform var(--transition);
  cursor: default;
}
.leistungen__card:hover { background: var(--color-offwhite); }

.leistungen__icon {
  width: 44px; height: 44px;
  margin-bottom: 24px;
  color: var(--color-accent);
}

.leistungen__card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.leistungen__card-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-mid);
  line-height: 1.8;
}

/* ===================================================
   UNTERNEHMEN
=================================================== */
.unternehmen { background: var(--color-offwhite); overflow: hidden; }

.unternehmen__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.unternehmen__image {
  position: relative;
  overflow: hidden;
}
.unternehmen__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s ease;
}
.unternehmen__image:hover img { transform: scale(1.04); }

.unternehmen__content {
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.unternehmen__quote {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 32px;
  line-height: 1.6;
  border-left: 3px solid var(--color-accent);
  padding-left: 24px;
}

.unternehmen__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-top: 32px;
  margin-bottom: 6px;
}
.unternehmen__title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* ===================================================
   KONTAKT
=================================================== */
.kontakt { background: var(--color-dark); color: var(--color-white); }

.kontakt__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.kontakt .section-label { color: rgba(255,255,255,0.5); }
.kontakt .section-title { color: var(--color-white); }
.kontakt .section-body { color: rgba(255,255,255,0.65); }

.kontakt__details { margin-top: 48px; }

.kontakt__detail {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.kontakt__detail-icon {
  width: 20px; height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.kontakt__detail-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}

.kontakt__detail-value {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* Copy Protection */
.protected {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.kontakt__map-link {
  display: block;
  overflow: hidden;
  border-radius: 2px;
}

.kontakt__map-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.kontakt__map-link:hover .kontakt__map-img {
  transform: scale(1.03);
}

/* ===================================================
   FOOTER
=================================================== */
.footer {
  background: var(--color-footer);
  color: rgba(255,255,255,0.5);
  padding: 60px 0 36px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer__logo-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  border-radius: 4px;
  padding: 8px 16px;
  margin-bottom: 20px;
}

.footer__logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer__desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.4);
  max-width: 300px;
}

.footer__col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
  letter-spacing: 0.5px;
}
.footer__col a:hover { color: var(--color-accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--color-accent); }

/* ===================================================
   COOKIE BANNER
=================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
  padding: 24px 40px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 2px solid var(--color-accent);
  transform: translateY(0);
  transition: transform 0.4s ease;
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cookie-banner__text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  flex: 1;
  min-width: 240px;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

/* ===================================================
   SCROLL-TO-TOP BUTTON
=================================================== */
.scroll-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 900;
  width: 46px;
  height: 46px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.scroll-top svg { width: 20px; height: 20px; }

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover { background: #c9622a; }

/* ===================================================
   DATENSCHUTZ / LEGAL PAGES
=================================================== */
.legal-page {
  padding: 140px 0 100px;
}
.legal-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  margin-bottom: 48px;
  color: var(--color-dark);
}
.legal-page h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 48px 0 16px;
  color: var(--color-dark);
}
.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--color-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}
.legal-page ul { padding-left: 24px; list-style: disc; }
.legal-page a { color: var(--color-accent); text-decoration: underline; }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .leistungen__grid { grid-template-columns: repeat(2, 1fr); }
  .unternehmen__content { padding: 60px 48px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .container { padding: 0 24px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__logo-wrap {
    background: transparent;
    border-radius: 4px;
    padding: 0;
  }
  .nav.menu-open .nav__logo-wrap {
    background: rgba(255,255,255,0.92);
    padding: 5px 12px;
  }
  .nav__inner { padding: 0 24px; }

  .leistungen__grid { grid-template-columns: 1fr; }
  .leistungen__card { padding: 40px 28px; }

  .unternehmen__inner { grid-template-columns: 1fr; }
  .unternehmen__image { height: 340px; }
  .unternehmen__content { padding: 52px 28px; }

  .kontakt__inner { grid-template-columns: 1fr; gap: 48px; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 24px; }

  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .hero__logo { height: 64px; }
  .hero__title { font-size: 26px; }
  .nav__logo { height: 40px; }
  .nav__logo img, .nav__logo svg { height: 40px; }
}
