:root {
  --red: #d4142a;
  --red-dark: #a30d1f;
  --red-light: #ff4f67;
  --black: #0d0f12;
  --black-2: #171a1f;
  --text: #2c3138;
  --muted: #6e7684;
  --line: rgba(15, 20, 28, 0.1);
  --white: #ffffff;
  --max-width: 1280px;
  --transition: 0.3s ease;

  --logo-h: 150px;
  --logo-h-mobile: 84px;
}

/* ===== Basis ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #ffffff;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container {
  width: min(94%, var(--max-width));
  margin: 0 auto;
}

/* ===== Topbar ===== */
.topbar {
  background: linear-gradient(90deg, var(--black), var(--black-2));
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}
.topbar-inner {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
}
.topbar-left,
.topbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.topbar span { white-space: nowrap; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}
.header-grid {
  position: relative;
  padding: 6px 0 10px;
}
.header-row-top {
  position: relative;
  min-height: var(--logo-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
}
.header-row-bottom {
  display: flex;
  justify-content: center;
}

/* ===== Logo ===== */
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.logo-wrap {
  height: var(--logo-h);
  width: auto;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.brand-logo {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ===== Desktop Navigation ===== */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  min-width: 0;
}
.nav-links a {
  font-weight: 600;
  color: var(--black);
  position: relative;
  white-space: nowrap;
  font-size: clamp(.92rem, 1vw, 1rem);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}
.cta-top { margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 22px rgba(212,20,42,.35);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.btn-outline:hover {
  background: #fff;
  color: var(--black);
}

/* ===== Hamburger Button ===== */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 46px;
  height: 46px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 3px 0;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  color: #fff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(120deg, rgba(10,12,16,.90), rgba(16,20,28,.84)),
    url("../Bilder/hero.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(255,79,103,0.24), transparent 26%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 30px;
  align-items: center;
  padding: 40px 0 72px;
}
.hero-copy {
  max-width: 100%;
  transform: translateY(-28px);
}
.eyebrow {
  display: inline-block;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(1.35rem, 4.2vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  max-width: 24ch;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero-copy p {
  color: rgba(255,255,255,0.86);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  max-width: 62ch;
  margin-bottom: 24px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.hero-card h3 { margin-bottom: 10px; color: #fff; }
.focus-image-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.2);
}
.focus-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform .6s ease;
}
.focus-image-wrap:hover .focus-image { transform: scale(1.06); }
.hero-card ul { padding-left: 18px; color: rgba(255,255,255,0.9); }
.hero-card li { margin: 8px 0; }

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVES MENÜ — EIN EINZIGER BREAKPOINT: 900px
   Klasse: .mobile-open (passend zu foben.js)
===================================================== */
@media (max-width: 900px) {
  .topbar-right { display: none; }

  .header-row-top {
    grid-template-columns: minmax(0, 1fr) 46px;
    column-gap: 12px;
    min-height: var(--logo-h-mobile);
  }

  .brand {
    grid-column: 1;
    min-width: 0;
    overflow: hidden;
  }

  .logo-wrap {
    height: var(--logo-h-mobile);
    padding: 6px 10px;
    border-radius: 10px;
  }

  .brand-logo {
    max-height: 100%;
    max-width: 100%;
  }

  .nav-actions {
    grid-column: 2;
    width: 46px;
    min-width: 46px;
    justify-content: flex-end;
  }

  .cta-top { display: none; }

  .menu-toggle { display: flex; }

  /* Geschlossenes Menü */
  .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 2000;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 10px 18px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0,0,0,.12);
  }

  /* Geöffnetes Menü — Klasse wird von foben.js gesetzt */
  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f2;
    font-size: 1rem;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }

  .hero { min-height: auto; }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 34px 0 62px;
  }
  .hero-copy { transform: translateY(0); }
  .hero-title {
    font-size: clamp(1.45rem, 8vw, 2.4rem);
    max-width: 100%;
  }
  .focus-image { height: 240px; }
}

/* ===== Kleine Smartphones ===== */
@media (max-width: 480px) {
  .container { width: min(100% - 28px, var(--max-width)); }

  .header-row-top {
    grid-template-columns: minmax(0, 1fr) 42px;
    column-gap: 10px;
  }
  .logo-wrap { height: 68px; }
  .nav-actions { width: 42px; min-width: 42px; }
  .menu-toggle { width: 42px; height: 42px; }
  .menu-toggle span { width: 21px; }

  .hero-grid { padding: 44px 0 48px; }
  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-buttons .btn { width: 100%; }
  .focus-image { height: 205px; }
}

/* ===== Reduzierte Bewegung ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}






/* =====================================================
   NEUES RESPONSIVES MOBILE-MENÜ
   Dieser Block steht ganz am Ende der CSS-Datei.
===================================================== */

/* Desktop: Menübutton ausblenden */
#mobileMenuButton.mobile-menu-button {
  display: none;
}

