/* ===========================
   BASE RESET & VARIABLES
=========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #e8820c;
  --orange-dark: #c46a08;
  --orange-light: #ffa832;
  --bg: #f5f3ef;
  --dark: #1a1a1a;
  --card-bg: #ffffff;
  --text: #2c2c2c;
  --text-muted: #666;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 12px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* ===========================
   HEADER
=========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: white;
  padding: 0 2.5rem;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s ease;
}

header.scrolled {
  background: rgba(10, 10, 10, 0.92);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 60%;
}

nav a.active::after {
  width: 60%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--orange);
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.55);
}

/* Dark gradient overlay at bottom for smooth transition */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
  transform: translateY(28px);
  padding: 1rem 2rem;
  max-width: 700px;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: var(--orange-light);
}

.subheadline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.8rem 2rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(232, 130, 12, 0.45);
  cursor: pointer;
}

.btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 130, 12, 0.55);
}

.btn:active {
  transform: translateY(0);
}

/* ===========================
   SECTIONS
=========================== */
section {
  padding: 5rem 2rem;
}

section:not(.hero):not(.slider-section) {
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--dark);
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

/* ===========================
   GRID & CARDS
=========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--card-bg);
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.12);
}

.card i {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--orange);
  transition: transform 0.3s ease;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--dark);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.12);
}

.card-link:hover .card i {
  transform: scale(1.15);
}

/* ===========================
   LEISTUNGEN DETAIL SECTIONS
=========================== */
.leistung-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.leistung-section.reverse {
  direction: rtl;
}

.leistung-section.reverse > * {
  direction: ltr;
}

.leistung-text h2 {
  text-align: left;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.leistung-text h2::after {
  margin: 0.5rem 0 0;
}

.leistung-text p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.97rem;
}

.leistung-text ul {
  list-style: none;
  margin-top: 1rem;
}

.leistung-text ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.leistung-text ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--orange);
}

.leistung-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  aspect-ratio: 4/3;
  background: #ddd;
}

.leistung-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
   SLIDER
=========================== */
.slider-section {
  padding: 5rem 2rem;
  text-align: center;
  background: #eceae5;
}

.slider-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2.5rem;
  color: var(--dark);
  position: relative;
}

.slider-section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.slider {
  position: relative;
  max-width: 900px;
  overflow: hidden;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: rgba(232, 130, 12, 0.8);
}

.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.2rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.slider-dot.active {
  background: var(--orange);
  transform: scale(1.2);
}

/* ===========================
   MAP / KONTAKT
=========================== */
#kontakt {
  text-align: center;
}

#kontakt iframe {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  height: 380px;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

/* ===========================
   LEGAL PAGES (Impressum / Datenschutz)
=========================== */
.legal-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.legal-section h2 {
  text-align: left;
  margin-bottom: 2rem;
}

.legal-section h2::after {
  margin: 0.5rem 0 0;
}

.legal-card {
  background: var(--card-bg);
  padding: 2.5rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.legal-card p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-card p strong {
  color: var(--dark);
  font-weight: 700;
}

.legal-card a {
  color: var(--orange);
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--orange);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  header {
    padding: 0 1.25rem;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .leistung-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem;
  }

  .leistung-section.reverse {
    direction: ltr;
  }

  .leistung-text h2 {
    font-size: 1.5rem;
  }

  .slide {
    height: 240px;
  }

  .legal-section {
    padding: 6rem 1.25rem 4rem;
  }

  .legal-card {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   MAP CONSENT WRAPPER
=========================== */
.map-consent-wrapper {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #e0ddd8;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.map-consent-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.map-consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 243, 239, 0.96);
  z-index: 5;
}

.map-consent-box {
  text-align: center;
  padding: 2rem;
  max-width: 380px;
}

.map-consent-box i {
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 1rem;
  display: block;
}

.map-consent-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.map-consent-box a { color: var(--orange); text-decoration: underline; }

/* ===========================
   COOKIE BANNER
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 999;
  font-size: 0.88rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  flex-wrap: wrap;
}

.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { flex: 1; min-width: 200px; line-height: 1.6; }
.cookie-banner a { color: var(--orange-light); text-decoration: underline; }

.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: white;
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
  box-shadow: none;
}

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
  .map-consent-wrapper { height: 260px; }
}
