/* ==========================================================================
   PREMIUM POLISH — Detail-Layer für Tesla-Niveau Wahrnehmung
   Created: 2026-04-30
   Author : Premium-Polish-Agent (Claude)
   Notes  : Additive only. Keine Umbauten. Respektiert prefers-reduced-motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Smooth scroll global (Senior-tauglich)
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   2. Selektion in Sun-Gold
   -------------------------------------------------------------------------- */
::selection      { background: rgba(255, 182, 39, 0.35); color: #fff; }
::-moz-selection { background: rgba(255, 182, 39, 0.35); color: #fff; }

/* --------------------------------------------------------------------------
   3. Premium Focus-Ring (Gold statt Browser-Blau)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--pt-brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset 0.15s;
}
button:focus-visible,
a:focus-visible { outline-offset: 4px; }

/* --------------------------------------------------------------------------
   4. Smooth Hover für ALLE Links
   -------------------------------------------------------------------------- */
a { transition: color 0.2s ease, opacity 0.2s ease; }

/* --------------------------------------------------------------------------
   5. Premium Letter-Spacing für Display-Headings
   -------------------------------------------------------------------------- */
h1, h2 { letter-spacing: -0.025em; }
h1     { letter-spacing: -0.035em; }

/* --------------------------------------------------------------------------
   6. Subtle Image-Loading Fade-In
   -------------------------------------------------------------------------- */
img { transition: opacity 0.4s; }
img:not([src]),
img[src=""] { opacity: 0; }

/* --------------------------------------------------------------------------
   7. Premium Code/Mono Style
   -------------------------------------------------------------------------- */
code, pre, kbd, samp {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 182, 39, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* --------------------------------------------------------------------------
   8. Glassmorphism-Token .glass-premium
   -------------------------------------------------------------------------- */
.glass-premium {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 182, 39, 0.03) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 182, 39, 0.18);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   9. Premium Button .btn-glow (mit Shimmer)
   -------------------------------------------------------------------------- */
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  color: #0B0F14;
  font-weight: 800;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.3s;
  box-shadow:
    0 8px 32px rgba(255, 182, 39, 0.35),
    0 0 0 1px rgba(255, 182, 39, 0.2);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 48px rgba(255, 182, 39, 0.5),
    0 0 0 1px rgba(255, 182, 39, 0.4);
}
.btn-glow:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}
.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: btnShimmer 3s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none;
}
@keyframes btnShimmer {
  0%, 100% { background-position: 0%   50%; }
  50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-glow::before { animation: none; }
}

/* --------------------------------------------------------------------------
   10. Card-Hover-Lift
   -------------------------------------------------------------------------- */
.lift-on-hover {
  transition:
    transform 0.3s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.3s;
}
.lift-on-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   11. Section-Spacing für Anchor-Sticky-Header
   -------------------------------------------------------------------------- */
section { scroll-margin-top: 100px; }

/* --------------------------------------------------------------------------
   12. Photo-Frame
   -------------------------------------------------------------------------- */
.photo-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   13. Premium Badge
   -------------------------------------------------------------------------- */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg,
    rgba(255, 182, 39, 0.18),
    rgba(255, 126, 41, 0.12));
  border: 1px solid rgba(255, 182, 39, 0.32);
  color: var(--pt-brand-blue);
}

/* --------------------------------------------------------------------------
   14. Gradient Divider
   -------------------------------------------------------------------------- */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 182, 39, 0.4),
    transparent);
  margin: 3rem auto;
  max-width: 600px;
  border: 0;
}

/* --------------------------------------------------------------------------
   15. Premium Quote/Testimonial
   -------------------------------------------------------------------------- */
blockquote.premium {
  border-left: 4px solid var(--pt-brand-blue);
  padding-left: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
}
blockquote.premium cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--pt-brand-blue);
  font-style: normal;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. Stagger-Reveal (für ul.stagger / .stagger-list / .stagger-child)
   -------------------------------------------------------------------------- */
.stagger-list li,
ul.stagger li,
ol.stagger li,
.stagger-child {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s;
}
.stagger-list li.staggered-in,
ul.stagger li.staggered-in,
ol.stagger li.staggered-in,
.stagger-child.staggered-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .stagger-list li,
  ul.stagger li,
  ol.stagger li,
  .stagger-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   17. Form-Field Live-Validation Feedback
   -------------------------------------------------------------------------- */
