/* ==========================================================================
   Phrasen – eigenständiges Design (Arena-Look)
   Eigenständiges App-Theme für Phrasen-Sau auf der eigenen Domain.
   Domain umziehen kann, ohne Firmen-Styles mitzuschleppen.
   ========================================================================== */

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'),
    url('../fonts/open-sans-v34-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/open-sans-v34-latin-500.woff2') format('woff2'),
    url('../fonts/open-sans-v34-latin-500.woff') format('woff');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/open-sans-v34-latin-700.woff2') format('woff2'),
    url('../fonts/open-sans-v34-latin-700.woff') format('woff');
}

:root {
    --ph-bg: #0e1220;
    --ph-bg-2: #141a2e;
    --ph-flaeche: #1b2238;
    --ph-flaeche-hoch: #232c47;
    --ph-rand: rgba(255, 255, 255, 0.09);
    --ph-rand-stark: rgba(255, 255, 255, 0.18);

    --ph-text: #eef1f8;
    --ph-text-leise: #9aa4bd;

    --ph-akzent: #c8ff3d;
    --ph-akzent-dunkel: #a8db1f;
    --ph-akzent-text: #14200a;

    --ph-karte-rot: #ff4b57;
    --ph-karte-gelb: #ffc531;
    --ph-karte-orange: #ff6a3a;
    --ph-gruen: #2fd47a;
    --ph-gruen-bezahlt: #c8ff9a;
    --ph-rosa: #ff6b9a;
    --ph-blau: #4aa8ff;

    --ph-radius: 18px;
    --ph-radius-klein: 12px;
    --ph-schatten: 0 18px 40px rgba(0, 0, 0, 0.45);
    --ph-breite: 1080px;
    --ph-uebergang: all 0.2s ease;
    --ph-header-hoehe: 62px;
    --ph-safe-top: env(safe-area-inset-top, 0px);
    --ph-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ph-safe-left: env(safe-area-inset-left, 0px);
    --ph-safe-right: env(safe-area-inset-right, 0px);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a:focus,
button:focus,
.ph-btn:focus,
.ph-nav-toggle:focus,
.ph-nav-link:focus,
summary:focus {
    outline: none;
}

body.ph-body {
    margin: 0;
    padding: 0 var(--ph-safe-right) var(--ph-safe-bottom) var(--ph-safe-left);
    min-height: 100vh;
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ph-text);
    background:
        radial-gradient(1100px 600px at 12% -8%, rgba(200, 255, 61, 0.10), transparent 60%),
        radial-gradient(900px 520px at 92% 4%, rgba(74, 168, 255, 0.10), transparent 60%),
        linear-gradient(180deg, var(--ph-bg-2) 0%, var(--ph-bg) 45%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.22;
}

h1 { font-size: 1.35rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

a {
    color: var(--ph-akzent);
    text-decoration: none;
    transition: var(--ph-uebergang);
}

a:hover { color: var(--ph-akzent-dunkel); }

.ph-container {
    width: 100%;
    max-width: var(--ph-breite);
    margin: 0 auto;
    padding: 0 1.1rem;
}

.ph-leise { color: var(--ph-text-leise); }
.ph-klein { font-size: 0.85rem; }
.ph-zentriert { text-align: center; }
.ph-mono { font-variant-numeric: tabular-nums; }

/* ---------- Kopfzeile ---------- */

.ph-header {
    position: sticky;
    top: 0;
    z-index: 30;
    overflow: visible;
    padding-top: var(--ph-safe-top);
    background: rgba(14, 18, 32, 0.94);
    border-bottom: 1px solid var(--ph-rand);
}

.ph-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: var(--ph-header-hoehe);
}

.jq-toast-wrap.top-center,
.jq-toast-wrap.top-left,
.jq-toast-wrap.top-right {
    top: calc(20px + var(--ph-safe-top)) !important;
}

.ph-marke {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    gap: 0.45rem;
    color: var(--ph-text);
    overflow: visible;
}

.ph-marke:hover { color: var(--ph-text); }

.ph-marke-logo {
    display: block;
    height: 72px;
    width: auto;
    align-self: flex-start;
    position: relative;
    z-index: 31;
}

.ph-marke-wort {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 5px;
    line-height: 1;
    gap: 0.12em;
}

.ph-marke-zeile {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ph-marke-sau {
    display: flex;
    justify-content: space-between;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1;
}

.ph-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    list-style: none;
    padding: 0;
}

.ph-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--ph-text-leise);
    font-size: 0.92rem;
    font-weight: 500;
}

.ph-nav-link:hover,
.ph-nav-link.ph-aktiv {
    color: var(--ph-text);
    background: var(--ph-flaeche);
}

.ph-nav-link.ph-nav-link-gut {
    color: var(--ph-gruen);
}

.ph-nav-link.ph-nav-link-gut:hover,
.ph-nav-link.ph-nav-link-gut.ph-aktiv {
    color: var(--ph-gruen);
    background: rgba(47, 212, 122, 0.12);
}

.ph-nav-link.ph-nav-link-gelb {
    color: var(--ph-karte-gelb);
}

.ph-nav-link.ph-nav-link-gelb:hover,
.ph-nav-link.ph-nav-link-gelb.ph-aktiv {
    color: var(--ph-karte-gelb);
    background: rgba(255, 197, 49, 0.12);
}

.ph-nav-link.ph-nav-link-gefahr {
    color: var(--ph-karte-rot);
}

.ph-nav-link.ph-nav-link-gefahr:hover,
.ph-nav-link.ph-nav-link-gefahr.ph-aktiv {
    color: var(--ph-karte-rot);
    background: rgba(255, 75, 87, 0.12);
}

.ph-nav-schatten,
.ph-nav-konto {
    display: none;
}

.ph-nav-recht-toggle-eintrag,
.ph-nav-recht-eintrag,
.ph-nav-recht-eintrag[hidden] {
    display: none;
}

.ph-nav-sprachen-eintrag {
    display: flex;
    align-items: center;
}

.ph-nav-sprachen {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ph-nav-sprache-form {
    margin: 0;
}

.ph-nav-sprache-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.3rem 0.45rem;
    border: 1px solid var(--ph-rand-stark);
    border-radius: 8px;
    background: var(--ph-bg);
    cursor: pointer;
    line-height: 0;
}

.ph-nav-sprache-btn:hover {
    border-color: var(--ph-text-leise);
}

.ph-nav-sprache-btn.ph-aktiv {
    border-color: var(--ph-akzent);
    box-shadow: 0 0 0 2px rgba(200, 255, 61, 0.18);
}

.ph-nav-sprache-btn img {
    display: block;
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px var(--ph-rand);
}

.ph-nav-toggle {
    display: none;
    margin-left: auto;
    padding: 0.35rem 0.6rem;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--ph-text);
    background: var(--ph-flaeche);
    border: 1px solid var(--ph-rand);
    border-radius: var(--ph-radius-klein);
    cursor: pointer;
}

/* ---------- Grundgerüst ---------- */

.ph-main {
    padding: 2rem 0 4.5rem;
}

.ph-abschnitt {
    margin-bottom: 3.25rem;
}

.ph-abschnitt-kopf {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.ph-abschnitt-kopf h2 { margin-bottom: 0.15rem; }

.ph-abschnitt-kopf p {
    margin: 0;
}

.ph-mitglied-titelblock {
    width: 100%;
}

.ph-mitglied-titelzeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ph-mitglied-titelzeile h1 {
    margin: 0;
    min-width: 0;
}

.ph-mitglied-titelzeile .ph-btn,
.ph-mitglied-detail-zeile .ph-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
}

.ph-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--ph-rand);
    color: var(--ph-text-leise);
    font-size: 0.88rem;
}

.ph-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
}

.ph-footer-nav a { color: var(--ph-text-leise); }
.ph-footer-nav a:hover { color: var(--ph-akzent); }

/* ---------- Karten ---------- */

.ph-karte {
    padding: 1.35rem;
    background: var(--ph-flaeche);
    border: 1px solid var(--ph-rand);
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-schatten);
}

.ph-karte-schmal {
    max-width: 460px;
    margin: 0 auto;
}

.ph-einladen-oben {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 1.1rem;
}

.ph-einladen-oben h1 {
    margin: 0;
}

.ph-einladen-oben .ph-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
}

.ph-einladen-name {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ph-akzent);
    overflow-wrap: anywhere;
}

.ph-karte + .ph-karte { margin-top: 1.1rem; }

.ph-raster {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.ph-raster-breit {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ph-raster > .ph-karte {
    margin-top: 0;
    height: 100%;
}

/* Kategoriebild: Illustration füllt die Fläche, das Seitenverhältnis bleibt fest. */
.ph-bild {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.9rem;
    overflow: hidden;
    border-radius: var(--ph-radius-klein);
    background:
        radial-gradient(120% 120% at 25% 0%, rgba(200, 255, 61, 0.16), transparent 55%),
        linear-gradient(140deg, var(--ph-flaeche-hoch), #171e33);
    border: 1px solid var(--ph-rand);
}

.ph-bild img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.45rem;
}

.ph-bild i {
    font-size: 2.6rem;
    color: var(--ph-akzent);
    opacity: 0.85;
}

.ph-bild-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 1;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(14, 18, 32, 0.82);
    border: 1px solid rgba(200, 255, 61, 0.4);
    color: var(--ph-akzent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.ph-bild-hintergrund {
    background-image: var(--ph-bild-hintergrund);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-origin: content-box;
    padding: 0.45rem;
}

.ph-bild-fuss {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.1rem 0.75rem 0.45rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    color: #fff;
    background: linear-gradient(to top, rgba(8, 10, 18, 0.88) 35%, rgba(8, 10, 18, 0));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.ph-bild-klein { aspect-ratio: 3 / 1; }
.ph-bild-klein i { font-size: 1.8rem; }
.ph-bild-quadrat { aspect-ratio: 1; }

.ph-kachel {
    display: block;
    padding: 0 0 1rem;
    overflow: hidden;
    color: var(--ph-text);
    background: var(--ph-flaeche);
    border: 1px solid var(--ph-rand);
    border-radius: var(--ph-radius);
    transition: var(--ph-uebergang);
}

.ph-kachel:hover {
    color: var(--ph-text);
    transform: translateY(-3px);
    border-color: var(--ph-rand-stark);
    box-shadow: var(--ph-schatten);
}

.ph-kachel .ph-bild {
    width: 100%;
    margin: 0 0 0.85rem;
    border: none;
    border-bottom: 1px solid var(--ph-rand);
    border-radius: 0;
}

.ph-kachel > :not(.ph-bild) {
    margin-left: 1rem;
    margin-right: 1rem;
}

.ph-kachel-titel {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.ph-kachel-titel-gross {
    font-size: 1.4rem;
    line-height: 1.25;
}

.ph-kachel-meta {
    font-size: 0.85rem;
    color: var(--ph-text-leise);
}

.ph-raster-kategorien .ph-kachel {
    padding-bottom: 0;
}

.ph-raster-kategorien .ph-kachel .ph-bild {
    margin-bottom: 0;
    border-bottom: none;
}

.ph-raster-kategorien .ph-kachel[data-ph-kategorie-spezial] {
    padding-bottom: 1rem;
}

.ph-raster-kategorien .ph-kachel.ph-kategorie-karte-klassisch {
    padding-bottom: 1rem;
}

.ph-raster-kategorien .ph-kachel.ph-kategorie-karte-klassisch .ph-bild {
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--ph-rand);
}

.ph-raster-kategorien .ph-kachel.ph-kategorie-karte-klassisch .ph-kachel-titel,
.ph-raster-kategorien .ph-kachel.ph-kategorie-karte-klassisch .ph-kachel-meta {
    text-align: center;
}

.ph-raster-kategorien .ph-bild-fuss {
    font-size: 0.84rem;
    padding: 1.55rem 0.7rem 0.4rem;
}

.ph-kachel-warnung {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ph-karte-rot);
}

.ph-kachel-warnung a {
    color: inherit;
}

.ph-kachel-warnung a:hover {
    text-decoration: underline;
}

.ph-kachel-warnung-hinweis {
    margin: 0;
    align-self: center;
}

.ph-kachel-strafe {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.4rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

.ph-kachel-strafe .ph-punkt {
    flex-shrink: 0;
    height: 0.95em;
    margin-top: 0.18em;
}

.ph-kachel-zeilen {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.ph-kachel .ph-kachel-zeilen {
    margin-top: 0.4rem;
}

.ph-kachel-zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ph-text);
}

.ph-kachel-zeile-name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.ph-kachel-zeile-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.2em;
    width: 1.2em;
}

.ph-kachel-zeile-zahl {
    font-variant-numeric: tabular-nums;
}

.ph-rote-karte,
.ph-gelbe-karte,
.ph-orange-karte,
.ph-gruene-karte {
    display: inline-block;
    width: auto;
    height: 1.15em;
    aspect-ratio: 1;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: -0.18em;
}

.ph-rote-karte { background-image: url("../img/symbole/rote_karte.png"); }
.ph-gelbe-karte { background-image: url("../img/symbole/gelbe_karte.png"); }
.ph-orange-karte { background-image: url("../img/symbole/orange_karte.png"); }
.ph-gruene-karte { background-image: url("../img/symbole/gruene_karte.png"); }

.ph-gruen-symbol {
    color: var(--ph-gruen);
    font-size: 1.05em;
    line-height: 1;
}

.ph-rosa-symbol {
    color: var(--ph-rosa);
    font-size: 1.05em;
    line-height: 1;
}

.ph-punkt {
    display: inline-block;
    width: auto;
    height: 0.78em;
    aspect-ratio: 512 / 383;
    background: url("../img/symbole/schweinsnase.png") center / contain no-repeat;
    vertical-align: -0.08em;
}

.ph-punkt-bezahlt {
    background-image: url("../img/symbole/schweinsnase_bezahlt.png");
}

.ph-kachel-zeile-bezahlt {
    color: var(--ph-gruen-bezahlt);
    text-shadow: 0 0 0.1em rgba(200, 255, 154, 0.35);
}

.ph-kachel-zeile-bezahlt .ph-punkt {
    height: 0.95em;
}

.ph-konto-titel .ph-punkt {
    height: 1em;
    margin-right: 0.28em;
    vertical-align: -0.12em;
}

.ph-konto-zeile-punkte .ph-konto-zeile-zahl,
.ph-rang-gelb-zahl,
.ph-rang-fuss-punkte .ph-rang-fuss-zahl,
.ph-zahlung-punkte > span:last-child,
.ph-strafe-wahl-punkte > span:last-child,
.ph-anklage-nase-zahl {
    color: #fff4f7;
    text-shadow:
        0 0 0.12em #ffd5e2,
        0 0 0.28em #ff4f86,
        0 0 0.55em #ff2f73,
        0 0 1.15em rgba(255, 70, 130, 0.9);
}

.ph-konto-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.ph-konto-karte {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    padding: 0.65rem;
    overflow: hidden;
    color: var(--ph-text);
    background:
        radial-gradient(120% 120% at 25% 0%, rgba(200, 255, 61, 0.16), transparent 55%),
        var(--ph-flaeche);
    border: 1px solid var(--ph-rand);
    border-radius: var(--ph-radius);
    transition: var(--ph-uebergang);
}

.ph-konto-karte:hover {
    color: var(--ph-text);
    border-color: var(--ph-rand-stark);
    box-shadow: var(--ph-schatten);
}

.ph-konto-karte .ph-bild {
    flex: 0 0 6.25rem;
    width: 6.25rem;
    margin: 0;
    overflow: visible;
    z-index: 1;
    background: none;
    border: none;
    border-radius: 0;
}

.ph-konto-karte .ph-bild img {
    padding: 0;
}

.ph-konto-karte .ph-bild-badge {
    top: calc(0.35rem - 10px);
    left: calc(0.35rem - 10px);
    max-width: none;
    padding: 0.12rem 0.35rem;
    font-size: 0.55rem;
    white-space: nowrap;
}

.ph-konto-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    min-width: 0;
}

.ph-konto-community {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ph-akzent);
    overflow-wrap: anywhere;
}

