/* Grundlayout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #f8f8ff;
    background: #050816;

}

.body-panel {
    background: radial-gradient(circle at top, #020617 0, #020617 30%, #020617 60%, #020617 100%);
    /* falls das komisch aussieht, einfach zu background: #050816; ändern */
    color: #e5e7eb;
    min-height: 100vh;
}

/* Layout Helpers */
.container {
    width: 100%;
    max-width: 1300px; /* vorher 1100px */
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(5,8,22,0.95), rgba(5,8,22,0.7), transparent);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 12px;
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 13px;
}

.nav a {
    color: #ffffffcc;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    transition: color 0.2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #ff7a00;
    transition: width 0.2s ease;
}

.nav a:hover {
    color: #ffffff;
}

.nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 7px 14px;
    border-radius: 999px;
    background: #5865f2;
    color: #fff !important;
    font-size: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    color: #fff;
    background: url('../img/hero-funtopia.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(4, 3, 24, 0.3), rgba(5, 8, 22, 0.95) 75%),
        radial-gradient(circle at top, rgba(255, 122, 0, 0.65), transparent 55%);
    mix-blend-mode: normal;
}

.hero-inner {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
}

/* Scroll animations base */
[data-animate] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 123, 0, 0.507);
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
    animation: tagPulse 2.4s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.6); }
    50% { box-shadow: 0 0 16px 4px rgba(255, 122, 0, 0.7); }
}

.hero-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: clamp(34px, 4.6vw, 46px);
    margin: 0 0 12px;
    text-transform: uppercase;
}

.hero-logo img {
    max-width: 360px;
    width: 60%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.7));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-text {
    max-width: 720px;
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 1.6;
}

/* Hero Buttons */
.hero-buttons {
    margin-bottom: 40px;
}

.fc-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fc-buttons-sub {
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: #ff7a00;
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 122, 0, 0.5);
}

.btn-primary:hover {
    background: #ff8f26;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 0 16px rgba(255, 122, 0, 0.7);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff7a00;
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 122, 0, 0.18);
    transform: translateY(-1px) scale(1.01);
}

.btn-dark {
    background: rgba(0,0,0,0.8);
    color: #fff;
}

.btn-dark:hover {
    background: rgba(0,0,0,0.95);
    transform: translateY(-1px) scale(1.01);
}

.btn-discord {
    background: #5865f2;
    color: #fff;
    box-shadow: 0 0 14px rgba(88, 101, 242, 0.5);
}

.btn-discord:hover {
    background: #6e78ff;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 0 18px rgba(88, 101, 242, 0.7);
}

/* Scroll Down Indicator */
.scroll-down {
    margin-top: 30px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #ffffffb3;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    animation: scrollBounce 1.8s ease-in-out infinite;
}

.scroll-down span {
    width: 8px;
    height: 8px;
    border-left: 2px solid #ffffffb3;
    border-bottom: 2px solid #ffffffb3;
    transform: translateY(-2px) rotate(-45deg);
}

@keyframes scrollBounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Sections */
.section {
    padding: 80px 0;
    background: #050816;
}

.section-alt {
    background: #070b25;
}

.section-inner {
    text-align: center;
}

.section-header h2 {
    font-family: 'Barlow', sans-serif;
    font-size: 32px;
    margin-bottom: 12px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
    font-size: 16px;
    color: #d3d7ff;
}

/* Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards */
.card {
    background: rgba(15, 19, 52, 0.9);
    border-radius: 16px;
    padding: 20px 22px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    border-color: rgba(255, 122, 0, 0.6);
}

.card h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 8px;
}

.card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #d3d7ff;
}

/* Feature cards with icons */
.feature-card {
    text-align: left;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.feature-icon img {
    max-width: 24px;
    max-height: 24px;
}

/* Steps */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    max-width: 720px;
    margin-inline: auto;
}

.steps li {
    margin-bottom: 22px;
}

.steps h3 {
    font-family: 'Barlow', sans-serif;
    margin-bottom: 4px;
}

.steps p {
    margin: 0;
    color: #d3d7ff;
    font-size: 15px;
}

/* Media Placeholder */
.media-placeholder {
    display: flex;
    justify-content: center;
}

.media-box {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d3d7ff;
    font-size: 14px;
}

/* Section CTA */
.section-cta {
    margin-top: 32px;
    text-align: center;
}

.section-cta p {
    max-width: 640px;
    margin: 0 auto 16px;
    color: #d3d7ff;
}

/* Discord Box */
.discord-box {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(88,101,242,0.2), rgba(88,101,242,0.05));
    border-radius: 20px;
    padding: 24px 24px 26px;
    text-align: center;
    border: 1px solid rgba(88, 101, 242, 0.4);
}

.discord-text {
    margin-bottom: 18px;
    color: #d3d7ff;
}

