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

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #65BD53;
  --green-dark: #1f8c54;
  --green-light: #4fd18e;
  --dark: #47595C;
  --dark-card: #162029;
  --gray-100: #f4f6f8;
  --gray-200: #e2e7ec;
  --gray-300: #b0bbc9;
  --gray-400: #8a95a3;
  --white: #ffffff;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Navigation --- */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(15,25,35,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

nav.scrolled { padding: 0.6rem 3rem; background: rgba(15,25,35,0.95); }

.nav-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.nav-logo-img { height: 60px; width: auto; object-fit: contain; filter: brightness(1) saturate(1); opacity: 0; transform: scale(0.95); transition: all 0.4s ease; }

@media (max-width: 768px) {
  .nav-logo-img { height: 30px; opacity: 1; transform: none; }
}

.nav-logo-img.revealed { opacity: 1; transform: scale(1); }

/* --- Big Logo in Hero --- */

.hero-big-logo {
  position: absolute; top: 20px; left: 1vw; max-height: 60vh; z-index: 99; pointer-events: none;
  opacity: 1; transform: translateY(0); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-big-logo.hidden {
  opacity: 0; transform: translateY(-50px) scale(0.95);
}

@media (max-width: 768px) {
  .hero-big-logo { display: none; }
}

/* --- Brand showcase (mobile big logo) --- */

.brand-showcase {
  background: var(--dark-card); padding: 4rem 3rem; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

@media (max-width: 768px) {
  .brand-showcase { padding: 3rem 1.5rem; }
  .brand-big-img { max-width: 72%; height: auto; opacity: 0.9; }
}

.nav-links { display: flex; gap: 2rem; list-style: none; position: relative; }
.nav-links a { color: var(--gray-400); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--white); }

/* --- Dropdown --- */

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▼'; font-size: 0.6em; color: var(--gray-400); margin-left: 0.3rem; transition: transform 0.2s; display: inline-block; }
.nav-dropdown.is-open > a::after { transform: rotate(180deg); }

.dropdown-menu {
  position: relative; top: 0; left: 0; transform: none;
  width: 100%; background: rgba(15,25,35,0.98); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 1rem; opacity: 0; visibility: hidden; transition: none; z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5); pointer-events: none; display: block; margin-top: 0.5rem;
}

@media (min-width: 769px) {
  .dropdown-menu { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(-4px); width: auto; min-width: 320px; }
}

.nav-dropdown.is-open .dropdown-menu { opacity: 1 !important; visibility: visible !important; transform: translateX(-50%) translateY(0); pointer-events: auto !important; }

.dropdown-grid { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 0.75rem; }
.dropdown-item {
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 0.7rem 0.9rem;
  font-size: 0.8rem; font-weight: 600; color: var(--gray-300); text-decoration: none; transition: all 0.2s;
}

.dropdown-item:hover { background: rgba(76,175,80,0.1); border-color: rgba(76,175,80,0.25); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(76,175,80,0.15); }

/* --- CTA in Nav --- */

.nav-cta { background: var(--green); color: var(--white); padding: 0.6rem 1.5rem; border-radius: 8px; text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: all 0.2s; }
.nav-cta:hover { background: var(--green-light); transform: translateY(-1px); }

/* --- Hero --- */

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 6rem 3rem 4rem; }
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slideshow img.active { opacity: 1; }

.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,25,35,0.85) 0%, rgba(15,25,35,0.6) 50%, rgba(15,25,35,0.85) 100%); z-index: 1; pointer-events: none; }

.hero-grid { position: absolute; inset: 0; opacity: 0.03; background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px); background-size: 60px 60px; z-index: 2; pointer-events: none; }

.hero-content { position: relative; z-index: 3; text-align: center; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.2); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; color: var(--green-light); margin-bottom: 2rem; font-weight: 500; }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.08; letter-spacing: -2px; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--green); }

.hero p { font-size: 1.2rem; color: var(--gray-400); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--green); color: var(--white); padding: 1rem 2.5rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all 0.25s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--green); color: var(--dark); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(76,175,80,0.3); }

.btn-secondary { background: rgba(255,255,255,0.06); color: var(--white); padding: 1rem 2.5rem; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 1px solid rgba(255,255,255,0.1); transition: all 0.25s; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.06); }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--green); }
.hero-stat-label { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.25rem; }

.slideshow-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 0.75rem; }
.slideshow-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); background: transparent; cursor: pointer; transition: all 0.3s; padding: 0; }
.slideshow-dots button.active { background: var(--green); border-color: var(--green); transform: scale(1.2); }
.slideshow-dots button:hover { border-color: var(--white);  }

/* --- Sections (generic) --- */

section { padding: 6rem 3rem; }

.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--green); font-weight: 600; margin-bottom: 1rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-400); max-width: 600px; line-height: 1.7; }

/* --- Services --- */