.ph-konto-spiel {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ph-konto-zeilen {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.45rem;
}

.ph-konto-zeile {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 0.75rem;
    font-size: 1.3rem;
}

.ph-konto-zeile-links,
.ph-konto-zeile-mitte,
.ph-konto-zeile-punkte {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ph-konto-zeile-links {
    justify-self: start;
}

.ph-konto-zeile-mitte {
    justify-self: center;
    gap: 0.3rem;
}

.ph-konto-zeile-mitte .bi {
    font-size: 0.92em;
    line-height: 1;
    color: #7ec8ff;
    transform: translateY(1px);
}

.ph-konto-zeile-mitte .bi::before {
    vertical-align: 0;
}

.ph-konto-zeile-punkte {
    justify-self: end;
}

.ph-konto-zeile-zahl {
    font-size: 0.85em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transform: translateY(-1px);
}

.ph-konto-zeile .ph-punkt {
    width: auto;
    height: 0.92em;
    transform: translateY(-1px);
}

/* Kategorieauswahl als klickbare Kacheln */
.ph-kategorie-suche {
    position: sticky;
    top: calc(var(--ph-header-hoehe) + var(--ph-safe-top));
    z-index: 20;
    margin: 0 -1.35rem 1rem;
    padding: 0.7rem 1.35rem;
    background: var(--ph-flaeche);
    border-bottom: 1px solid var(--ph-rand);
}

.ph-kategorie-leer {
    margin: 0.35rem 0 0;
}

.ph-wahl-kachel[data-ph-kategorie-spezial] .ph-kachel {
    padding-bottom: 1rem;
}

.ph-wahl-kachel[data-ph-kategorie-spezial] .ph-kachel .ph-bild {
    margin-bottom: 0;
    border-bottom: none;
}

.ph-kategorie-spezial-fuss {
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
}

.ph-kategorie-spezial-fuss p {
    margin: 0;
    color: var(--ph-text-leise);
}

.ph-wahl-kachel {
    position: relative;
}

.ph-wahl-kachel .ph-kachel {
    padding-bottom: 0;
}

.ph-wahl-kachel .ph-kachel .ph-bild {
    margin-bottom: 0;
    border-bottom: none;
}

.ph-wahl-kachel .ph-bild-fuss {
    font-size: 0.84rem;
    padding: 1.55rem 0.7rem 0.4rem;
}

.ph-kategorie-phrasen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
}

.ph-kategorie-phrasen-wort {
    flex: 0 0 auto;
}

.ph-kategorie-phrasen-staende {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 1.6rem;
}

.ph-kategorie-phrasen-stand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.22rem 0.45rem;
    font: inherit;
    font-variant-numeric: tabular-nums;
    color: inherit;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
}

button.ph-kategorie-phrasen-stand:hover,
button.ph-kategorie-phrasen-stand:focus-visible {
    color: inherit;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}

.ph-kategorie-phrasen-stand img {
    display: block;
    width: 1.15rem;
    height: 0.86rem;
    padding: 0;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.ph-wahl-kachel[hidden] {
    display: none !important;
}

.ph-wahl input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ph-wahl label {
    display: block;
    cursor: pointer;
    height: 100%;
}

.ph-wahl input[type="radio"]:checked + label .ph-kachel {
    border-color: var(--ph-akzent);
    box-shadow: 0 0 0 2px rgba(200, 255, 61, 0.35);
}

.ph-wahl input[type="radio"]:focus-visible + label .ph-kachel {
    outline: 2px solid var(--ph-blau);
    outline-offset: 2px;
}

/* ---------- Hero ---------- */

.ph-hero {
    padding: 2.5rem 0 1.5rem;
}

.ph-hero-inhalt { max-width: 640px; }

.ph-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
}

.ph-hero-titel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.ph-hero-titel span {
    overflow-wrap: anywhere;
}

.ph-hero-nase {
    display: block;
    width: auto;
    height: 80px;
}

.ph-hero-schild {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(200, 255, 61, 0.12);
    border: 1px solid rgba(200, 255, 61, 0.35);
    color: var(--ph-akzent);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ph-hero-text {
    font-size: 1.1rem;
    color: var(--ph-text-leise);
}

.ph-hero-aktionen {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

/* ---------- Schaltflächen ---------- */

.ph-btn-neben {
    font-weight: 400;
}

.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.25rem;
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--ph-uebergang);
}

.ph-btn-primaer {
    background: var(--ph-akzent);
    color: var(--ph-akzent-text);
}

.ph-btn-primaer:hover {
    background: var(--ph-akzent-dunkel);
    color: var(--ph-akzent-text);
}

.ph-btn-phrasen-sau {
    height: calc(1.2em + 1.4rem);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 5px;
    overflow: hidden;
    background: #6b3a1c;
    border-color: #e8b86a;
    box-shadow: 0 0 10px rgba(232, 184, 106, 0.7);
    color: #fff;
}

.ph-btn-phrasen-sau:hover {
    background: #542c14;
    border-color: #f3cb86;
    box-shadow: 0 0 14px rgba(243, 203, 134, 0.85);
    color: #fff;
}

.ph-btn-sau {
    display: block;
    height: calc(1.2em + 1.4rem + 4px);
    width: auto;
    flex-shrink: 0;
}

.ph-btn-leer {
    background: transparent;
    border-color: var(--ph-rand-stark);
    color: var(--ph-text);
}

.ph-btn-leer:hover {
    background: var(--ph-flaeche-hoch);
    color: var(--ph-text);
}

.ph-btn.ph-btn-leer-akzent {
    width: auto;
    padding: 0.2rem 0.7rem;
    background: transparent;
    border-color: var(--ph-akzent);
    color: var(--ph-akzent);
    font-size: 0.82rem;
    font-weight: 400;
    white-space: nowrap;
}

.ph-btn.ph-btn-leer-akzent:hover {
    background: rgba(200, 255, 61, 0.10);
    border-color: var(--ph-akzent);
    color: var(--ph-akzent);
}

.ph-btn.ph-btn-leer-akzent.ph-btn-voll {
    width: 100%;
}

.ph-btn-gefahr {
    background: var(--ph-karte-rot);
    color: #fff;
}

.ph-btn-gefahr:hover {
    background: #e43b46;
    color: #fff;
}

.ph-btn.ph-btn-gefahr-outline {
    background: transparent;
    border-color: var(--ph-karte-rot);
    color: var(--ph-karte-rot);
}

.ph-btn.ph-btn-gefahr-outline:hover {
    background: rgba(255, 75, 87, 0.12);
    border-color: var(--ph-karte-rot);
    color: var(--ph-karte-rot);
}

.ph-btn-gelb {
    background: var(--ph-karte-gelb);
    color: #1a1408;
}

.ph-btn-gelb:hover {
    background: #e6b01c;
    color: #1a1408;
}

.ph-archiv-leitung {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.ph-archiv-leitung .ph-loeschen-bereich {
    margin-top: 0;
}

.ph-btn-gut {
    background: var(--ph-gruen);
    color: #06230f;
}

.ph-btn-gut:hover {
    background: #22bc68;
    color: #06230f;
}

.ph-btn.ph-btn-gut-outline {
    background: transparent;
    border-color: var(--ph-gruen);
    color: var(--ph-gruen);
}

.ph-btn.ph-btn-gut-outline:hover {
    background: rgba(47, 212, 122, 0.12);
    border-color: var(--ph-gruen);
    color: var(--ph-gruen);
}

.ph-btn-klein {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.ph-btn-voll {
    width: 100%;
}

.ph-btn-stapel {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.ph-entfernen-karten {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.ph-entfernen-karte {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--ph-rand);
    border-radius: var(--ph-radius-klein);
    background: rgba(255, 255, 255, 0.03);
}

.ph-entfernen-karte-aktiv,
.ph-entfernen-karte:has(input[type="radio"]:checked) {
    border-color: var(--ph-akzent);
    background: rgba(255, 214, 10, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.25);
}

.ph-entfernen-karte-kopf {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.ph-entfernen-karte-kopf input {
    accent-color: var(--ph-akzent);
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.ph-entfernen-karte-titel {
    font-weight: 700;
    color: var(--ph-text);
}

.ph-entfernen-karte-text {
    display: block;
    margin: 0;
}

.ph-entfernen-blockieren {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--ph-rand);
}

.ph-entfernen-blockieren .ph-schalter {
    color: var(--ph-text);
    font-weight: 600;
}

.ph-entfernen-karte:not(:has(input[type="radio"]:checked)) .ph-entfernen-blockieren {
    opacity: 0.55;
}

.ph-entfernen-melden {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--ph-rand);
}

.ph-entfernen-melden[hidden] {
    display: none;
}

.ph-entfernen-melden .ph-schalter {
    color: var(--ph-text);
    font-weight: 600;
}

.ph-entfernen-melden .ph-feld {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.ph-entfernen-melden textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.ph-social-trenner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.3rem 0 1rem;
    color: var(--ph-text-leise);
    font-size: 0.82rem;
}

.ph-social-trenner::before,
.ph-social-trenner::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ph-rand-stark);
}

.ph-social-stapel {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.ph-social-zwei {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.ph-btn-sozial {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 1rem;
    color: var(--ph-text);
    background: var(--ph-flaeche);
    border-color: var(--ph-rand-stark);
}

.ph-btn-sozial:hover {
    color: var(--ph-text);
    background: var(--ph-flaeche-hoch);
}

.ph-btn-sozial-kompakt {
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0.65rem;
    font-size: 0.92rem;
}

.ph-sozial-icon-google {
    color: #ea4335;
}

.ph-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 1.25rem;
    color: var(--ph-text);
    background: var(--ph-flaeche);
    border: 1px solid var(--ph-rand-stark);
    border-radius: var(--ph-radius-klein);
}

.ph-btn-icon:hover {
    color: var(--ph-text);
    background: var(--ph-flaeche-hoch);
}

.ph-community-oben {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto 1.1rem;
}

.ph-community-oben .ph-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
}

.ph-community-art {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.ph-spiel-neu-gruppe {
    margin: 0.55rem 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ph-akzent);
}

.ph-spiel-neu-gruppe a {
    color: inherit;
}

.ph-spiel-phrasen-name {
    display: block;
    width: 100%;
    margin: 0.35rem 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ph-text);
}

.ph-spiel-phrasen-name a {
    color: inherit;
}

.ph-spiel-phrasen-kategorie {
    margin: 0 0 1rem;
}

.ph-spiel-phrasen-kategorie .ph-bild-badge {
    position: static;
    display: inline-flex;
    padding: 0.4rem 0.95rem;
    font-size: 0.95rem;
}

.ph-spiel-phrasen-warnung {
    margin: 0.45rem 0 1rem;
    align-items: flex-start;
    line-height: 1.35;
    color: var(--ph-karte-gelb);
}

.ph-karte.ph-phrasen-liste-karte {
    padding: 0.25rem 0.5rem;
}

.ph-phrasen-liste-kopf {
    margin: -0.25rem -0.5rem 0;
    padding: 0.65rem 0.5rem 0.55rem;
    border-bottom: 2px solid #fff;
}

.ph-phrasen-liste-suche {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 0.5rem;
    align-items: center;
}

.ph-phrasen-filter-btn.ph-aktiv,
.ph-abzeichen.ph-aktiv[data-ph-phrasen-verwaltung-filter-badge] {
    color: var(--ph-akzent);
    border-color: var(--ph-akzent);
}

button.ph-abzeichen[data-ph-phrasen-verwaltung-filter-badge] {
    cursor: pointer;
}

.ph-phrasen-verwaltung-werkzeug {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    margin-top: 0.55rem;
}

.ph-phrasen-verwaltung-werkzeug [data-ph-phrasen-verwaltung-filter-badge] {
    margin-left: auto;
}

.ph-phrasen-verwaltung-alle {
    opacity: 0.5;
}

