/* style.css */

/* 1. CSS-Variablen */
:root {
  --color-dark:    #1e3a56;
  --color-light:   #ffffff;
  --color-primary: #6baed6;
  --font-sans:     Arial, Helvetica, sans-serif;
}

/* 2. Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: linear-gradient(
    120deg,
    var(--color-dark) 0%,
    var(--color-dark) 40%,
    var(--color-light) 40%,
    var(--color-light) 100%
  );
  font-family: var(--font-sans);
  color: var(--color-dark);
  line-height: 1.5;
}

/* 3. Seiten-Container („Karton“) */
.site-container {
  max-width: 1800px;
  margin: 2rem auto;
  background: var(--color-light);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* 4. Header / Navbar */
.site-header {
  padding: 0.5rem 1.5rem;
  background: var(--color-light);
  border-radius: 0.75rem 0.75rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 10;
}
.logo img {
  height: 8rem;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 2rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-dark);
}

/* 5. Hero-Bereich – jetzt 60vh */
.hero {
  position: relative;
  height: 60vh;
}

/* 5.1 Bild full-bleed hinter allem */
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5.2 Blaues Panel full-height */
.hero-text {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 45%;
  max-width: 600px;
  background: var(--color-dark);
  color: var(--color-light);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* 5.3 Button bündig mit Text */
.btn {
  display: inline-block;
  margin: 2rem 0 0 0;
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-light);
  text-decoration: none;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 600;
  border-radius: 4px;
}

/* 6. Feature-Card – größer & deutlich präsenter */
.feature-card {
  position: absolute;
  bottom: -8rem;
  right: 2rem;
  width: 550px;
  background: var(--color-light);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  padding: 2rem;
  z-index: 3;
}
.feature {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.feature:last-child {
  margin-bottom: 0;
}
.feature img {
  width: 32px;
  height: 32px;
}
.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* 7. Intro-Bereich – linksbündig & schicker */
.intro {
  text-align: left;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto 4rem;
  border-left: 4px solid var(--color-primary);
  background: #fafafa;
  border-radius: 4px;
}
.intro h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.intro-text {
  column-count: 2;
  column-gap: 2rem;
  line-height: 1.8;
}
.intro-text p {
  margin-bottom: 1.5rem;
  text-align: left;
}

/* 8. Responsive Anpassungen */
@media (max-width: 1024px) {
  .hero-text { width: 60%; }
  .feature-card { width: 70%; right: 1rem; bottom: -6rem; }
}

@media (max-width: 768px) {
  .site-container {
    margin: 1rem;
  }
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  /* Header zweizeilig */
  .site-header {
    justify-content: space-between;
  }

  /* Hero gestapelt */
  .hero {
    height: auto;
  }
  .hero-image {
    position: relative;
    height: 250px;
  }
  .hero-image img {
    object-position: center top;
  }
  .hero-text {
    position: relative;
    width: auto;
    max-width: none;
    clip-path: none;
    padding: 1.5rem;
    margin-top: -60px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .btn {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
  }

  /* Feature-Card full-width */
  .feature-card {
    position: static;
    width: calc(100% - 2rem);
    margin: -4rem auto 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .feature img {
    width: 28px;
    height: 28px;
  }
  .feature h3 {
    font-size: 1.1rem;
  }

  /* Intro einspaltig */
  .intro {
    padding: 2rem 1rem;
    border-left: none;
    background: transparent;
  }
  .intro-text {
    column-count: 1;
    column-gap: 0;
  }
}
