/* =========================================================================
   AS PHYSIO NÜRNBERG — Umzugshinweis auf der alten Domain
   Designsystem 1:1 aus website2026/styles.css übernommen.
   Alle Klassen sind mit .asph- präfixiert, damit nichts aus dem alten
   Theme (WPBakery) hineinregiert und umgekehrt.
   ========================================================================= */

/* -- Schrift: lokal, kein Google Fonts (DSGVO, vgl. LG München 3 O 17493/20) */
@font-face {
  font-family: "ASPH Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "ASPH Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.asph-root {
  /* Tokens — identisch zur neuen Website */
  --asph-navy: #1b2537;
  --asph-navy-600: #33405c;
  /* Akzent = Markennavy. Weiße Schrift darauf: 14,6:1 – weit über WCAG AA. */
  --asph-accent: #33405c;       /* aufgehellte Stufe für Flächen auf Navy */
  --asph-accent-ink: #1b2537;   /* Primärfläche und Akzentschrift */
  --asph-accent-deep: #0f1d2b;  /* Hover */
  --asph-accent-soft: #e8ecf3;  /* zarte Navytönung für Icon-Flächen */
  --asph-ink: #0f1d2b;
  --asph-ink-muted: #46586b;
  --asph-line: #dfe5ea;
  --asph-bg-soft: #f4f6f8;
  --asph-radius: 14px;
  --asph-radius-lg: 22px;
  --asph-pill: 999px;
  --asph-shadow: 0 10px 24px rgba(27,37,55,.10), 0 30px 70px rgba(27,37,55,.22);
  --asph-ease: cubic-bezier(.22,.61,.36,1);

  font-family: "ASPH Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--asph-ink);
}
.asph-root *,
.asph-root *::before,
.asph-root *::after { box-sizing: border-box; }

/* ------------------------------------------------- Schutz vor dem Alt-Theme
   Das Theme der alten Seite (WPBakery) färbt jedes <button> flächig ein und
   hängt teilweise Pseudo-Elemente an. Ohne diesen Riegel wird aus dem
   Schließen-Kreis ein grüner Kasten ohne sichtbares X. Die Regeln setzen nur
   das zurück, was ein Theme üblicherweise global überschreibt. */
.asph-root button {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400;
  min-width: 0 !important;
  max-width: none !important;
  width: auto;
  height: auto;
  float: none !important;
  position: static;
  transform: none;
}
.asph-root button::before,
.asph-root button::after,
.asph-root a::before,
.asph-root a::after { content: none !important; display: none !important; }

/* Manche Themes blenden SVGs in Buttons aus (Reste von Mobilmenüs). */
.asph-root svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: none !important;
  max-width: none !important;
}

/* ---------------------------------------------------------------- Overlay */
.asph-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 29, 43, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--asph-ease), visibility .32s var(--asph-ease);
}
.asph-overlay.is-open { opacity: 1; visibility: visible; }

/* ----------------------------------------------------------------- Dialog */
.asph-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: var(--asph-radius-lg);
  box-shadow: var(--asph-shadow);
  transform: translateY(18px) scale(.985);
  opacity: 0;
  transition: transform .38s var(--asph-ease), opacity .38s var(--asph-ease);
}
.asph-overlay.is-open .asph-dialog { transform: none; opacity: 1; }
.asph-dialog:focus { outline: none; }

/* Navystreifen als Markensignal am oberen Rand */
.asph-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: var(--asph-radius-lg) var(--asph-radius-lg) 0 0;
  background: linear-gradient(90deg, var(--asph-accent) 0%, var(--asph-accent-ink) 100%);
}

/* Der Schließen-Kreis ist das Element, das ein fremdes Theme am ehesten
   kapert – deshalb hier durchgängig mit !important. */
.asph-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--asph-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--asph-navy) !important;
  font-size: 0 !important;   /* falls das Theme Text einfügt */
  line-height: 1 !important;
  text-indent: 0 !important;
  cursor: pointer;
  z-index: 2 !important;
  transition: background-color .18s var(--asph-ease), color .18s var(--asph-ease);
}
.asph-close svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  fill: none !important;
}
.asph-close:hover { background: var(--asph-bg-soft) !important; color: #000 !important; }
.asph-close:focus-visible { outline: 3px solid var(--asph-accent-ink); outline-offset: 2px; }

.asph-body { padding: 34px 38px 28px; }

.asph-logo {
  display: block;
  width: 184px;
  height: auto;
  max-width: 56%;
  margin: 0 0 16px;
}

.asph-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--asph-accent-ink);
}

.asph-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: clamp(1.45rem, 1.15rem + .95vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--asph-navy);
}

.asph-lead {
  margin: 0 0 18px;
  font-size: .9688rem;
  color: var(--asph-ink-muted);
}
.asph-lead b { color: var(--asph-ink); font-weight: 700; }

/* ------------------------------------------------------------- Faktenliste */
.asph-facts { margin: 0 0 22px; padding: 0; list-style: none; }
.asph-facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 0 0 8px;
  background: var(--asph-bg-soft);
  border-radius: var(--asph-radius);
  font-size: .9375rem;
  line-height: 1.5;
}
.asph-facts li:last-child { margin-bottom: 0; }
.asph-facts .asph-ico {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--asph-pill);
  /* Weißer Kreis mit feiner Linie: Auf der grauen Kartenfläche hebt er sich
     deutlicher ab als eine zarte Navytönung. */
  background: #fff;
  border: 1px solid var(--asph-line);
  color: var(--asph-navy);
}
.asph-facts .asph-ico svg { width: 18px; height: 18px; display: block; }
.asph-facts strong {
  display: block;
  font-weight: 700;
  color: var(--asph-navy);
  letter-spacing: .01em;
}
.asph-facts span { color: var(--asph-ink-muted); }