.ph-phrasen-verwaltung-zaehler {
    font-size: 0.85rem;
    color: var(--ph-text-leise);
}

.ph-phrasen-verwaltung-body {
    max-height: 300px;
    overflow: auto;
}

.ph-phrasen-verwaltung-meta {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.55rem 0.15rem;
    background: var(--ph-flaeche);
    border-bottom: 1px solid var(--ph-rand);
    font-size: 0.85rem;
}

.ph-phrasen-filter-dialog,
.ph-eigene-phrase-dialog {
    width: min(100%, 22rem);
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.15rem 0.85rem;
    text-align: left;
}

.ph-eigene-phrase-dialog {
    max-height: min(86vh, 32rem);
}

.ph-phrasen-filter-dialog {
    position: relative;
    overflow: hidden;
    max-height: calc(100vh - max(1.25rem, var(--ph-safe-top)) - max(1.25rem, var(--ph-safe-bottom)));
    max-height: calc(100dvh - max(1.25rem, var(--ph-safe-top)) - max(1.25rem, var(--ph-safe-bottom)));
}

.ph-phrasen-filter-dialog .ph-phrasen-modal-kopf {
    margin-bottom: 0.4rem;
}

.ph-eigene-phrase-dialog .ph-feld {
    margin-top: 0.85rem;
    margin-bottom: 0.85rem;
}

.ph-eigene-phrase-dialog .ph-meldung {
    margin: 0 0 0.85rem;
}

.ph-eigene-phrase-dialog .ph-eigene-phrase-fuss {
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.ph-eigene-phrase-dialog .ph-eigene-phrase-fuss .ph-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 8.5rem;
}

.ph-eigene-phrase-loeschen {
    margin-top: 2.1rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 400;
}

.ph-feld textarea[data-ph-phrase-autohoehe] {
    min-height: calc(1.5em + 1.4rem);
    max-height: calc(7.5em + 1.4rem);
    line-height: 1.5;
    resize: none;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ph-phrasen-filter-liste {
    list-style: none;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0 0.2rem 1.6rem 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ph-akzent) rgba(255, 255, 255, 0.08);
}

.ph-phrasen-filter-liste::-webkit-scrollbar {
    width: 6px;
}

.ph-phrasen-filter-liste::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
}

.ph-phrasen-filter-liste::-webkit-scrollbar-thumb {
    background: var(--ph-akzent);
    border-radius: 99px;
}

.ph-phrasen-filter-dialog::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2rem;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--ph-flaeche));
}

.ph-phrasen-filter-trenner {
    height: 0.45rem;
    margin: 0.1rem 0.7rem 0.2rem;
    border-bottom: 1px solid var(--ph-rand-stark);
    list-style: none;
}

.ph-phrasen-filter-eintrag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.38rem 0.7rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--ph-rand);
    background: transparent;
    color: var(--ph-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ph-phrasen-filter-anzahl {
    flex-shrink: 0;
    color: var(--ph-text-leise);
    font-variant-numeric: tabular-nums;
}

.ph-phrasen-filter-eintrag.ph-aktiv .ph-phrasen-filter-anzahl {
    color: var(--ph-akzent);
}

.ph-phrasen-filter-eintrag:last-child,
.ph-phrasen-filter-liste li:last-child .ph-phrasen-filter-eintrag {
    border-bottom: none;
}

.ph-phrasen-filter-eintrag.ph-aktiv {
    color: var(--ph-akzent);
    font-weight: 700;
}

.ph-phrasen-verwaltung-aktiv {
    margin: 0.75rem 0 0;
    padding: 0 0.5rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ph-akzent);
}

.ph-phrasen-liste-speichern {
    margin-top: 0.75rem;
}

.ph-phrasen-liste-speichern.ph-phrasen-liste-speichern-inaktiv,
.ph-phrasen-liste-speichern:disabled {
    background: var(--ph-flaeche-hoch);
    color: var(--ph-text-leise);
    border-color: var(--ph-rand-stark);
    opacity: 1;
    cursor: not-allowed;
}

[data-ph-eigene-phrase] {
    margin-top: 3.4rem;
}

[data-ph-eigene-phrase] .ph-btn {
    margin-top: 0.35rem;
}

.ph-phrasen-verwaltung-gesamt-leer {
    margin: 0.75rem 0.15rem;
}

.ph-phrasen-verwaltung-leer {
    margin: 0.75rem 0.15rem;
}

.ph-phrasen-verwaltung {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-phrasen-verwaltung-zeile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ph-rand);
}

.ph-phrasen-verwaltung-zeile:last-child,
.ph-phrasen-verwaltung-zeile[hidden] + .ph-phrasen-verwaltung-zeile:last-child {
    border-bottom: none;
}

.ph-phrasen-verwaltung-zeile[hidden] {
    display: none !important;
}

.ph-phrasen-verwaltung-text {
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    cursor: pointer;
}

.ph-phrasen-verwaltung-text-eigene {
    font-weight: 700;
}

.ph-phrasen-verwaltung-nase {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ph-phrasen-verwaltung-stift {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ph-akzent);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.ph-phrasen-verwaltung-stift:hover {
    color: var(--ph-akzent-dunkel);
}

.ph-phrasen-verwaltung-punkte {
    display: flex;
    align-items: center;
    width: auto;
    background: var(--ph-bg);
    border: 1px solid var(--ph-rand-stark);
    border-radius: 8px;
    overflow: hidden;
}

.ph-phrasen-verwaltung-punkte input {
    width: 35px;
    min-width: 0;
    padding: 0.15rem 0.1rem 0.15rem 0.2rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ph-text);
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: right;
    -moz-appearance: textfield;
}

.ph-phrasen-verwaltung-punkte input::-webkit-outer-spin-button,
.ph-phrasen-verwaltung-punkte input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ph-phrasen-verwaltung-punkte input:focus {
    outline: none;
}

.ph-phrasen-verwaltung-punkte:focus-within {
    border-color: var(--ph-akzent);
    box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.18);
}

.ph-phrasen-verwaltung-punkte .ph-punkt {
    flex-shrink: 0;
    margin-right: 0.45rem;
    padding-left: 5px;
    box-sizing: content-box;
    background-origin: content-box;
    height: 1.15em;
}

.ph-feld.ph-phrasen-nase-feld .ph-phrasen-verwaltung-punkte {
    width: fit-content;
    border-radius: var(--ph-radius-klein);
}

.ph-feld.ph-phrasen-nase-feld .ph-phrasen-verwaltung-punkte input {
    width: 50px;
    min-width: 0;
    padding: 0.7rem 0.15rem 0.7rem 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: right;
}

.ph-feld.ph-phrasen-nase-feld .ph-phrasen-verwaltung-punkte input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.ph-feld.ph-phrasen-nase-feld .ph-phrasen-verwaltung-punkte .ph-punkt {
    margin-top: 0;
    margin-right: 0.75rem;
    padding-left: 6px;
    height: 1.5rem;
    transform: translateY(6px);
}

.ph-community-titel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ph-community-titel h1 {
    margin: 0;
    min-width: 0;
}

.ph-community-titel .ph-btn-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.ph-community-titel + .ph-aktionen {
    margin-top: 0.85rem;
}

.ph-community-aktionen {
    justify-content: space-between;
}

.ph-zugriff-hinweis {
    color: var(--ph-karte-rot);
    font-size: 0.97rem;
    font-weight: 600;
    line-height: inherit;
    text-align: center;
    white-space: pre-line;
}

.ph-community-liste {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ph-community-liste .ph-karte + .ph-karte {
    margin-top: 0;
}

.ph-community-karte {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ph-community-karte-rolle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: -1.35rem -1.35rem 0;
    padding: 0.7rem 1.35rem;
    background: var(--ph-flaeche-hoch);
    border-bottom: 1px solid var(--ph-rand);
    border-radius: var(--ph-radius) var(--ph-radius) 0 0;
}

.ph-community-karte-rolle-text {
    color: var(--ph-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.ph-community-karte-rolle-beschraenkt {
    justify-content: center;
}

.ph-community-karte-rolle-beschraenkt .ph-community-karte-rolle-text {
    color: var(--ph-karte-rot);
}

.ph-community-kopf {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ph-community-titelzeile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.ph-community-titelzeile h3 {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.ph-community-titelzeile h3,
.ph-community-titelzeile h3 a {
    color: var(--ph-akzent);
}

.ph-community-kapitaen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.ph-community-kapitaen .ph-profilbild {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
}

.ph-community-kapitaen-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.04rem;
    min-width: 0;
    text-align: left;
}

.ph-community-kapitaen-name {
    margin: 0;
    color: var(--ph-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ph-community-kopf .ph-kachel-meta,
.ph-community-kopf .ph-kachel-warnung {
    margin: 0;
}

.ph-community-karte-mitte {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
    text-align: center;
}

.ph-community-karte-mitte .ph-kachel-warnung {
    justify-content: center;
}

.ph-community-karte-gesperrt .ph-community-kopf .ph-kachel-warnung {
    margin-top: 0.75rem;
    text-align: center;
}

.ph-community-karte-mitte .ph-btn {
    padding: 0.2rem 0.7rem;
    font-size: 0.82rem;
    gap: 0.3rem;
}

.ph-community-karte-spieler {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
}

.ph-community-karte-spieler .ph-kachel-meta {
    margin: 0;
}

.ph-community-karte-spielername {
    margin: 0;
    color: var(--ph-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ph-community-karte-spiele-leer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.ph-community-karte-spiele-leer p {
    margin: 0;
    color: var(--ph-text-leise);
    font-size: 0.9rem;
}

.ph-community-spiele {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.ph-spiel-kachel {
    display: block;
    overflow: hidden;
    color: var(--ph-text);
    background: var(--ph-bg);
    border: 1px solid var(--ph-rand-stark);
    border-radius: var(--ph-radius-klein);
}

.ph-spiel-kachel:hover { color: var(--ph-text); }

.ph-spiel-kachel .ph-kachel-meta {
    display: none;
}

.ph-spiel-kachel .ph-bild-badge {
    top: 0.4rem;
    left: 0.4rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
}

.ph-spiel-kachel .ph-kachel-titel {
    margin: 0.5rem 0.55rem 0.55rem;
    font-size: 0.82rem;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.ph-spiel-kachel .ph-bild {
    width: 100%;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--ph-rand-stark);
    border-radius: 0;
}

.ph-karte.ph-spiel-kopf {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 32rem;
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.ph-spiel-kopf-bildflaeche {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    aspect-ratio: 1;
    width: 100%;
    padding: calc(0.85rem + 30px) 1.4rem 4.2rem;
}

.ph-spiel-kopf-kategorie {
    z-index: 2;
    opacity: 0.4;
}

.ph-spiel-kopf-oben {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto 1.1rem;
}

.ph-spiel-kopf-oben .ph-btn {
    padding: 0.4rem 0.85rem;
}

.ph-spiel-kopf-oben:not(:has(:nth-child(2))) {
    justify-content: flex-end;
}

.ph-spiel-kopf-bild,
.ph-spiel-kopf-icon {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
}

.ph-spiel-kopf-bild {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-spiel-kopf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(5.5rem, 18vw, 9rem);
    color: var(--ph-akzent);
}

.ph-spiel-kopf-inhalt {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.ph-spiel-kopf-community-name {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ph-akzent);
    overflow-wrap: anywhere;
}

.ph-spiel-kopf h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    color: #fff;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.55);
}

.ph-spiel-kopf-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: #f4f6fb;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.7),
        0 6px 16px rgba(0, 0, 0, 0.45);
}

.ph-spiel-kopf-meta > * + *::before {
    content: "·";
    margin: 0 0.7rem;
    opacity: 0.72;
}

.ph-spiel-kopf-phrasen {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    z-index: 2;
    margin: 0;
    padding: 0 0.9rem;
}

.ph-spiel-kopf-phrasen .ph-btn {
    background: rgba(200, 255, 61, 0.14);
    border-color: var(--ph-akzent);
    color: var(--ph-akzent);
}

.ph-spiel-kopf-phrasen .ph-btn:hover {
    background: rgba(200, 255, 61, 0.24);
    color: var(--ph-akzent);
}

.ph-spiel-kopf-fuss {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0.85rem 1.2rem;
    border-top: 1px solid var(--ph-rand);
    background: var(--ph-flaeche);
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.45;
}

.ph-spiel-kopf-fuss .ph-punkt {
    flex-shrink: 0;
    height: 3.15rem;
    vertical-align: unset;
}

.ph-spiel-kopf-fuss-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ph-spiel-kopf-fuss-text strong {
    font-weight: 700;
}

.ph-spiel-kopf-fuss-text span {
    font-weight: 400;
}

.ph-spiel-kopf-unter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 32rem;
    margin: 0.75rem auto 1.35rem;
}

.ph-spiel-verklagen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
}

.ph-spiel-verklagen-hinweis {
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ph-karte-rot);
}

.ph-spiel-verklagen-hinweis p {
    margin: 0;
}

.ph-spiel-verklagen-hinweis ul {
    display: inline-block;
    margin: 0.2rem 0 0;
    padding-left: 1.15rem;
    text-align: left;
}

.ph-spiel-kopf-zeitraum {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin: 0;
    padding: 0 0.9rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: #f4f6fb;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.7),
        0 6px 16px rgba(0, 0, 0, 0.45);
}

.ph-archiv-status {
    margin: 0 0 1.2rem;
    color: #3df2ff;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow:
        0 0 8px rgba(61, 242, 255, 0.95),
        0 0 18px rgba(61, 242, 255, 0.7),
        0 0 32px rgba(61, 242, 255, 0.45),
        0 1px 2px rgba(0, 0, 0, 0.75);
}

.ph-archiv-kennzahlen {
    width: 100%;
    max-width: 32rem;
    margin: 1.1rem auto 0;
}

.ph-archiv-kennzahlen .ph-karte + .ph-karte {
    margin-top: 0;
}

.ph-archiv-phrasen {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ph-archiv-phrasen .ph-karte + .ph-karte {
    margin-top: 0;
}

.ph-archiv-phrase {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
}

.ph-archiv-phrase-text {
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ph-archiv-phrase .ph-kachel-zeile-name .ph-punkt {
    height: 0.9em;
}

.ph-community-karte > .ph-btn {
    margin-top: 0.15rem;
}

.ph-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ph-aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.ph-aktion-block {
    display: flex;
    justify-content: center;
    padding: 1.25rem 0;
}

.ph-ehemalige-bereich {
    margin-top: 3.75rem;
}

.ph-ehemalige-aktion {
    margin-top: 1rem;
}

.ph-loeschen-bereich {
    display: flex;
    justify-content: center;
    margin-top: 2.75rem;
}

.ph-profil-loeschen-bereich {
    margin-top: 4rem;
    margin-bottom: 4.25rem;
}

.ph-loeschen-bereich-links {
    justify-content: flex-start;
}

.ph-loeschen-kennzahlen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.25rem 0 1.4rem;
}

.ph-loeschen-kennzahlen .ph-karte + .ph-karte {
    margin-top: 0;
}

.ph-abschnitt-kopf .ph-aktionen {
    margin-top: 0.85rem;
}

.ph-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.4rem;
}

.ph-row > .col-3,
.ph-row > .col-6,
.ph-row > .col-12 {
    padding: 0 0.4rem;
}

.ph-row > .col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.ph-row > .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.ph-row > .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ---------- Formulare ---------- */

.ph-feld {
    margin-bottom: 1rem;
}

.ph-feld label,
.ph-feld-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ph-text-leise);
}

.ph-feld label .ph-punkt {
    margin-left: 0.3rem;
    height: 0.95em;
}

.ph-sprachen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.ph-sprache-wahl {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
    padding: 0.45rem 0.75rem 0.45rem 0.5rem;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--ph-text) !important;
    background: var(--ph-bg);
    border: 1px solid var(--ph-rand-stark);
    border-radius: 999px;
    cursor: pointer;
}

.ph-sprache-wahl:has(input:checked) {
    border-color: var(--ph-akzent);
    box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16);
}

.ph-sprache-wahl input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ph-sprache-wahl img {
    display: block;
    width: 28px;
    height: 21px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px var(--ph-rand);
}

.ph-feld input[type="text"],
.ph-feld input[type="email"],
.ph-feld input[type="password"],
.ph-feld input[type="number"],
.ph-feld input[type="search"],
.ph-feld select,
.ph-feld textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ph-text);
    background: var(--ph-bg);
    border: 1px solid var(--ph-rand-stark);
    border-radius: var(--ph-radius-klein);
    transition: var(--ph-uebergang);
}

