
:root {
  --hero-text: #ffffff;
  --hero-bg-fallback: #050816;
}

/* HERO-BEREICH --------------------------------------- */

.hero-section[data-page="titlepage"] {
  position: relative;
  width: 100%;
  height: 80vh; /* feste Höhe */
  background: radial-gradient(circle at top, #020617 0%, #000 45%, #000 100%);
  color: var(--hero-text);
  overflow: hidden;
  isolation: isolate;
}

/* Wrapper für Video + Overlay + Content */
.hero-images-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Overlay über Video für Lesbarkeit + leichter Farbakzent */
.hero-images-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.85) 0%, transparent 55%),
    linear-gradient(
      120deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.65) 40%,
      rgba(0, 0, 0, 0.25) 100%
    );
  pointer-events: none;
}

/* VIDEO-HINTERGRUND ---------------------------------- */

.hero-image-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: url("./images/hintegrundweb.webp") center/cover no-repeat; /* Fallback-Bild */
}

/* TEXT / CONTENT ------------------------------------- */

.page-title {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(calc(-50% - 10vh)); /* feine optische Mitte */
  z-index: 2;
  width: 100%;
}


/* Layout-Container */
.page-title > .container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 2.2rem;
  padding-block: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}

/* TITEL & SUBTITLE ----------------------------------- */

.large-title {
  font-size: clamp(2.6rem, 5vw, 4.8rem); /* ~42–77px */
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.1rem;
  animation: hero-fade-up 0.7s ease-out forwards;
  opacity: 0;
  max-width: 34ch; /* sorgt für schöne 2 Zeilen auf größeren Screens */
}

.small-title {
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  line-height: 1.52;
  font-weight: 400;
  max-width: 72ch; /* mehr Platz für Subline */
  color: rgba(229, 231, 235, 0.96);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
  margin-bottom: 0.8rem;
  animation: hero-fade-up 0.8s ease-out forwards;
  animation-delay: 0.15s;
  opacity: 0;
}

/* CTAs ------------------------------------------------ */

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.2rem;
  animation: hero-fade-up 0.9s ease-out forwards;
  animation-delay: 0.25s;
  opacity: 0;
}

.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  will-change: transform, box-shadow;
  white-space: nowrap;
}

