/* Levinus Makeover – Effekt-Schicht
   Liegt über den bestehenden Seiten. Logofarben (Navy, Gold) bleiben fest,
   nur der helle Ton (früher Creme) und die helle Schrift auf Dunkel sind
   Variablen. Alle Effekte hängen an html.mo und schalten sich bei
   "Bewegung reduzieren" ab. */

:root {
  --lv-navy: #202A3F;
  --lv-navy-2: #2C3754;
  --lv-navy-3: #1E2739;
  --lv-gold: #C8A45D;
  --lv-gold-hi: #D9B972;
  /* Heller Ton: Nebelblau (Standard) */
  --lv-light: #EDF1F6;
  --lv-light-rgb: 237, 241, 246;
  --lv-on-dark: #F2F5F9;
  --lv-on-dark-rgb: 242, 245, 249;
  --mo-ease: cubic-bezier(.2, .7, .2, 1);
  --mo-shadow: 0 22px 44px -22px rgba(12, 18, 32, .55);
  --mo-shadow-light: 0 18px 38px -20px rgba(32, 42, 63, .35);
}
:root[data-lv-palette="weiss"] {
  --lv-light: #FFFFFF;
  --lv-light-rgb: 255, 255, 255;
  --lv-on-dark: #F6F7FA;
  --lv-on-dark-rgb: 246, 247, 250;
}
:root[data-lv-palette="salbei"] {
  --lv-light: #ECF0EB;
  --lv-light-rgb: 236, 240, 235;
  --lv-on-dark: #F3F6F2;
  --lv-on-dark-rgb: 243, 246, 242;
}
:root[data-lv-palette="creme"] {
  --lv-light: #F5F2EA;
  --lv-light-rgb: 245, 242, 234;
  --lv-on-dark: #F5F2EA;
  --lv-on-dark-rgb: 245, 242, 234;
}

html.mo { scroll-behavior: smooth; }
html.mo ::selection { background: rgba(200, 164, 93, .35); color: inherit; }

/* ---------- Kopfzeile: Glas-Effekt, schrumpft beim Scrollen ---------- */
html.mo .lv-header {
  transition: padding .35s var(--mo-ease), margin-bottom .35s var(--mo-ease), background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
html.mo .lv-header.is-scrolled { margin-bottom: var(--mo-hdiff, 0px); }
html.mo .lv-header.mo-measure, html.mo .lv-header.mo-measure * { transition: none !important; }
html.mo .lv-header img { transition: width .35s var(--mo-ease), height .35s var(--mo-ease), transform .5s var(--mo-ease); }
html.mo .lv-header > a:hover img { transform: rotate(-8deg) scale(1.04); }
html.mo .lv-header.is-scrolled {
  background: rgba(var(--lv-light-rgb), .80) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px -18px rgba(32, 42, 63, .45);
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
html.mo .lv-header.is-scrolled img { width: 64px !important; height: 64px !important; }
@media (max-width: 768px) {
  html.mo .lv-header.is-scrolled img { width: 44px !important; height: 44px !important; }
}
html.mo .lv-nav a:not(.mo-btn) { position: relative; transition: background-color .25s, color .25s; }
html.mo .lv-nav a:not(.mo-btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--lv-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--mo-ease);
}
html.mo .lv-nav a:not(.mo-btn):hover::after,
html.mo .lv-nav a:not(.mo-btn):focus-visible::after { transform: scaleX(1); }

/* Fortschrittsbalken oben */
.mo-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--lv-gold), var(--lv-gold-hi));
  transform-origin: left; transform: scaleX(0); pointer-events: none;
}
html:not(.mo) .mo-progress, html:not(.mo) .mo-top, html:not(.mo) .mo-wave, html:not(.mo) .mo-cue { display: none !important; }


/* ---------- Dunkle Abschnitte: Lichtkegel folgt der Maus ---------- */
/* ---------- Lichtschein am Mauszeiger: überall gleich ---------- */
.mo-glow {
  position: fixed; left: 0; top: 0; z-index: 58; pointer-events: none;
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 93, .14) 0%, rgba(200, 164, 93, .06) 34%, transparent 66%);
  opacity: 0; transition: opacity .45s; will-change: transform;
}
html.mo.mo-glow-on .mo-glow { opacity: 1; }
html:not(.mo) .mo-glow { display: none; }