/* ---------------------------------------------------------------- Buttons */
.asph-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.asph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex: 1 1 220px;
  min-height: 52px;
  padding: .9rem 1.5rem;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--asph-pill);
  cursor: pointer;
  transition: transform .18s var(--asph-ease), background-color .18s var(--asph-ease),
    color .18s var(--asph-ease), box-shadow .18s var(--asph-ease);
}
.asph-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.asph-btn:hover { transform: translateY(-1px); text-decoration: none; }
.asph-btn:focus-visible { outline: 3px solid var(--asph-accent-ink); outline-offset: 3px; }

.asph-btn--primary {
  background: var(--asph-accent-ink);
  border-color: var(--asph-accent-ink);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(27,37,55,.28);
}
.asph-btn--primary:hover {
  background: var(--asph-accent-deep);
  border-color: var(--asph-accent-deep);
  box-shadow: 0 10px 24px rgba(27,37,55,.34);
}

.asph-btn--secondary {
  background: #fff;
  border-color: var(--asph-navy);
  color: var(--asph-navy) !important;
}
.asph-btn--secondary:hover { background: var(--asph-navy); color: #fff !important; }

.asph-note {
  margin: 14px 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--asph-ink-muted);
}
.asph-note a { color: var(--asph-accent-ink); text-decoration: underline; }

/* ------------------------------------------------------- Mobile: Bottom-Sheet
   Bewusst kein bildschirmfüllendes Overlay: Google wertet Interstitials, die
   den Inhalt auf dem Handy verdecken, als Ranking-Negativ. Die Schublade
   belegt maximal ~72 % der Höhe, der Seiteninhalt bleibt oben sichtbar. */
@media (max-width: 640px) {
  .asph-overlay { align-items: flex-end; padding: 0; }
  .asph-dialog {
    max-width: none;
    max-height: 76vh;
    border-radius: var(--asph-radius-lg) var(--asph-radius-lg) 0 0;
    transform: translateY(100%);
  }
  .asph-dialog::before { border-radius: var(--asph-radius-lg) var(--asph-radius-lg) 0 0; }
  .asph-body { padding: 26px 20px 24px; }
  .asph-logo { width: 148px; margin-bottom: 12px; }
  .asph-eyebrow { margin-bottom: 6px; font-size: 12px; }
  .asph-lead { margin-bottom: 14px; }
  .asph-facts { margin-bottom: 16px; }
  .asph-facts li { padding: 11px 13px; }
  /* Auf dem Handy zählt jede Zeile: Die Internetadresse steht bereits im
     Einleitungssatz, deshalb entfällt hier die erste Karte. */
  .asph-facts li:first-child { display: none; }
  /* Der Fußnotentext ist auf dem Handy die erste Zeile, die weichen darf:
     Ohne ihn passt die Schublade ohne Scrollen auf ein iPhone-Format. */
  .asph-note { display: none; }
  .asph-actions { flex-direction: column; }
  /* 0 0 auto ist Pflicht: In einer Spalte würde flex-grow die Schaltflächen
     in die Höhe ziehen, statt sie untereinander zu stapeln. */
  .asph-btn { flex: 0 0 auto; width: 100%; }
}

/* ----------------------------------------------------- Zurückgestellte Pille
   Wer schließt, bekommt keinen zweiten Layer, sondern einen ruhigen,
   dauerhaften Einstieg. Kostet nichts und rettet die Hälfte der Klicks. */
.asph-pill {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2147482000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 40px);
  padding: 12px 16px 12px 14px;
  background: var(--asph-navy);
  color: #fff;
  border-radius: var(--asph-pill);
  box-shadow: 0 8px 26px rgba(15,29,43,.30);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity .3s var(--asph-ease), transform .3s var(--asph-ease), visibility .3s;
}
.asph-pill.is-open { opacity: 1; transform: none; visibility: visible; }
.asph-pill__link { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; }
.asph-pill__dot {
  width: 9px; height: 9px; flex: 0 0 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.65);
  animation: asph-ping 2.4s var(--asph-ease) infinite;
}
.asph-pill__close {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 28px !important; height: 28px !important; min-height: 28px !important;
  padding: 0 !important; margin: 0 0 0 2px !important;
  border: 0 !important; border-radius: 50% !important;
  background: rgba(255,255,255,.16) !important;
  color: #fff !important; font-size: 0 !important; line-height: 1 !important;
  cursor: pointer;
}
.asph-pill__close svg { width: 16px !important; height: 16px !important; stroke: currentColor !important; fill: none !important; }
.asph-pill__close:hover { background: rgba(255,255,255,.3) !important; }
.asph-pill__close:focus-visible,
.asph-pill__link:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }

@keyframes asph-ping {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@media (max-width: 640px) {
  .asph-pill { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
}

/* Wenn ein Cookie-Banner unten klebt, hilft diese Klasse (per JS gesetzt). */
.asph-pill.asph-pill--raised { bottom: 92px; }

/* Bewegungsreduzierung respektieren */
@media (prefers-reduced-motion: reduce) {
  .asph-overlay, .asph-dialog, .asph-pill, .asph-btn { transition: none !important; }
  .asph-pill__dot { animation: none; }
  .asph-dialog { transform: none; }
}

/* Scroll-Sperre für den Hintergrund, solange der Dialog offen ist */
html.asph-lock, body.asph-lock { overflow: hidden !important; }