/* FAQ */
.faq {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.faq-item + .faq-item {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.faq-item h3 {
    font-family: 'Barlow', sans-serif;
    margin: 0 0 6px;
}

.faq-item p {
    margin: 0;
    font-size: 15px;
    color: #d3d7ff;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #040614;
    padding: 18px 0;
    font-size: 13px;
    color: #b0b3d9;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.footer-meta {
    opacity: 0.7;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a {
    color: #b0b3d9;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 700px) {
    .header-inner {
        padding: 10px 0;
    }

    .nav {
        position: absolute;
        right: 16px;
        top: 52px;
        flex-direction: column;
        align-items: flex-end;
        background: rgba(5,8,22,0.96);
        padding: 10px 14px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.08);
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero-inner {
        padding-top: 110px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Page hero for subpages */
.page-has-hero {
    background: #050816;
}

.page-hero {
    position: relative;
    padding: 120px 0 70px;
    color: #fff;
    background: radial-gradient(circle at top, rgba(255,122,0,0.6), transparent 55%), #050816;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(88,101,242,0.35), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    text-align: left;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #f3f4ffcc;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-family: 'Barlow', sans-serif;
    margin: 0 0 4px;
}

.page-hero-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(32px, 4vw, 40px);
    margin: 0 0 8px;
}

.page-hero-text {
    max-width: 640px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #e1e4ff;
}

/* Rules listing page */
.section-rules-list {
    background: #050816;
}

.rules-list-header {
    text-align: left;
    margin-bottom: 18px;
}

.rules-list-header h2 {
    font-family: 'Barlow', sans-serif;
    margin: 0 0 6px;
}

.rules-list-header p {
    margin: 0;
    color: #d3d7ff;
}

.rules-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 20px;
}

.rules-filter {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: #f3f4ff;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rules-filter-active,
.rules-filter:hover {
    background: rgba(255,122,0,0.18);
    border-color: #ff7a00;
    color: #fff;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.rule-card {
    position: relative;
    padding: 18px 20px 16px;
    border-radius: 16px;
    background: rgba(14,18,48,0.96);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.rule-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,122,0,0.7);
    box-shadow: 0 18px 40px rgba(0,0,0,0.75);
    background: radial-gradient(circle at top left, rgba(255,122,0,0.08), rgba(14,18,48,0.98));
}

.rule-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #c4c8ff;
    gap: 10px;
}

.rule-badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,122,0,0.15);
    border: 1px solid rgba(255,122,0,0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rule-date {
    opacity: 0.8;
}

.rule-title {
    font-family: 'Barlow', sans-serif;
    font-size: 19px;
    margin: 0;
}

.rule-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #d3d7ff;
}

.rule-footer {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.rule-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #ffb26a;
    text-decoration: none;
}

.rule-link::after {
    content: "›";
    font-size: 16px;
    transform: translateY(1px);
}

.rule-link:hover {
    color: #ffd09b;
}

.rule-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #f3f4ff;
}

.rule-status-important {
    background: rgba(220, 53, 69, 0.16);
    color: #ffb3b8;
}

/* Active nav state */
.nav-active {
    color: #ffffff;
}

.nav-active::after {
    width: 100%;
}

/* Responsive for rules */
@media (max-width: 900px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding-top: 110px;
    }
}


/* Regelwerk-Detailseiten */
.rules-detail {
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
}

.rules-detail-note {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    color: #d3d7ff;
    font-size: 14px;
    margin-bottom: 22px;
}

.rules-detail h2 {
    font-family: 'Barlow', sans-serif;
    font-size: 22px;
    margin-top: 18px;
    margin-bottom: 6px;
}

.rules-detail p {
    font-size: 15px;
    color: #d3d7ff;
    line-height: 1.7;
}

.rules-detail-list {
    margin-top: 6px;
    margin-bottom: 12px;
    padding-left: 20px;
    color: #d3d7ff;
}

.rules-detail-back {
    margin-top: 22px;
}


.rules-pre {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(5, 8, 22, 0.9);
    border: 1px solid rgba(255,255,255,0.06);
    color: #d3d7ff;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-x: auto;
}


/* Vollständig formatiertes Regelwerk (HTML-Version) */
.rules-html {
    margin-top: 32px;
    padding: 18px 20px 22px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(255,122,0,0.08), rgba(5,8,22,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    color: #e4e7ff;
    font-size: 15px;
    line-height: 1.7;
}

.rules-html strong {
    color: #ffd29e;
    font-weight: 600;
}

.rules-html br {
    line-height: 1.2;
}

.section-alt {
    position: relative;
    z-index: 5;
}


/* Regelwerk: Hero-Overlay deaktivieren und Inhalt immer sichtbar halten */
.page-hero-rules .page-hero-overlay {
    display: none !important;
}

/* ===== Rollen-Bereich – Layout wie Zielbild ===== */

.roles-section {
    position: relative;
    padding: 80px 0 90px;
    background: radial-gradient(circle at top, #27273a 0, #090913 60%);
    color: #fff;
    overflow: hidden;
}

.roles-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
    pointer-events: none;
}

.roles-section .container {
    position: relative;
    z-index: 1;
}

/* Header */
.roles-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px;
}

.roles-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.roles-title {
    font-size: 2.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.roles-sub {
    color: #cfd3ff;
    font-size: 0.98rem;
}

/* Tabs */
.roles-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    /* Abstand zwischen den Boxen */
    column-gap: 18px;   /* horizontaler Abstand */
    row-gap: 20px;      /* vertikaler Abstand zwischen den Reihen */

    margin-bottom: 38px;  /* Abstand nach unten zur großen Box */
    padding-bottom: 14px;
}

