/* === ROOT & GLOBAL VARIABLEN === */
:root {
  --container-max: 1200px;
  --accent: #0077cc;
  --bg-dark: #121212;
  --text-light: #f0f0f0;
}

/* === GLOBAL STYLES === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* === SECTIONS (Grundstruktur, ohne Farben) === */
section:not(#home) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 1rem;
  text-align: center;
  min-height: 70vh;
  box-sizing: border-box;
}

.section-inner {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* === TYPOGRAFIE === */
section:not(#home) h2 {
  font-size: 2rem;
  color: var(--accent);
}

section:not(#home) p {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
}

/* === ABOUT SECTION === */
.section-about {
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  color: #f5f5f5;
}

/* === LEISTUNGEN === */
.section-leistungen {
  background: seashell;
  /* background: linear-gradient(180deg, #f7f9fc 0%, #e9edf3 100%); */
  color: #111;
  padding: 5rem 1rem;
  text-align: center;
}

.section-leistungen h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.leistungen-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: rgba(192, 194, 196, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  width: 280px;
  min-height: 340px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  position: relative;
  overflow: hidden;
  opacity: 0; 
  transform: translateY(40px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Unterstreichung beim Hover */
.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Responsive */
@media (max-width: 900px) {
  .card {
    width: 100%;
    max-width: 420px;
    min-height: auto;
  }
}
/* === Icon-Styling in den Cards === */
.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 119, 204, 0.1); 
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: transform 0.4s ease, background 0.3s ease;
}

/* Hover-Animation */
.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(0, 119, 204, 0.2);
}





/* === PARTNER === */
.section-partner {
  background: linear-gradient(135deg, #0a0a0a, #1e1e1e);
  color: #fff;
  padding: 5rem 1rem;
}

.section-partner .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.partner-logos img {
  height: 100px;
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: brightness(0.9);
}

.partner-logos a:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Desktop-Optimierung */
@media (min-width: 1000px) {
  .partner-logos {
    gap: 3rem;
  }
  .partner-logos img {
    height: 90px;
  }
}

//* === KONTAKT === */
.section-kontakt {
  background-color: #151419;
  color: #fff;
  position: relative;
  padding: 5rem 1rem;
}

.section-kontakt h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-kontakt p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* === DSGVO MAP === */
#map-container {
  width: 100%;
  max-width: 800px;
  height: 300px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

#map-placeholder {
  width: 100%;
  height: 100%;
  background: url('../images/map-placeholder.jpg') center/cover no-repeat;
  filter: brightness(0.9);
}

#map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
}

#map-overlay p {
  max-width: 600px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

#map-overlay button {
  background: var(--accent, #0077cc);
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#map-overlay button:hover {
  background: #0090ff;
}

/* Responsive Map */
@media (max-width: 900px) {
  #map-container { height: 300px; }
}
@media (max-width: 600px) {
  #map-container { height: 250px; }
}


#map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Formular */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 1000px;   /* gleiche Breite wie die Karte */
  margin: 3rem auto;
}


.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #0090ff;
}

/* Schnellkontakt */
.contact-quick {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  background: var(--accent);
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #0090ff;
}

/* Responsive */
@media (max-width: 900px) {
  #map-container {
    height: 300px;
  }
    .contact-form {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  #map-container {
    height: 250px;
  }
}



/* === FOOTER === */
footer {
  background-color: silver;
  padding: 1.25rem 0;
  text-align: center;
  color: #1e1c1c;
}

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

footer a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  section:not(#home) {
    padding: 3rem 1rem;
  }

  .card {
    width: 100%;
    max-width: 400px;
  }

  section:not(#home) h2 {
    font-size: 1.6rem;
  }

  section:not(#home) p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  section:not(#home) {
    padding: 2rem 1rem;
  }

  .leistungen-cards {
    gap: 1rem;
  }

  .card {
    width: 100%;
    max-width: 350px;
  }
}
/* === IMPRESSUM & DATENSCHUTZ  === */
.hidden-section {
  display: none !important; /* zunächst unsichtbar */
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 1.5rem;
}

.section-legal h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-legal p {
  max-width: 800px;
  margin: 0.5rem auto;
  line-height: 1.6;
  font-size: 1rem;
}

/* Sichtbar, wenn aktiv */
.hidden-section.active {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.section-legal a {
  color: #66ccff; /* sanftes hellblau – gut lesbar auf dunklem Hintergrund */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.section-legal a:hover {
  color: #ffffff; /* beim Hover klar lesbar */
  text-decoration: none;
}
/* === X-Button zum Schließen der rechtlichen Sektionen === */
.close-legal {
  position: fixed; /* bleibt beim Scrollen sichtbar */
  top: 6rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 9999; /* über allem */
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.close-legal:hover {
  background: var(--accent, #0077cc);
  color: #fff;
  transform: scale(1.1);
}

/* Kleine Geräte */
@media (max-width: 600px) {
  .close-legal {
    right: 1rem;
    font-size: 1.8rem;
    width: 2.2rem;
    height: 2.2rem;
  }
}



/* === FIX: Scroll-Offset wegen festem Menü === */
section {
  scroll-margin-top: 80px; /* entspricht ca. der Nav-Höhe */
}

/* etwas größer */
@media (max-width: 950px) {
  section {
    scroll-margin-top: 80px;
  }
}