.ph-feld textarea {
    min-height: 90px;
    resize: vertical;
}

.ph-feld textarea[data-ph-autohoehe] {
    min-height: calc(3rem + 1.4rem);
    max-height: 400px;
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
}

.ph-feld input:read-only {
    background: var(--ph-bg);
}

.ph-feld input:focus,
.ph-feld select:focus,
.ph-feld textarea:focus {
    outline: none;
    border-color: var(--ph-akzent);
    box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.18);
}

.ph-feld-hinweis {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--ph-text-leise);
}

.ph-feld-kennwort {
    position: relative;
}

.ph-feld-kennwort input[type="password"],
.ph-feld-kennwort input[type="text"] {
    padding-right: 2.8rem;
}

.ph-kennwort-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    color: var(--ph-text-leise);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
}

.ph-kennwort-toggle:hover,
.ph-kennwort-toggle:focus-visible {
    color: var(--ph-text);
}

.ph-kennwort-vergessen {
    margin-top: 0.55rem;
}

.ph-code-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
}

.ph-code-zeile input {
    flex: 1 1 10rem;
    min-width: 0;
}

.ph-code-zeile .ph-btn-qr-scan {
    flex: 0 0 auto;
    align-self: stretch;
    aspect-ratio: 1;
    width: auto;
    min-width: 0;
    padding: 0.6rem;
    gap: 0;
    border-radius: var(--ph-radius-klein);
}

.ph-code-zeile .ph-btn-qr-scan .bi {
    font-size: 1.85rem;
    line-height: 1;
}

.ph-code-zeile .ph-btn-qr-scan .ph-btn-text-kurz {
    display: none;
}

.ph-feld-code input {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-align: center;
    text-transform: uppercase;
}

.ph-qr-scanner {
    margin: 0 0 1.1rem;
}

.ph-qr-scanner-video {
    display: block;
    width: 100%;
    max-height: min(52vh, 22rem);
    margin-bottom: 0.65rem;
    border-radius: var(--ph-radius-klein);
    border: 1px solid var(--ph-rand-stark);
    background: #000;
    object-fit: cover;
}

.ph-recaptcha {
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.ph-recaptcha .g-recaptcha {
    transform-origin: center top;
}

@media (max-width: 380px) {
    .ph-recaptcha .g-recaptcha {
        transform: scale(0.88);
    }
}

/* ---------- Meldungen ---------- */

.ph-meldung {
    padding: 0.8rem 1rem;
    margin-bottom: 1.1rem;
    border-radius: var(--ph-radius-klein);
    border: 1px solid var(--ph-rand-stark);
    font-size: 0.93rem;
}

.ph-meldung-fehler {
    background: rgba(255, 75, 87, 0.12);
    border-color: rgba(255, 75, 87, 0.45);
    color: #ffc9cd;
}

.ph-meldung-gut {
    background: rgba(47, 212, 122, 0.12);
    border-color: rgba(47, 212, 122, 0.45);
    color: #b6f2cf;
}

.ph-meldung-info {
    background: rgba(74, 168, 255, 0.12);
    border-color: rgba(74, 168, 255, 0.45);
    color: #cbe5ff;
}

.ph-leer {
    padding: 0 1.25rem 1.5rem;
    overflow: hidden;
    text-align: center;
    color: var(--ph-text-leise);
    background: var(--ph-flaeche);
    border: 1px dashed var(--ph-rand-stark);
    border-radius: var(--ph-radius);
}

.ph-leer i {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 2rem;
    color: var(--ph-text-leise);
    opacity: 0.7;
}

.ph-leer .ph-bild {
    width: calc(100% + 2.5rem);
    margin: 0 -1.25rem 1rem;
    border: none;
    border-bottom: 1px dashed var(--ph-rand-stark);
    border-radius: 0;
}

.ph-leer p {
    margin: 0;
}

/* ---------- Abzeichen und Punktestand ---------- */

.ph-abzeichen {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--ph-flaeche-hoch);
    border: 1px solid var(--ph-rand);
    color: var(--ph-text-leise);
}

.ph-abzeichen.ph-community-kapitaen-abzeichen {
    gap: 0.22rem;
    padding: 0.1rem 0.42rem;
    font-size: 0.74rem;
    line-height: 1.25;
}

.ph-abzeichen.ph-community-kapitaen-abzeichen i {
    font-size: 0.6rem;
}

.ph-abzeichen-kapitaen {
    background: rgba(255, 197, 49, 0.14);
    border-color: rgba(255, 197, 49, 0.4);
    color: var(--ph-karte-gelb);
}

.ph-abzeichen-admin {
    background: rgba(74, 168, 255, 0.14);
    border-color: rgba(74, 168, 255, 0.4);
    color: var(--ph-blau);
}

.ph-abzeichen-offen {
    background: rgba(255, 197, 49, 0.14);
    border-color: rgba(255, 197, 49, 0.4);
    color: var(--ph-karte-gelb);
}

.ph-abzeichen-gewertet,
.ph-abzeichen-warnung {
    background: rgba(255, 75, 87, 0.14);
    border-color: rgba(255, 75, 87, 0.4);
    color: var(--ph-karte-rot);
}

.ph-abzeichen-verworfen {
    background: rgba(47, 212, 122, 0.14);
    border-color: rgba(47, 212, 122, 0.4);
    color: var(--ph-gruen);
}

.ph-punkte {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--ph-radius-klein);
    background: var(--ph-bg);
    border: 1px solid var(--ph-rand-stark);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.ph-punkte-zahl { font-size: 1.15rem; }
.ph-punkte-einheit { font-size: 0.75rem; color: var(--ph-text-leise); font-weight: 600; }

/* ---------- Bezahlte Schulden ---------- */

.ph-zahlung-liste {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.ph-zahlung {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "bild datum punkte"
        "bild name name"
        "phrase phrase info"
        "text text text";
    cursor: pointer;
    column-gap: 0.75rem;
    row-gap: 0.08rem;
    align-items: center;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.ph-zahlung:last-child {
    border-bottom: none;
}

.ph-zahlung[hidden] {
    display: none !important;
}

.ph-zahlung .ph-profilbild {
    grid-area: bild;
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
}

.ph-zahlung-datum {
    grid-area: datum;
    color: var(--ph-text-leise);
    font-size: 0.85rem;
}

.ph-zahlung-name {
    grid-area: name;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ph-zahlung-punkte {
    grid-area: punkte;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ph-zahlung-phrase,
.ph-zahlung-text {
    color: var(--ph-text-leise);
    font-size: 0.85rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ph-zahlung-phrase {
    grid-area: phrase;
    margin-top: 0.7rem;
}

.ph-zahlung .ph-anklage-phrase {
    margin-top: 0.7rem;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.ph-zahlung-text {
    grid-area: text;
}

.ph-verlauf-anzahl {
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ph-text-leise);
}

.ph-verlauf-suche {
    margin: 0 0 0.85rem;
}

.ph-verlauf-suche input {
    padding-right: 2.5rem;
}

.ph-verlauf-suche input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.ph-verlauf-suche-leeren {
    position: absolute;
    top: 50%;
    right: 0.3rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: var(--ph-text-leise);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.ph-verlauf-suche-leeren:hover {
    color: var(--ph-text);
}

.ph-verlauf-suche-leeren i {
    position: static;
    left: auto;
    transform: none;
    pointer-events: none;
    color: inherit;
}

.ph-verlauf-suche-leeren[hidden] {
    display: none !important;
}

.ph-verlauf-treffer {
    padding: 0 0.12em;
    border-radius: 0.2em;
    background: var(--ph-akzent);
    color: var(--ph-akzent-text);
    box-shadow: none;
}

.ph-zahlung-info {
    grid-area: info;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: 0.7rem;
    color: #b8e4ff;
    font-size: 1.55rem;
    line-height: 1;
}

.ph-zahlung-karten {
    grid-area: text;
    margin-top: 0.5rem;
}

.ph-zahlung:not(.ph-verlauf-aufgeklappt) .ph-zahlung-karten .ph-mitglied-historie-meta:not(.ph-mitglied-strafe-offen) {
    display: none;
}

.ph-zahlung:not(.ph-verlauf-aufgeklappt) .ph-zahlung-karten:not(:has(.ph-mitglied-strafe-offen)) {
    display: none;
}

.ph-strafen-wahl {
    display: flex;
    flex-direction: column;
}

.ph-strafe-wahl {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--ph-rand);
    cursor: pointer;
}

.ph-strafe-wahl[hidden] {
    display: none;
}

.ph-strafe-wahl input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.ph-strafe-wahl-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ph-strafe-wahl-punkte {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---------- Rangliste ---------- */

.ph-rangliste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-rang {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--ph-rand);
}

.ph-rang:last-child { border-bottom: none; }

.ph-rang-platz {
    flex: 0 0 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--ph-flaeche-hoch);
    font-weight: 700;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.ph-rang:first-child .ph-rang-platz:not(.ph-rang-platz-bild) {
    background: var(--ph-karte-gelb);
    color: #2c1f00;
}

.ph-rang-platz-bild {
    padding: 0;
    overflow: hidden;
    background: var(--ph-flaeche-hoch);
}

.ph-rang-platz-bild img,
.ph-kategorie-mini {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ph-kategorie-inline {
    display: inline-block;
    width: 1.35em;
    height: 1.35em;
    object-fit: contain;
    vertical-align: -0.3em;
    margin-right: 0.15rem;
}

.ph-rang-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
}

.ph-rang-meta {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ph-text-leise);
}

.ph-rang-stand {
    align-items: flex-start;
}

.ph-rang-stand-haupt {
    flex: 1 1 auto;
    min-width: 0;
}

.ph-rang-stand-kopf {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ph-rang-gelb-badge,
.ph-rang-nase {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.ph-rang-gelb-badge {
    padding: 0.05rem 0.4rem;
    border: 1px solid var(--ph-karte-gelb);
    border-radius: 999px;
    background: transparent;
    color: var(--ph-karte-gelb);
    font-size: 0.95rem;
}

.ph-rang-gelb-zahl {
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    transform: translateY(-1px);
}

.ph-rang-gelb-badge .ph-punkt {
    width: auto;
    height: 0.95rem;
}

.ph-rang-nase .ph-punkt {
    width: auto;
    height: 1.85rem;
}

.ph-rang-nase .ph-rang-gelb-zahl {
    font-size: 1.89rem;
}

.ph-punkte.ph-rang-offen-badge {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    margin-left: auto;
}

.ph-rang-offen-zeile {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ph-text-leise);
    font-variant-numeric: tabular-nums;
}

.ph-rang-offen-badge .ph-punkte-zahl {
    font-size: 1.05rem;
    color: var(--ph-text);
}

.ph-rang-person-kopf {
    align-items: center;
}

.ph-rang-fuss {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--ph-radius-klein);
    background: var(--ph-bg);
    border: 1px solid var(--ph-rand-stark);
}

.ph-rang-fuss-offen {
    color: var(--ph-text-leise);
    font-size: 0.9rem;
    font-weight: 600;
}

.ph-rang-fuss-punkte {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    font-weight: 700;
}

.ph-rang-fuss-zahl {
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ph-text);
}

.ph-rang-fuss-punkte .ph-rang-fuss-zahl,
.ph-zahlung-punkte > span:last-child,
.ph-strafe-wahl-punkte > span:last-child {
    transform: translateY(-1px);
}

.ph-rang-stand .ph-rang-name,
.ph-rang-stand .ph-rang-meta {
    display: block;
}

.ph-rang-zeichen {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.28rem;
    color: var(--ph-text-leise);
    font-size: 0.85rem;
    font-weight: 600;
}

.ph-rang-zeichen-wert {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-variant-numeric: tabular-nums;
}

/* ---------- Pranger ---------- */

.ph-pranger {
    display: grid;
    gap: 0.9rem;
}

.ph-abschnitt:has(.ph-pranger) .ph-abschnitt-kopf {
    margin-bottom: 0.65rem;
}

.ph-anklage {
    position: relative;
    padding: 1.1rem 1.1rem 1.1rem 1.35rem;
    background:
        radial-gradient(120% 120% at 25% 0%, rgba(200, 255, 61, 0.16), transparent 55%),
        var(--ph-flaeche);
    border: 1px solid var(--ph-rand);
    border-radius: var(--ph-radius);
    overflow: hidden;
}

.ph-anklage::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--ph-karte-gelb);
}

.ph-anklage-gewertet::before {
    background: var(--ph-karte-rot);
}

.ph-anklage-verworfen::before {
    background: var(--ph-gruen);
}

.ph-anklage-widerspruch::before {
    background: var(--ph-karte-orange);
}

.ph-anklage-kopf {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.ph-anklage-kopf .ph-bild {
    flex: 0 0 6.25rem;
    width: 6.25rem;
    margin: 0;
    overflow: visible;
    z-index: 1;
    background: none;
    border: none;
    border-radius: 0;
}

.ph-anklage-kopf .ph-bild img {
    padding: 0;
}

.ph-anklage-kopf .ph-bild-badge {
    top: calc(0.35rem - 10px);
    left: calc(0.35rem - 10px);
    max-width: none;
    padding: 0.12rem 0.35rem;
    font-size: 0.55rem;
    white-space: nowrap;
}

.ph-anklage-titel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.18rem;
    min-width: 0;
    padding-top: 0.15rem;
}

.ph-anklage-kopfzeile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.ph-anklage-community {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ph-akzent);
    overflow-wrap: anywhere;
}