.roles-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 14px;  /* <--- hier von 999px auf 14px */
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at top, #262637 0, #14141f 65%, #111119 100%);
    color: #e5e5f5;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    outline: none;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 8px 18px rgba(0, 0, 0, 0.7);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.roles-tab-icon {
    display: inline-flex;
    font-size: 1rem;
    opacity: 0.8;
}

.roles-tab-label {
    white-space: nowrap;
}

.roles-tab:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.roles-tab.is-active {
    border-radius: 14px; /* wie bei dir für alle Tabs */
    background: rgba(255, 138, 61, 0.14);                 /* leicht orangener Hintergrund */
    border: 1px solid #ff8a3d;                            /* klare orange Umrandung */
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 200, 140, 0.45),              /* feiner heller Rand-Glow */
        0 10px 26px rgba(0, 0, 0, 0.85);                  /* Schatten nach unten */
}


.roles-tab.is-active .roles-tab-icon {
    opacity: 1;
}

.roles-tab.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 10px;
    height: 10px;
    background: #ff8a3d;                 /* gleiche Farbe wie Rahmen */
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(255, 210, 150, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.7);
}

/* Card / Slider */
.roles-card {
    position: relative;
    background: radial-gradient(circle at top left, #ff080010 0, #ff080010 40%, #ff080010 100%);
    border-radius: 28px;
    padding: 26px 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    display: grid;
    grid-template-columns: auto 1fr auto; /* Pfeil – Slide – Pfeil */
    align-items: center;
    gap: 16px;
}

.roles-viewport {
    position: relative;
}

/* Ein Slide: Bild links, Box rechts */
.roles-slide {
    position: relative;
    display: none; /* Basis: versteckt */
    border-radius: 22px;
    overflow: hidden;

    /* 2 Spalten: Bild ~60%, Box ~40% */
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    align-items: stretch;
}

.roles-slide.is-active {
    display: grid; /* jetzt Grid statt Block */
}

/* Bild-Spalte */
.roles-image {
    position: relative;
}

.roles-image img {
    width: 100%;
    height:100%;
    display: block;
    object-fit: cover;
}

.roles-image-label {
    position: absolute;
    left: 26px;
    bottom: 22px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(0, 0, 0, 0.6);
}

/* Box rechts im Bild – wie im Zielbild (Bild 2) */
/* Rechte Info-Box – eigene Spalte, nicht mehr Overlay */
.roles-info {
    position: relative;
    padding: 32px 32px 32px 40px;

    background: radial-gradient(
        circle at top left,
        #222235 0,
        #14141f 45%,
        #101018 100%
    );

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.roles-info-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0.95;
}

.roles-info-icon span,
.roles-info-icon img,
.roles-info-icon svg {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
    font-size: 28px;
}

/* Standard-Bullets (Fallback) */
.roles-info li {
    position: relative;
    padding-left: 16px;
}

.roles-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.15em;
    color: #2ea8ff; /* wird gleich pro Rolle überschrieben */
}