/* ---------- Bild-Abschnitte: Parallax-Ebene ---------- */
.mo-bg {
  position: absolute; inset: -12% 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  will-change: transform;
}
html.mo .mo-hero .mo-bg { animation: mo-kenburns 2.4s var(--mo-ease) both; }
@keyframes mo-kenburns { from { scale: 1.12; } to { scale: 1; } }
.mo-hasbg > *:not(.mo-bg):not(.mo-wave):not(.mo-cue) { position: relative; z-index: 1; }
html:not(.mo) .mo-bg { transform: none !important; inset: 0; }

/* Titelbereich der Unterseiten: wanderndes Licht */
.mo-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mo-aurora i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9; }
.mo-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -30vw; background: radial-gradient(circle, rgba(200, 164, 93, .22), transparent 65%); }
.mo-aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: -14vw; background: radial-gradient(circle, rgba(74, 98, 150, .45), transparent 65%); }
.mo-aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 38vw; bottom: -22vw; background: radial-gradient(circle, rgba(200, 164, 93, .12), transparent 65%); }
html.mo .mo-aurora i:nth-child(1) { animation: mo-float-a 16s ease-in-out infinite alternate; }
html.mo .mo-aurora i:nth-child(2) { animation: mo-float-b 19s ease-in-out infinite alternate; }
html.mo .mo-aurora i:nth-child(3) { animation: mo-float-a 23s ease-in-out infinite alternate-reverse; }
@keyframes mo-float-a { from { translate: 0 0; } to { translate: 9vw 5vw; } }
@keyframes mo-float-b { from { translate: 0 0; } to { translate: -8vw 6vw; } }
html:not(.mo) .mo-aurora { display: none; }

/* Hero: Überschrift Wort für Wort, Rest gleitet nach */
html.mo .mo-w { display: inline-block; animation: mo-rise .9s var(--mo-ease) both; animation-delay: calc(var(--d, 0) * 70ms + 150ms); }
html.mo .mo-intro { animation: mo-rise .9s var(--mo-ease) both; animation-delay: calc(var(--d, 0) * 120ms + 450ms); }
@keyframes mo-rise { from { opacity: 0; translate: 0 22px; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

.mo-cue {
  position: absolute; left: 50%; bottom: clamp(18px, 2.4vw, 34px); z-index: 3;
  width: 44px; height: 44px; margin-left: -22px; border-radius: 50%;
  border: 1.5px solid rgba(var(--lv-on-dark-rgb), .55); background: transparent;
  color: var(--lv-on-dark); cursor: pointer; display: grid; place-items: center;
  animation: mo-bob 2.2s ease-in-out infinite; transition: border-color .25s, background-color .25s;
}
.mo-cue:hover, .mo-cue:focus-visible { border-color: var(--lv-gold); background: rgba(200, 164, 93, .15); outline: none; }
@keyframes mo-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 7px; } }

/* ---------- Wellen zwischen den Abschnitten ---------- */
.mo-wave {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: 2;
  width: 100%; height: clamp(24px, 3.4vw, 52px); display: block; pointer-events: none;
}

/* ---------- Karten: anheben, Lichtpunkt, leichte Neigung ---------- */
html.mo .mo-card {
  transition: transform .45s var(--mo-ease), box-shadow .45s var(--mo-ease), border-color .35s;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
}
html.mo .mo-card.mo-rel { position: relative; }
html.mo .mo-card:hover { --ty: -6px; box-shadow: var(--mo-shadow); }
html.mo .mo-card.mo-on-light:hover { box-shadow: var(--mo-shadow-light); }
html.mo .mo-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lv-gold), transparent);
  transform: scaleX(0); transition: transform .5s var(--mo-ease);
}
html.mo .mo-card:hover::after { transform: scaleX(1); }
html.mo .mo-card > * { position: relative; z-index: 1; }
html.mo .mo-card img { transition: transform .7s var(--mo-ease), filter .5s; }
html.mo .mo-card:hover img { filter: saturate(1.08) brightness(1.04); }
html.mo .mo-zoomwrap { overflow: hidden; }
html.mo .mo-card:hover .mo-zoomwrap > img, html.mo .mo-zoomwrap:hover > img { transform: scale(1.045); }