/* Primary CTA */
.btn-primary {
  background:
    radial-gradient(
      circle at 0% 0%,
      #ff3c00 0%,
      var(--primary, #ff6b1a) 35%,
      var(--secondary, #ffb347) 100%
    );
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

/* Secondary CTA (mit Feather-Icon) */
.btn-secondary {
  background: rgba(10, 25, 60, 0.8);
  border: 1px solid color-mix(in srgb, var(--primary, #64748b) 60%, #ffffff 40%);
  color: #e5e7eb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: color-mix(in srgb, var(--accent, #e5e7eb) 70%, #ffffff 30%);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

/* Icon im Secondary Button (Feather arrow-up-right) */
.btn-secondary .icon-arrow {
  transition: transform 0.2s ease;
  margin-left: 0.4rem;
}

.btn-secondary:hover .icon-arrow {
  transform: translate(2px, -2px) rotate(0.001deg);
}

/* ANIMATION ------------------------------------------ */

@keyframes hero-fade-up {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE: TABLET / SMALL DESKTOP ----------------- */

@media (max-width: 1100px) {
  .page-title > .container {
    max-width: 900px;
    padding-inline: 2rem;
    padding-block: 1.8rem;
  }

  .large-title {
    font-size: clamp(2.3rem, 3.4vw, 3rem);
    max-width: 32ch;
  }
}

/* 900px – kleinere Laptops --------------------------- */

@media (max-width: 900px) {
  .page-title > .container {
    text-align: left;
    align-items: flex-start;
    padding-inline: 1.7rem;
    padding-block: 1.8rem;
  }

  .large-title {
    max-width: 30ch;
  }

  .small-title {
    max-width: 52ch;
    line-height: 1.46;
  }

  .hero-cta-buttons {
    justify-content: flex-start;
    margin-top: 0.1rem;
  }
}

/* RESPONSIVE: HANDY ---------------------------------- */

@media (max-width: 600px) {
  .page-title > .container {
    padding-inline: 1.3rem;
    padding-block: 1.4rem;
    gap: 0.85rem;
    text-align: center;
    align-items: center;
  }

  .large-title {
    font-size: clamp(2.05rem, 7.3vw, 2.5rem);
    max-width: 24ch;
    text-align: center;
    line-height: 1.18;
    margin-bottom: 0.1rem;
  }

  .small-title {
    font-size: 1.02rem;
    max-width: 34ch;
    opacity: 0.97;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.44;
  }

  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.7rem;
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.3rem;
    font-size: 0.96rem;
  }

  .hero-video {
    object-position: center 30%;
  }
}

/* SEHR KLEINE / LANDSCAPE-SCREENS -------------------- */

@media (max-height: 600px) and (orientation: landscape) {
  .page-title > .container {
    gap: 0.7rem;
    padding-block: 1.2rem;
  }

  .large-title {
    font-size: clamp(1.7rem, 3.2vw, 2.1rem);
    max-width: 30ch;
  }

  .small-title {
    max-width: 42ch;
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.7rem 1.4rem;
  }
}

/* HERO BUTTON soll aussehen wie .charm-cta aus dem Header */
.btn-primary{
  /* Basis-Button */
  position:relative;
  background: var(--primary-orange, #ff7a00) !important;
  color:#fff !important;
  border:0 !important;

  /* Größe + Form */
  min-height:44px;
  padding:.6rem .9rem !important;
  border-radius: var(--radius, 12px) !important;

  /* Typo */
  font-weight:950 !important;
  letter-spacing:-0.01em !important;
  font-size: clamp(1.02rem, .98rem + .35vw, 1.16rem) !important;
  line-height:1.28;

  /* Layout */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;

  /* Hover/Active Transition */
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Glanz-Layer wie im Header-CTA */
.btn-primary::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  z-index:0;
  background: radial-gradient(
    120% 140% at 0% 0%,
    rgba(255,255,255,.22),
    rgba(255,255,255,.08) 35%,
    transparent 60%
  );
  mix-blend-mode: soft-light;
  pointer-events:none;
  opacity:.95;
}

.btn-primary > *{
  position:relative;
  z-index:1;
}

/* Hover + Active */
@media(hover:hover){
  .btn-primary:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0,0,0,.22),
                0 4px 10px rgba(0,0,0,.10);
  }
  .btn-primary:active{
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,.16),
                0 2px 6px rgba(0,0,0,.08);
  }
}

/* Focus-Ring */
.btn-primary:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.9),
    0 0 0 6px color-mix(in oklab, var(--primary-orange) 55%, transparent),
    0 12px 28px rgba(0,0,0,.22);
}
/* Sekundärer Hero-Button: gleiche Form & Größe wie .charm-cta */
.btn-secondary{
  /* Größe & Form */
  min-height:44px !important;
  padding:.6rem .9rem !important;
  border-radius: var(--radius, 12px) !important;

  /* Typografie identisch mit charm-cta */
  font-weight:950 !important;
  letter-spacing:-0.01em !important;
  font-size: clamp(1.02rem, .98rem + .35vw, 1.16rem) !important;
  line-height:1.28 !important;

  /* Layout identisch */
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;

  /* Effekte */
  transition: transform .2s ease, box-shadow .2s ease !important;
  backdrop-filter: blur(12px);
  position:relative;
}

/* Glanz-Layer wie beim Haupt-CTA */
.btn-secondary::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  z-index:0;
  background: radial-gradient(
    120% 140% at 0% 0%,
    rgba(255,255,255,.22),
    rgba(255,255,255,.08) 35%,
    transparent 60%
  );
  mix-blend-mode: soft-light;
  pointer-events:none;
  opacity:.95;
}

.btn-secondary > *{
  position:relative;
  z-index:1;
}

/* Hover / Active – gleiche Bewegungen wie charm-cta */
@media(hover:hover){
  .btn-secondary:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0,0,0,.55),
                0 4px 10px rgba(0,0,0,.25);
  }
  .btn-secondary:active{
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,.45),
                0 2px 6px rgba(0,0,0,.2);
  }
}