/* Icon-Box Farbe je Rolle */
.roles-slide--zivilist .roles-info-icon {
    background: linear-gradient(135deg, #4a8dff, #7bb5ff);
}

.roles-slide--unternehmer .roles-info-icon {
    background: linear-gradient(135deg, #00c48c, #21e3a7);
}

.roles-slide--krimineller .roles-info-icon {
    background: linear-gradient(135deg, #ff4b4b, #ff7a50);
}

.roles-slide--lspd .roles-info-icon {
    background: linear-gradient(135deg, #2155ff, #5c86ff);
}

.roles-slide--fib .roles-info-icon {
    background: linear-gradient(135deg, #7b42ff, #b07aff);
}

.roles-slide--doj .roles-info-icon {
    background: linear-gradient(135deg, #ffb23f, #ffd277);
}

.roles-slide--lsmc .roles-info-icon {
    background: linear-gradient(135deg, #ff4f81, #ff8fa8);
}

.roles-slide--lsc .roles-info-icon {
    background: linear-gradient(135deg, #ff7a00, #ffb24a);
}

/* Bullet-Farbe je Rolle */
.roles-slide--zivilist .roles-info li::before {
    color: #4a8dff;
}

.roles-slide--unternehmer .roles-info li::before {
    color: #00c48c;
}

.roles-slide--krimineller .roles-info li::before {
    color: #ff4b4b;
}

.roles-slide--lspd .roles-info li::before {
    color: #2155ff;
}

.roles-slide--fib .roles-info li::before {
    color: #7b42ff;
}

.roles-slide--doj .roles-info li::before {
    color: #ffb23f;
}

.roles-slide--lsmc .roles-info li::before {
    color: #ff4f81;
}

.roles-slide--lsc .roles-info li::before {
    color: #ff7a00;
}



.roles-info h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.roles-info p {
    font-size: 0.96rem;
    margin-bottom: 14px;
    color: #e1e5ff;
}

.roles-info h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.roles-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.roles-info li {
    font-size: 0.94rem;
    margin-bottom: 4px;
    position: relative;
    padding-left: 16px;
}

.roles-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2ea8ff;
}

/* Pfeile */
.roles-nav {
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}

.roles-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

/* Dots */
.roles-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}

.roles-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: width 0.18s ease, background 0.18s ease;
}

.roles-dot.is-active {
    width: 22px;
    background: #ff8a3d;
}

/* Mobile */
@media (max-width: 960px) {
    .roles-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 16px;
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .roles-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .roles-image img {
        height: 260px;
    }

    .roles-info {
        position: static;
        width: 100%;
        height: auto;
        padding: 18px 18px 22px;
        background: #10101a;
    }

    .roles-image-label {
        font-size: 1.1rem;
        left: 18px;
        bottom: 18px;
    }

    .roles-nav {
        display: none;
    }
}

/* =========================================================
   OFFIZIELLE WEBSEITEN / RESSOURCEN-BEREICH – KOMPAKT
   ========================================================= */

/* FAQ etc. benutzen einfach den Standard-Body-Hintergrund.
   Eigener Hintergrund nur für "Weitere Ressourcen". */

.resources-section {
    position: relative;
    padding: 60px 0 80px;

    /* eigener Verlauf nur für diesen Block */
    background: radial-gradient(circle at top,
        #050816 0,
        #050816 40%,
        #050816 100%);
}

/* Optional: leichter Abstand nach oben, damit es "getrennt" wirkt */
#faq {
    padding-bottom: 40px;
}


   .resources-inner {
    text-align: center;
}

.resources-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 14px;
    border-radius: 999px;
    background: rgba(255, 138, 61, 0.12);
    border: 1px solid rgba(255, 138, 61, 0.7);
    color: #ffb877;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resources-header h2 {
    font-family: 'Barlow', sans-serif;
    font-size: 26px;              /* kleiner */
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.resources-header p {
    max-width: 680px;
    margin: 0 auto 24px;          /* weniger Abstand */
    line-height: 1.6;
    font-size: 14px;              /* kleiner */
    color: #d3d7ff;
}

/* Liste der Karten */

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 12px;                    /* enger zusammen */
    text-align: left;
}

/* Einzelne Karte – kompakt */

.resource-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;           /* deutlich weniger Padding */
    border-radius: 14px;
    background: radial-gradient(circle at top left, #252538 0, #151521 55%, #101018 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 14px 30px rgba(0, 0, 0, 0.8);
}

.resource-logo {
    flex: 0 0 90px;               /* schmaler */
    display: flex;
    justify-content: center;
}

.resource-logo-circle {
    width: 68px;
    height: 68px;                 /* kleinerer Kreis */
    border-radius: 999px;
    background: radial-gradient(circle at top, #2b2235 0, #171723 70%, #0b0b16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.resource-logo-circle img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

/* Textbereich rechts */

.resource-content {
    flex: 1;
}

.resource-title {
    font-size: 15px;              /* kleiner */
    font-weight: 600;
    margin-bottom: 2px;
}

.resource-desc {
    font-size: 13px;              /* kleiner */
    color: #c2c6e4;
    margin-bottom: 4px;
}

/* Link "Besuchen" */

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ff8a3d;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.resource-link-icon {
    font-size: 11px;
}

/* Hover-Effekt */

.resource-card:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px #ff8a3d,
        0 18px 36px rgba(0, 0, 0, 0.9);
    transition:
        transform 0.16s ease-out,
        box-shadow 0.16s ease-out;
}

/* Responsive */

@media (max-width: 768px) {
    .resource-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 12px 14px;
    }

    .resource-logo {
        flex: 0 0 70px;
    }

    .resource-logo-circle {
        width: 56px;
        height: 56px;
    }

    .resource-title {
        font-size: 14px;
    }

    .resource-desc {
        font-size: 12px;
    }
}

/* =========================================================
   TEAM-SEITE 
   ========================================================= */

.team-page {
    padding-top: 96px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top, #0b1024 0, #050814 40%, #040614 100%);
    min-height: 100vh;
}

.team-hero {
    padding: 40px 0 10px;
    text-align: center;
}

.team-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 999px;
    background: rgba(255, 138, 61, 0.12);
    border: 1px solid rgba(255, 138, 61, 0.7);
    color: #ffb877;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.team-title-page {
    font-family: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.team-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: #b0b5d6;
    font-size: 0.95rem;
}

/* GRID MIT KARTEN */

.team-grid-section {
    margin-top: 32px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* EINE TEAM-KARTE */

.team-card {
    background: radial-gradient(circle at top left, #252538 0, #151521 60%, #11111b 100%);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 18px 40px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
}

.team-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.team-card-role {
    display: flex;
    gap: 14px;
    max-width: 75%;
}

.team-card-role h2 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.team-card-role p {
    font-size: 0.85rem;
    color: #b7bddb;
}

/* Icon links in der Karte */

.team-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-icon-inner {
    font-size: 22px;
}

/* Farb-Varianten */

.team-icon-yellow {
    background: linear-gradient(135deg, #ffb23f, #ffd277);
}

.team-icon-purple {
    background: linear-gradient(135deg, #7b42ff, #b07aff);
}

.team-icon-red {
    background: linear-gradient(135deg, #ff4b4b, #ff7a50);
}

.team-icon-blue {
    background: linear-gradient(135deg, #2155ff, #5c86ff);
}

/* Badge mit Anzahl der Mitglieder */

.team-card-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 72px;
}

.team-card-count-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 10px;
    background: #ff8a3d;
    font-size: 0.8rem;
    font-weight: 600;
}

.team-card-count-label {
    margin-top: 4px;
    font-size: 0.7rem;
    color: #c5c9e6;
}

/* Linie über den Avataren */

.team-card-divider {
    height: 1px;
    margin: 14px 0 10px;
    background: rgba(255, 255, 255, 0.06);
}

/* AVATARE UNTER DER LINIE */

.team-card-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 6px;
}

.member-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #2e3250;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f5f5ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    cursor: default;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name-Tooltip neben dem Avatar */

.member-avatar::after {
    content: attr(data-name);
    position: absolute;
    right: 115%;
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    padding: 4px 12px;
    border-radius: 8px;
    background: #3a425a;
    color: #ffffff;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.18s ease-out,
        transform 0.18s ease-out;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.member-avatar::before {
    content: "";
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%) rotate(45deg) scale(0.8);
    width: 8px;
    height: 8px;
    background: #3a425a;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.18s ease-out,
        transform 0.18s ease-out;
    z-index: 9;
}

.member-avatar:hover::after,
.member-avatar:hover::before {
    opacity: 1;
}

.member-avatar:hover::after {
    transform: translateY(-50%) translateX(0);
}

.member-avatar:hover::before {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .team-page {
        padding-top: 80px;
    }

    .team-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-title-page {
        font-size: 2rem;
    }
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f9fafb;
    background: radial-gradient(circle at top, #26293f 0, #050814 50%, #040614 100%);
}

/* HEADER */

.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to right, rgba(9, 11, 22, 0.92), rgba(12, 17, 35, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ff8a3d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.main-nav a {
    margin: 0 10px;
    font-size: 14px;
    color: #e5e7eb;
    text-decoration: none;
}

.main-nav a:hover {
    color: #ffffff;
}

.btn {
    border-radius: 999px;
    padding: 6px 16px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.btn-login,
.btn-primary {
    background: #ff8a3d;
    color: #fff;
}

.btn-secondary {
    background: #111827;
    color: #e5e7eb;
}

/* USER-MENÜ */

.user-menu {
    position: relative;
}

.header-user-menu {
    position: relative;
    display: inline-block;
    z-index: 1100;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 230px;
    border-radius: 12px;
    padding: 8px 0;
    background: #111827;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 1200;
}

.header-user-menu.is-open .user-menu-dropdown {
    display: block;
}


.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.2);
    padding: 3px 10px;
    color: #e5e7eb;
    cursor: pointer;
}

.user-avatar-circle {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.header-user-menu {
    position: relative;      /* WICHTIG: Dropdown richtet sich jetzt an diesem Element aus */
    display: inline-block;   /* damit der Container nur so breit ist wie der Button */
    z-index: 1100;
}


.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 190px;
    background: #1f2937;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    display: none;
}



.user-menu-dropdown a {
    display: block;
    padding: 8px 14px;
    color: #e5e7eb;
    font-size: 14px;
    text-decoration: none;
}

.user-menu-dropdown a:hover {
    background: #111827;
}

/* LOGIN & PANEL */

.auth-main,
.panel-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px 40px;
}

.auth-card {
    max-width: 380px;
    margin: 60px auto;
    background: #0b1220;
    border-radius: 18px;
    padding: 24px 24px 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 8px;
}

.auth-sub {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.auth-form input {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
}

/* Panel */

.panel-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.panel-avatar-big {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 18px;
}

.panel-card {
    background: #020617;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.panel-card-full {
    grid-column: 1 / -1;
}

.panel-card-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.panel-soft-card {
    flex: 1;
    background: #020617;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #111827;
}

/* === Grundlayout für die Zentrale =================================== */

.panel-main {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

/* Kopfbereich */

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.panel-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #111827 0, #020617 65%, #020617 100%);
    border: 1px solid #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
}


/* GRID: Sidebar links, Karten rechts */

.panel-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
    align-items: flex-start;
}

/* === Karten-Style ==================================================== */

.panel-card {
    background: radial-gradient(circle at top, #101427 0, #050815 60%, #020617 100%);
    border-radius: 18px;
    padding: 16px 20px 18px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 24px 50px rgba(0, 0, 0, 0.85);
}

.panel-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.panel-muted {
    font-size: 14px;
    color: #9ca3af;
}

/* Rechts oben 2-Spalten-Grid */

.panel-top-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Breite Karte unten rechts */

.panel-bottom-right {
    grid-column: 2 / 3;
}

/* === Sidebar links =================================================== */

.panel-sidebar {
    grid-row: 1 / 3;   /* über beide Zeilen */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.sidebar-avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #f97316 0, #a855f7 55%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-avatar-inner {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sidebar-char-name {
    font-weight: 600;
}

.sidebar-char-tag {
    margin-top: 4px;
    font-size: 12px;
    color: #e5e7eb;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    display: inline-block;
}

/* Sidebar-Abschnitte */

.sidebar-section {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding-top: 10px;
}

.sidebar-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.sidebar-level-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.sidebar-level-progress-label {
    color: #9ca3af;
    font-size: 11px;
}

.sidebar-level-bar {
    margin-top: 6px;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #020617;
    overflow: hidden;
}

.sidebar-level-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #facc15);
}

/* Listen in der Sidebar */

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 13px;
}

.sidebar-list li {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

/* === Rechte Seite – Links & Software-Karten ========================= */

.panel-links-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 14px;
}

.panel-links-list li + li {
    margin-top: 4px;
}

.panel-links-list a {
    color: #e5e7eb;
    text-decoration: none;
}

.panel-links-list a:hover {
    color: #f97316;
}

/* Software-Grid */

.panel-soft-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.panel-soft-card {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-soft-title {
    font-size: 14px;
}

/* Buttons wiederverwenden */
.btn.btn-secondary {
    padding: 6px 14px;
    border-radius: 999px;
    background: #111827;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.35);
    cursor: pointer;
    font-size: 12px;
}

.btn.btn-secondary:hover {
    background: #1f2937;
}

/* Responsive: unter 900px alles untereinander */

@media (max-width: 900px) {
    .panel-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .panel-sidebar {
        grid-row: auto;
    }

    .panel-top-right {
        grid-template-columns: 1fr;
    }

    .panel-bottom-right {
        grid-column: auto;
    }

    .panel-soft-grid {
        grid-template-columns: 1fr;
    }
}

/* Dropdown-Grundbox */
.header-user-menu {
    position: relative;      /* WICHTIG: Dropdown richtet sich jetzt an diesem Element aus */
    display: inline-block;   /* damit der Container nur so breit ist wie der Button */
    z-index: 1100;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;                        /* rechte Kante am Button ausrichten */
    top: calc(100% + 8px);           /* direkt unter dem Button (+8px Abstand) */
    min-width: 230px;
    border-radius: 12px;
    padding: 8px 0;
    background: #111827;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 1200;
}

/* sichtbar, wenn per JS Klasse gesetzt */
.header-user-menu.is-open .user-menu-dropdown {
    display: block;
}

/* einzelner Menüpunkt */
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 14px;
    color: #e5e7eb;
    text-decoration: none;
}

/* Hover-Effekt */
.user-menu-item:hover {
    background: #0b1220;
}

/* Icon-Bereich links */
.user-menu-symbol {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Label rechts vom Icon */
.user-menu-label {
    flex: 1;
}

/* "Abmelden" leicht hervorheben */
.user-menu-item--danger .user-menu-label {
    color: #f97316;
}

/* Toggle-Button selbst (dein "Miro Sanchez") – */
.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(2, 6, 23, 0.9);
    color: #f9fafb;
    font-size: 12px;
    cursor: pointer;
}

/* Avatar-Kreis im Toggle */
.user-avatar-circle {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* kleiner Pfeil */
.user-menu-arrow {
    font-size: 10px;
    opacity: 0.8;
}

/* Sicherheit: kein Hover-Open mehr */
 /* falls noch vorhanden UNBEDINGT entfernen:
.header-user-menu:hover .user-menu-dropdown { display: block; }
*/



/* --- Support / Ticketsystem --- */

.ticket-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ticket-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ticket-header-text h1 {
    margin: 0;
    font-size: 22px;
    color: #f9fafb;
}

.ticket-header-text p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #9ca3af;
}

.ticket-empty-box {
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.7);
}

.ticket-empty-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* --- Ticket-Modal --- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.modal-overlay.is-open {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 720px;
    background: #020617;
    border-radius: 18px;
    border: 1px solid #1f2937;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    padding: 22px 22px 20px;
}

.modal-header {
    margin-bottom: 14px;
}

.modal-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #f9fafb;
}

.modal-header p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

.modal-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.6);
    color: #fecaca;
    font-size: 13px;
    margin-bottom: 16px;
}

.modal-alert-icon {
    margin-top: 1px;
    font-size: 14px;
}

/* Formular im Modal */

.modal-form .form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.modal-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.modal-form label {
    font-size: 13px;
    color: #e5e7eb;
}

.modal-form input[type="text"],
.modal-form select,
.modal-form textarea {
    background: #020617;
    border-radius: 10px;
    border: 1px solid #111827;
    padding: 8px 10px;
    color: #f9fafb;
    font-size: 14px;
}

.modal-form textarea {
    min-height: 220px;
    resize: vertical;
}

/* Simple Editor-Leiste */

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px 10px 0 0;
    background: #020617;
    border: 1px solid #111827;
    border-bottom: none;
}

