/* ========== Variablen ========== */

:root {
/*  --header-max-h: 650px; */
/*   --hole-d: min(100vmin, var(--header-max-h)); */
  --hole-r: 455px;
  --hole-x: 85%;
  --hole-y: 24%;
  --bg-pillar: #ffffff;
  --brand-color: #1e4d2b;
  --menu-active: #c9823a;
  --sm-hamburger-bg: #eee;
}

/* ========== Header-Bühne ========== */

.header-hero {
  position: relative;
  max-height: 650px;     /* max. Höhe für den gesamten Bereich */
  overflow: hidden;
  display: grid;
  grid-template-areas: "stack";
  align-items: stretch;
  background: var(--bg-pillar);
  overflow: hidden;      /* evtl. Überstand abschneiden */
  margin-bottom: 80px;
}

.header-hero > * {
  grid-area: stack;
}

.header-hero .hero-video {
  display: block;
  max-height: 800px;     /* Video auf max. 650px Höhe begrenzen */
  width: auto;           /* Breite proportional zur Höhe */
  margin-left: auto;     /* rechtsbündig innerhalb des Headers */
}

        /* ========== Overlay mit runder Ausstanzung ========== */

.header-hero .overlay {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  background: #fff;
  max-height: var(--header-max-h);
  -webkit-mask-image: radial-gradient(circle var(--hole-r) at var(--hole-x) var(--hole-y), transparent 0 calc(100% - 1px), black 0);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: radial-gradient(circle var(--hole-r) at var(--hole-x) var(--hole-y), transparent 0 calc(100% - 1px), black 0);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

/* Container im Overlay: unten ausrichten (Logo unter Navigation)

.header-hero .overlay > .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

/* Inhalt: Navigation oben, Logo unten */

.header-hero .overlay .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 100px;
  padding: 0;
  margin: 0;
}

/* ========== Navigation (custom Liste) ========== */

.mainnav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  letter-spacing: 0.1em;
}

/* ========== Claim (Text rechts im Kreis) ========== */

.claim {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 3px 4px rgba(0,0,0,.7);
  font-weight: 700;
  pointer-events: none;
  letter-spacing: normal;
}
.claim p {
  font-size: 60px;
  line-height: 68px;
  font-family: 'Ysabeau SC' !important;
}

.claim { opacity: 1; }

.claim.fade-out { transition: opacity 9s ease; }
.claim.fade-in  { transition: opacity 1s ease; }

.claim.is-hidden { opacity: 0; }


/* ========== Brand/Logo ========== */

.brand img {
  width: clamp(190px, 35vw, 550px);
  margin-bottom: clamp(10px, 9vw, 160px);
}

/* ========== Bootstrap-Navbar (falls genutzt) ========== */

.navbar {
  background: transparent;
}

.navbar-toggler {
  border: none;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: .25rem;
}

.navbar-nav .nav-link {
  color: #111;
  font-weight: 500;
  letter-spacing: normal;
  padding: 0.25rem 0;
  font-family: 'Ysabeau SC';
  font-size: clamp(25px, 2vw, 34px);
}

.navbar-nav:hover, .nav-link:hover {
  text-decoration: none;
}

.navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

/* ========== Navigation auf SM und kleiner komplett ausblenden (Desktop-Menü) ========== */

@media (max-width: 576px) {
  .mainnav, #mainNav, .navbar-toggler {
    display: none !important;
  }
}

/* ========== Mobile: eigenes Hamburger-Menü (SM und kleiner sichtbar) ========== */

@media (min-width: 576px) {
  #smHamburger, #smDrawer, #smScrim {
    display: none !important;
  }
}

/* Button links am Rand (fix 16px von oben) */

.sm-hamburger {
  position: absolute;
  left: 0;
  top: 16px;
  background: var(--sm-hamburger-bg);
  border: 0;
  border-radius: 6px;
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  z-index: 7;
}

.sm-hamburger:focus-visible {
  outline: 2px solid #666;
  outline-offset: 2px;
}

/* Hamburger-Striche */

.sm-hamburger-bars {
  position: relative;
  width: 22px;
  height: 2px;
  background: #333;
  display: block;
}

.sm-hamburger-bars::before, .sm-hamburger-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #333;
}

.sm-hamburger-bars::before {
  top: -7px;
}

.sm-hamburger-bars::after {
  top: 7px;
}

/* Scrim: deckend über dem Header */

.sm-scrim {
  position: absolute;
  inset: 0;
  background: var(--sm-hamburger-bg);
  z-index: 4;
  opacity: 0;
  transition: opacity 220ms ease;
}

