/* ===========================================================
   K.G. – Startbereich „Bühnenlicht“ (seit 14.11.2026)
   Vorlage: /root/seo-optimierung/kg-hero-referenz.html (Teil 1 Startseite, Teil 2 Unterseiten).
   Reines CSS, keine Bilder, kein JavaScript. Animiert werden nur transform und opacity.
   Schriften: die lokal gehosteten (Big Shoulders 800 statt 900, Inter/Poppins der Seite).
   Breakpoints wie die Seite: Handy ≤767 px · Tablet 768–921 px (Astra-Handykopf, 179 px) · PC ≥922 px.
   =========================================================== */

/* ---------- Licht-Rig: Traverse, Scheinwerfer, Lichtkegel, Nebel ---------- */
/* --kgl-top = Abstand der Traverse von der Oberkante des Rigs (unter der Menüzeile bzw. Kopfzeile) */
.kgl-rig{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;overflow:hidden;pointer-events:none;--kgl-top:0px}
.kgl-rig>i{position:absolute;display:block;font-style:normal}
.kgl-truss{top:var(--kgl-top);left:8%;right:8%;height:12px;box-sizing:border-box;z-index:3;
  border-top:1px solid rgba(232,240,246,.16);border-bottom:1px solid rgba(232,240,246,.16);
  background:repeating-linear-gradient(60deg,rgba(232,240,246,.11) 0 1px,transparent 1px 12px),
             repeating-linear-gradient(-60deg,rgba(232,240,246,.11) 0 1px,transparent 1px 12px)}