.editor-toolbar button {
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.editor-toolbar button:hover {
    background: #111827;
}

/* Editor-Textarea mit Toolbar */

.editor-area {
    border-radius: 0 0 10px 10px;
    border: 1px solid #111827;
    border-top: none;
    background: #020617;
    padding: 0;
}

.editor-area textarea {
    border: none;
    width: 100%;
    padding: 10px 10px 12px;
    background: transparent;
    color: #f9fafb;
}

/* Modal Footer */

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.modal-footer .btn {
    min-width: 110px;
    justify-content: center;
}

/* Responsive */

@media (max-width: 768px) {
    .modal {
        margin: 0 12px;
        padding: 16px 16px 18px;
    }

    .ticket-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}


/* Tickets-Tabelle */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tickets-table th,
.tickets-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #111827;
}

.tickets-table th {
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
}

.tickets-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.8);
}

/* Badges für Status */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.badge-status-open {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.6);
}

.badge-status-closed {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.6);
}

/* Meldungsboxen */

.alert-success,
.alert-danger {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

.alert-danger {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.8);
    color: #fecaca;
}

/* kleinerer Button für Tabellenaktionen */

.btn-small {
    padding: 6px 10px;
    font-size: 13px;
}


/* --- Einstellungen / Profilseite --- */

