/* =========================================================
   CINARIO – Helles Design + Umschalter (Sonne/Mond)
   Aktiv über <html data-theme="light">
   ========================================================= */

/* ---------- Umschalter unten links ---------- */
.theme-toggle {
  position: fixed; z-index: 60;
  left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom));
  width: 78px; height: 40px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong);
  background: rgba(20, 18, 16, 0.55); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--cream);
  animation: toggle-in 0.9s var(--ease-out) 1.2s both;
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s, transform 0.3s var(--ease);
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle__knob {
  position: absolute; top: 3px; left: 3px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: transform 0.55s cubic-bezier(.6,-0.2,.25,1.3), background-color 0.5s;
}
.theme-toggle svg {
  position: relative; z-index: 1; width: 18px; height: 18px; margin: 0 10px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: color 0.4s, opacity 0.4s, transform 0.55s var(--ease);
}
.theme-toggle .i-moon { color: var(--on-cream); }
.theme-toggle .i-sun { opacity: 0.6; }
@keyframes toggle-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } to { opacity: 1; transform: none; } }

[data-theme="light"] .theme-toggle { background: rgba(255, 255, 255, 0.7); box-shadow: 0 10px 30px rgba(60, 40, 20, 0.15); }
[data-theme="light"] .theme-toggle__knob { transform: translateX(38px); box-shadow: 0 2px 8px rgba(60,40,20,0.25); }
[data-theme="light"] .theme-toggle .i-moon { color: var(--cream); opacity: 0.55; }
[data-theme="light"] .theme-toggle .i-sun { color: var(--on-cream); opacity: 1; transform: rotate(90deg); }
@media (max-width: 640px) { .theme-toggle { width: 70px; height: 36px; } .theme-toggle__knob { width: 28px; height: 28px; } [data-theme="light"] .theme-toggle__knob { transform: translateX(34px); } .theme-toggle svg { width: 16px; height: 16px; margin: 0 9px; } }

/* Weicher Übergang beim Umschalten */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition-property: background-color, background, color, border-color, fill, stroke, box-shadow, opacity, filter !important;
  transition-duration: 0.5s !important;
}

/* ---------- Farbwerte hell ---------- */
[data-theme="light"] {
  --bg: #f3eee7;
  --bg-2: #ebe4da;
  --cream: #1b1815;
  --cream-2: #4d463f;
  --muted: #8a7f75;
  --line: rgba(27, 24, 21, 0.12);
  --line-strong: rgba(27, 24, 21, 0.26);
  --panel: rgba(255, 255, 255, 0.72);
  --on-cream: #f6f1ea;
  --cream-hover: #000;
  --ghost-bg: rgba(255, 255, 255, 0.45);
  color-scheme: light;
}
[data-theme="light"] body::after { opacity: 0.035; }