/* Fokus */
.btn-secondary:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.9),
    0 0 0 6px color-mix(in oklab, var(--primary-orange, #ff7a00) 55%, transparent),
    0 12px 28px rgba(0,0,0,.22);
}

/* RESPONSIVE: HANDY ---------------------------------- */
@media (max-width: 600px) {
  .page-title > .container {
    padding-inline: 1.3rem;
    padding-block: 1.4rem;
    gap: 0.9rem;
    text-align: left;           /* statt center */
    align-items: flex-start;    /* statt center */
  }

  .large-title {
    font-size: clamp(2.05rem, 7.3vw, 2.5rem);
    max-width: 24ch;
    text-align: left;           /* statt center */
    line-height: 1.16;
    margin-bottom: 0.15rem;
  }

  .small-title {
    font-size: 1.02rem;
    max-width: 34ch;
    opacity: 0.97;
    text-align: left;           /* statt center */
    margin-bottom: 0.55rem;
    line-height: 1.44;
  }

  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.7rem;
    justify-content: flex-start; /* statt center */
    align-items: flex-start;     /* Buttons beginnen links */
    margin-top: 0.2rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;                /* volle Breite, aber linksbeginn */
    justify-content: center;
    padding: 0.95rem 1.3rem;
    font-size: 1rem;           /* etwas größer auf Mobile */
  }

  .hero-video {
    object-position: center 30%;
  }
}

/* =========================================
   HERO – MAXIMALE PROMINENZ & SCHRIFTPOWER
   ========================================= */

/* Große Hero-Headline: deutlich bolder, klarer, heller */
.hero-section[data-page="titlepage"] .large-title {
  font-size: clamp(3rem, 6vw, 5.4rem) !important; /* größer als im ganzen System */
  font-weight: 950 !important;                    /* maximale Wucht */
  letter-spacing: -0.02em !important;             /* enger = kraftvoller */
  line-height: 1.04 !important;                   /* typischer „Tech/Hero“-Look */
  color: #ffffff !important;
  text-shadow:
    0 14px 38px rgba(0,0,0,0.85),
    0 4px 14px rgba(0,0,0,0.55) !important;
}

/* Subline: etwas größer + hochwertiger */
.hero-section[data-page="titlepage"] .small-title {
  font-size: clamp(1.18rem, 1.8vw, 1.55rem) !important;
  font-weight: 480 !important;
  letter-spacing: 0.002em !important;
  line-height: 1.6 !important;
  max-width: 70ch;
  color: rgba(235, 238, 255, 0.98) !important;
  text-shadow: 0 10px 28px rgba(0,0,0,0.75) !important;
}

/* Mobile: trotzdem stark, aber gut lesbar */
@media (max-width: 600px) {
  .hero-section[data-page="titlepage"] .large-title {
    font-size: clamp(2.4rem, 9vw, 3rem) !important;
    line-height: 1.12 !important;
  }

  .hero-section[data-page="titlepage"] .small-title {
    font-size: 1.1rem !important;
    line-height: 1.45 !important;
  }
}
/* =========================================
   HERO TEXT exakt links mit Aurora-Cards bündig
   ========================================= */
@media (min-width: 600px){
/* Hero-Container nutzt denselben linken Gutter wie Aurora */
.hero-section[data-page="titlepage"] .page-title > .container {
  max-width: 1440px; /* wie zuvor, bleibt bestehen */
  padding-left: 5rem;
}

}
/* =========================================
   HERO BUTTONS - MODERN & VERGRÖSSERT
   ========================================= */

