/* ==========================================================================
   GayShip – Seiten-Bausteine (für alle Unterseiten)
   --------------------------------------------------------------------------
   Gemeinsame Bausteine, damit alle Seiten einheitlich aussehen:
     .gs-page          Seiten-Container (.gs-page--narrow für Formulare/Texte)
     .gs-back          "Zurück"-Link
     .gs-page-head     Seitenkopf mit Eyebrow, Titel, Text und optionaler Grafik
     .gs-panel         Inhaltskarte
     .gs-prose         Fließtext (Rechtstexte, Hilfeseiten)
     .gs-info-grid     Kleine Infokarten im Raster
     .gs-field/.gs-input  Formularfelder
     .gs-alert         Hinweis-/Fehlermeldungen
     .gs-empty         "Noch nichts da"-Zustand
   Farben ausschließlich aus den bestehenden Variablen in style.css.
   ========================================================================== */

.gs-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.gs-page--narrow {
    max-width: 820px;
}

.gs-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-pink);
    margin-bottom: 8px;
}

.gs-gradient-text {
    background: linear-gradient(90deg, #38bdf8 0%, #a855f7 45%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------------------------------
   Scrollbalken im Seitendesign (schmal, Lila-Pink statt Standard-Grau)
   -------------------------------------------------------------------------- */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.55) transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: linear-gradient(180deg, #8b5cf6, #ff4d9d);
}

/* --------------------------------------------------------------------------
   Zurück-Link
   -------------------------------------------------------------------------- */
.gs-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 7px 14px 7px 10px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--c-muted);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.gs-back:hover {
    color: #ffffff;
    border-color: var(--c-border-hover);
    background: rgba(255, 255, 255, 0.07);
}

.gs-back svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Seitenkopf
   -------------------------------------------------------------------------- */
.gs-page-head {
    position: relative;
    display: grid;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px 20px;
    text-align: center;
    border-radius: var(--r-container);
    border: 1px solid var(--c-border);
    background:
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.18), transparent 55%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(18, 16, 38, 0.7) 60%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.gs-page-head h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 8px;
}

.gs-page-head p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

.gs-page-head-art {
    order: -1;
}

.gs-page-head-art img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
    animation: gsPageFloat 7s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Karten & Text
   -------------------------------------------------------------------------- */
.gs-panel {
    padding: 24px 20px;
    border-radius: var(--r-card);
    border: 1px solid var(--c-border);
    background: var(--c-surface-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    color: #cbd5e1;
}

.gs-panel + .gs-panel {
    margin-top: 16px;
}

.gs-panel-title {
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.gs-prose {
    line-height: 1.7;
    word-break: break-word;
}

.gs-prose h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin: 32px 0 10px;
}

.gs-prose h2:first-child {
    margin-top: 0;
}

/* Kleiner Farbbalken vor Abschnittsüberschriften */
.gs-prose h2::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 1.1em;
    border-radius: 4px;
    background: linear-gradient(180deg, #38bdf8, #a855f7, #ec4899);
}

.gs-prose h3 {
    font-size: 1rem;
    color: #f8fafc !important;
    margin: 20px 0 6px;
}

.gs-prose p {
    color: #94a3b8;
    margin-bottom: 14px;
}

.gs-prose p:last-child {
    margin-bottom: 0;
}

.gs-prose a {
    color: #38bdf8;
}

.gs-prose a:hover {
    color: var(--c-pink);
    text-decoration: underline;
}

.gs-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.gs-info-card {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    line-height: 1.6;
}

.gs-info-card h2 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-pink) !important;
    margin-bottom: 8px;
}

.gs-info-card a {
    color: #38bdf8;
}

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */
.gs-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gs-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gs-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gs-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-muted);
    letter-spacing: 0.02em;
}

.gs-input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px; /* verhindert Zoom auf iOS */
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-input);
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.gs-input::placeholder {
    color: rgba(196, 201, 232, 0.4);
}

.gs-input:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.gs-input:focus {
    border-color: rgba(139, 92, 246, 0.7);
    background: rgba(139, 92, 246, 0.06);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.15);
}

textarea.gs-input {
    min-height: 150px;
    line-height: 1.55;
    resize: vertical;
}

.gs-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.gs-form-actions .btn {
    min-height: 48px;
    padding: 12px 28px;
    font-size: 0.98rem;
}

.gs-hint {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Hinweise
   -------------------------------------------------------------------------- */
.gs-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gs-alert::before {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.35;
}

.gs-alert--success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.gs-alert--success::before {
    content: "✓";
}

.gs-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.gs-alert--error::before {
    content: "!";
    font-weight: 700;
}

.gs-alert--info {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #bae6fd;
}

/* --------------------------------------------------------------------------
   Leerer Zustand ("Noch keine Nachrichten" usw.)
   -------------------------------------------------------------------------- */
.gs-empty {
    padding: 32px 20px;
    text-align: center;
}

.gs-empty img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 12px;
}