.settings-main {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.settings-section {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-top: 32px;
}

.settings-info {
    flex: 0 0 32%;
    font-size: 13px;
    color: #9ca3af;
}

.settings-info h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.settings-card {
    flex: 1;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 12px;
    border: 1px solid #111827;
    padding: 18px 20px;
}

.settings-alert {
    margin-top: 12px;
}

.settings-inline-alert {
    font-size: 12px;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(75, 85, 99, 0.7);
    padding: 10px 12px;
    margin-bottom: 14px;
}

.settings-text {
    font-size: 13px;
    color: #d1d5db;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-form label {
    font-size: 13px;
    color: #e5e7eb;
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="password"],
.settings-form input[type="file"],
.settings-form select {
    background: #020617;
    border-radius: 8px;
    border: 1px solid #111827;
    padding: 8px 10px;
    font-size: 14px;
    color: #f9fafb;
}

.settings-actions {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.settings-avatar-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.settings-avatar {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #111827;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-link-muted {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    text-align: left;
}

.btn-link-muted:hover {
    color: #e5e7eb;
}

/* Zwei-Faktor Actions */

.settings-twofa-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.settings-twofa-actions label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* Responsive */

@media (max-width: 900px) {
    .settings-section {
        flex-direction: column;
    }

    .settings-info {
        flex: 1;
    }

    .settings-actions {
        justify-content: flex-start;
    }
}


.user-avatar-circle img,
.sidebar-avatar-inner img,
.panel-header-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}


/* Notifications page */
.notifications-main,
.panel-main {
    max-width: 1100px;
    margin: 40px auto 80px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h2 {
    font-family: 'Barlow', sans-serif;
    font-size: 26px;
    margin: 0 0 6px;
}

.page-header p {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
}

/* Filter row */
.notifications-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-item label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    color: #9ca3af;
}

.filter-item select {
    min-width: 160px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    font-size: 14px;
}

.filter-item button[type="submit"] {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ff7a00, #ffb347);
    color: #0b1020;
    font-weight: 600;
    cursor: pointer;
}

/* Notifications list */
.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notification-item {
    padding-left: 18px;
    position: relative;
}

.notification-item::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 4px;
    color: #f97316;
    font-size: 18px;
    line-height: 1;
}