.sm-scrim[aria-hidden="false"] {
  opacity: 1;
}

/* Drawer: nur so breit wie nötig, gleitet von links herein */

.sm-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: max-content;
  max-width: min(85vw, 420px);
  background: var(--sm-hamburger-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  z-index: 6;
  transform: translateX(-100%);
  transition: transform 320ms ease;
  will-change: transform;
  display: flex;
  align-items: flex-start;
}

.sm-drawer[data-open] {
  transform: translateX(0);
  left: 48px;
}

/* Drawer-Inhalt */

.sm-drawer-list {
  list-style: none;
  margin: 0;
  padding: clamp(16px, 4vw, 24px);
  display: grid;
  gap: clamp(0px, 0.5vw, 14px);
  background-color: transparent;
  transition: background-color 0.3s ease;
}

/* Wenn das Drawer-Element das Attribut data-open trägt */

.sm-drawer[data-open] .sm-drawer-list {
  background-color: var(--sm-hamburger-bg);
}

.sm-drawer-list a {
  display: block;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: clamp(12px, 2.5vw, 18px);
  padding: 6px 4px;
}

.sm-drawer-list a.active {
  color: var(--menu-active);
}

/* Scroll sperren, wenn Drawer offen */

.body-no-scroll {
  overflow: hidden;
}

/* ========== Breakpoints (zusammengeführt) ========== */

@media (min-width: 1401px) {
  .claim {
    right: 9rem;
  }
  .claim p {
    font-size: 60px;
    line-height: 68px;
  }
}

@media (min-width: 1201px) and (max-width: 1400px) {
  .claim {
    right: 7rem;
  }
  .claim p {
    font-size: 60px;
    line-height: 68px;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  :root {
  --hole-d: min(90vmin, var(--header-max-h));
  --hole-r: 360px;
  --hole-x: 84%;
  --hole-y: 32%;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .header-hero {
    max-height: 600px;
  }
  .header-hero .hero-video {
    max-height: 600px;
  }
  .header-hero .overlay .content {
      gap: 120px;
  }
  .claim {
    right: 5rem;
  }
  .claim p {
    font-size: 50px;
    line-height: 58px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  :root {
    --hole-d: min(88vmin, var(--header-max-h));
    --hole-r: 360px;
    --hole-x: 84%;
    --hole-y: 32%;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .header-hero {
    max-height: 550px;
  }
  .header-hero .hero-video {
    max-height: 550px;
  }
  .header-hero .overlay .container{
      max-width: 95% !important;
  }

  .header-hero .overlay .content {
      gap: 120px;
  }
  .claim {
    right: 9rem;
  }
  .claim p {
    font-size: 40px;
    line-height: 46px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  :root {
    --hole-d: min(75vmin, var(--header-max-h));
    --hole-r: 331px;
    --hole-x: 84%;
    --hole-y: 23%;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .header-hero {
    max-height: 500px;
  }
  .header-hero .hero-video {
    max-height: 450px;
  }
  .header-hero .overlay .container{
      max-width: 97% !important;
  }
  .header-hero .overlay .content {
      gap: 120px;
  }
  .claim {
    right: 11rem;
  }
  .claim p {
    font-size: 30px;
    line-height: 38px;
  }
}

@media (min-width: 361px) and (max-width: 576px) {
  :root {
    --hole-d: min(75vmin, var(--header-max-h));
    --hole-r: 200px;
    --hole-x: 91%;
    --hole-y: 21%;
  }
}

@media (min-width: 361px) and (max-width: 576px) {
  .header-hero {
    max-height: 400px;
  }
  .header-hero .hero-video {
    max-height: 255px;
  }
  .header-hero .overlay .content {
      gap: 160px;
  }
  .claim {
      top:70%;
    right: 1.5rem;
  }
  .claim p {
    font-size: 18px;
    line-height: 22px;
  }
}

@media (max-width: 360px) {
  :root {
    --hole-d: min(75vmin, var(--header-max-h));
    --hole-r: 160px;
    --hole-x: 90%;
    --hole-y: 15%;
  }
}

@media (max-width: 360px) {
  .header-hero {
    max-height: 400px;
  }
  .header-hero .hero-video {
    max-height: 200px;
  }
  .header-hero .overlay .content {
      gap: 120px;
  }
  .claim {
      top:60%;
    right: 0.75rem;
  }
  .claim p {
    font-size: 18px;
    line-height: 22px;
  }
}
}