/* Tablet und Smartphone */
@media screen and (max-width: 900px) {
  .site-header .header-row-top {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 52px !important;
    align-items: center !important;
    column-gap: 12px !important;
    width: 100% !important;
    min-height: 96px !important;
  }

  .site-header .brand {
    grid-column: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .site-header .logo-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 84px !important;
    padding: 6px 10px !important;
    overflow: hidden !important;
  }

  .site-header .brand-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 70px !important;
    object-fit: contain !important;
  }

  .site-header .nav-actions {
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 52px !important;
    min-width: 52px !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  .site-header .cta-top {
    display: none !important;
  }

  /*
    Der Button wird hier mit ID und !important
    garantiert sichtbar gemacht.
  */
  #mobileMenuButton.mobile-menu-button {
    position: relative !important;
    z-index: 99999 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;

    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 8px !important;

    visibility: visible !important;
    opacity: 1 !important;

    border: 2px solid #111111 !important;
    border-radius: 10px !important;
    background: #ffffff !important;

    cursor: pointer !important;
  }

  #mobileMenuButton.mobile-menu-button span {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    min-height: 3px !important;
    margin: 3px 0 !important;

    visibility: visible !important;
    opacity: 1 !important;

    background: #111111 !important;
    border-radius: 3px !important;
  }

  /* Mobile Navigation geschlossen */
  .site-header .nav-links {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 99998 !important;

    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 12px 18px !important;

    background: #ffffff !important;
    border: 1px solid #d7dce1 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18) !important;
  }

  /* Mobile Navigation geöffnet */
  .site-header .nav-links.mobile-navigation-open {
    display: flex !important;
  }

  .site-header .nav-links a {
    display: block !important;
    width: 100% !important;
    padding: 15px 4px !important;

    color: #111111 !important;
    font-size: 1rem !important;
    white-space: normal !important;

    border-bottom: 1px solid #edf0f2 !important;
  }

  .site-header .nav-links a:last-child {
    border-bottom: none !important;
  }

  .site-header .nav-links a::after {
    display: none !important;
  }

  /* Hamburger wird zu X */
  #mobileMenuButton.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg) !important;
  }

  #mobileMenuButton.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0 !important;
  }

  #mobileMenuButton.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg) !important;
  }
}

/* Kleine Smartphones */
@media screen and (max-width: 480px) {
  .site-header .header-row-top {
    grid-template-columns: minmax(0, 1fr) 46px !important;
    min-height: 80px !important;
    column-gap: 8px !important;
  }

  .site-header .logo-wrap {
    height: 68px !important;
    padding: 5px 8px !important;
  }

  .site-header .brand-logo {
    max-height: 56px !important;
  }

  .site-header .nav-actions {
    width: 46px !important;
    min-width: 46px !important;
  }

  #mobileMenuButton.mobile-menu-button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  #mobileMenuButton.mobile-menu-button span {
    width: 22px !important;
  }
}





/* =====================================================
   MENÜ-HOVER, KLICK UND AKTIVER MENÜPUNKT
===================================================== */

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--black);
  font-weight: 700;
  border-radius: 6px;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

/* Roter Unterstrich */
.nav-links a::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

/* Maus darüber */
.nav-links a:hover {
  color: var(--red);
  background: rgba(212, 20, 42, 0.06);
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Während des Mausklicks */
.nav-links a:active {
  color: var(--red-dark);
  background: rgba(212, 20, 42, 0.14);
  transform: scale(0.96);
}

/* Angeclickter/aktiver Menüpunkt */
.nav-links a.menu-active {
  color: var(--red);
  background: rgba(212, 20, 42, 0.08);
}

.nav-links a.menu-active::after {
  transform: scaleX(1);
}

/* Tastatur-Fokus */
.nav-links a:focus-visible {
  outline: 3px solid rgba(212, 20, 42, 0.3);
  outline-offset: 3px;
  color: var(--red);
}

/* Mobile-Menü */
@media (max-width: 900px) {
  .nav-links a {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 13px 12px;
    border-radius: 8px;
  }

  .nav-links a::after {
    right: 12px;
    bottom: 3px;
    left: 12px;
  }

  .nav-links a:hover {
    background: rgba(212, 20, 42, 0.09);
    transform: translateX(4px);
  }

  .nav-links a.menu-active {
    background: rgba(212, 20, 42, 0.12);
  }
}









/* =====================================================
   MOBILE-MENÜBUTTON – 
===================================================== */

@media screen and (max-width: 900px) {
  #mobileMenuButton.mobile-menu-button {
    background: #e3e5e8 !important;
    border-color: #d4142a !important;
    box-shadow: 0 4px 12px rgba(212, 20, 42, 0.22) !important;
  }

  #mobileMenuButton.mobile-menu-button span {
    background: #d4142a !important;
  }

  #mobileMenuButton.mobile-menu-button:hover {
    background: #d4142a !important;
    border-color: #a30d1f !important;
  }

  #mobileMenuButton.mobile-menu-button:hover span {
    background: #ffffff !important;
  }

  #mobileMenuButton.mobile-menu-button:active {
    background: #bfc4c9 !important;
    border-color: #a30d1f !important;
  }

  #mobileMenuButton.mobile-menu-button:active span {
    background: #d4142a !important;
  }

  #mobileMenuButton.mobile-menu-button:focus-visible {
    outline: 3px solid rgba(212, 20, 42, 0.4) !important;
    outline-offset: 3px !important;
  }

  /* Geöffneter Zustand */
  #mobileMenuButton.mobile-menu-button.is-open {
    background: #d4142a !important;
    border-color: #a30d1f !important;
  }

  #mobileMenuButton.mobile-menu-button.is-open span {
    background: #ffffff !important;
  }
}