.kgl-fix{top:calc(var(--kgl-top) + 12px);width:22px;height:15px;margin-left:-11px;z-index:3;
  border-radius:4px 4px 9px 9px;background:#121A24;box-shadow:inset 0 0 0 1px rgba(232,240,246,.14)}
.kgl-fix::after{content:"";position:absolute;left:50%;bottom:-3px;width:10px;height:5px;margin-left:-5px;border-radius:50%;
  background:var(--c);box-shadow:0 0 14px 4px var(--c)}
.kgl-beam{top:calc(var(--kgl-top) + 26px);width:560px;height:980px;z-index:1;transform-origin:50% 0;
  transform:translateX(-50%) rotate(var(--from));filter:blur(10px);mix-blend-mode:screen;opacity:.6;will-change:transform;
  animation:kgl-sweep var(--dur) ease-in-out var(--delay) infinite alternate}
.kgl-beam>b{display:block;width:100%;height:100%;clip-path:polygon(47% 0,53% 0,100% 100%,0 100%);
  background:linear-gradient(180deg,var(--ca) 0%,var(--cb) 48%,transparent 80%)}
/* Türkis (#00E5FF) und Violett (#7C5CFF); Anteile wie color-mix() der Vorlage */
.kgl-1,.kgl-3,.kgl-5{--c:#00E5FF;--ca:rgba(0,229,255,.6);--cb:rgba(0,229,255,.18)}
.kgl-2,.kgl-4{--c:#7C5CFF;--ca:rgba(124,92,255,.6);--cb:rgba(124,92,255,.18)}
.kgl-rig .kgl-1{left:18%;--from:-18deg;--to:8deg;--dur:11s;--delay:-3s}
.kgl-rig .kgl-2{left:34%;--from:14deg;--to:-10deg;--dur:9s;--delay:-6s}
.kgl-rig .kgl-3{left:50%;--from:-9deg;--to:11deg;--dur:12s;--delay:-1s}
.kgl-rig .kgl-4{left:66%;--from:12deg;--to:-14deg;--dur:10s;--delay:-4s}
.kgl-rig .kgl-5{left:82%;--from:-6deg;--to:18deg;--dur:13s;--delay:-7s}
.kgl-haze{left:-10%;right:-10%;bottom:-8%;height:72%;z-index:0;filter:blur(24px);
  background:radial-gradient(ellipse 40% 55% at 30% 70%,rgba(0,229,255,.15),transparent 70%),
             radial-gradient(ellipse 45% 50% at 72% 78%,rgba(124,92,255,.13),transparent 70%);
  animation:kgl-drift 22s ease-in-out infinite alternate}
@keyframes kgl-sweep{from{transform:translateX(-50%) rotate(var(--from))}to{transform:translateX(-50%) rotate(var(--to))}}
@keyframes kgl-drift{from{transform:translateX(-3%)}to{transform:translateX(3%)}}

/* =========================================================== Teil 1: Startseite */
.kg-home .kgl-stage{isolation:isolate;justify-content:center;background:none;border-bottom:0;box-shadow:none}
/* sanfter Übergang nach unten statt Kante */
.kg-home .kgl-stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:140px;z-index:3;pointer-events:none;
  background:linear-gradient(180deg,rgba(10,14,20,0),var(--bg,#0a0e14))}

/* Schriftzug „TON LICHT VERLEIH“ (bleibt ein <p>) */
.kg-home .kgl-stage .kgh-title{position:relative;z-index:4;margin:0;display:flex;flex-direction:row;align-items:stretch;justify-content:center;gap:.26em;
  font-weight:800;text-transform:uppercase;letter-spacing:.005em;line-height:.86;
  font-size:clamp(96px,min(11.5vw,18svh),176px)!important;animation:none}
.kg-home .kgl-stage .kgh-title>span:not(.kgl-glint){display:block;
  background:linear-gradient(180deg,#fff 0%,#E3FCFF 40%,#00E5FF 100%);-webkit-background-clip:text;background-clip:text;
  filter:drop-shadow(0 0 26px rgba(0,229,255,.38))}
/* Lichtschimmer: ein weicher Lichtstreifen läuft über den Schriftzug.
   Nur transform: das Fenster wandert nach rechts, der (deko-)Text darin gleich weit zurück – er steht also still
   und deckt sich genau mit dem echten Schriftzug. Der Deko-Text kommt aus CSS (nicht im HTML, aria-hidden). */
.kg-home .kgl-stage .kgh-title>.kgl-glint{position:absolute;top:-.12em;bottom:-.12em;left:0;width:24%;overflow:hidden;
  background:none;padding:0;margin:0;filter:none;
  -webkit-mask-image:linear-gradient(100deg,transparent 12%,#000 50%,transparent 88%);mask-image:linear-gradient(100deg,transparent 12%,#000 50%,transparent 88%);
  transform:translateX(-100%);animation:kgl-glint 8s ease-in-out infinite}
.kgl-glint>span{position:absolute;top:.12em;bottom:.12em;left:0;width:416.667%;display:flex;flex-direction:row;align-items:stretch;justify-content:center;gap:.26em;
  transform:translateX(24%);animation:kgl-glint-in 8s ease-in-out infinite}
.kgl-glint i{display:block;font-style:normal;color:rgba(255,255,255,.95)!important;-webkit-text-fill-color:rgba(255,255,255,.95);
  padding-top:.16em;margin-top:-.16em}
.kgl-glint i:nth-child(1)::before{content:"Ton"}
.kgl-glint i:nth-child(2)::before{content:"Licht"}
.kgl-glint i:nth-child(3)::before{content:"Verleih"}
@keyframes kgl-glint{0%{transform:translateX(-100%)}30%,100%{transform:translateX(416.667%)}}
@keyframes kgl-glint-in{0%{transform:translateX(24%)}30%,100%{transform:translateX(-100%)}}

/* Bühnenkante mit Equalizer und Spiegelung (Spiegelung nur Chrome/Safari) */
.kgl-eq{position:relative;z-index:4;width:min(900px,74vw);height:64px;margin-top:12px;display:flex;align-items:flex-end;justify-content:space-between;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);
  -webkit-box-reflect:below 3px linear-gradient(transparent 35%,rgba(255,255,255,.22))}
.kgl-eq::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#00E5FF;box-shadow:0 0 14px 1px #00E5FF}
.kgl-eq>i{display:block;width:3px;height:100%;border-radius:2px 2px 0 0;background:linear-gradient(0deg,#00E5FF,rgba(0,229,255,.18));
  transform-origin:50% 100%;transform:scaleY(calc(var(--hi,.8) * .7));opacity:.85;
  animation:kgl-eq var(--d,1.1s) ease-in-out var(--dl,0s) infinite alternate}
.kgl-eq>i:nth-child(5n+1){--hi:.55;--d:1.3s}
.kgl-eq>i:nth-child(5n+2){--hi:.92;--d:.9s;--dl:-.3s}
.kgl-eq>i:nth-child(5n+3){--hi:.7;--d:1.1s;--dl:-.6s}
.kgl-eq>i:nth-child(5n+4){--hi:1;--d:.8s;--dl:-.2s}
.kgl-eq>i:nth-child(5n){--hi:.45;--d:1.5s;--dl:-.9s}
.kgl-eq>i:nth-child(7n){--hi:.85;--d:1.05s}
.kgl-eq>i:nth-child(11n){--hi:.38}
.kgl-eq>i:nth-child(-n+9),.kgl-eq>i:nth-last-child(-n+9){height:60%}
.kgl-eq>i:nth-child(-n+4),.kgl-eq>i:nth-last-child(-n+4){height:32%}
@keyframes kgl-eq{from{transform:scaleY(.12)}to{transform:scaleY(var(--hi,.9))}}

/* H1, Text, Buttons (Texte unverändert). Textfarbe #C2CDD7 statt #B4C2CE der Vorlage:
   so bleibt der Kontrast auch unter einem Lichtkegel bei 360 px über 4,5:1 */
.kg-home .kgl-stage .kgh-lead{position:relative;z-index:4;width:100%;max-width:1200px;margin:0;display:flex;flex-direction:column;align-items:center}
.kg-home .kgl-stage .kgh-h1{margin:46px 0 0!important;font-weight:800!important;letter-spacing:.05em;font-size:32px!important;line-height:1.15!important;
  color:#F4F8FB!important;text-wrap:balance}
.kg-home .kgl-stage .kgh-lead p{margin:16px 0 0;max-width:660px;font-size:18px;line-height:1.65;color:#C2CDD7!important;text-wrap:pretty}
.kg-home .kgl-stage .kgh-actions{margin-top:30px;gap:14px;justify-content:center;flex-wrap:wrap}
.kg-home .kgl-stage .kgh-btn{display:inline-flex;align-items:center;justify-content:center;height:52px;padding:0 30px;box-sizing:border-box;
  font-size:16px;font-weight:600;line-height:1}
.kg-home .kgl-stage .kgh-btn.is-primary{box-shadow:0 10px 30px -10px rgba(0,229,255,.7)}
.kg-home .kgl-stage .kgh-btn:not(.is-primary){background:transparent;border-color:rgba(232,240,246,.32);color:#E8F0F6!important}

/* PC: Kopfzeile liegt über der Bühne (312 px), die Traverse hängt unter der Menüzeile (80 px) */
@media(min-width:922px){
  .kg-home .kgl-stage{min-height:100vh;min-height:100svh;padding:292px 24px 72px}
  .kgl-stage .kgl-rig{--kgl-top:80px}
}
/* Tablet: Kopfzeile steht über der Bühne (179 px) */
@media(min-width:768px) and (max-width:921px){
  .kg-home .kgl-stage{min-height:calc(100vh - 179px);min-height:calc(100svh - 179px);padding:96px 24px 64px}
}

/* ---------- Handy (≤767 px): Schriftzug dreizeilig, Bühne = erster Bildschirm unter der Kopfzeile (103 px) ---------- */
@media(max-width:767px){
  .kg-home .kgl-stage{min-height:calc(100vh - 103px);min-height:calc(100svh - 103px);padding:clamp(44px,8svh,76px) 20px 32px}
  .kgl-rig .kgl-truss{left:4%;right:4%;height:10px}
  .kgl-rig .kgl-fix{top:calc(var(--kgl-top) + 10px)}
  .kgl-rig .kgl-beam{top:calc(var(--kgl-top) + 23px);width:300px;height:780px}
  .kgl-rig .kgl-2,.kgl-rig .kgl-4{display:none}
  .kgl-rig .kgl-1{left:20%}
  .kgl-rig .kgl-5{left:80%}
  .kg-home .kgl-stage .kgh-title{flex-direction:column;align-items:center;gap:0;line-height:.88;font-size:min(19vw,9svh,84px)!important}
  .kgl-glint>span{flex-direction:column;align-items:center;gap:0}
  .kgl-eq{width:86vw;height:clamp(30px,5.5svh,46px);margin-top:10px}
  .kgl-eq>i{width:2px}
  .kg-home .kgl-stage .kgh-h1{margin-top:clamp(16px,3.4svh,30px)!important;font-size:22px!important;letter-spacing:.04em}
  .kg-home .kgl-stage .kgh-lead p{margin-top:12px;font-size:15.5px;line-height:1.6}
  .kg-home .kgl-stage .kgh-actions{margin-top:clamp(16px,3svh,24px);width:100%;flex-wrap:nowrap;gap:10px}
  .kg-home .kgl-stage .kgh-btn{flex:1 1 0;height:50px;padding:0 12px;font-size:15px}
}

/* =========================================================== Teil 2: Unterseiten (ruhige Variante) */
/* Rig liegt oben auf der Seite hinter Kopfzeile und Einstieg; Traverse unter der Menüzeile (PC) bzw. Kopfzeile */
.kgl-rig.kgl-sub{bottom:auto;height:calc(var(--kgl-top) + 690px);
  -webkit-mask-image:linear-gradient(180deg,#000 62%,transparent);mask-image:linear-gradient(180deg,#000 62%,transparent)}
.kgl-sub .kgl-beam{height:620px;opacity:.42}
body.kgl-sub-on .kg-site-rig{display:none!important}
@media(min-width:922px){.kgl-rig.kgl-sub{--kgl-top:80px}}
@media(min-width:768px) and (max-width:921px){.kgl-rig.kgl-sub{--kgl-top:179px}}
@media(max-width:767px){
  .kgl-rig.kgl-sub{--kgl-top:103px;height:calc(var(--kgl-top) + 500px)}
  .kgl-sub .kgl-beam{height:460px}
}
/* Unter 922 px steht die Traverse direkt über dem Inhalt: Platz für Scheinwerfer lassen */
@media(max-width:921px){body.kgl-sub-on #primary{padding-top:52px!important}}

/* Einstieg (Kennzeile, H1, Text) wie in der Vorlage – auch Impressum/Datenschutz (Seitentitel);
   Geräteseiten behalten ihren zweispaltigen Einstieg */
body.kgl-sub-on .entry-content>:is(.kg-page-lead,.kg-lead-box) p.kg-eyebrow,
body.kgl-sub-on .kg-profile-intro p.kg-eyebrow{font-size:13px!important;letter-spacing:.18em;margin:0 0 14px!important}
body.kgl-sub-on .entry-content>:is(.kg-page-lead,.kg-lead-box) h1,
body.kgl-sub-on .kg-profile-intro h1,
body.kgl-sub-on:is(.page-id-27,.page-id-28) .entry-title{font-size:clamp(34px,4.4vw,56px)!important;letter-spacing:.05em;line-height:1.15!important;
  color:#F4F8FB!important;-webkit-text-fill-color:#F4F8FB;background:none!important;padding-top:0;text-wrap:balance}
body.kgl-sub-on .entry-content>:is(.kg-page-lead,.kg-lead-box) p:not(.kg-eyebrow),
body.kgl-sub-on .kg-profile-intro p:not(.kg-eyebrow){max-width:660px;font-size:18px!important;line-height:1.65;color:#C2CDD7!important}
@media(max-width:767px){
  body.kgl-sub-on .entry-content>:is(.kg-page-lead,.kg-lead-box) h1,body.kgl-sub-on .kg-profile-intro h1,
  body.kgl-sub-on:is(.page-id-27,.page-id-28) .entry-title{font-size:30px!important}
  body.kgl-sub-on .entry-content>:is(.kg-page-lead,.kg-lead-box) p:not(.kg-eyebrow),
  body.kgl-sub-on .kg-profile-intro p:not(.kg-eyebrow){font-size:15.5px!important;line-height:1.6}
}

/* =========================================================== Kopfzeile am Handy (alle Seiten) */
/* niedriger (179 → 103 px), Logo mittig. Das Logo-Bild hat rundum ~20 % durchsichtigen Rand:
   per negativem Rand wegnehmen – das sichtbare Logo bleibt fast so groß wie bisher (82 statt 90 px). */
@media(max-width:767px){
  #ast-mobile-header .ast-builder-grid-row{grid-template-columns:1fr auto 1fr;column-gap:10px}
  #ast-mobile-header .site-header-primary-section-right{justify-content:flex-end;min-width:0}
  #ast-mobile-header .site-branding{padding:10px 0!important}
  #ast-mobile-header .site-logo-img{padding:0!important}
  #ast-mobile-header .custom-logo-link{display:block;overflow:hidden}
  #ast-mobile-header .custom-logo{display:block;width:136px!important;max-width:none!important;margin:-28px -25px -25px!important}
  /* Kontakt-Button: schmaler, aber 44 px hoch (Tippfläche) */
  #ast-mobile-header .ast-header-button-1 .ast-custom-button{display:flex;align-items:center;min-height:44px;padding:0 15px!important;font-size:.9rem!important;line-height:1}
}

/* =========================================================== Schwebende Buttons (WhatsApp/Anruf), Startseite am Handy */
/* Sie würden sonst „Technik mieten“ überdecken: erst nach kurzem Scrollen hereingleiten (reines CSS,
   an den Scrollweg gekoppelt; nur transform/opacity). Verborgen liegen sie rechts außerhalb des Bildschirms,
   können also nicht versehentlich angetippt werden. Browser ohne Scroll-Animation: wie bisher sichtbar. */
@supports (animation-timeline: scroll()){
  @media(max-width:767px){
    body.home .kg-fab{animation:kgl-fab-ein 1ms linear both;animation-timeline:scroll(root block);animation-range:40px 160px}
  }
  /* Bewegung reduzieren: ohne Gleiten, die Buttons erscheinen einfach */
  @media(max-width:767px) and (prefers-reduced-motion:reduce){
    body.home .kg-fab{animation-timing-function:steps(1,end)!important;animation-range:100px 101px}
  }
}
@keyframes kgl-fab-ein{from{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:none}}

/* =========================================================== Bewegung reduzieren: keine Animation */
@media(prefers-reduced-motion:reduce){
  .kgl-rig>i,.kgl-eq>i,.kg-home .kgl-stage .kgh-title>.kgl-glint,.kgl-glint>span{animation:none!important}
}