.gs-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.gs-empty p {
    color: #94a3b8;
    max-width: 380px;
    margin: 0 auto 18px;
}

/* --------------------------------------------------------------------------
   Abschnittskopf in Karten (Titel + Zähler/Aktion)
   -------------------------------------------------------------------------- */
.gs-section-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.gs-section-bar h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin: 0;
}

.gs-count {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.45);
}

.gs-page-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .gs-page-head-actions {
        justify-content: flex-start;
    }
}

/* --------------------------------------------------------------------------
   Bildraster & Bildansicht
   -------------------------------------------------------------------------- */
.gs-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.gs-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s var(--ease-main), border-color 0.3s ease, box-shadow 0.3s ease;
}

.gs-photo:hover {
    transform: translateY(-3px);
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 24px rgba(236, 72, 153, 0.2);
}

.gs-photo > a {
    display: block;
    width: 100%;
    height: 100%;
}

.gs-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-main);
}

.gs-photo:hover img {
    transform: scale(1.05);
}

.gs-photo-state {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gs-photo-state--pending {
    background: rgba(245, 158, 11, 0.85);
}

.gs-photo-state--rejected {
    background: rgba(239, 68, 68, 0.85);
}

.gs-photo-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    margin: 0;
}

.gs-photo-delete button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    background: rgba(6, 6, 15, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.gs-photo-delete button:hover {
    background: #ef4444;
    transform: scale(1.08);
}

.gs-photo-delete svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 600px) {
    .gs-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 16px;
    }
}

.gs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px;
    background: rgba(6, 6, 15, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gs-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gs-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.gs-lightbox-close,
.gs-lightbox-nav {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

.gs-lightbox-close:hover,
.gs-lightbox-nav:hover {
    background: rgba(236, 72, 153, 0.5);
}

.gs-lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
}

.gs-lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.gs-lightbox-prev { left: 12px; }
.gs-lightbox-next { right: 12px; }

.gs-lightbox.is-single .gs-lightbox-nav {
    display: none;
}

.gs-lightbox-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   Mitgliederkarten (includes/members.php)
   -------------------------------------------------------------------------- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.member-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--r-card);
    overflow: hidden;
    color: #ffffff;
    border: 1px solid var(--c-border);
    background: #0b0a1a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s var(--ease-main), border-color 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    color: #ffffff;
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 26px rgba(236, 72, 153, 0.2);
}

.member-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-main);
}

.member-card:hover .member-photo {
    transform: scale(1.05);
}

/* Verlauf für gut lesbaren Text */
.member-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 6, 15, 0.35) 0%, transparent 25%, transparent 50%, rgba(6, 6, 15, 0.92) 100%);
    pointer-events: none;
}

.member-status {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(6, 6, 15, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.member-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.member-footprint {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.member-info {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-age {
    font-weight: 400;
    color: #cbd5e1;
}

.member-distance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.member-distance svg {
    width: 14px;
    height: 14px;
    color: var(--c-pink);
}

@media (min-width: 600px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .member-info {
        padding: 16px;
    }
    .member-name {
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) {
    .members-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

/* --------------------------------------------------------------------------
   Spielkopf (includes/game_header.php)
   -------------------------------------------------------------------------- */
.game-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    border-radius: var(--r-container);
    border: 1px solid var(--c-border);
    background:
        radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--g1) 28%, transparent), transparent 45%),
        var(--c-surface-card);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.game-head-back {
    margin: 0;
    justify-self: start;
}

.game-head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.game-head-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.game-head-text {
    min-width: 0;
}

.game-head-text .gs-eyebrow {
    margin-bottom: 2px;
}

.game-head h1 {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    line-height: 1.15;
    margin: 0;
}

.game-head-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-chip {
    display: flex;
    flex-direction: column;
    min-width: 92px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    background: rgba(6, 6, 15, 0.35);
    line-height: 1.3;
}

.game-chip small {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.game-chip strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.game-chip-gold {
    color: #f59e0b !important;
}

@media (min-width: 900px) {
    .game-head {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
    }
    .game-head-chips {
        justify-content: flex-end;
    }
}

/* --------------------------------------------------------------------------
   Admin-Panel (includes/admin.php)
   -------------------------------------------------------------------------- */
.acp-head {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--r-container);
    border: 1px solid rgba(239, 68, 68, 0.25);
    background:
        radial-gradient(circle at 90% 0%, rgba(239, 68, 68, 0.14), transparent 50%),
        var(--c-surface-card);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.acp-head-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.acp-head h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin: 0 0 4px;
}

.acp-head p {
    color: #94a3b8;
    font-size: 0.92rem;
}

.acp-exit {
    margin: 0;
}

.acp-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.acp-nav::-webkit-scrollbar {
    display: none;
}

.acp-nav-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #cbd5e1;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.acp-nav-item svg {
    width: 17px;
    height: 17px;
}

.acp-nav-item:hover {
    color: #ffffff;
    border-color: var(--c-border-hover);
    background: rgba(255, 255, 255, 0.07);
}

.acp-nav-item.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--c-violet) 0%, var(--c-pink) 100%);
    box-shadow: 0 4px 16px rgba(255, 77, 157, 0.3);
}

