/* Above-the-fold (Startseite, v. a. Mobile) – klein halten, mit styles.css ergänzen */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("../assets/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("../assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-deep: #18181c;
  --bg: #222228;
  --border: rgba(255, 255, 255, 0.1);
  --fg: #f2f2f4;
  --muted: #b0b0b8;
  --accent: #d42532;
  --accent-glow: rgba(212, 37, 50, 0.28);
  --radius: 12px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 4rem;
  --max: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg-deep);
  min-height: 100vh;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(34, 34, 40, 0.92);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-link { display: flex; color: var(--fg); text-decoration: none; }
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 2.35rem;
  max-width: min(14rem, 48vw);
  aspect-ratio: 870 / 144;
  object-fit: contain;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--fg);
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle-bars span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-main {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(34, 34, 40, 0.97);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}
.nav-main a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-main .btn.nav-cta {
  padding: 0.5rem 1.15rem;
  font-size: 0.84rem;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.hero {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2rem, 4.5vw, 2.75rem);
  overflow: hidden;
}
.hero--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(24, 24, 30, 0.88) 0%, rgba(24, 24, 30, 0.72) 42%, rgba(24, 24, 30, 0.45) 100%),
    url("../assets/images/hero-background-mobile.jpg") center / cover no-repeat;
  background:
    linear-gradient(105deg, rgba(24, 24, 30, 0.88) 0%, rgba(24, 24, 30, 0.72) 42%, rgba(24, 24, 30, 0.45) 100%),
    image-set(
      url("../assets/images/hero-background-mobile.webp") type("image/webp"),
      url("../assets/images/hero-background-mobile.jpg") type("image/jpeg")
    ) center / cover no-repeat;
  z-index: 0;
}
@media (min-width: 52.01rem) {
  .hero--visual::before {
    background:
      linear-gradient(105deg, rgba(24, 24, 30, 0.88) 0%, rgba(24, 24, 30, 0.72) 42%, rgba(24, 24, 30, 0.45) 100%),
      image-set(
        url("../assets/images/hero-background.webp") type("image/webp"),
        url("../assets/images/hero-background.jpg") type("image/jpeg")
      ) center / cover no-repeat;
  }
}
.hero--visual > .wrap { position: relative; z-index: 1; }
.hero-stack { display: grid; gap: 1.5rem; }
.section-title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 800;
}
.hero-copy .section-title { margin-bottom: 0.65rem; }
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 58ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.hero-solution-grid { display: grid; gap: 0.75rem; }
@media (min-width: 40rem) {
  .hero-solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .hero-solution-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.hero-solution-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.05rem;
  height: 100%;
}
.hero-solution-problem {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.hero-solution-card h2 { margin: 0 0 0.4rem; font-size: 0.98rem; line-height: 1.25; }
.hero-solution-card p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 52rem) {
  .nav-toggle { display: flex; }
}

@media (min-width: 52.01rem) {
  .nav-main {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    background: transparent;
    border: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-main a { padding: 0; border: none; }
}
