/* Praxis-Hinweis 1.0.0 - schwarz-weiß wie christoph-zankl.de, Schrift kommt von der Website.
   Farben anpassen (z. B. im Theme):  .ph-huelle { --ph-akzent: #111; } */
.ph-huelle { --ph-akzent: #111; --ph-text: #1f2933; --ph-leise: #5b6660; --ph-hell: #f4f5f4; --ph-rand: #d7dbd9;
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(17, 17, 17, 0); transition: background .2s ease; font-family: inherit; }
.ph-huelle *, .ph-huelle *::before, .ph-huelle *::after { box-sizing: border-box; }
.ph-huelle.ph-da { background: rgba(17, 17, 17, .55); }
.ph-huelle.ph-weg { background: rgba(17, 17, 17, 0); }
html.ph-offen, html.ph-offen body { overflow: hidden; }

.ph-box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #fff; color: var(--ph-text); border-radius: 16px; padding: 32px 32px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  font-size: 17px; line-height: 1.6; outline: none; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ph-da .ph-box { opacity: 1; transform: none; }
.ph-weg .ph-box { opacity: 0; transform: translateY(12px); }

.ph-kopf { display: flex; align-items: center; gap: 14px; margin: 0 36px 18px 0; }
.ph-symbol { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--ph-akzent); color: #fff; }
.ph-symbol svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-box h2 { margin: 0; font-size: 1.35em; line-height: 1.25; font-weight: 700; color: var(--ph-akzent); letter-spacing: normal; text-transform: none; }
.ph-text p { margin: 0 0 .85em; }
.ph-text p:last-child { margin-bottom: 0; }

.ph-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ph-rand); }
.ph-huelle .ph-haupt, .ph-huelle .ph-zweit, .ph-huelle .ph-ok { display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 18px; border-radius: 12px; font: inherit; font-weight: 700; font-size: .92em; line-height: 1.2; text-decoration: none;
  cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; transition: background .15s, color .15s, border-color .15s; }
.ph-huelle .ph-haupt { background: var(--ph-akzent); color: #fff; border: 1.5px solid var(--ph-akzent); }
.ph-huelle .ph-haupt:hover { background: #333; border-color: #333; color: #fff; }
.ph-huelle .ph-zweit { background: #fff; color: var(--ph-akzent); border: 1.5px solid var(--ph-akzent); }
.ph-huelle .ph-zweit:hover { background: var(--ph-hell); color: var(--ph-akzent); }
.ph-huelle .ph-ok { margin-left: auto; background: none; color: var(--ph-leise); border: 1.5px solid transparent; font-weight: 600; }
.ph-huelle .ph-ok:hover { color: var(--ph-akzent); text-decoration: underline; }
/* 1.0.1: Website-Themes unterstreichen Links gern mit einem Pseudo-Element oder einer Unterkante - im Fenster nicht */
.ph-huelle a, .ph-huelle a:hover { text-decoration: none !important; background-image: none !important; border-bottom-width: 1.5px; }
.ph-huelle a::before, .ph-huelle a::after { content: none !important; display: none !important; }
.ph-huelle .ph-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: transparent; color: var(--ph-leise); font-size: 30px; line-height: 1; cursor: pointer; padding: 0; }
.ph-huelle .ph-x:hover { background: var(--ph-hell); color: var(--ph-akzent); }
.ph-huelle a:focus-visible, .ph-huelle button:focus-visible { outline: 3px solid var(--ph-akzent); outline-offset: 2px; }

@media (max-width: 560px) {
  .ph-huelle { align-items: flex-end; padding: 0; }
  .ph-box { max-width: none; border-radius: 18px 18px 0 0; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); font-size: 16px;
    max-height: 92vh; max-height: 92dvh; transform: translateY(40px); }
  .ph-kopf { gap: 12px; }
  .ph-symbol { width: 42px; height: 42px; }
  .ph-box h2 { font-size: 1.2em; }
  .ph-knoepfe { flex-direction: column; }
  .ph-huelle .ph-haupt, .ph-huelle .ph-zweit { width: 100%; }
  .ph-huelle .ph-ok { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ph-huelle, .ph-box { transition: none; } }
