/* ===========================================================================
   polish.css — Weltklasse-Finish für fragbabsi.de (12.06.2026)
   CI unverändert (Magenta #D9148A, Inter) — hier nur Tiefe, Bewegung, Präzision.
   Wird von polish.js per Decorator-Klassen aktiviert (fx-*) — kein Markup-Umbau.
   =========================================================================== */

:root {
  --fx-magenta: #D9148A;
  --fx-magenta-dark: #B5106F;
  --fx-ink: #0F0F12;
  --fx-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---- Foundations -------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(217, 20, 138, .18); }
h1, h2, h3 { text-wrap: balance; }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(217, 20, 138, .45);
  border-radius: 10px;
}

/* ---- Aurora: ruhiger Marken-Schimmer hinter allen Seiten ----------------- */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
}
body::before {
  width: 56vw; height: 56vw;
  top: -22vw; right: -16vw;
  background: radial-gradient(closest-side, rgba(217, 20, 138, .14), transparent 70%);
  animation: fx-drift-a 26s ease-in-out infinite alternate;
}
body::after {
  width: 44vw; height: 44vw;
  bottom: -18vw; left: -12vw;
  background: radial-gradient(closest-side, rgba(255, 176, 208, .22), transparent 70%);
  animation: fx-drift-b 32s ease-in-out infinite alternate;
}
@keyframes fx-drift-a { to { transform: translate3d(-6vw, 5vh, 0) scale(1.08); } }
@keyframes fx-drift-b { to { transform: translate3d(5vw, -4vh, 0) scale(1.12); } }

/* ---- Buttons: Glow, Lift, Shine-Sweep ------------------------------------ */
.fx-btn {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--fx-magenta) 0%, var(--fx-magenta-dark) 100%) !important;
  box-shadow: 0 1px 2px rgba(15, 15, 18, .12),
              0 10px 24px -8px rgba(217, 20, 138, .45);
  transition: transform .25s var(--fx-ease), box-shadow .25s var(--fx-ease), filter .25s var(--fx-ease);
  will-change: transform;
}
.fx-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 2px 4px rgba(15, 15, 18, .12),
              0 18px 36px -10px rgba(217, 20, 138, .55);
}
.fx-btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.fx-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .7s var(--fx-ease);
  pointer-events: none;
}
.fx-btn:hover::after { transform: translateX(130%); }

.fx-btn-ghost {
  transition: transform .25s var(--fx-ease), box-shadow .25s var(--fx-ease),
              background-color .25s var(--fx-ease);
}
.fx-btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(217, 20, 138, .35);
}
.fx-btn-ghost:active { transform: translateY(0) scale(.98); }

/* ---- Cards & Chips: Tiefe + Hover-Lift ----------------------------------- */
.fx-card {
  transition: transform .35s var(--fx-ease), box-shadow .35s var(--fx-ease),
              border-color .35s var(--fx-ease);
  will-change: transform;
}
.fx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(15, 15, 18, .05),
              0 20px 40px -16px rgba(15, 15, 18, .16),
              0 8px 24px -12px rgba(217, 20, 138, .18);
  border-color: rgba(217, 20, 138, .25) !important;
}
.fx-chip {
  transition: transform .25s var(--fx-ease), box-shadow .25s var(--fx-ease);
}
.fx-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(15, 15, 18, .18);
}

/* ---- Scroll-Reveal (von polish.js getaggt + ausgelöst) ------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--fx-ease), transform .7s var(--fx-ease);
    transition-delay: var(--rd, 0ms);
  }
  [data-reveal].fx-in { opacity: 1; transform: none; }
}

/* ---- Hero-Phone: sanftes Schweben ---------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .fx-float { animation: fx-float 7s ease-in-out infinite alternate; }
  @keyframes fx-float {
    from { transform: translateY(0) rotate(-.4deg); }
    to   { transform: translateY(-10px) rotate(.4deg); }
  }
}

/* ---- Sticky-Nav: verdichtet sich beim Scrollen --------------------------- */
.fx-nav { transition: box-shadow .3s var(--fx-ease), background-color .3s var(--fx-ease); }
.fx-nav.fx-scrolled {
  box-shadow: 0 1px 0 rgba(15, 15, 18, .06), 0 12px 32px -18px rgba(15, 15, 18, .25);
  background-color: rgba(255, 255, 255, .92) !important;
}

/* ---- Nav-Links: animierte Unterstreichung -------------------------------- */
.fx-navlink { position: relative; }
.fx-navlink::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 2px;
  background: var(--fx-magenta);
  border-radius: 2px;
  transition: right .3s var(--fx-ease);
}
.fx-navlink:hover::after { right: 0; }

/* ---- Mobile-Menü (polish.js baut den Toggle) ------------------------------ */
.fx-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(15, 15, 18, .1);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  transition: border-color .25s var(--fx-ease);
}
.fx-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--fx-ink);
  border-radius: 2px;
  transition: transform .3s var(--fx-ease), opacity .3s var(--fx-ease);
}
.fx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 767px) { .fx-burger { display: inline-flex; } }

.fx-mobilemenu {
  display: none;
  position: absolute;
  left: 12px; right: 12px;
  top: calc(100% + 8px);
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 15, 18, .08);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(15, 15, 18, .3);
  padding: 10px;
  z-index: 60;
}
.fx-mobilemenu.fx-open { display: block; animation: fx-menu-in .35s var(--fx-ease); }
@keyframes fx-menu-in { from { opacity: 0; transform: translateY(-8px); } }
.fx-mobilemenu a {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--fx-ink);
  text-decoration: none;
}
.fx-mobilemenu a:hover { background: rgba(217, 20, 138, .07); color: var(--fx-magenta-dark); }

/* ---- FAQ-Akkordeon: Chevron + sanftes Öffnen ------------------------------ */
details.fx-acc summary { cursor: pointer; position: relative; transition: color .25s var(--fx-ease); }
details.fx-acc summary:hover { color: var(--fx-magenta-dark); }
details.fx-acc summary::before {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--fx-magenta);
  border-bottom: 2.5px solid var(--fx-magenta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .35s var(--fx-ease);
}
details.fx-acc[open] summary::before { transform: translateY(-30%) rotate(225deg); }
@media (prefers-reduced-motion: no-preference) {
  details.fx-acc[open] > *:not(summary) { animation: fx-acc-in .4s var(--fx-ease); }
  @keyframes fx-acc-in { from { opacity: 0; transform: translateY(-6px); } }
}

/* ---- Formularfelder: präziser Magenta-Fokus ------------------------------- */
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  transition: border-color .25s var(--fx-ease), box-shadow .25s var(--fx-ease);
}
input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus {
  border-color: var(--fx-magenta) !important;
  box-shadow: 0 0 0 4px rgba(217, 20, 138, .13);
  outline: none;
}

/* ---- Ruhe für alle, die es wünschen --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  .fx-btn, .fx-btn-ghost, .fx-card, .fx-chip { transition: none; }
  .fx-btn::after { display: none; }
}