input.field-valid,
textarea.field-valid,
select.field-valid {
  border-color: #34D399 !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15) !important;
}
input.field-invalid,
textarea.field-invalid,
select.field-invalid {
  border-color: #F87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

/* --------------------------------------------------------------------------
   18. Hero Primary-Button: subtle Float
   -------------------------------------------------------------------------- */
.hero-section .btn-primary,
.wow-hero .btn-primary {
  animation: heroBtnFloat 4s ease-in-out infinite;
}
@keyframes heroBtnFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-section .btn-primary,
  .wow-hero .btn-primary { animation: none; }
}

/* --------------------------------------------------------------------------
   19. Counter-Done Glow-Pulse (wenn Zielwert erreicht)
   -------------------------------------------------------------------------- */
.wow-counter.counter-done,
.wow-counter-num.counter-done {
  animation: counterDone 0.8s ease-out;
}
@keyframes counterDone {
  0%   { text-shadow: 0 0 0    transparent; }
  50%  { text-shadow: 0 0 32px rgba(255, 182, 39, 0.8); }
  100% { text-shadow: 0 0 0    transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .wow-counter.counter-done,
  .wow-counter-num.counter-done { animation: none; }
}

/* --------------------------------------------------------------------------
   20. Skip-Link Premium Slide-Down
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  background: var(--pt-brand-blue);
  color: #0B0F14;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 12px 12px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
  z-index: 100001;
  /* Override the inline-style fallback in index.html so this wins */
  top: 0 !important;
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

/* --------------------------------------------------------------------------
   21. Hero-Aurora Mouse-Parallax (CSS-Variablen vom JS gesetzt)
   -------------------------------------------------------------------------- */
.hero-aurora {
  --mx: 0px;
  --my: 0px;
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
  transform: translate3d(var(--mx), var(--my), 0);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora { transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   22. Footer Premium-Akzent
   -------------------------------------------------------------------------- */
.footer-premium {
  position: relative;
}
.footer-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 182, 39, 0.4),
    transparent);
}
.footer-premium a {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.footer-premium a:hover {
  color: var(--pt-brand-blue);
  text-shadow: 0 0 16px rgba(255, 182, 39, 0.4);
}
.footer-premium .social-icon,
.footer-premium [class*="social"] svg,
.footer-premium [class*="social"] img {
  transition: transform 0.2s ease, filter 0.25s ease;
}
.footer-premium .social-icon:hover,
.footer-premium [class*="social"]:hover svg,
.footer-premium [class*="social"]:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(255, 182, 39, 0.5));
}

/* --------------------------------------------------------------------------
   23. Scroll-Progress-Bar (vom JS injiziert) — Style-Hardening
   -------------------------------------------------------------------------- */
#wow-scroll-progress {
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #wow-scroll-progress { transition: none !important; }
}

/* =====================================================================
   LIGHT-THEME OVERRIDE 20260430 — Brand-Sweep (Blue dominant)
   ===================================================================== */
:root:not([data-theme="dark"]) :focus-visible,
:root:not([data-theme="dark"]) .focus-ring {
  outline-color: var(--pt-brand-blue) !important;
}

:root:not([data-theme="dark"]) .pp-cta-primary,
:root:not([data-theme="dark"]) .pp-btn-primary,
:root:not([data-theme="dark"]) .premium-cta {
  background: linear-gradient(135deg, var(--pt-brand-blue) 0%, var(--pt-brand-blue-light) 100%) !important;
  color: #FFFFFF !important;
  border-color: var(--pt-brand-blue) !important;
}

:root:not([data-theme="dark"]) .pp-eyebrow,
:root:not([data-theme="dark"]) .pp-link,
:root:not([data-theme="dark"]) .pp-icon-gold,
:root:not([data-theme="dark"]) .premium-eyebrow {
  color: var(--pt-brand-blue) !important;
}

:root:not([data-theme="dark"]) .pp-card,
:root:not([data-theme="dark"]) .premium-card {
  background: var(--pt-bg-surface);
  color: var(--pt-text-primary);
  border-color: var(--pt-border-subtle);
  box-shadow: var(--shadow-md);
}

:root:not([data-theme="dark"]) .pp-divider,
:root:not([data-theme="dark"]) .pp-accent-bar {
  background: var(--pt-brand-blue) !important;
  border-color: var(--pt-brand-blue) !important;
}

:root:not([data-theme="dark"]) .pp-success,
:root:not([data-theme="dark"]) .premium-success { color: var(--pt-success) !important; border-color: var(--pt-success) !important; }