/* Hero (Video) und Header über dem Video bleiben dunkel */
[data-theme="light"] .hero,
[data-theme="light"] .header:not(.is-scrolled),
[data-theme="light"] .screen,
[data-theme="light"] .phone,
[data-theme="light"] .timeline {
  --cream: #eee5da; --cream-2: #d6cbbf; --muted: #a99d91;
  --line: rgba(238, 229, 218, 0.14); --line-strong: rgba(238, 229, 218, 0.3);
  --on-cream: #171411; --cream-hover: #fff8ef; --ghost-bg: rgba(18, 17, 16, 0.25);
  color: var(--cream);
}
[data-theme="light"] .hero { background: #121110; }
[data-theme="light"] .header.is-scrolled { background: rgba(243, 238, 231, 0.82); }
[data-theme="light"] .nav-panel { background: rgba(243, 238, 231, 0.97); }

/* Logos in heller Variante (Verläufe aus #lt-…) */
[data-theme="light"] .header.is-scrolled .brand__mark path:nth-of-type(1),
[data-theme="light"] .about__svg .c-top { fill: url(#lt-n-g1); }
[data-theme="light"] .header.is-scrolled .brand__mark path:nth-of-type(2),
[data-theme="light"] .about__svg .c-bot { fill: url(#lt-n-g2); }
[data-theme="light"] .header.is-scrolled .brand__mark path:nth-of-type(3),
[data-theme="light"] .about__svg .c-strip { fill: url(#lt-n-g3); }
[data-theme="light"] .header.is-scrolled .brand__mark path:nth-of-type(4),
[data-theme="light"] .about__svg .c-tri { fill: url(#lt-n-g4); }
[data-theme="light"] .footer__logo .logo-signet path:nth-of-type(1) { fill: url(#lt-c-g1); }
[data-theme="light"] .footer__logo .logo-signet path:nth-of-type(2) { fill: url(#lt-c-g2); }
[data-theme="light"] .footer__logo .logo-signet path:nth-of-type(3) { fill: url(#lt-c-g3); }
[data-theme="light"] .footer__logo .logo-signet path:nth-of-type(4) { fill: url(#lt-c-g4); }
[data-theme="light"] .footer__logo .logo-word path { fill: #121212; stroke: #121212; }
[data-theme="light"] .footer__logo .logo-tm { fill: #121212; }
[data-theme="light"] .footer__logo .logo-sub path { fill: #2b2a27; stroke: #2b2a27; }

/* Statement */
[data-theme="light"] .statement__text .w--accent.is-lit { color: #000; text-shadow: none; }

/* Leistungen */
[data-theme="light"] .svc {
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.7), rgba(255,255,255,0) 50%), linear-gradient(160deg, #fbf8f3, #ece5db 70%);
  box-shadow: 0 -20px 60px rgba(60, 40, 20, 0.10);
  filter: brightness(calc(1 - var(--cover, 0) * 0.07));
}
[data-theme="light"] .screen, [data-theme="light"] .phone, [data-theme="light"] .timeline { box-shadow: 0 30px 60px rgba(60, 40, 20, 0.22); }

/* Ablauf */
[data-theme="light"] .step__orb { background: radial-gradient(circle at 50% 35%, #fffdf9, #ebe3d8); box-shadow: 0 18px 40px rgba(60, 40, 20, 0.12), inset 0 0 0 1px var(--line); }
[data-theme="light"] .step.is-on .step__orb { box-shadow: 0 18px 50px rgba(60, 40, 20, 0.16), 0 0 40px rgba(180, 140, 100, 0.12), inset 0 0 0 1px var(--line-strong); }
[data-theme="light"] .fill-soft { fill: rgba(27, 24, 21, 0.06); }
[data-theme="light"] .ink-soft { stroke: rgba(27, 24, 21, 0.4); }
[data-theme="light"] .s3-txt { fill: var(--cream); }
[data-theme="light"] .ablauf__fill { background: linear-gradient(90deg, rgba(27,24,21,0.15), var(--cream)); box-shadow: none; }
[data-theme="light"] .ablauf.is-vertical .ablauf__fill { background: linear-gradient(180deg, rgba(27,24,21,0.15), var(--cream)); }
[data-theme="light"] .ablauf__replay { background: rgba(255, 255, 255, 0.65); }

/* Wandtextur hinter Ablauf und Kontakt: aufgehellt */
[data-theme="light"] .ablauf::before, [data-theme="light"] .contact::before { filter: invert(1) sepia(0.35) saturate(0.6) brightness(1.06); opacity: 0.55; }

/* Über mich */
[data-theme="light"] .about__svg { filter: drop-shadow(0 30px 50px rgba(60, 40, 20, 0.18)); }
[data-theme="light"] .about__glow { display: none; }
[data-theme="light"] .fact { background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 234, 0.9)); }

/* Pakete */
[data-theme="light"] .pakete::before { background: radial-gradient(closest-side, rgba(255, 255, 255, 0.8), rgba(255,255,255,0) 70%); }
[data-theme="light"] .pkg { background: linear-gradient(160deg, rgba(27,24,21,0.16), rgba(27,24,21,0.05) 40%, rgba(27,24,21,0.12)); }
[data-theme="light"] .pkg:hover { box-shadow: 0 30px 60px rgba(60, 40, 20, 0.14); }
[data-theme="light"] .pkg__inner { background: linear-gradient(170deg, #fffdfa, #f2ece3 75%); }
[data-theme="light"] .pkg--featured { background: conic-gradient(from var(--angle, 0deg), rgba(27,24,21,0.14), rgba(150, 118, 86, 0.9), rgba(27,24,21,0.14) 30%, rgba(27,24,21,0.14) 70%, rgba(150,118,86,0.7), rgba(27,24,21,0.14)); box-shadow: 0 40px 80px rgba(60, 40, 20, 0.16); }
[data-theme="light"] .pkg--featured .pkg__inner { background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.9), rgba(255,255,255,0) 60%), linear-gradient(170deg, #fffdf9, #f1e9de 75%); }
[data-theme="light"] .pkgs__custom { background: rgba(255, 255, 255, 0.6); }

/* FAQ, Kontakt, Formular */
[data-theme="light"] .faq__item summary:hover { color: #000; }
[data-theme="light"] .contact__direct a { background: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .contact__direct a:hover { background: rgba(255, 255, 255, 0.9); }
[data-theme="light"] .contact__card { background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(247, 242, 235, 0.96)); box-shadow: 0 40px 90px rgba(60, 40, 20, 0.14); }
[data-theme="light"] .field input, [data-theme="light"] .field textarea, [data-theme="light"] .field select { background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] .field input:focus, [data-theme="light"] .field textarea:focus, [data-theme="light"] .field select:focus { background: #fff; box-shadow: 0 0 0 4px rgba(27, 24, 21, 0.07); }
[data-theme="light"] .field input::placeholder, [data-theme="light"] .field textarea::placeholder { color: #a39789; }
[data-theme="light"] .select option { background: #fff; }
[data-theme="light"] .form__paket { background: rgba(27, 24, 21, 0.05); }
[data-theme="light"] .form__status.is-error { color: #b2412b; }
[data-theme="light"] .field.is-invalid input, [data-theme="light"] .field.is-invalid textarea { border-color: #c4553d; }

/* Sonstiges */
[data-theme="light"] .todo { background: rgba(255, 255, 255, 0.5); }
[data-theme="light"] .footer { background: linear-gradient(to bottom, var(--bg), #e8e1d6); }
