/* ===================================================
   1. ROOT / DESIGN TOKENS
=================================================== */

:root {
  --primary-color: #d3d92b;
  --secondary-color: #75307d;
}

/* ===================================================
   2. RESET
=================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===================================================
   3. FONTS
=================================================== */

@font-face {
  font-family: "Gomme Sans";
  src:
    url("../font/349ce55d6eda477f1b18d1de8d6e7552.woff2") format("woff2"),
    url("../font/349ce55d6eda477f1b18d1de8d6e7552.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===================================================
   4. BASE / TYPOGRAPHY
=================================================== */

body {
  font-family: "Helvetica Neue", Helvetica, system-ui, sans-serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Gomme Sans", system-ui, sans-serif;
  color: var(--secondary-color);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.3;
}

.small-text {
  width: 67%;
}

/* ===================================================
   5. LAYOUT
=================================================== */

.container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section__grid {
  display: grid;
  gap: 2rem;
}

.vertical-center {
  align-self: center;
}
.flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 5rem;
}
.rellax {
  will-change: transform;
}

/* ===================================================
   6. HEADER
=================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  max-width: 275px;
}

.nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
  color: var(--secondary-color);
}

/* ===================================================
   7. HERO
=================================================== */

.hero__image {
  height: 690px;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__image_top {
  height: 600px; /* gewünschter Ausschnitt */
  overflow: hidden; /* schneidet unten ab */
}

.hero__image_top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* zeigt oberen Bereich */
}

/* ===================================================
   8. SECTIONS
=================================================== */

#problem {
  background-color: var(--primary-color);
}

#angebot {
  background-color: white;
}

/* ===================================================
   9. COMPONENTS
=================================================== */

.infobox {
  margin: 2rem 0;
  background-color: white;
  padding: 1.8rem;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25);
}

/* Buttons */

.btn {
  background-color: var(--primary-color);
  padding: 12px;
  border-radius: 12px;
}

.gradient-btn {
  background: linear-gradient(135deg, #7f5af0, #ff80ff);
  font-family: system-ui, sans-serif;
  font-weight: bold;
  color: white;
  font-size: 16px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(127, 90, 240, 0.3);
}

.gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(127, 90, 240, 0.35);
}

/* Lists */

.list {
  list-style-type: square;
  padding-left: 1rem;
}

.list li::marker {
  color: var(--secondary-color);
  font-size: 1.2em;
}

/* Images */

.technik-img {
  margin-top: 2rem;
}

/* ===================================================
   10. FOOTER
=================================================== */

.footer__nav {
  display: flex;
  gap: 20px;
}
.footer__nav li {
  text-decoration: underline;
}
.footer {
  background-color: var(--primary-color);
  padding: 1rem;
}

/* ===================================================
   11. HAMBURGER
=================================================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* ===================================================
   12. RESPONSIVE
=================================================== */

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: white;
    padding: 6rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: block;
    width: 30px;
  }

  .section__grid {
    grid-template-columns: 1fr;
  }

  .small-text {
    width: 100%;
  }
  .flex-row {
    flex-direction: column;
    gap: unset;
  }
  .rellax {
    transform: none !important;
  }
}

@media (min-width: 769px) {
  .section__grid {
    grid-template-columns: 2fr 1fr;
  }
}