.services { background: var(--dark); }
.services-header { text-align: center; margin-bottom: 4rem; }
.services-header .section-subtitle { margin: 0 auto; }

.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.service-card { background: var(--dark-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden; transition: all 0.3s ease; }
.service-card:hover { border-color: rgba(76,175,80,0.3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-light)); opacity: 0; transition: opacity 0.3s; }
.service-card:hover::before { opacity: 1; }

.service-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(76,175,80,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 1.5rem; }
.service-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--gray-400); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }

.service-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.service-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--gray-200); }
.service-list li::before { content: '\2713'; color: var(--green); font-weight: 700; }

/* --- Brands / Partner --- */

.brands { background: var(--dark-card); border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.brands-header { text-align: center; margin-bottom: 3rem; }

.brand-grid { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.brand-item { width: 120px; height: 60px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; font-size: 0.85rem; font-weight: 700; color: var(--gray-400); transition: all 0.25s; letter-spacing: -0.3px; }
.brand-item:hover { background: rgba(76,175,80,0.08); border-color: rgba(76,175,80,0.2); color: var(--white); }

/* --- CTA Section --- */

.cta-section { text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(76,175,80,0.1) 0%, transparent 70%); pointer-events: none; }

.cta-box { max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.cta-box p { color: var(--gray-400); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.7; }

/* --- Footer --- */

footer { background: var(--dark-card); border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--green); margin-bottom: 1.25rem; font-weight: 600; }
.footer-col p, .footer-col a { color: var(--gray-400); font-size: 0.9rem; line-height: 2; text-decoration: none; display: block; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); color: var(--gray-400); font-size: 0.8rem; }

/* --- Gallery --- */

.gallery-section { background: var(--dark-card); border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.gallery-header { text-align: center; margin-bottom: 3rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; max-width: 1200px; margin: 0 auto; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid rgba(255,255,255,0.06); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,25,35,0.6) 0%, transparent 50%); pointer-events: none; }
.gallery-item-label { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; font-size: 0.85rem; font-weight: 600; color: var(--white); }

/* --- Fade-up Animation --- */

.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Desktop Dropdown grid (smaller screens) --- */

@media (min-width: 769px) {
  #nav-toggle { display: none !important; }
  .nav-links { display:flex !important; gap:2rem !important; position:relative !important; opacity:1 !important; visibility:visible !important; flex-direction:row !important; align-items:center !important; }
}

@media (max-width: 1024px) {
  .dropdown-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 0.6rem; }
  .dropdown-item { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
}

/* --- Mobile --- */

/* --- Modal --- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(15,25,35,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: none; align-items: center; justify-content: center; padding: 2rem; pointer-events: none;
}
.modal-overlay.is-open { display: flex; pointer-events: auto; }

.modal-box { position: relative; background: var(--dark-card); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 3rem 3rem 2.5rem; max-width: 480px; width: 100%; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,0.5); animation: modal-in 0.3s cubic-bezier(0.16,1,0.3,1); }
@keyframes modal-in { from { opacity:0; transform:translateY(20px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }

.modal-box h3 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; letter-spacing: -0.5px; }
.modal-box p { color: var(--gray-400); font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; }

#modal-close { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: var(--gray-400); padding: 0.7rem 3rem; border-radius: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; }
#modal-close:hover { background: var(--green); color: var(--white); border-color: var(--green); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(76,175,80,0.25); }

@media (max-width: 768px) {
  .modal-box { padding: 2rem 1.5rem; border-radius: 16px; }
  .modal-box h3 { font-size: 1.4rem; }

  #nav-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
  #nav-toggle span { display: block; width: 100%; height: 3px; background: var(--white); border-radius: 2px; transition: all 0.3s ease-in-out; }
  #nav-toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  #nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  #nav-toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav-links { position: fixed; top: 56px; left: 0; right: 0; background: var(--dark-card); padding: 1rem 2rem 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.4); z-index: 99; flex-direction: column; gap: 0.75rem; display: none; opacity: 0; transform: translateY(-16px) scale(0.98); }
  .nav-links.is-open { display: flex !important; opacity: 1 !important; transform: translateY(0) scale(1) !important; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: auto; }
  .nav-links.is-open > li { width: 100%; display: block !important; }

  /* Dropdown auf Mobile: erst sichtbar wenn "Mietpark" geklickt wird, sonst geschlossen */
  .dropdown-menu { display: none !important; }
  .nav-dropdown.is-open .dropdown-menu { display: block !important; opacity: 1 !important; visibility: visible !important; position: relative; top: 0; left: 0; transform: none; width: 100%; margin-top: 0.5rem; }

  section { padding: 4rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .service-cards { grid-template-columns: 1fr; }
  .brand-grid { gap: 1rem; }
  .brand-item { width: 90px; height: 48px; font-size: 0.7rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 3rem 1.5rem 2rem; }
  .slideshow-dots { bottom: 1rem; }
}