.notification-item.unread .notification-title strong {
    color: #ffffff;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #e5e7eb;
}

.notification-text {
    font-size: 13px;
    color: #cbd5f5;
    margin-top: 2px;
}

.notification-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Empty state */
.notification-empty {
    padding: 40px 0;
    text-align: center;
    color: #9ca3af;
}

.notification-empty-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.notification-empty-text h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

/* Badges for notification categories */
.badge-info,
.badge-warning,
.badge-success {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.badge-info {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.6);
    color: #bfdbfe;
}

.badge-warning {
    background: rgba(245,158,11,0.14);
    border-color: rgba(245,158,11,0.7);
    color: #fed7aa;
}

.badge-success {
    background: rgba(34,197,94,0.14);
    border-color: rgba(34,197,94,0.7);
    color: #bbf7d0;
}


/* kompaktere Liste im Dashboard */
.panel-notification-list .notification-item {
    padding-left: 14px;
}

.panel-notification-list .notification-title {
    font-size: 13px;
}

.panel-notification-list .notification-text {
    font-size: 12px;
    color: #9ca3af;
}

.panel-card-footer-link {
    margin-top: 8px;
    font-size: 12px;
}

.panel-card-footer-link a {
    color: #60a5fa;
}


/* Ticket-Verlauf */
.ticket-messages {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-message-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.4);
}

.ticket-message-item.from-admin {
    border-color: rgba(56,189,248,0.7);
}

.ticket-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.ticket-message-meta strong {
    color: #e5e7eb;
}

.ticket-message-body {
    font-size: 13px;
    color: #e5e7eb;
}

.ticket-reply-form textarea {
    width: 100%;
}

.ticket-messages {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-message-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.4);
}

.ticket-message-item.from-admin {
    border-color: rgba(56,189,248,0.7);
}

.ticket-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.ticket-message-meta strong {
    color: #e5e7eb;
}

.ticket-message-body {
    font-size: 13px;
    color: #e5e7eb;
}