.btn-primary {
  /* Basis-Button */
  position: relative;
  background: var(--primary-orange, #ff7a00) !important;
  color: #fff !important;
  border: 0 !important;

  /* GRÖSSER: Mehr Höhe und großzügigeres Padding */
  min-height: 56px !important; 
  padding: 0.9rem 2.4rem !important; 
  border-radius: var(--radius, 16px) !important; /* Etwas weichere Ecken */

  /* TYPO: Moderner, klarer und etwas größer */
  font-weight: 800 !important; /* 800 wirkt oft etwas eleganter als 950 */
  letter-spacing: -0.015em !important;
  font-size: clamp(1.1rem, 1vw + 1rem, 1.25rem) !important;
  line-height: 1.3 !important;

  /* Layout */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;

  /* Sanftere, modernere Animation */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  
  /* Initialer, weicher Schatten & innerer Glanz */
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.3), /* Leichte obere Lichtkante */
    0 8px 24px -6px color-mix(in srgb, var(--primary-orange, #ff7a00) 50%, transparent) !important;
}

/* Dezent-moderner Glanz-Layer */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  opacity: 1;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

/* Hover + Active: Fließende Bewegungen und tiefere Schatten */
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
      inset 0 1px 1px rgba(255, 255, 255, 0.4),
      0 20px 40px -8px color-mix(in srgb, var(--primary-orange, #ff7a00) 65%, transparent) !important;
  }
  .btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
      inset 0 1px 1px rgba(255, 255, 255, 0.2),
      0 4px 12px -4px color-mix(in srgb, var(--primary-orange, #ff7a00) 50%, transparent) !important;
  }
}

/* Focus-Ring */
.btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255, 0.9),
    0 0 0 6px color-mix(in oklab, var(--primary-orange) 55%, transparent),
    0 12px 28px rgba(0,0,0, 0.22) !important;
}

/* =========================================
   SEKUNDÄRER BUTTON (Glassmorphism-Style)
   ========================================= */

.btn-secondary {
  /* Gleiche Proportionen wie Primary */
  min-height: 56px !important;
  padding: 0.9rem 2.4rem !important;
  border-radius: var(--radius, 16px) !important;

  /* Typografie identisch */
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  font-size: clamp(1.1rem, 1vw + 1rem, 1.25rem) !important;
  line-height: 1.3 !important;
  color: #fff !important; /* Klares Weiß für besseren Kontrast */

  /* Layout */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;

  /* Moderner Glass-Effekt */
  background: rgba(0, 0, 0, 0.582) !important;
  border: 1px solid rgb(100, 100, 100) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.979) !important;
}

.btn-secondary > * {
  position: relative;
  z-index: 1;
}

/* Hover / Active */
@media (hover: hover) {
  .btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5) !important;
  }
  .btn-secondary:active {
    transform: translateY(1px) scale(0.98);
    background: rgba(255, 255, 255, 0.801) !important;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.836) !important;
  }
}

/* Fokus */
.btn-secondary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgb(255, 255, 255),
    0 0 0 6px rgb(255, 255, 255),
    0 12px 28px rgb(0, 0, 0) !important;
}

/* RESPONSIVE: HANDY (Größenanpassung für Mobile) */
@media (max-width: 600px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;                
    padding: 1.1rem 1.4rem !important; /* Etwas höheres Padding auf Mobile für besseres Touch-Target */
    font-size: 1.05rem !important; /* Skaliert leicht herunter, bleibt aber sehr gut lesbar */
    /* TYPO für .btn-primary (Bitte im .btn-primary Block ersetzen) */
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  /* Font-size deutlich erhöht */
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.45rem) !important; 
  line-height: 1.3 !important;
  /* TYPO für .btn-secondary (Bitte im .btn-secondary Block ersetzen) */
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  /* Font-size identisch zum Primary-Button erhöht */
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.45rem) !important; 
  line-height: 1.3 !important;
  color: #fff !important;
  }
}/* =========================================
   HERO – MAXIMALE PROMINENZ & SCHRIFTPOWER
   ========================================= */

/* Große Hero-Headline: Deutlich größer auf Desktop */
.hero-section[data-page="titlepage"] .large-title {
  /* clamp(Minimum, Dynamisch, Maximum) - Maximum von 5.4rem auf 6.8rem erhöht */
  font-size: clamp(3.2rem, 7.5vw, 6.8rem) !important; 
  font-weight: 950 !important;                    
  letter-spacing: -0.02em !important;             
  line-height: 1.05 !important;                   
  color: #ffffff !important;
  text-shadow:
    0 14px 38px rgba(0,0,0,0.85),
    0 4px 14px rgba(0,0,0,0.55) !important;
}

/* RESPONSIVE: HANDY (Größenanpassung für Mobile) */
@media (max-width: 600px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;                
    padding: 1.15rem 1.4rem !important; 
    /* Text auf dem Smartphone ebenfalls vergrößert */
    font-size: 1.18rem !important; 
  }
  
  .hero-section[data-page="titlepage"] .large-title {
    /* Hält die Überschrift auf Mobile stabil */
    font-size: clamp(2.6rem, 10vw, 3.2rem) !important;
    line-height: 1.12 !important;
  }
}
