/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #2b3a3a;
  line-height: 1.6;
}

/* ================= CONTAINER ================= */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HAMBURGER ================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #1f5d63;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================= MOBILE NAV ================= */

@media (max-width: 900px) {

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 120px 30px;
    gap: 24px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
    transition: right 0.35s ease;
    z-index: 200;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }
}

ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

ul li {
  margin-bottom: 8px;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
  padding: 20px 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 28px);
  color: #1f5d63;
}

.logo-wrapper img {
  height: clamp(24px, 2vw, 34px);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: #2b3a3a;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #2e6f75;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: #2e6f75;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  color: #1f5d63;
}

.brand-sub {
  font-size: clamp(10px, 0.9vw, 13px);
  font-weight: 400;
  color: rgba(31,93,99,0.6);
  margin-top: 2px;
}

/* ================= SECTIONS ================= */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;   /* nur vertikal zentrieren */
  overflow: hidden;
}

/* Fullscreen image */
.media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.overlay-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 clamp(20px, 8vw, 160px);
  display: flex;
  align-items: center;
}

/* Spiegelung Section 2 */
.section-feature .overlay-content {
  justify-content: flex-end;
  max-width: none;
}

.feature-layout .content-box {
  justify-self: end;
}

.section-knowledge .overlay-content {
  justify-content: flex-end;
}

.section-knowledge .overlay-content {
  justify-content: flex-end;
}

/* ================= CONTENT BOX ================= */
.content-box {
  width: clamp(320px, 40vw, 640px);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(6px);
  padding: clamp(24px, 3vw, 48px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* Typography */
.headline-main {
  font-size: clamp(28px, 3.2vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  color: #1f5d63;
  margin-bottom: clamp(8px, 1vw, 16px);
}

.headline-sub {
  font-size: clamp(20px, 2vw, 36px);
  font-weight: 500;
  color: rgba(31,93,99,0.65);
  margin-bottom: clamp(16px, 2vw, 28px);
}

.content-text {
  font-size: clamp(15px, 1.2vw, 18px);
  margin-bottom: clamp(24px, 2vw, 36px);
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: clamp(10px, 1vw, 16px) clamp(18px, 1.8vw, 28px);
  border-radius: 12px;
  font-size: clamp(14px, 1vw, 16px);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.primary {
  background: #2e6f75;
  color: #fff;
}

.secondary {
  border: 1px solid #2e6f75;
  color: #2e6f75;
}

/* ================= Feature Layout ================= */

.feature-layout {
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 1400px;
  padding: 0 20px;

  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
  justify-self: end;
}

/* ================= FEATURES BLOCK ================= */

.features-block {
  background: #ffffff;
  padding: clamp(80px, 10vw, 140px) 0;
}

.features-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(60px, 6vw, 100px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 60px);
}

/* Einzelne Feature-Karte */
.feature-card {
  background: #ffffff;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.feature-card h3 {
  font-size: clamp(18px, 1.6vw, 24px);
  margin-bottom: 16px;
  color: #1f5d63;
}

.feature-card p {
  font-size: clamp(14px, 1vw, 16px);
  color: rgba(0,0,0,0.7);
  line-height: 1.6;
}

/* ================= PHONE ================= */

.phone {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone img {
  width: clamp(220px, 18vw, 420px);
  height: auto;
  display: block;
}

/* ================= FOOTER ================= */

.footer {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}

.footer-col h4 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1f5d63;
}

.footer-col h5 {
  font-size: 16px;
  margin-bottom: 14px;
  color: #1f5d63;
}

.footer-col p {
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  color: rgba(0,0,0,0.7);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #2e6f75;
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  font-size: 13px;
  color: rgba(0,0,0,0.5);
}


/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {

  .feature-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .phone {
    order: 2;
    margin-top: 40px;
  }

  .content-box {
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

}

@media (max-width: 600px) {

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-header {
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 60px 0 30px;
  }

}