.acp-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.acp-nav-item.is-active .acp-badge {
    background: rgba(6, 6, 15, 0.45);
    box-shadow: none;
}

.acp-head {
    margin-top: 8px;
}

@media (min-width: 900px) {
    .acp-nav {
        flex-wrap: wrap;
        overflow: visible;
    }
}

/* --------------------------------------------------------------------------
   Prämien (includes/shop.php): Abzeichen, Avatar-Rahmen, Cover, Spotlight
   -------------------------------------------------------------------------- */
.gs-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    vertical-align: middle;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(236, 72, 153, 0.22));
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
    white-space: nowrap;
}

/* Rahmen als Ring um ein rundes Element (Profilbild) oder eine Karte */
.gs-frame {
    position: relative;
    isolation: isolate;
}

.gs-frame::before {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: 2;
    padding: 4px;
    border-radius: 50%;
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.gs-frame--card::before {
    inset: 0;
    padding: 2px;
    border-radius: inherit;
}

.gs-frame--neon::before {
    background: linear-gradient(135deg, #38bdf8, #a855f7, #ec4899);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8)) drop-shadow(0 0 14px rgba(236, 72, 153, 0.6));
    animation: gsFramePulse 2.4s ease-in-out infinite;
}

.gs-frame--rainbow::before {
    background: conic-gradient(from var(--gs-angle, 0deg), #ef4444, #f59e0b, #facc15, #10b981, #38bdf8, #8b5cf6, #ec4899, #ef4444);
    animation: gsFrameSpin 4s linear infinite;
}

.gs-frame--gold::before {
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 30%, #fef3c7 50%, #b45309 75%, #fde68a 100%);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7));
}

.gs-frame--holo::before {
    background: conic-gradient(from var(--gs-angle, 0deg), #a5f3fc, #f0abfc, #fde68a, #86efac, #93c5fd, #f9a8d4, #a5f3fc);
    filter: drop-shadow(0 0 12px rgba(240, 171, 252, 0.8));
    animation: gsFrameSpin 6s linear infinite;
}

@property --gs-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes gsFrameSpin {
    to { --gs-angle: 360deg; }
}

@keyframes gsFramePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
}

/* Profil-Cover */
.gs-cover--sunset {
    background: linear-gradient(180deg, #8b5cf6 0%, #ec4899 45%, #ff7a59 75%, #f59e0b 100%) !important;
}

.gs-cover--ozean {
    background:
        radial-gradient(circle at 20% 120%, rgba(56, 189, 248, 0.8), transparent 55%),
        linear-gradient(135deg, #0c4a6e 0%, #0369a1 45%, #38bdf8 100%) !important;
}

.gs-cover--galaxie {
    background:
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent),
        radial-gradient(1px 1px at 45% 70%, #fff, transparent),
        radial-gradient(2px 2px at 85% 60%, #fde68a, transparent),
        radial-gradient(circle at 30% 50%, rgba(168, 85, 247, 0.7), transparent 50%),
        radial-gradient(circle at 75% 40%, rgba(236, 72, 153, 0.55), transparent 45%),
        linear-gradient(135deg, #0b0a1a 0%, #1e1b4b 100%) !important;
}

.gs-cover--pride {
    background: linear-gradient(180deg, #ef4444 0% 16.6%, #f59e0b 16.6% 33.3%, #facc15 33.3% 50%, #10b981 50% 66.6%, #3b82f6 66.6% 83.3%, #8b5cf6 83.3% 100%) !important;
}

/* Spotlight-Markierung auf Mitgliederkarten */
.member-spotlight {
    position: absolute;
    top: 42px;
    left: 10px;
    z-index: 3;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1f1300;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.member-badge {
    margin-left: 4px;
    font-size: 0.95em;
}

@media (prefers-reduced-motion: reduce) {
    .gs-frame--neon::before,
    .gs-frame--rainbow::before,
    .gs-frame--holo::before {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   Dialoge (assets/js/dialog.js) – ersetzen confirm()/alert() des Browsers
   -------------------------------------------------------------------------- */
.gs-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(6, 6, 15, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.gs-dialog-overlay.is-open {
    opacity: 1;
}

.gs-dialog {
    width: 100%;
    max-width: 420px;
    padding: 26px 24px 22px;
    text-align: center;
    color: #cbd5e1;
    border-radius: 22px;
    border: 1px solid rgba(236, 72, 153, 0.35);
    background:
        radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.28), transparent 60%),
        rgba(18, 16, 38, 0.97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(236, 72, 153, 0.2);
    transform: translateY(10px) scale(0.96);
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gs-dialog-overlay.is-open .gs-dialog {
    transform: none;
}

.gs-dialog--danger {
    border-color: rgba(239, 68, 68, 0.45);
    background:
        radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.22), transparent 60%),
        rgba(18, 16, 38, 0.97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(239, 68, 68, 0.18);
}

.gs-dialog-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    font-size: 1.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.35));
    box-shadow: 0 0 26px rgba(236, 72, 153, 0.3);
}

.gs-dialog--danger .gs-dialog-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(255, 122, 89, 0.3));
    box-shadow: 0 0 26px rgba(239, 68, 68, 0.35);
}

.gs-dialog-title {
    font-size: 1.3rem;
    margin: 0 0 8px;
}

.gs-dialog-text {
    margin: 0 0 22px;
    font-size: 0.98rem;
    line-height: 1.55;
    white-space: pre-line;
    word-break: break-word;
}

.gs-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.gs-dialog-actions .btn {
    flex: 1;
    min-height: 46px;
    width: auto !important;
}

.gs-dialog-actions .gs-dialog-cancel {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

.gs-dialog-actions .gs-dialog-cancel:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}

.gs-dialog-actions .btn:only-child {
    flex: 0 1 200px;
}

body.gs-dialog-lock {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .gs-dialog-overlay,
    .gs-dialog {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Profil-Fortschritt (includes/profile_completeness.php)
   -------------------------------------------------------------------------- */
.gs-completeness {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: var(--r-card);
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(236, 72, 153, 0.08)), var(--c-surface-card);
}

.gs-completeness-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gs-completeness-head strong {
    display: block;
    color: #ffffff;
}

.gs-completeness-head span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.gs-completeness-ring {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, #12101f 76%, transparent 78% 100%),
        conic-gradient(#ec4899 calc(var(--p) * 1%), rgba(255, 255, 255, 0.1) 0);
}

.gs-completeness-ring span {
    font-size: 0.85rem !important;
    font-weight: 700;
    color: #ffffff !important;
}

.gs-completeness-tips {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.gs-completeness-tips a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #cbd5e1;
    border-radius: 10px;
    background: rgba(6, 6, 15, 0.35);
    transition: color 0.2s ease, background 0.2s ease;
}

.gs-completeness-tips a:hover {
    color: #ffffff;
    background: rgba(236, 72, 153, 0.12);
}

.gs-completeness-tips a span {
    color: var(--c-pink);
}

/* --------------------------------------------------------------------------
   Animation & Breakpoints
   -------------------------------------------------------------------------- */
@keyframes gsPageFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .gs-page-head-art img {
        animation: none;
    }
}

/* Handy: kompakter Seitenkopf, damit der Inhalt schneller sichtbar ist */
@media (max-width: 599px) {
    .gs-page-head {
        padding: 18px 16px 20px;
        gap: 4px;
    }
    .gs-page-head-art img {
        max-width: 120px;
    }
    .gs-page-head h1 {
        font-size: 1.6rem;
    }
    .gs-page-head p {
        font-size: 0.92rem;
    }
}

@media (min-width: 600px) {
    .gs-page {
        padding: 0 20px 56px;
    }
    .gs-panel {
        padding: 32px;
    }
    .gs-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gs-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gs-page-head {
        grid-template-columns: 1fr auto;
        gap: 24px;
        padding: 28px 36px;
        text-align: left;
    }
    .gs-page-head p {
        margin: 0;
    }
    .gs-page-head-art {
        order: 0;
    }
    .gs-page-head-art img {
        max-width: 200px;
    }
}

@media (min-width: 900px) {
    .gs-info-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Erfolge (Profil)
   -------------------------------------------------------------------------- */
.gs-achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gs-achievement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.gs-achievement-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    filter: grayscale(1);
    opacity: 0.45;
}

.gs-achievement-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.gs-achievement-body strong {
    font-size: 0.9rem;
    color: #94a3b8;
}

.gs-achievement-body small {
    font-size: 0.75rem;
    line-height: 1.35;
    color: #64748b;
}

.gs-achievement.is-done {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.09), rgba(236, 72, 153, 0.07));
}

.gs-achievement.is-done .gs-achievement-icon {
    filter: none;
    opacity: 1;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3), rgba(236, 72, 153, 0.15));
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
}

.gs-achievement.is-done .gs-achievement-body strong {
    color: #fde68a;
}

.gs-achievement.is-done .gs-achievement-body small {
    color: #cbd5e1;
}

.gs-achievement-bar {
    display: block;
    height: 4px;
    margin-top: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.gs-achievement-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #ec4899);
}