.section-software {
    margin-top: 24px;
    margin-bottom: 8px;
}

/* Grid-Layout für die Karten */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* Einzelne Karte */
.software-card {
    padding: 16px 20px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.95), rgba(2,6,23,1));
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 14px 30px rgba(15,23,42,0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

/* Linker Textbereich */
.software-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.software-title {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.software-subtitle {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* Download-Button */
.software-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border-radius: 999px;
    border: 1px solid rgba(248, 180, 75, 0.9);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #fef3c7;
    background: radial-gradient(circle at top, #f97316, #ea580c);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.05), 0 8px 20px rgba(251, 146, 60, 0.4);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, opacity 0.12s ease-out;
}

.software-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.06), 0 10px 24px rgba(251, 146, 60, 0.55);
    opacity: 0.95;
}

.software-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(15,23,42,0.8);
}
ize: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #fef3c7;
    background: radial-gradient(circle at top, #f97316, #ea580c);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.05), 0 8px 20px rgba(251, 146, 60, 0.4);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, opacity 0.12s ease-out;
}

.software-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.06), 0 10px 24px rgba(251, 146, 60, 0.55);
    opacity: 0.95;
}

.software-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(15,23,42,0.8);
}


/* Demo-Hinweis in der Charakter-Sidebar */
.sidebar-demo-note {
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #9ca3af;
    opacity: 0.85;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    border-radius: 999px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(2,6,23,1));
    box-shadow: 0 0 0 1px rgba(15,23,42,0.9);
    transition: background 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out, transform 0.12s ease-out, box-shadow 0.15s ease-out;
}

.header-login-btn:hover {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.9);
    background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,0.95));
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4), 0 10px 20px rgba(15,23,42,0.9);
    transform: translateY(-0.5px);
}

.header-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(15,23,42,0.9);
}

.trailer-credits {
    margin-top: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------------
   TEAMSEITE – GVMP-Style Kartenlayout
------------------------------------------------------------------ */

.site-body {
    background: #050814;
    color: #f5f7ff;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header grob wie auf der Startseite – ggf. anpassen */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(5, 8, 20, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-family: "Barlow", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.logo span {
    color: #ffb347; /* Akzent wie GVMP */
}

.main-nav a {
    font-size: 0.95rem;
    text-decoration: none;
    color: rgba(232, 238, 255, 0.7);
    margin-left: 1.25rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
    color: #ffffff;
    border-color: rgba(255, 179, 71, 0.7);
}

.main-nav a.active {
    color: #ffffff;
    border-color: #ffb347;
}

/* Container / Sections */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 2.5rem 0;
}

.section--team-intro {
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
}

.page-title {
    font-family: "Barlow", system-ui, sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    max-width: 640px;
    font-size: 0.95rem;
    color: rgba(232, 238, 255, 0.7);
}

/* GRID */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem 1.5rem;
}

/* TEAM CARD */

.team-card {
    background: radial-gradient(circle at top left, rgba(255, 179, 71, 0.1), transparent 55%),
                #0c1222;
    border-radius: 18px;
    padding: 1.25rem 1.1rem 1rem;
    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: visible;   /* <--- wichtig */
}

.team-card__top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    column-gap: 0.9rem;
}

.team-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 0, #ffcf7b, #ff8e3c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
    flex-shrink: 0;
}

.team-card__icon i {
    font-size: 1.15rem;
    color: #1b1020;
}

.team-card__info {
    min-width: 0;
}

.team-card__title {
    font-family: "Barlow", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.team-card__text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(232, 238, 255, 0.7);
}

/* Badge oben rechts wie im Screenshot */

.team-card__badge {
    background: #20152c;
    border-radius: 14px;
    padding: 0.25rem 0.55rem;
    text-align: right;
    font-size: 0.65rem;
    line-height: 1.2;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.team-card__badge-count {
    font-weight: 600;
    color: #ffb347;
    font-size: 0.78rem;
}

.team-card__badge-label {
    font-size: 0.65rem;
    color: rgba(232, 238, 255, 0.7);
}

/* Avatare unten */

.team-card__bottom {
    margin-top: 1.05rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #151b2b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(232, 238, 255, 0.9);
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar--initials {
    text-transform: uppercase;
}

/* Footer */

.site-footer {
    margin-top: auto;
    padding: 1.5rem 0 2rem;
    font-size: 0.8rem;
    color: rgba(232, 238, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: #050814;
}

/* Responsive Kleinkram */

@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .main-nav a {
        margin-left: 0;
        margin-right: 1rem;
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.7rem;
    }
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #151b2b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(232, 238, 255, 0.9);
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; /* WICHTIG für Tooltip */
}

/* Tooltip über Avatar: Name + Rolle */
.avatar::after {
    content: attr(data-name) "\A" attr(data-role);
    white-space: pre;
    position: absolute;
    left: 50%;
    bottom: 135%;
    transform: translateX(-50%);
    background: #151b2b;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    line-height: 1.2;
    color: #f5f7ff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 128%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #151b2b transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 19;
}

.avatar:hover::after,
.avatar:hover::before {
    opacity: 1;
}