/* Symbole in Karten und Leistungs-Kreisen */
html.mo .mo-icon { transition: transform .6s var(--mo-ease), border-color .35s, box-shadow .35s; }
html.mo .mo-iconhost:hover .mo-icon { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
html.mo .mo-iconhost:hover .mo-icon.mo-ring { border-color: var(--lv-gold) !important; box-shadow: 0 0 0 6px rgba(200, 164, 93, .12), 0 0 28px rgba(200, 164, 93, .35); }
html.mo .mo-iconhost h3 { transition: color .3s; }
html.mo .mo-iconhost:hover h3 { color: var(--lv-gold) !important; }

/* ---------- Buttons: Glanz, anheben, magnetisch ---------- */
html.mo .mo-btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--mo-ease), box-shadow .35s var(--mo-ease), background-color .25s;
  transform: translate(var(--bx, 0px), var(--by, 0px)) translateY(var(--bl, 0px));
}
html.mo .mo-btn:hover, html.mo .mo-btn:focus-visible {
  --bl: -2px; background-color: var(--lv-gold-hi) !important;
  box-shadow: 0 14px 28px -12px rgba(200, 164, 93, .7);
}
html.mo .mo-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--mo-ease);
}
html.mo .mo-btn:hover::after { left: 120%; }
html.mo .mo-btn:active { --bl: 0px; }
html.mo .mo-btn-ghost { transition: background-color .3s, color .3s, transform .35s var(--mo-ease), box-shadow .35s; }
html.mo .mo-btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(200, 164, 93, .14); }
html.mo .mo-link-arrow { transition: letter-spacing .35s var(--mo-ease), border-color .3s, color .3s; }
html.mo .mo-link-arrow:hover { letter-spacing: .02em; border-color: var(--lv-gold) !important; color: var(--lv-gold) !important; }

/* ---------- Einblenden beim Scrollen ---------- */
html.mo .mo-reveal { opacity: 0; translate: 0 22px; transition: opacity .8s var(--mo-ease), translate .8s var(--mo-ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.mo .mo-reveal.is-in { opacity: 1; translate: 0 0; }
html.mo .mo-rule { transform-origin: center; transform: scaleX(0); transition: transform 1s var(--mo-ease) .15s; }
html.mo .mo-rule.mo-rule-left { transform-origin: left; }
html.mo .mo-rule.is-in { transform: scaleX(1); }

/* ---------- FAQ ---------- */
html.mo .mo-faq-q { transition: background-color .3s, padding-left .35s var(--mo-ease); border-radius: 8px; }
html.mo .mo-faq-q:hover, html.mo .mo-faq-q:focus-visible { background-color: rgba(200, 164, 93, .08) !important; padding-left: 16px !important; outline: none; }
html.mo .mo-faq-q:hover span:first-child { color: var(--lv-gold) !important; }
html.mo .mo-faq-a { animation: mo-drop .45s var(--mo-ease); }
@keyframes mo-drop { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Formular ---------- */
html.mo main input, html.mo main textarea, html.mo main select { transition: border-color .25s, box-shadow .25s, background-color .25s; }
html.mo main input:hover, html.mo main textarea:hover, html.mo main select:hover { border-color: rgba(200, 164, 93, .6) !important; }
html.mo main input:focus, html.mo main textarea:focus, html.mo main select:focus {
  outline: none; border-color: var(--lv-gold) !important; box-shadow: 0 0 0 4px rgba(200, 164, 93, .18);
}

/* ---------- Fußzeile ---------- */
html.mo footer a { transition: color .25s, opacity .25s; }
html.mo footer a:hover { color: var(--lv-gold) !important; }
html.mo footer img[src*="ionos"] { transition: transform .4s var(--mo-ease); }
html.mo footer a:hover img[src*="ionos"] { transform: translateY(-2px) scale(1.04); }

/* ---------- Nach-oben-Knopf mit Fortschrittsring ---------- */
.mo-top {
  position: fixed; z-index: 55;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: var(--lv-navy); color: var(--lv-gold); display: grid; place-items: center;
  box-shadow: 0 12px 26px -10px rgba(12, 18, 32, .6);
  opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .35s, translate .35s var(--mo-ease), background-color .25s;
}
.mo-top.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.mo-top:hover, .mo-top:focus-visible { background: var(--lv-navy-2); outline: none; }
.mo-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mo-top .mo-ring-bg { stroke: rgba(200, 164, 93, .25); }
.mo-top .mo-ring-fg { stroke: var(--lv-gold); transition: stroke-dashoffset .1s linear; }

/* Sichtbarer Fokus für Tastatur */
html.mo a:focus-visible, html.mo button:focus-visible { outline: 2px solid var(--lv-gold); outline-offset: 3px; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html.mo *, html.mo *::before, html.mo *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.mo .mo-reveal { opacity: 1; translate: none; }
  html.mo .mo-rule { transform: none; }
}
