/* Basis & Defaults */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --header-h: 80px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: poppins, sans-serif;
  padding-top: var(--header-h);
  background-color: #7D7D7D;
}

/* ===== Layout ===== */
.stack-area {
  width: 100%;
  position: relative;
  background: #7D7D7D;
  display: flex;
  flex-wrap: wrap;
  height: auto; /* Standard: normale Höhe */
}

/* Nur im Dienstleistungsbereich soll die lange Scrollhöhe gelten */
#dienst .stack-area {
  height: 300vh; /* Scrollfläche für Kartenstack */
}

.left,
.right {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  height: auto;
}

/* Sticky-Logik nur im Dienstleistungsbereich */
@media (min-width: 768px) {
  #dienst .left,
  #dienst .right {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
  }
  #dienst .stack-area {
    flex-wrap: nowrap;
  }
}

/* ===== Typo ===== */
.title {
  width: 100%;
  max-width: 420px;
  font-size: clamp(36px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.sub-title {
  width: 100%;
  max-width: 420px;
  font-size: clamp(14px, 3vw, 20px);
  margin-top: 30px;
  text-align: center;
}

.sub-title button {
  font-size: 14px;
  padding: 15px 30px;
  background: black;
  color: white;
  border-radius: 8mm;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

/* ===== Kartenstapel Desktop ===== */
.card {
  width: 350px;
  height: 350px;
  border-radius: 25px;
  margin-bottom: 10px;
  transition: transform 0.5s ease-in-out;
  padding: 35px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  position: absolute;
  top: calc(50% - 175px);
  left: calc(50% - 175px);
  will-change: transform;
}

.card:nth-child(1) { background: #5F9EA0; }
.card:nth-child(2) { background: #98F5FF; }
.card:nth-child(3) { background: #76c3cc; }
.card:nth-child(4) { background: #5aadb6; }

/* ===== Karten mobil normal untereinander ===== */
@media (max-width: 768px) {
  #dienst .stack-area {
    height: auto; /* mobil normale Höhe */
    display: block;
  }
  .card {
    position: static;
    transform: none !important;
    width: 90%;
    height: auto;
    margin: 20px auto;
  }
}

.sub {
  font-size: clamp(14px, 3vw, 20px);
  font-weight: 700;
}

.content {
  font-size: clamp(18px, 5vw, 35px);
  font-weight: 700;
  line-height: 1.3;
}

/* ===== Header / Navigation ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 1000;
  background: white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  min-height: var(--header-h);
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

header a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

header a:hover {
  color: rgb(158, 158, 87);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: black;
  border-radius: 2px;
}

/* Section mit 2 Boxen */
#text-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 90px;
  padding: 80px 20px;
  background:#7D7D7D; /* Hintergrundfarbe für die Section */
}

#text-section .text-box {
  flex: 1 1 45%; /* zwei Spalten */
  max-width: 600px;
  background: #b3b0b0;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  font-size: 1rem;
  line-height: 1.6;
}

#text-section .text-box h2 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #333;
}

@media (max-width: 768px) {
  #text-section {
    flex-direction: column;
    padding: 40px 15px;
  }
  #text-section .text-box {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* ===== Sektionen ===== */
section {
  padding: 100px 20px;
  min-height: 100vh;
}

section1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 50px 20px;
  min-height: 100vh;
  gap: 20px;
}

/* ===== Medien & Typewriter ===== */
.rounded-img {
  border-radius: 15px;
  display: block;
  max-width: 100%;
  height: auto;
}

.box {
  flex: 1 1 200px;
  max-width: 1000px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.typewriter {
  font-size: 1.5rem;
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  text-align: center;
}

/* ===== Footer ===== */
footer {
  color: black;
  text-align: center;
  padding: 40px 20px;
  background: #7D7D7D;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-links a,
.footer-social a {
  color: black;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  color: black;
}

/* ===== Download-Boxen ===== */
.download-card {
  width: 100%;
  max-width: 280px;          /* kleiner */
  min-height: 110px;         /* niedriger */
  border-radius: 18px;
  margin-bottom: 16px;
  background: #5F9EA0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 16px;           /* kleiner */
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px #98F5FF;
}

ul.responsive-list {
  list-style: none;          /* keine Punkte */
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

ul.responsive-list li {
  flex: 1 1 100px;
  max-width: 280px;
}




/* ===== Responsive ===== */
@media (max-width: 768px) {
  .box {
    height: auto;
  }
  .typewriter {
    font-size: 1.2rem;
  }

  /* Mobile Navigation */
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #7D7D7D;
    position: absolute;
    top: var(--header-h);
    left: 0;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    z-index: 1001;
  }
  .navbar-links.active {
    display: flex;
  }
  .burger {
    display: flex;
  }
  .navbar-links a {
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: row;
    padding: 0.75rem 1rem;
  }
}

/* ===== Kooperationspartner Grid ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  width: 100%;
  padding: 20px;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9; /* leichter Hintergrund wie Karten */
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.partner img {
  max-width: 100%;
  max-height: 80px;  /* gleiche Höhe für alle Logos */
  object-fit: contain;
}

/* ===== Navigation komplett ausblenden auf Handy ===== */
@media (max-width: 768px) {
  .navbar-links {
    display: none !important;   /* alle Links weg */
  }
  .burger {
    display: none !important;   /* Burger ebenfalls weg */
  }
}