.ph-anklage-spiel {
    margin-top: 0.12rem;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ph-anklage-nase {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.4rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.ph-anklage-nase-zahl {
    font-size: 0.85em;
    line-height: 1;
    transform: translateY(-1px);
}

.ph-anklage-nase .ph-punkt {
    height: 0.85em;
}

.ph-anklage-nase-mittig {
    display: flex;
    justify-content: center;
    margin: 0 0 0.7rem;
    font-size: 1.7rem;
}

.ph-anklage-nase-mittig .ph-punkt {
    height: 1em;
}

.ph-anklage-nase-verworfen {
    opacity: 0.4;
}

.ph-anklage-phrase {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--ph-radius-klein);
    background: rgba(18, 36, 64, 0.55);
    border: 1px solid rgba(160, 210, 255, 0.75);
    box-shadow: 0 0 0.85rem rgba(150, 205, 255, 0.35);
    font-size: 0.92rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.35;
    color: #f3f9ff;
    text-shadow:
        0 0 0.1em #ffffff,
        0 0 0.28em rgba(170, 220, 255, 0.7);
}

.ph-anklage-zeile-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ph-anklage-zeile-kopf .ph-anklage-zeile {
    min-width: 0;
}

.ph-anklage-wer {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.ph-anklage-wer + .ph-anklage-wer {
    margin-top: 0.7rem;
}

.ph-anklage > .ph-anklage-wer:first-child {
    margin-bottom: 0.75rem;
}

.ph-anklage-wer .ph-anklage-nase {
    margin-left: auto;
}

.ph-anklage-entscheidung {
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.ph-anklage-entscheidung .ph-anklage-neben-aktionen {
    flex: 1 1 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.85rem;
}

.ph-anklage-entscheidung .ph-anklage-neben-aktionen .ph-melden-link {
    font-size: 0.78rem;
    line-height: 1.2;
    padding-bottom: 0.15rem;
}

.ph-anklage-entscheidung .ph-anklage-loeschen {
    margin: 0;
    margin-left: auto;
}

.ph-anklage-zeilen {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.04rem;
    min-width: 0;
}

.ph-anklage-zeile,
.ph-anklage-bemerkung-label,
.ph-anklage-bemerkung-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.35;
}

.ph-anklage-zeile,
.ph-anklage-bemerkung-text {
    color: var(--ph-text-leise);
    font-weight: 400;
}

.ph-anklage-name {
    color: var(--ph-text);
    font-weight: 700;
}

.ph-anklage-bemerkung {
    margin-top: 0.85rem;
}

.ph-anklage-bemerkung-label {
    font-weight: 700;
    color: var(--ph-text);
}

.ph-anklage-meta {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: var(--ph-text-leise);
}

.ph-anklage-meta-name {
    display: block;
    margin-top: 0.15rem;
}

.ph-frist {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--ph-karte-gelb);
}

.ph-frist-abgelaufen { color: var(--ph-karte-rot); }

/* ---------- Tabellen und Listen ---------- */

.ph-tabelle-wrap {
    overflow-x: auto;
}

.ph-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.ph-tabelle th,
.ph-tabelle td {
    padding: 0.65rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid var(--ph-rand);
    vertical-align: middle;
}

.ph-tabelle th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ph-text-leise);
}

.ph-tabelle tr:last-child td { border-bottom: none; }

.ph-tabelle input[type="number"] {
    width: 86px;
    padding: 0.35rem 0.5rem;
    color: var(--ph-text);
    background: var(--ph-bg);
    border: 1px solid var(--ph-rand-stark);
    border-radius: 8px;
    font-family: inherit;
}

.ph-schalter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--ph-text-leise);
    cursor: pointer;
}

.ph-schalter input { accent-color: var(--ph-akzent); width: 18px; height: 18px; }

/* ---------- Einladung / QR ---------- */

.ph-code {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.35em;
    text-indent: 0.35em;
    background: var(--ph-bg);
    border: 1px dashed var(--ph-akzent);
    border-radius: var(--ph-radius-klein);
    color: var(--ph-akzent);
}

.ph-qr {
    display: inline-block;
    padding: 0.9rem;
    background: #fff;
    border-radius: var(--ph-radius-klein);
    line-height: 0;
}

.ph-qr img {
    width: 220px;
    height: 220px;
    display: block;
}

/* ---------- Statistikbalken ---------- */

.ph-balken {
    height: 8px;
    margin-top: 0.4rem;
    background: var(--ph-bg);
    border-radius: 999px;
    overflow: hidden;
}

.ph-balken-fuellung {
    height: 100%;
    background: linear-gradient(90deg, var(--ph-akzent-dunkel), var(--ph-akzent));
    border-radius: 999px;
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
    body.ph-nav-offen {
        overflow: hidden;
    }

    .ph-nav-schatten {
        position: fixed;
        inset: 0;
        z-index: 32;
        background: rgba(6, 8, 16, 0.62);
    }

    .ph-nav-schatten.ph-nav-schatten-offen {
        display: block;
    }

    .ph-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        font-size: 1.7rem;
        position: relative;
        z-index: 41;
    }

    .ph-nav {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 1.1rem;
        right: 1.1rem;
        z-index: 40;
        margin: 0;
        padding: 0.7rem;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        background: var(--ph-flaeche);
        border: 1px solid var(--ph-rand-stark);
        border-radius: var(--ph-radius);
        box-shadow: var(--ph-schatten);
    }

    .ph-nav.ph-nav-offen {
        display: grid;
    }

    .ph-nav li {
        min-width: 0;
    }

    .ph-nav-konto {
        display: block;
        grid-column: 1 / -1;
    }

    .ph-nav-konto-kopf {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-width: 0;
        padding: 0.35rem 0.35rem 0.75rem;
        margin-bottom: 0.15rem;
        border-bottom: 1px solid var(--ph-rand-stark);
    }

    .ph-nav-konto-kopf .ph-profilbild {
        flex: 0 0 auto;
    }

    .ph-nav-konto-email {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
        color: var(--ph-text);
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.25;
    }

    .ph-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
        min-height: 92px;
        padding: 0.85rem 0.5rem;
        border: 1px solid var(--ph-rand-stark);
        border-radius: 16px;
        background: var(--ph-bg);
        color: var(--ph-text);
        font-size: 0.86rem;
        font-weight: 600;
        text-align: center;
        line-height: 1.15;
    }

    .ph-nav-link i {
        font-size: 1.7rem;
        line-height: 1;
        color: var(--ph-akzent);
    }

    .ph-nav-link:hover,
    .ph-nav-link.ph-aktiv {
        color: var(--ph-akzent);
        background: rgba(200, 255, 61, 0.12);
        border-color: var(--ph-akzent);
    }

    .ph-nav-link.ph-nav-link-gut,
    .ph-nav-link.ph-nav-link-gut:hover,
    .ph-nav-link.ph-nav-link-gut.ph-aktiv {
        background: rgba(47, 212, 122, 0.12);
        border-color: var(--ph-gruen);
        color: var(--ph-gruen);
    }

    .ph-nav-link.ph-nav-link-gut i {
        color: var(--ph-gruen);
    }

    .ph-nav-link.ph-nav-link-gelb,
    .ph-nav-link.ph-nav-link-gelb:hover,
    .ph-nav-link.ph-nav-link-gelb.ph-aktiv {
        background: rgba(255, 197, 49, 0.12);
        border-color: var(--ph-karte-gelb);
        color: var(--ph-karte-gelb);
    }

    .ph-nav-link.ph-nav-link-gelb i {
        color: var(--ph-karte-gelb);
    }

    .ph-nav-link.ph-nav-link-gefahr,
    .ph-nav-link.ph-nav-link-gefahr:hover,
    .ph-nav-link.ph-nav-link-gefahr.ph-aktiv {
        background: rgba(255, 75, 87, 0.12);
        border-color: var(--ph-karte-rot);
        color: var(--ph-karte-rot);
    }

    .ph-nav-link.ph-nav-link-gefahr i {
        color: var(--ph-karte-rot);
    }

    .ph-nav-sprachen-eintrag {
        grid-column: 1 / -1;
        margin-top: 0.15rem;
        padding-top: 0.55rem;
        border-top: 1px solid var(--ph-rand-stark);
    }

    .ph-nav-sprachen {
        width: 100%;
        gap: 0.65rem;
    }

    .ph-nav-sprache-form {
        flex: 1;
        min-width: 0;
    }

    .ph-nav-sprache-btn {
        width: 100%;
        min-height: 52px;
        padding: 0.55rem;
        border-radius: 14px;
    }

    .ph-nav-recht-toggle-eintrag {
        display: block;
        grid-column: 1 / -1;
        margin-top: 0.15rem;
        padding-top: 0.55rem;
        border-top: 1px solid var(--ph-rand-stark);
    }

    .ph-nav-recht-toggle-eintrag[hidden] {
        display: none;
    }

    .ph-nav-recht-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        width: 100%;
        padding: 0.15rem 0;
        border: 0;
        background: transparent;
        color: var(--ph-text-leise);
        font: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        text-align: center;
        text-decoration: underline;
        text-underline-offset: 0.2em;
        cursor: pointer;
    }

    .ph-nav-recht-toggle[hidden] {
        display: none;
    }

    .ph-nav-recht-toggle:hover,
    .ph-nav-recht-toggle:focus-visible {
        color: var(--ph-akzent);
        outline: none;
    }

    .ph-nav-recht-eintrag:not([hidden]) {
        display: block;
    }

    .ph-nav-recht-toggle-eintrag + .ph-nav-recht-eintrag:not([hidden]) {
        grid-column: 1 / -1;
        margin-top: 0.15rem;
    }

    .ph-nav-link.ph-nav-link-recht {
        min-height: 62px;
        padding: 0.7rem 0.5rem;
        font-size: 0.82rem;
        color: var(--ph-text-leise);
    }

    .ph-nav-link.ph-nav-link-recht i {
        font-size: 1.25rem;
    }

    .ph-nav-sprache-btn img {
        width: 40px;
        height: 30px;
    }

    .ph-abschnitt-kopf {
        flex-direction: column;
        align-items: flex-start;
    }

    .ph-hero { padding-top: 1.5rem; }

    .ph-karte { padding: 1.1rem; }

    .ph-community-karte-rolle {
        margin: -1.1rem -1.1rem 0;
        padding: 0.65rem 1.1rem;
    }
}

/* ---------- Profilbild ---------- */

.ph-visuell-versteckt {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ph-visuell-versteckt.ph-btn {
    display: none !important;
}

.ph-profil-bild-karte {
    text-align: center;
}

.ph-profil-avatar-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
    margin: 1.25rem 0 0.5rem;
}

.ph-profil-avatar-loeschen {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border: 3px solid var(--ph-bg);
    border-radius: 50%;
    background: var(--ph-karte-rot);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    transition: var(--ph-uebergang);
}

.ph-profil-avatar-loeschen:hover,
.ph-profil-avatar-loeschen:focus-visible {
    background: #e43b46;
    transform: scale(1.04);
    outline: none;
}

.ph-profil-avatar-loeschen i {
    font-size: 1.15rem;
}

.ph-profil-avatar {
    width: min(70vw, 300px);
    height: min(70vw, 300px);
    max-width: 300px;
    max-height: 300px;
    padding: 0;
    border: 2px solid var(--ph-rand-stark);
    border-radius: 50%;
    background: var(--ph-bg);
    cursor: pointer;
    overflow: hidden;
    transition: var(--ph-uebergang);
}

.ph-profil-avatar:hover,
.ph-profil-avatar:focus-visible {
    border-color: var(--ph-akzent);
    box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.16);
    outline: none;
}

.ph-profil-avatar-inhalt,
.ph-profil-avatar-inhalt img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-profil-avatar-inhalt i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: clamp(3rem, 18vw, 5.5rem);
    color: var(--ph-text-leise);
}

.ph-profil-avatar-inhalt img.ph-profil-avatar-platzhalter {
    object-fit: contain;
    padding: 8%;
    opacity: 0.6;
}

