:root {
  --primary:  #4A7260;
  --accent:   #9E9E9E;
  --bg-from:  #F7F9F7;
  --bg-to:    #ECEDEC;
  --text:     #2E2E2E;
  --white:    #FFFFFF;
  --dark:     #2A2A2A;
}

/* Grund-Reset & Smooth-Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background: var(--bg-from);
  color: var(--text);
  padding-top: 60px;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: .75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  z-index: 1000;
  transition: background-color .3s;
}
header.scrolled {
  background-color: rgba(74,114,96,0.8);
}
.logo-container {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.header-logo {
  max-height: 40px;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
}
/* Kontakte im Header immer weiß & unterstrichen */
header .contact,
header .contact a {
  color: var(--white) !important;
  text-decoration: underline;
  font-size: .85rem;
  white-space: nowrap;
}

nav {
  margin-left: auto;
}
nav ul {
  display: flex;
  gap: 1rem;
}
nav a {
  padding: .5rem 1rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-radius: .25rem;
  transition: background-color .3s, color .3s;
}
nav a:hover {
  background: var(--white);
  color: var(--primary);
}

/* Hero Slider */
.hero {
  position: relative;
  overflow: hidden;
  height: 60vh;
  background: var(--bg-to);
}
.slides {
  display: flex;
  transition: transform .6s ease;
  height: 100%;
}
.slide {
  min-width: 100%;
  position: relative;
}
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logos/Promo-Slides wie WinWin UND MigCreation zentriert + nicht beschnitten */
.hero .slide:nth-child(2) .slide-img,
.hero .slide:nth-child(3) .slide-img {
  object-fit: contain;
  object-position: center;
  background: var(--bg-to);
}

.slide-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  padding: 1rem;
  border-radius: .25rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.slide-title {
  font-size: 2rem;
  margin-bottom: .5rem;
}
.slide-desc {
  font-size: 1rem;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  padding: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
}
.prev { left: 1rem; }
.next { right: 1rem; }
.dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.dot {
  width: .75rem;
  height: .75rem;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
.dot.active {
  background: var(--accent);
}

/* Services */
.services {
  padding: 3rem 1rem;
  background: var(--bg-from);
  text-align: center;
}
.services h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.75rem;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.cta {
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: .5rem;
  padding: 1.5rem;
  flex: 1 1 200px;
  max-width: 280px;
  text-decoration: none;
  color: var(--text);
  transition: transform .3s;
}
.cta-icon {
  font-size: 2rem;
  margin-bottom: .5rem;
}
.cta-title {
  font-weight: 700;
}
.cta-desc {
  margin-top: .25rem;
}
.cta:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

/* Info Sections */
.info-section {
  padding: 3rem 1rem;
  background: var(--bg-to);
  text-align: center;
}
.info-section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}
.info-section p {
  margin: .5rem 0;
}
.kontakt-link {
  color: var(--primary);
  text-decoration: underline;
}

/* Details/Summary (Projekte & Bildungsangebote) */
details {
  width: 100%;
  max-width: 800px;
  margin: .5rem auto;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: .75rem 1rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: .25rem;
}
summary::-webkit-details-marker {
  display: none;
}
details[open] summary {
  background: rgba(74,114,96,0.85);
}
.project-details {
  background: var(--bg-to);
  padding: 1rem;
  margin-top: .5rem;
  border-left: 4px solid var(--primary);
  border-radius: .25rem;
}
.project-details ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Logos */
.centered-logos,
.centered-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.centered-logo {
  flex-direction: column;
}
.centered-logos img,
.centered-logo img {
  max-width: 180px;
  height: auto;
}

/* Kontakt Section */
.kontakt {
  padding: 3rem 1rem;
  background: var(--bg-from);
  text-align: center;
}
.kontakt h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}
.kontakt p {
  margin: .5rem 0;
}
.map-link {
  display: inline-block;
  margin-top: .2rem;
}
.map-img {
  max-width: 50%;
  border: 2px solid var(--accent);
  border-radius: .5rem;
  transition: transform .3s, border-color .3s;
}
.map-img:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

/* Datenschutz/Impressum Seiten */
.privacy {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
  line-height: 1.7;
  text-align: left;
}
.privacy h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.privacy article h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.privacy p {
  margin-bottom: 1rem;
}
.privacy ul {
  margin: 1rem 0 1rem 1.5rem;
}
.privacy ul li {
  margin-bottom: .5rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--white);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent);
}
.certifications {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.certifications img {
  max-height: 100px;
  width: auto;
}

/* Cookie-Consent-Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}
.cookie-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  color: var(--text);
  padding: 2rem;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border-radius: .5rem;
  z-index: 2001;
}
.cookie-modal h2 {
  margin-top: 0;
}
.cookie-option {
  margin: 1rem 0;
}
.cookie-option label {
  margin-left: .5rem;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.cookie-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: .5rem 1rem;
  border-radius: .25rem;
  cursor: pointer;
  font-size: .9rem;
}
.cookie-btn:hover {
  background: rgba(74,114,96,0.8);
}
.cookie-settings-toggle {
  position: fixed;
  bottom: 1rem; right: 1rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: .5rem 1rem;
  border-radius: .25rem;
  cursor: pointer;
  font-size: .8rem;
  z-index: 2001;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-wrap: wrap;
  }
  .hero {
    height: 50vh;
  }
  .services,
  .info-section,
  .kontakt {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .cta {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .slide-title {
    font-size: 1.5rem;
  }
  .slide-desc {
    font-size: 0.9rem;
  }
}