.ph-profil-bild-aktionen {
    margin-top: 0.75rem;
}

.ph-profilbild {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ph-flaeche-hoch);
    border: 1px solid var(--ph-rand-stark);
    color: var(--ph-text-leise);
}

.ph-profilbild img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-profilbild img.ph-profilbild-platzhalter {
    object-fit: contain;
    padding: 8%;
}

.ph-profilbild-klein {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
}

.ph-profilbild-rang {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.ph-profilbild-rang-gross {
    width: 56px;
    height: 56px;
    font-size: 1.55rem;
}

.ph-profilbild-mitglied {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
}

.ph-mitglied-zeile {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.ph-mitglied-community {
    margin: 0.15rem 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ph-mitglied-titelblock .ph-mitglied-community {
    margin: 0.55rem 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.ph-mitglied-liste {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ph-mitglied-karte {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
    overflow: visible;
}

.ph-rang-kopfzeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ph-rang-platz {
    position: absolute;
    top: -0.35rem;
    left: -0.35rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 1.3em;
    padding: 0.8em 0.55em;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 0.88rem;
    pointer-events: none;
}

.ph-rang-kopfzeile .ph-rang-platz {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.85rem;
    box-sizing: border-box;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 0.45rem #fff,
        inset 0 0 0.95rem rgba(255, 255, 255, 0.6),
        inset 0 0 1.4rem rgba(255, 255, 255, 0.28),
        0 0 0.4rem rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: auto;
}

.ph-rang-kopfzeile .ph-rang-platz-zahl {
    color: #fff;
    font-size: 1em;
    font-variant-numeric: tabular-nums;
    text-shadow:
        0 0 0.12em #fff,
        0 0 0.28em rgba(255, 255, 255, 0.7),
        0 0 0.55em rgba(255, 255, 255, 0.4);
}

.ph-rang-platz-zahl {
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.ph-mitglied-liste .ph-karte + .ph-karte {
    margin-top: 0;
}

.ph-mitglied-karte-offen {
    border: 2px solid var(--ph-karte-rot);
}

.ph-mitglied-karte-klickbar {
    cursor: pointer;
    transition: var(--ph-uebergang);
}

.ph-mitglied-karte-klickbar:hover,
.ph-mitglied-karte-klickbar:focus-visible {
    border-color: var(--ph-rand-stark);
    box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.12);
    outline: none;
}

.ph-mitglied-detail-oben {
    margin-bottom: 1.1rem;
}

.ph-mitglied-detail-oben .ph-mitglied-titelblock {
    margin-bottom: 1.85rem;
}

.ph-mitglied-detail-zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.ph-mitglied-detail-zurueck {
    margin-left: auto;
}

.ph-mitglied-detail-ident {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.ph-mitglied-detail-text {
    min-width: 0;
    flex: 1;
}

.ph-mitglied-detail-name {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.22;
    color: #fff;
    overflow-wrap: anywhere;
}

.ph-mitglied-detail-anklage {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.ph-mitglied-detail-seit {
    margin: 0;
}

.ph-mitglied-detail-warnung {
    margin: 0.5rem 0 0;
}

.ph-mitglied-avatar-gross .ph-profilbild-mitglied {
    width: 72px;
    height: 72px;
}

.ph-mitglied-kennzahlen {
    row-gap: 1rem;
}

.ph-mitglied-kennzahlen > [class^="col-"] {
    display: flex;
}

.ph-mitglied-kennzahlen .ph-karte {
    width: 100%;
    height: 100%;
    margin-top: 0;
}

.ph-mitglied-kennzahl {
    --ph-kennzahl-symbol-hoehe: 51px;
    --ph-kennzahl-zahl-hoehe: 3.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    height: 100%;
    min-height: 7.75rem;
    padding: 1rem 0.65rem;
    text-align: center;
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(200, 255, 61, 0.14), transparent 65%),
        linear-gradient(180deg, var(--ph-flaeche-hoch) 0%, var(--ph-flaeche) 100%);
}

.ph-mitglied-kennzahl-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ph-akzent);
    opacity: 0.9;
}

.ph-mitglied-kennzahl .ph-kachel-meta {
    margin: 0;
    line-height: 1.5;
}

.ph-mitglied-kennzahl-wert {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.ph-mitglied-kennzahl-nase-icon {
    display: block;
    height: var(--ph-kennzahl-symbol-hoehe);
    flex-shrink: 0;
    vertical-align: top;
}

.ph-mitglied-kennzahl-offen-zeile > span:first-child {
    font-size: 0.7em;
}

.ph-mitglied-kennzahl-offen-zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    box-sizing: border-box;
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 75, 87, 0.16);
    border: 1px solid var(--ph-karte-rot);
    box-shadow:
        0 0 0.45rem rgba(255, 75, 87, 0.55),
        0 0 1.1rem rgba(255, 75, 87, 0.28);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}

.ph-mitglied-kennzahl-offen-zeile[hidden] {
    display: none;
}

.ph-mitglied-kennzahl-offen-zahl {
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

.ph-mitglied-kennzahl-nase-icon + .ph-kachel-meta + .ph-mitglied-kennzahl-wert,
.ph-mitglied-kennzahl-nase-icon + .ph-mitglied-kennzahl-wert,
.ph-mitglied-kennzahl-nase-gross {
    font-size: var(--ph-kennzahl-zahl-hoehe);
    min-height: var(--ph-kennzahl-zahl-hoehe);
    line-height: 1;
}

.ph-mitglied-kennzahl-karte {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--ph-kennzahl-symbol-hoehe);
    flex-shrink: 0;
    line-height: 0;
}

.ph-mitglied-kennzahl-karte .ph-rote-karte,
.ph-mitglied-kennzahl-karte .ph-gelbe-karte,
.ph-mitglied-kennzahl-karte .ph-orange-karte {
    display: block;
    height: 51px;
    width: 51px;
}

.ph-mitglied-kennzahl-karten {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    flex: 1;
}

.ph-mitglied-kennzahl-karten-zeile {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
}

.ph-mitglied-kennzahl-karten-zeile .ph-rote-karte,
.ph-mitglied-kennzahl-karten-zeile .ph-gelbe-karte,
.ph-mitglied-kennzahl-karten-zeile .ph-orange-karte,
.ph-mitglied-kennzahl-karten-zeile .ph-gruene-karte {
    flex-shrink: 0;
    height: 2.38rem;
    width: 2.38rem;
}

.ph-mitglied-kennzahl-karten-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    text-align: right;
}

.ph-mitglied-kennzahl-karten-text .ph-kachel-meta {
    margin: 0;
}

.ph-mitglied-kennzahl-karten-zahl {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.ph-mitglied-kennzahl-klaeger {
    min-height: 0;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.ph-mitglied-klaeger-titel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ph-mitglied-klaeger-titel .bi {
    color: var(--ph-akzent);
    line-height: 1;
}

.ph-mitglied-klaeger-titel .ph-punkt {
    height: 0.85em;
}

.ph-mitglied-kennzahl-klaeger-kopf {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ph-mitglied-kennzahl-klaeger-kopf .ph-anklage-nase {
    font-size: var(--ph-kennzahl-zahl-hoehe);
}

.ph-mitglied-kennzahl-klaeger-kopf .ph-anklage-nase .ph-punkt {
    height: var(--ph-kennzahl-symbol-hoehe);
}

.ph-mitglied-kennzahl-klaeger-kopf .ph-anklage-nase-zahl {
    font-size: 1em;
}

.ph-mitglied-kennzahl-klaeger-karten {
    width: calc(100% + 0.8rem);
    margin: 0 -0.4rem;
}

.ph-mitglied-kennzahl-klaeger-karte {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.ph-mitglied-kennzahl-klaeger-karte .ph-rote-karte,
.ph-mitglied-kennzahl-klaeger-karte .ph-gelbe-karte,
.ph-mitglied-kennzahl-klaeger-karte .ph-orange-karte,
.ph-mitglied-kennzahl-klaeger-karte .ph-gruene-karte {
    height: 1em;
    width: 1em;
}

.ph-mitglied-kennzahl-nase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.ph-mitglied-kennzahl-nase .ph-punkt {
    height: 0.72em;
}

.ph-mitglied-kennzahl-nase .ph-anklage-nase-zahl {
    font-size: 1em;
}

.ph-mitglied-kennzahl-zahl-mit-nase {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.ph-mitglied-kennzahl-nase-anhang {
    position: absolute;
    top: 50%;
    left: 100%;
    height: 0.5em;
    margin-left: 0.08em;
    transform: translateY(-50%);
}

.ph-mitglied-spiel-liste,
.ph-mitglied-historie {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ph-mitglied-spiel-karte {
    padding: 1rem;
}

.ph-mitglied-spiel-kopf {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.ph-mitglied-spiel-titel {
    margin: 0;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.ph-mitglied-historie-eintrag {
    padding: 1rem;
}

.ph-mitglied-kategorie-karte {
    padding: 0;
    overflow: hidden;
}

.ph-mitglied-kategorie-kopf {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background:
        radial-gradient(90% 80% at 12% 0%, rgba(200, 255, 61, 0.16), transparent 58%),
        linear-gradient(180deg, #141a2e 0%, #0c101c 100%);
    border-bottom: 1px solid var(--ph-rand);
}

.ph-mitglied-kategorie-bild {
    flex: 0 0 30%;
    width: 30%;
    max-width: 7.5rem;
}

.ph-mitglied-kategorie-img,
.ph-mitglied-kategorie-bild i {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ph-mitglied-kategorie-bild i {
    font-size: 2rem;
    color: var(--ph-akzent);
}

.ph-mitglied-kategorie-text {
    min-width: 0;
    flex: 1;
}

.ph-mitglied-kategorie-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 0.25rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
}

.ph-mitglied-kategorie-name {
    margin: 0.15rem 0 0;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.ph-community-archiv-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin: 0.4rem 0 0;
    color: var(--ph-text-leise);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.ph-mitglied-historie .ph-karte + .ph-karte {
    margin-top: 0;
}

.ph-mitglied-letzte {
    margin: 0;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--ph-rand);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff7d86;
}

.ph-mitglied-vergehen {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 1rem 1rem;
    list-style: none;
}

.ph-mitglied-mehr-aktion {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--ph-rand);
    text-align: center;
}

.ph-mitglied-mehr .ph-mitglied-kategorie-badge {
    margin: 0;
    padding: 0.1rem 0.55rem;
    border-color: rgba(255, 125, 134, 0.45);
    color: #ff7d86;
    font-size: inherit;
    font-weight: inherit;
}

.ph-mitglied-vergehen-eintrag + .ph-mitglied-vergehen-eintrag {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.ph-mitglied-historie-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.ph-mitglied-vergehen-eintrag .ph-anklage-phrase {
    margin-top: 0.55rem;
}

.ph-mitglied-nase-zeile {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.ph-mitglied-historie-kopf .ph-mitglied-nase-zeile {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.ph-mitglied-anklage-datum {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ph-mitglied-status-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
}

.ph-mitglied-status-offen {
    background: rgba(14, 18, 32, 0.82);
    border-color: rgba(255, 197, 49, 0.45);
    color: var(--ph-karte-gelb);
}

.ph-mitglied-status-gewertet {
    background: rgba(14, 18, 32, 0.82);
    border-color: rgba(74, 168, 255, 0.45);
    color: var(--ph-blau);
}

.ph-mitglied-status-verworfen {
    background: rgba(14, 18, 32, 0.82);
    border-color: rgba(47, 212, 122, 0.45);
    color: var(--ph-gruen);
}

.ph-mitglied-klaeger-kopf {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.ph-mitglied-klaeger-text {
    min-width: 0;
    flex: 1;
}

.ph-mitglied-klaeger-labelzeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ph-mitglied-klaeger-nase {
    font-size: 1.2rem;
}

.ph-mitglied-klaeger-text .ph-anklage-name {
    margin-top: 0.2rem;
}

.ph-mitglied-klaeger-daten {
    min-width: 0;
    flex: 1;
}

.ph-mitglied-klaeger-name {
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.ph-mitglied-klaeger-daten .ph-mitglied-historie-meta {
    margin: 0;
    line-height: 1.15;
}

.ph-mitglied-klaeger-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.ph-mitglied-historie-kopf .ph-anklage-nase {
    font-size: 1.4rem;
}

.ph-mitglied-historie-kopf .ph-anklage-nase-zahl {
    font-size: 1em;
}

.ph-mitglied-klaeger-badges .ph-anklage-nase {
    font-size: 1.05rem;
}

.ph-mitglied-klaeger-badges .ph-mitglied-status-badge {
    padding: 0.08rem 0.35rem;
    font-size: 0.65rem;
    line-height: 1.15;
}

.ph-mitglied-historie-phrase {
    margin: 0 0 0.35rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ph-mitglied-historie-phrase-klein {
    margin: 0.35rem 0 0;
    color: var(--ph-text);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.ph-mitglied-historie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--ph-text-leise);
}

.ph-mitglied-karten {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
}

.ph-mitglied-karten .ph-mitglied-historie-meta {
    display: grid;
    grid-template-columns: 1.2em minmax(0, 1fr) auto;
    column-gap: 0.35rem;
    row-gap: 0.12rem;
    align-items: start;
    width: 100%;
    line-height: 1.3;
    font-weight: 400;
}

.ph-mitglied-karte-name {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.ph-mitglied-karte-extra-text {
    display: block;
    margin-top: 0;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.3;
    text-shadow: none;
}

.ph-mitglied-karte-zeit {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ph-mitglied-karte-zeichen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.2em;
    width: 1.2em;
    height: 1.2em;
}

.ph-mitglied-karte-gelb {
    color: var(--ph-karte-gelb);
}

.ph-mitglied-karte-rot {
    color: var(--ph-karte-rot);
}

.ph-mitglied-karte-orange {
    color: var(--ph-karte-orange);
}

.ph-mitglied-karte-gruen {
    color: var(--ph-gruen);
}

.ph-mitglied-strafe-verworfen {
    color: var(--ph-gruen);
}

.ph-mitglied-strafe-verworfen .bi-x-circle-fill {
    font-size: 1.05em;
}

.ph-mitglied-strafe-ok {
    color: var(--ph-gruen-bezahlt);
    font-weight: 400;
    text-shadow:
        0 0 0.1em #e7ffd4,
        0 0 0.22em rgba(140, 255, 106, 0.55);
}

.ph-mitglied-strafe-ok .ph-punkt,
.ph-mitglied-strafe-offen .ph-punkt {
    height: 1.05em;
}

.ph-mitglied-karten .ph-mitglied-strafe-offen {
    margin-top: 0.5rem;
    font-weight: 700;
}

.ph-mitglied-karten [data-ph-mitglied-strafe-block] {
    width: 100%;
}

.ph-mitglied-karten [data-ph-mitglied-strafe-einloesen] {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0 0;
}

.ph-mitglied-strafe-offen .ph-mitglied-karte-name {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    color: #fff4f7;
    text-shadow:
        0 0 0.12em #ffd5e2,
        0 0 0.28em #ff4f86,
        0 0 0.55em #ff2f73,
        0 0 1.15em rgba(255, 70, 130, 0.9);
}

.ph-mitglied-kopf {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ph-mitglied-avatar {
    position: relative;
    flex: 0 0 auto;
}

.ph-mitglied-status {
    position: absolute;
    top: -4px;
    left: -4px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

.ph-mitglied-status-admin {
    color: var(--ph-blau);
}

.ph-mitglied-status-kapitaen {
    color: var(--ph-karte-gelb);
}

.ph-mitglied-daten {
    min-width: 0;
    flex: 1;
}

.ph-mitglied-daten .ph-kachel-meta {
    margin: 0.15rem 0 0;
}

.ph-mitglied-name {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ph-mitglied-nasen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin: 0.15rem 0 0.1rem;
}

.ph-mitglied-nase {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    line-height: 1;
}

.ph-mitglied-nase .ph-punkt {
    width: auto;
    height: 1.55rem;
}

.ph-mitglied-nase-zahl {
    font-size: 1.55rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.ph-mitglied-nase-bezahlt {
    color: var(--ph-gruen-bezahlt);
}

.ph-mitglied-stand {
    margin-top: 0.15rem;
}

.ph-mitglied-stand .ph-kachel-zeile {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ph-text-leise);
}

.ph-karte-menue {
    position: relative;
    flex-shrink: 0;
}

.ph-karte-menue-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ph-akzent);
    background: rgba(200, 255, 61, 0.1);
    border: 1px solid var(--ph-akzent);
    border-radius: 12px;
    box-shadow: 0 0 0.55rem rgba(200, 255, 61, 0.35);
    font-size: 1.4rem;
    line-height: 1;
}

.ph-karte-menue-toggle:hover {
    color: var(--ph-akzent);
    background: rgba(200, 255, 61, 0.2);
    border-color: var(--ph-akzent);
}

.ph-karte-menue-liste {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 8;
    width: max-content;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 0.35rem;
    background: var(--ph-flaeche-hoch);
    border: 1px solid var(--ph-rand-stark);
    border-radius: var(--ph-radius-klein);
    box-shadow: var(--ph-schatten);
}

.ph-karte-menue-liste[hidden] {
    display: none;
}

.ph-karte-menue-liste form {
    margin: 0;
}

.ph-karte-menue-liste form + form {
    border-top: 1px solid var(--ph-rand-stark);
}

.ph-karte-menue-eintrag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    color: var(--ph-text);
    background: none;
    border: 0;
    border-radius: 8px;
    text-align: left;
    font: inherit;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
}

.ph-karte-menue-eintrag:hover {
    background: var(--ph-bg);
}

.ph-karte-menue-eintrag-gut,
.ph-karte-menue-eintrag-admin {
    color: var(--ph-gruen);
}

.ph-karte-menue-eintrag-freigabe {
    color: var(--ph-akzent);
}

.ph-karte-menue-eintrag-kapitaen {
    color: #3ee0b0;
}

.ph-karte-menue-eintrag-warnung {
    color: var(--ph-karte-gelb);
}

.ph-karte-menue-eintrag-gefahr {
    color: var(--ph-karte-rot);
}

.ph-croppie-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, var(--ph-safe-top)) max(1rem, var(--ph-safe-right)) max(1rem, var(--ph-safe-bottom)) max(1rem, var(--ph-safe-left));
    background: rgba(8, 10, 18, 0.82);
    backdrop-filter: blur(4px);
}

.ph-croppie-overlay.ph-visuell-versteckt {
    display: none !important;
}

body.ph-croppie-offen {
    overflow: hidden;
}

.ph-croppie-dialog {
    width: min(100%, 420px);
    padding: 1.1rem 1.1rem 1.25rem;
    border-radius: var(--ph-radius);
    background: var(--ph-flaeche);
    border: 1px solid var(--ph-rand-stark);
    box-shadow: var(--ph-schatten);
}

.ph-croppie-kopf {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ph-croppie-kopf h2 {
    margin: 0;
    font-size: 1.15rem;
}

.ph-croppie-wrap {
    display: flex;
    justify-content: center;
    min-height: 18rem;
}

#ph-croppie {
    width: 100%;
}

#ph-croppie .cr-boundary {
    border-radius: var(--ph-radius-klein);
    background: linear-gradient(180deg, var(--ph-bg-2) 0%, var(--ph-bg) 100%);
}

#ph-croppie .cr-viewport {
    box-shadow:
        0 0 0 2000px rgba(14, 18, 32, 0.55),
        0 0 0 3px rgba(200, 255, 61, 0.85),
        0 12px 26px rgba(0, 0, 0, 0.45);
}

#ph-croppie .cr-overlay {
    background: rgba(200, 255, 61, 0.05);
}

.ph-croppie-wrap .cr-slider-wrap {
    width: min(100%, 15.5rem);
    margin: 1rem auto 0;
}

.ph-croppie-wrap .cr-slider {
    width: 100%;
    accent-color: var(--ph-akzent);
}

.ph-croppie-drehen {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.ph-croppie-fuss {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

/* ---------- Rückfrage-Modal ---------- */

.ph-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1.25rem, var(--ph-safe-top)) max(1.25rem, var(--ph-safe-right)) max(1.25rem, var(--ph-safe-bottom)) max(1.25rem, var(--ph-safe-left));
    background: rgba(8, 10, 18, 0.78);
    backdrop-filter: blur(5px);
}

.ph-modal-versteckt {
    display: none !important;
}

body.ph-modal-offen,
body.ph-werbung-offen {
    overflow: hidden;
}

.ph-werbung {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(1.5rem, var(--ph-safe-top)) max(1.5rem, var(--ph-safe-right)) max(1.5rem, var(--ph-safe-bottom)) max(1.5rem, var(--ph-safe-left));
    background: #0e1220;
    text-align: center;
}

.ph-werbung[hidden] {
    display: none !important;
}

.ph-werbung-timer {
    margin: 0;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--ph-akzent);
}

.ph-widerspruch-dialog {
    width: min(100%, 26rem);
}

.ph-widerspruch-dialog .ph-feld {
    margin-bottom: 1rem;
    text-align: left;
}

.ph-widerspruch-dialog .ph-modal-fuss .ph-btn {
    flex: 0 1 auto;
}

.ph-modal-dialog {
    width: min(100%, 22rem);
    padding: 1.35rem 1.35rem 1.15rem;
    border-radius: var(--ph-radius);
    border: 1px solid var(--ph-rand-stark);
    background: linear-gradient(165deg, var(--ph-flaeche-hoch) 0%, var(--ph-flaeche) 100%);
    box-shadow: var(--ph-schatten);
    text-align: center;
}

.ph-modal-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    font-size: 1.45rem;
}

.ph-modal-symbol-gefahr {
    background: rgba(255, 75, 87, 0.18);
    color: var(--ph-karte-rot);
    box-shadow: 0 0 0 6px rgba(255, 75, 87, 0.08);
}

.ph-modal-symbol-hinweis {
    background: rgba(200, 255, 61, 0.16);
    color: var(--ph-akzent);
    box-shadow: 0 0 0 6px rgba(200, 255, 61, 0.08);
}

.ph-modal-titel {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.ph-modal-titel.ph-modal-titel-leer {
    display: none;
}

.ph-modal-text {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ph-modal-fuss {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.ph-modal-fuss .ph-btn {
    flex: 1 1 7.5rem;
    min-width: 0;
}

[data-ph-rueckfrage-modal] .ph-modal-fuss,
.ph-modal-fuss.ph-rueckfrage-stapel,
.ph-rueckfrage-stapel .ph-modal-fuss,
.ph-modal-fuss.ph-melden-fuss {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
}

[data-ph-rueckfrage-modal] .ph-modal-fuss .ph-btn,
.ph-modal-fuss.ph-rueckfrage-stapel .ph-btn,
.ph-rueckfrage-stapel .ph-modal-fuss .ph-btn,
.ph-modal-fuss.ph-melden-fuss .ph-btn {
    flex: 0 0 auto;
    width: 100%;
}

.ph-modal-symbol-bezahlt {
    background: rgba(200, 255, 154, 0.16);
    color: var(--ph-gruen-bezahlt);
    box-shadow: 0 0 0 6px rgba(200, 255, 154, 0.08);
}

.ph-modal-symbol-bezahlt .ph-punkt {
    height: 1.35em;
}

.ph-phrasen-dialog {
    width: min(100%, 28rem);
    max-height: min(86vh, 40rem);
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.15rem 0.85rem;
    text-align: left;
}

.ph-modal.ph-kategorie-phrasen-overlay {
    align-items: flex-start;
    justify-content: center;
    padding-top: max(1.25rem, var(--ph-safe-top));
    padding-bottom: max(1.25rem, var(--ph-safe-bottom));
}

.ph-kategorie-phrasen-dialog {
    width: min(100%, 28rem);
    max-height: calc(100vh - max(1.25rem, var(--ph-safe-top)) - max(1.25rem, var(--ph-safe-bottom)));
    max-height: calc(100dvh - max(1.25rem, var(--ph-safe-top)) - max(1.25rem, var(--ph-safe-bottom)));
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.ph-kategorie-phrasen-oben {
    flex: 0 0 auto;
    z-index: 2;
    padding: 1.15rem 1.15rem 0.75rem;
    background: var(--ph-flaeche-hoch);
    border-bottom: 1px solid var(--ph-rand);
}

.ph-kategorie-phrasen-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.ph-kategorie-phrasen-dialog .ph-phrasen-modal-kopf {
    margin-bottom: 0.75rem;
}

.ph-kategorie-phrasen-dialog .ph-modal-titel {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.ph-kategorie-phrasen-dialog .ph-modal-titel img {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 0.86rem;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.ph-kategorie-phrasen-dialog .ph-modal-titel span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ph-kategorie-phrasen-werkzeug {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 0.5rem;
    align-items: center;
}

.ph-kategorie-phrasen-liste {
    flex: 1 1 auto;
    margin: 0;
    padding: 0.15rem 1.15rem 1rem;
    list-style: none;
}

.ph-kategorie-phrasen-eintrag {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--ph-rand);
    font-size: 0.92rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ph-kategorie-phrasen-eintrag:last-child {
    border-bottom: none;
}

.ph-kategorie-phrasen-eintrag[hidden] {
    display: none !important;
}

.ph-kategorie-phrasen-leer {
    margin: 0;
    padding: 0.85rem 1.15rem 1.15rem;
}

.ph-phrasen-modal-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ph-phrasen-modal-kopf .ph-modal-titel {
    margin: 0;
}

.ph-phrasen-suche-zeile,
.ph-phrasen-eintrag {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.1rem;
    gap: 0.65rem;
    align-items: start;
}

.ph-phrasen-suche-zeile {
    align-items: center;
}

.ph-phrasen-suche-zeile {
    margin-bottom: 0.75rem;
}

.ph-phrasen-suche {
    position: relative;
    min-width: 0;
}

@media (max-width: 760px) {
    .ph-kategorie-suche {
        margin-left: -1.1rem;
        margin-right: -1.1rem;
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
}

.ph-phrasen-suche i {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    transform: translateY(-50%);
    color: var(--ph-text-leise);
    pointer-events: none;
}

.ph-phrasen-suche input {
    width: 100%;
    padding: 0.7rem 0.85rem 0.7rem 2.35rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ph-text);
    background: var(--ph-bg);
    border: 1px solid var(--ph-rand-stark);
    border-radius: var(--ph-radius-klein);
}

.ph-phrasen-suche input:focus {
    outline: none;
    border-color: var(--ph-akzent);
    box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.18);
}

.ph-phrasen-suche-nase {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-phrasen-suche-nase .ph-punkt {
    height: 1.15rem;
}

.ph-phrasen-liste {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.ph-phrasen-eintrag {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--ph-rand);
}

.ph-phrasen-eintrag:last-child {
    border-bottom: none;
}

.ph-phrasen-eintrag-text {
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.ph-phrasen-eintrag-punkte {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff4f7;
    text-shadow:
        0 0 0.12em #ffd5e2,
        0 0 0.28em #ff4f86,
        0 0 0.55em #ff2f73,
        0 0 1.15em rgba(255, 70, 130, 0.9);
}

.ph-phrasen-leer {
    margin: 0.75rem 0 0.35rem;
}

.ph-anklage-titelkarte {
    position: relative;
    margin-bottom: 0;
}

.ph-anklage-titelkarte-bild {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.15;
    pointer-events: none;
}

.ph-anklage-titelkarte-inhalt {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ph-anklage-titelkarte h1 {
    margin: 0;
}

.ph-anklage-zurueck {
    align-self: flex-end;
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
    white-space: nowrap;
}

.ph-anklage-fest-feld .ph-feld-label {
    margin-bottom: 0.05rem;
}

.ph-anklage-fest {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ph-btn.ph-anklage-auswahl {
    padding: 0.35rem 0.85rem;
    background: rgba(200, 255, 61, 0.14);
    border-color: var(--ph-akzent);
    color: var(--ph-akzent);
}

.ph-btn.ph-anklage-auswahl:hover {
    background: rgba(200, 255, 61, 0.24);
    color: var(--ph-akzent);
}

.ph-anklage-wahl [hidden] {
    display: none !important;
}

.ph-anklage-wahl-anzeige {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ph-anklage-wahl-phrase {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.ph-anklage-wahl-phrase .ph-phrasen-eintrag-text {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.ph-anklage-wahl-punkte {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.ph-anklage-wahl-strafe {
    margin-right: 0.55rem;
    color: #fff4f7;
    text-shadow:
        0 0 0.12em #ffd5e2,
        0 0 0.28em #ff4f86,
        0 0 0.55em #ff2f73,
        0 0 1.15em rgba(255, 70, 130, 0.9);
}

.ph-anklage-wahl-punkte .ph-punkt {
    height: 1.15em;
}

.ph-anklage-wahl-zahl {
    color: #fff4f7;
    text-shadow:
        0 0 0.12em #ffd5e2,
        0 0 0.28em #ff4f86,
        0 0 0.55em #ff2f73,
        0 0 1.15em rgba(255, 70, 130, 0.9);
}

.ph-wahl-liste {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.ph-wahl-liste > li {
    margin: 0;
}

.ph-wahl-eintrag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.45rem;
    border: 1px solid transparent;
    border-radius: var(--ph-radius-klein);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ph-wahl-eintrag-text {
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ph-phrasen-eintrag[data-ph-wahl-eintrag] {
    cursor: pointer;
    margin: 0;
    padding: 0.65rem 0.45rem;
    border: 1px solid transparent;
    border-radius: var(--ph-radius-klein);
}

.ph-wahl-eintrag.ph-wahl-aktiv,
.ph-phrasen-eintrag.ph-wahl-aktiv {
    border-color: var(--ph-akzent);
    background: rgba(200, 255, 61, 0.12);
}

.ph-zeugen-liste {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.ph-zeugen-liste[hidden] {
    display: none !important;
}

.ph-zeugen-eintrag {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0;
}

.ph-zeugen-fuss {
    margin-top: 0.85rem;
    flex-shrink: 0;
}


/* ---------- Sprachwahl (Start, Gäste) ---------- */

html:has(.ph-sprachwahl-modal) {
    overflow: hidden;
}

.ph-sprachwahl-modal {
    z-index: 1400;
}

.ph-sprachwahl-dialog {
    --ph-sprachwahl-h: min(calc(92vw * 16 / 9), 92vh);
    --ph-sprachwahl-w: min(92vw, calc(var(--ph-sprachwahl-h) * 9 / 16));
    width: var(--ph-sprachwahl-w);
    height: var(--ph-sprachwahl-h);
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: initial;
    overflow: hidden;
    border-radius: calc(var(--ph-radius) + 2px);
}

.ph-sprachwahl-bild-wrap {
    width: 100%;
    height: 100%;
}

.ph-sprachwahl-bild-inhalt {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    border-radius: inherit;
}

.ph-sprachwahl-sperre {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.ph-sprachwahl-bild-inhalt img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: inherit;
}

.ph-sprachwahl-treffer {
    position: absolute;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: 0;
    /* Kreis: Breite in % der Bildbreite, Höhe skaliert mit (9:16-Container) */
    width: 32%;
    aspect-ratio: 1;
}

.ph-sprachwahl-treffer button {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
}

.ph-sprachwahl-treffer button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.5) 44%, rgba(255, 255, 255, 0) 62%);
    opacity: 0;
    pointer-events: none;
}

.ph-sprachwahl-bereit .ph-sprachwahl-treffer button::after {
    animation: ph-sprachwahl-blink 1.6s ease-in-out infinite;
}

.ph-sprachwahl-bereit .ph-sprachwahl-treffer-en button::after {
    animation-delay: 0.8s;
}

@keyframes ph-sprachwahl-blink {
    0%,
    42% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ph-sprachwahl-treffer button::after {
        animation: none;
        opacity: 0;
    }
}

/* Prozent relativ zu .ph-sprachwahl-bild-inhalt (= PNG 1080×1920), alle Viewports */
.ph-sprachwahl-treffer-de {
    left: 3%;
    top: 25%;
}

.ph-sprachwahl-treffer-en {
    left: 67%;
    top: 25%;
}

.ph-header-index .ph-nav-sprachen-eintrag {
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
    grid-column: auto;
}

.ph-header-index .ph-nav-sprachen {
    width: auto;
    gap: 0.4rem;
}

.ph-header-index .ph-nav-sprache-form {
    flex: 0 0 auto;
}

.ph-header-index .ph-nav-sprache-btn {
    width: auto;
    min-height: 0;
    padding: 0.3rem 0.45rem;
    border-radius: 8px;
}

.ph-header-index .ph-nav-sprache-btn img {
    width: 32px;
    height: 24px;
}

.ph-index-hero {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.ph-index-logo {
    display: block;
    width: min(220px, 52vw);
    height: auto;
    margin: 0 auto 1.25rem;
}

.ph-index-app-links-titel {
    margin: 0 0 1.5rem;
    color: var(--ph-akzent);
    font-size: clamp(1.3rem, 4.5vw, 1.7rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ph-index-app-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 0 0 1.75rem;
}

.ph-store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-width: 210px;
    padding: 1rem 1.45rem;
    border: 1px solid rgba(200, 255, 61, 0.65);
    border-radius: 16px;
    color: #14200a;
    background: linear-gradient(180deg, #e8ff8a 0%, var(--ph-akzent) 55%, var(--ph-akzent-dunkel) 100%);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    box-shadow:
        0 0 0 1px rgba(200, 255, 61, 0.35),
        0 0 18px rgba(200, 255, 61, 0.55),
        0 0 36px rgba(200, 255, 61, 0.28),
        0 14px 28px rgba(0, 0, 0, 0.35);
}

.ph-store-link:hover {
    color: #14200a;
    border-color: #f4ffb8;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(244, 255, 184, 0.5),
        0 0 24px rgba(200, 255, 61, 0.75),
        0 0 48px rgba(200, 255, 61, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.4);
}

.ph-store-link i {
    font-size: 1.7rem;
    line-height: 1;
}

.ph-header-zurueck {
    margin-left: auto;
    flex-shrink: 0;
}

.ph-offen-kopf {
    max-width: none;
    margin-bottom: 0.45rem;
}

.ph-offen-hinweis {
    margin: 0 0 1.15rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
}

.ph-offen-nase-titel {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    line-height: 1;
}

.ph-offen-nase-wort {
    color: #fff4f7;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    text-shadow:
        0 0 0.12em #ffd5e2,
        0 0 0.28em #ff4f86,
        0 0 0.55em #ff2f73,
        0 0 1.15em rgba(255, 70, 130, 0.9);
}

.ph-offen-nase {
    display: block;
    height: 2.52rem;
    vertical-align: unset;
}

.ph-offen-konto {
    margin-bottom: 1.25rem;
}

.ph-offen-konto .ph-konto-karte {
    cursor: default;
}

.ph-offen-konto .ph-konto-karte:hover {
    box-shadow: none;
    border-color: var(--ph-rand);
}

/* ---------- Strafen schnell abhaken ---------- */

.ph-btn.ph-btn-strafe-einloesen {
    background: transparent;
    border-color: var(--ph-gruen-bezahlt);
    color: var(--ph-gruen-bezahlt);
    text-decoration: none;
    text-shadow: 0 0 0.1em rgba(200, 255, 154, 0.35);
    box-shadow: none;
}

.ph-btn.ph-btn-strafe-einloesen:hover {
    background: rgba(200, 255, 154, 0.10);
    border-color: var(--ph-gruen-bezahlt);
    color: var(--ph-gruen-bezahlt);
}

.ph-btn.ph-btn-strafe-einloesen:disabled,
.ph-btn.ph-btn-strafe-einloesen.is-disabled {
    background: transparent;
    border-color: var(--ph-rand-stark);
    color: var(--ph-text-leise);
    text-shadow: none;
    box-shadow: none;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ph-btn.ph-btn-strafe-einloesen .ph-punkt {
    height: 0.95em;
}

.ph-strafen-kopf .ph-spiel-kopf-bildflaeche {
    aspect-ratio: auto;
    height: auto;
    padding: 0;
}

.ph-strafen-kopf .ph-spiel-kopf-bild,
.ph-community-hero .ph-spiel-kopf-bild {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 0;
}

.ph-karte.ph-community-hero {
    position: relative;
    overflow: visible;
    text-align: center;
}

.ph-community-hero .ph-spiel-kopf-bildflaeche {
    aspect-ratio: auto;
    height: auto;
    padding: 0;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--ph-radius);
}

.ph-community-hero-hallo {
    position: absolute;
    top: 0.85rem;
    left: 0.95rem;
    z-index: 2;
    margin: 0;
    max-width: calc(100% - 3.6rem);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    overflow-wrap: anywhere;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.55);
}

.ph-community-hero-mitte {
    position: absolute;
    top: 3.15rem;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem 1.1rem;
    pointer-events: none;
}

.ph-community-hero-willkommen {
    margin: 0 0 0.2rem;
    color: var(--ph-akzent);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.55);
}

.ph-spiel-kopf .ph-community-hero-name {
    margin: 0;
    padding: 0;
    color: var(--ph-akzent);
    text-align: center;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.55);
}

.ph-btn-icon.ph-community-hero-bearbeiten {
    position: absolute;
    top: -0.45rem;
    right: -0.45rem;
    z-index: 3;
    flex-basis: 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    font-size: 0.85rem;
    border-radius: 0.4rem;
}

.ph-community-hero-unter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 32rem;
    margin: 0.85rem auto 0;
}

.ph-community-hero-unter .ph-kachel-warnung {
    margin: 0;
    justify-content: center;
}

.ph-community-name-dialog {
    width: min(100%, 22rem);
    text-align: left;
}

.ph-community-name-dialog .ph-feld {
    margin: 0.85rem 0;
}

.ph-community-name-dialog .ph-meldung {
    margin: 0 0 0.85rem;
}

.ph-community-hero-unter .ph-loeschen-bereich {
    margin-top: 0.35rem;
}

.ph-strafen-kopf .ph-spiel-kopf-inhalt {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1.4rem 1.2rem;
}

.ph-strafen-kopf .ph-spiel-kopf-community-name {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.7),
        0 6px 16px rgba(0, 0, 0, 0.45);
}

.ph-strafe-liste {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.35rem;
}

.ph-strafe-karte {
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.ph-strafe-karte.ph-strafe-karte-weg {
    opacity: 0;
    transform: translateY(-0.6rem);
    pointer-events: none;
}

.ph-strafe-karte-kopf {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ph-strafe-karte-person {
    min-width: 0;
    flex: 1;
}

.ph-strafe-karte-person .ph-kachel-meta {
    margin: 0.1rem 0 0;
}

.ph-strafe-karte .ph-zahlung-punkte {
    margin-left: auto;
}

.ph-strafe-karte .ph-anklage-phrase {
    margin-bottom: 0.85rem;
}

.ph-strafe-karte .ph-mitglied-karten {
    margin-bottom: 1rem;
}

.ph-nachrichten-form {
    max-width: 460px;
    margin: 0 auto;
}

.ph-nachrichten-liste {
    margin-top: 1.1rem;
}

.ph-nachricht-stumm {
    background: #3a2218;
    border-color: var(--ph-karte-orange);
}

.ph-nachricht-schalter {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ph-text);
    cursor: pointer;
}

.ph-nachricht-titelzeile {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 0.15rem;
    min-width: 0;
}

.ph-nachricht-titel {
    min-width: 0;
    color: var(--ph-karte-gelb);
}

.ph-nachricht-wann {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ph-text);
}

.ph-nachricht-wer {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ph-text-leise);
}

.ph-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.ph-switch-bahn {
    position: relative;
    display: block;
    width: 72px;
    height: 32px;
    border-radius: 999px;
    background: #3a425c;
    overflow: hidden;
    transition: background 0.18s ease;
}

.ph-switch input:checked + .ph-switch-bahn {
    background: var(--ph-akzent);
}

.ph-switch-an,
.ph-switch-aus {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ph-switch-an {
    left: 9px;
    color: var(--ph-akzent-text);
    opacity: 0;
}

.ph-switch-aus {
    right: 9px;
    color: var(--ph-text-leise);
}

.ph-switch input:checked + .ph-switch-bahn .ph-switch-an {
    opacity: 1;
}

.ph-switch input:checked + .ph-switch-bahn .ph-switch-aus {
    opacity: 0;
}

.ph-switch-knopf {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease;
}

.ph-switch input:checked + .ph-switch-bahn .ph-switch-knopf {
    transform: translateX(40px);
}

.ph-switch input:focus-visible + .ph-switch-bahn {
    outline: 2px solid var(--ph-akzent);
    outline-offset: 3px;
}

.ph-nachrichten-form:has([name="alle_stumm"]:checked) .ph-nachrichten-liste {
    opacity: 0.55;
}

.ph-agb-wahl {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ph-text-leise);
    cursor: pointer;
}

.ph-agb-wahl input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.ph-agb-feld {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--ph-rand-stark);
    border-radius: var(--ph-radius-klein);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ph-agb-feld.ph-agb-fehlerhaft {
    border-color: var(--ph-karte-rot);
    background: rgba(255, 75, 87, 0.1);
    box-shadow:
        0 0 0 1px rgba(255, 75, 87, 0.55),
        0 0 18px rgba(255, 75, 87, 0.55);
}

.ph-melden-zeile {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.7rem 0 0;
    font-size: 0.78rem;
    color: var(--ph-text-leise);
}

.ph-melden-form {
    display: inline;
    margin: 0;
}

.ph-melden-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ph-text-leise);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.ph-melden-link:hover,
.ph-melden-link:focus-visible {
    color: var(--ph-text);
}
