h2[id] {
    scroll-margin-top: 100px;
	display: block;
}

:root {
    --bg-dark: #0a0e12;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-gold: #c5a059;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
}

/* Basis */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
	scroll-behavior: smooth !important;
}
p a,
li a,
span a {
    position: relative;
    color: var(--accent-gold) !important;
    text-decoration: none;
}

p a::after,
li a::after,
span a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

p a:hover::after,
li a:hover::after,
span a:hover::after {
    width: 100%;
    transform: scaleX(1);
}

/* Navigation */
.main-nav {
    background: rgba(5, 8, 12, 0.50); /* Deckkraft auf 75% reduziert für echten Transparenz-Effekt */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);     /* Leicht erhöht für einen weicheren, moderneren Blur */
    -webkit-backdrop-filter: blur(12px); /* Safari-Support, ganz wichtig */
    padding: 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav nav {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.main-nav a,
.nav-dropdown-toggle {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-right: 30px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: inline-block;
}

.main-nav a:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    color: var(--accent-gold);
}

.main-nav a::after,
.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 12px 10px 10px;
    background: rgba(5, 8, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 34px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    margin: 0;
    padding: 9px 10px;
    white-space: nowrap;
}

.btn-discord-small {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-discord-small:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

/* Hero */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    background:
        linear-gradient(
            90deg,
            rgba(5,8,12,0.92) 0%,
            rgba(5,8,12,0.70) 35%,
            rgba(5,8,12,0.35) 60%,
            rgba(5,8,12,0.55) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5,8,12,0.2) 0%,
            rgba(5,8,12,0.85) 100%
        ),
        url('header.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    gap: 40px;
}

.hero-text {
    text-align: left;
    flex: 1;
}

.hero-title-industrial {
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(3rem, 10vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    padding: 0px 0;

    background: linear-gradient(
        to bottom,
        #FFF7E3 0%,
        #F5E9C8 14%,
        #F5DDB4 30%,
        #D8C3A0 44%,
        #FFF1CF 52%,
        #BFA98A 66%,
        #F5DDB4 84%,
        #AA9A86 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12),
        0 3px 10px rgba(0, 0, 0, 0.45);
}

.hero-title-industrial::after {
    content: "Friendly-Helpers";
    position: absolute;
    left: 0;
    top: 20px;
    width: 100%;
    z-index: -1;
    opacity: 0.1;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-light.png');
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin: 10px 0 30px 0;
}

.logo-plate {
    flex: 1;
    display: grid;
    place-items: center;
    max-width: 800px;
    aspect-ratio: 1;
    transform: perspective(900px) rotateY(-15deg) rotateX(2deg);
}

.logo-plate img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 22px 40px rgba(0,0,0,.7));
}

/* Buttons */
.btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    margin: 10px;
    display: inline-block;
}

.primary {
    background: var(--accent-gold);
    color: #000;
}

.secondary {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.card-btn {
    display: inline-block;
    width: fit-content;
    padding: 6px 14px;
    font-family: monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    background: rgba(30, 31, 34, 0.9);
    border: 1px solid rgba(197, 160, 89, 0.2);
    color: #fff;
    margin-top: 10px;
    margin-bottom: 15px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.card-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(30, 31, 34, 1);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
    text-decoration: none;
}

.btn-read-more {
    display: inline-block;
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    background: rgba(30, 31, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.9rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-read-more:hover {
    color: var(--accent-gold);
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    border-color: rgba(197, 160, 89, 0.3);
    background-color: rgba(30, 31, 34, 1);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
}

/* Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: -50px auto 50px;
    padding: 0 20px;
}

.section-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-divider {
    max-width: 1200px;
    margin: 80px auto 40px auto;
    padding: 0 40px;
}

.divider-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.divider-content h2 {
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.divider-content svg {
    color: var(--accent-gold);
    width: 28px;
    height: 28px;
}

.divider-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, 
        var(--accent-gold) 0%, 
        rgba(197, 160, 89, 0.5) 50%, 
        transparent 100%
    );
    position: relative;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.card h3 {
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 10px;
    display: inline-block;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.card-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.card-head h3 {
    margin: 0;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #fff;
    border: none;
    padding: 0;
}

.card-head i,
.card-head svg {
    width: 22px;
    height: 22px;
    color: var(--accent-gold);
    stroke-width: 2px;
}

.player-detail-section {
    margin-bottom: 34px;
}

.player-detail-section + .player-detail-section {
    margin-top: 46px;
}

.player-detail-section > .card-head {
    margin-bottom: 28px;
}

.player-toggle-note {
    color: var(--text-muted);
    margin: 12px 0 0;
}

/* Alte Achievement-Karten-Ausgabe entfernt: neue Darstellung nutzt den Bot-Befehle-/Command-Stil. */

.head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.img-placeholder {
    margin-top: auto;
    padding-top: 20px;
}

.img-placeholder::before {
    content: " ";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 2;
    border-radius: 2px;
}

.card-img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    box-sizing: border-box;
    filter: saturate(0.8) brightness(0.6);
    transition: all 0.4s ease;
}

.card:hover .card-img {
    filter: saturate(1) brightness(1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

/* Listen */
.check-list {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
}

.check-list li::before {
    content: "✓ ";
    color: var(--accent-gold);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    color: #ddd;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.feature-list i,
.feature-list svg {
    color: var(--accent-gold);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.2));
}

.feature-list li:hover {
    transform: translateX(5px);
    color: #fff;
}

.feature-list li:hover i,
.feature-list li:hover svg {
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.5));
}

/* Bot-Befehle */
.bot-commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.command-category {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.category-header h3 {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin: 0;
}

.category-header svg {
    width: 24px;
    height: 24px;
    color: var(--accent-gold);
}

.command-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: default;
}

.command-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.cmd-info strong {
    display: block;
    font-family: 'Consolas', monospace;
    color: #fff;
    font-size: 0.95rem;
}

.cmd-info strong span {
    color: var(--accent-gold);
    font-weight: normal;
    opacity: 0.8;

}

.cmd-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Accordion */
.accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    padding: 15px 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.date-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 5px 12px;
    font-family: monospace;
    font-size: 0.8rem;
    margin-right: 20px;
    border-radius: 2px;
}

.summary {
    color: var(--text-muted);
    flex: 1;
    font-size: 0.9rem;
}

.arrow {
    color: var(--text-muted);
    width: 18px;
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.1);
}

.accordion-inner {
    padding: 15px 15px 18px 120px;
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.65;
}

.accordion-inner p {
    margin: 0 0 12px 0;
}

.accordion-inner p:last-child,
.accordion-inner ul:last-child,
.accordion-inner ol:last-child {
    margin-bottom: 0;
}

.accordion-inner ul,
.accordion-inner ol {
    margin: 10px 0 14px 0;
    padding-left: 20px;
}

.accordion-inner li {
    margin-bottom: 6px;
}

.accordion-inner code {
    background-color: rgba(30, 31, 34, 0.8);
    color: var(--accent-gold);
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    white-space: normal;
    word-break: break-word;
}

.accordion-item.active .accordion-content {
    max-height: 20000px;
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

/* Labor-Accordion */
.labor-accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
    transition: all 0.4s ease;
}

.accordion-preview {
    position: relative;
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.read-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(15, 20, 25, 0.7) 50%,
        #0E1216 100%
    );
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.labor-accordion-item.expanded .accordion-preview {
    max-height: 2000px;
}

.labor-accordion-item.expanded .read-more-overlay {
    opacity: 0;
    pointer-events: none;
}

.content-inner code {
    background-color: rgba(30, 31, 34, 0.8);
    color: var(--accent-gold);
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-color: rgba(197, 160, 89, 0.3);
    white-space: pre-wrap;
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 100px;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-logo img {
    width: 100%;
    filter: grayscale(1) opacity(0.5);
}

.footer-info h4 {
    color: var(--text-main);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-info p,
.footer-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 5px 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
}

.command-category .bot-commands-grid {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.command-category.command-category-open .bot-commands-grid {
    max-height: 600px;
    opacity: 1;
    margin-top: 20px;
}

.command-category .clan-members-grid {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, margin-top 0.3s ease;
}

.command-category.command-category-open .clan-members-grid {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 20px;
}

.command-category-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0 0 14px 0;
    cursor: pointer;
    font-family: inherit;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-arrow {
    transition: transform 0.3s ease;
}

.command-category.command-category-open .category-arrow {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 900px) {
    .main-nav nav {
        flex-wrap: wrap;
        gap: 10px 0;
    }

    .main-nav a,
    .nav-dropdown-toggle {
        margin-right: 18px;
    }

    .btn-discord-small {
        margin-left: 0;
    }

    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 50px;
    }

    .hero-text {
        text-align: center;
    }

    .logo-plate {
        max-width: 250px;
        transform: none;
    }

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo {
        margin: 0 auto;
    }
}
.labor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.labor-grid .labor-accordion-item {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .labor-grid {
        grid-template-columns: 1fr;
    }
}
.about-img {
    float: left;            /* Bild nach links, Text nach rechts */
    width: 300px;           /* Feste Breite, damit es nicht zu groß ist */
    margin-right: 20px;     /* Abstand zum Text rechts */
    margin-bottom: 10px;    /* Abstand zum Text darunter */
}

/* Da die Effekte bereits auf .card-img liegen, 
   funktionieren sie automatisch auch hier. 
   Falls der Hover-Effekt auf der ganzen Box triggern soll: */

.about-box:hover .about-img {
    filter: saturate(1) brightness(1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
}

.commands-summary {
    margin-bottom: 32px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
}

.commands-summary .eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
}

.commands-summary h2 {
    margin: 0 0 14px;
}

.commands-summary p {
    color: var(--text-muted);
    line-height: 1.7;
}

.commands-count-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.count-card {
    padding: 18px 14px;
    border-radius: 14px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}

.count-card strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 8px;
}

.count-card span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.commands-total {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .commands-count-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .commands-count-grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   SCROLL TO TOP BUTTON
========================================
*/
#toTopBtn {
    display: none;               /* Startet unsichtbar */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;                 /* Liegt über fast allem */
    border: 1px solid var(--accent-gold);
    background-color: var(--discord-dark);
    color: var(--accent-gold);
    cursor: pointer;
    padding: 12px;
    border-radius: 4px;          /* Passt zum Kachel-Design */
    transition: all 0.3s ease;
}

#toTopBtn:hover {
    background-color: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    transform: translateY(-3px); /* Kleiner Hopser nach oben */
}

#toTopBtn svg {
    width: 20px;
    height: 20px;
    display: block;              /* Verhindert komische Abstände */
}

/* Ship Database */
.ships-head {
    margin-top: 70px;
}

.ships-filter {
    margin-bottom: 30px;
    padding: 22px;
}

.ships-filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

.ships-input,
.ships-select {
    background: rgba(10, 14, 18, 0.95);
    color: var(--text-main);
    border: 1px solid rgba(197, 160, 89, 0.35);
    padding: 12px 14px;
    border-radius: 3px;
    min-height: 44px;
    font-family: inherit;
}

.ships-input {
    min-width: 280px;
    flex: 1;
}

.ships-select {
    min-width: 170px;
}

.ships-search-btn {
    border: none;
    min-height: 44px;
    margin: 0;
}

.ships-filter-row .autocomplete-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: min(520px, 100%);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    background: rgba(14, 18, 22, 0.98);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 4px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.ships-filter-row .autocomplete-panel-open {
    display: block;
}

.ships-filter-row .autocomplete-item {
    width: 100%;
    display: block;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.ships-filter-row .autocomplete-item:hover {
    background: rgba(197, 160, 89, 0.10);
}

.ships-filter-row .autocomplete-item strong,
.ships-filter-row .autocomplete-item span {
    display: block;
}

.ships-filter-row .autocomplete-item span {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.ships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.ship-card {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    padding: 18px;
    transition: all 0.25s ease;
}

.ship-card:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 160, 89, 0.55);
    box-shadow: 0 0 22px rgba(197, 160, 89, 0.14);
}

.ship-image-wrap {
    position: relative;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(197, 160, 89, 0.18);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ship-image-wrap--badged {
    overflow: visible;
}

.ship-badge-overlay {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 35px;
    height: 35px;
    object-fit: contain;
    pointer-events: none;
    z-index: 5;
}

.ship-image {
    max-width: 100%;
    max-height: 135px;
    object-fit: contain;
    filter: brightness(0.85) saturate(0.9);
    transition: all 0.25s ease;
}

.ship-card:hover .ship-image {
    filter: brightness(1.05) saturate(1.05);
}

.ship-title-row h3 {
    margin: 0 0 10px 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.08rem;
}

.ship-title-row h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ship-title-row h3 a:hover {
    color: var(--accent-gold);
}

.ship-title-row h3::after {
    content: '';
    display: block;
    width: 55%;
    height: 1px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.ship-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ship-badges span {
    font-size: 0.72rem;
    color: var(--accent-gold);
    border: 1px solid rgba(197, 160, 89, 0.35);
    background: rgba(197, 160, 89, 0.08);
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ship-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.ship-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ship-stats div {
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    padding: 10px;
}

.ship-stats strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.ship-stats span {
    display: block;
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-top: 2px;
}

.ship-detail-hero {
    min-height: 275px;
    display: grid;
    place-items: center;
    margin: 0 0 36px;
    border-top: 1px solid rgba(197, 160, 89, 0.18);
    border-bottom: 1px solid rgba(197, 160, 89, 0.18);
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.13), rgba(0, 0, 0, 0.18) 62%, transparent 100%);
    overflow: hidden;
}

.ship-detail-image {
    width: min(835px, 100%);
    max-height: 375px;
    object-fit: contain;
    filter: drop-shadow(0 24px 36px rgba(0,0,0,0.55));
}

.ship-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ship-detail-card {
    transform: none;
}

.ship-detail-card:hover {
    transform: none;
}

.ship-detail-list {
    display: grid;
    gap: 9px;
}

.ship-detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ship-detail-list div:last-child {
    border-bottom: 0;
}

.ship-detail-list span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.ship-detail-list strong {
    color: #fff;
    text-align: right;
    font-size: 0.9rem;
}

.module-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.module-image {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex: 0 0 54px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35));
}

.module-profile-list strong {
    max-width: 52%;
    overflow-wrap: anywhere;
}

.ranked-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 16px;
    align-items: center;
}

.ranked-layout > .ship-stats.ranked-stats {
    grid-template-columns: 1fr;
}

.ranked-layout > .ranked-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranked-rank-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(197, 160, 89, 0.22));
}

.clan-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 42px;
}

.clan-overview-single {
    grid-template-columns: 1fr;
}

.clan-description {
    color: var(--text-muted);
    line-height: 1.7;
    white-space: pre-line;
}

.clan-command-list {
    display: grid;
    gap: 12px;
}

.clan-note {
    color: var(--text-muted);
    margin: 0 0 22px;
}

.clan-table-wrap {
    overflow-x: auto;
}

.clan-leaderboard-box {
    padding: 0;
    background: transparent;
    border: 0;
}

.clan-leaderboard-preview {
    max-height: 285px;
}

.clan-leaderboard-box.expanded .clan-leaderboard-preview {
    max-height: none;
    overflow: visible;
}

.clan-leaderboard-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(14, 18, 22, 0) 0%,
        rgba(14, 18, 22, 0.78) 48%,
        #0E1216 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.clan-leaderboard-box.expanded .clan-leaderboard-overlay {
    opacity: 0;
    display: none;
}

.clan-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.clan-table th,
.clan-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-align: left;
    white-space: nowrap;
}

.clan-table th {
    color: var(--accent-gold);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    user-select: none;
}

.clan-table th.sorted-asc::after {
    content: " ↑";
}

.clan-table th.sorted-desc::after {
    content: " ↓";
}

.clan-table tbody tr:hover {
    background: rgba(255,255,255,0.035);
}

.clan-table a {
    color: #fff;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.clan-table a:hover {
    color: var(--accent-gold);
}

.clan-table a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.clan-table a:hover::after {
    transform: scaleX(1);
}

.player-ships-table {
    min-width: 1010px;
}

.ship-player-table {
    min-width: 1040px;
}

.ship-player-leaderboard-panel {
    overflow: visible;
}

.ship-player-row-hidden {
    display: none;
}

.ship-player-loadmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.player-ships-table th:last-child,
.player-ships-table td:last-child {
    width: 82px;
    min-width: 82px;
    text-align: center;
    padding-right: 20px;
}

.player-ship-name {
    color: #fff;
    font-weight: 700;
}

.table-chip {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 3px;
    color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.08);
    font-size: 0.72rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.table-expert-badge {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.table-empty {
    color: var(--text-muted);
}

.rating-note-box {
    position: relative;
    margin: 0 0 18px;
    padding: 16px 52px 16px 18px;
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 5px;
    background: rgba(197, 160, 89, 0.07);
}

.rating-note-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    background: rgba(0,0,0,0.18);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rating-note-close:hover {
    color: #fff;
    border-color: rgba(197, 160, 89, 0.45);
    background: rgba(197, 160, 89, 0.12);
}

.rating-note-box strong {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating-note-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.rating-note-box p + p {
    margin-top: 8px;
}

.rating-note-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    font-size: 0.88rem;
}

.rating-note-colors span {
    color: #fff;
    font-weight: 400;
}

.rating-note-colors b {
    font-weight: 400;
}

.rating-value {
    display: inline-block;
    min-width: 54px;
    padding: 0;
    font-weight: normal;
    text-align: center;
    border: 0;
    background: transparent;
}

.rating-red {
    color: #ff8a8a;
}

.rating-orange {
    color: #ffb16f;
}

.rating-yellow {
    color: #f2d272;
}

.rating-green {
    color: #9fe0a9;
}

.rating-blue {
    color: #8fc8ff;
}

.rating-purple {
    color: #d7a7ff;
}

.rating-empty {
    color: var(--text-muted);
}

.wr-value {
    display: inline-block;
    min-width: 78px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.wr-good {
    color: #b7e0be;
    background: rgba(73, 151, 91, 0.14);
    border: 1px solid rgba(73, 151, 91, 0.34);
}

.wr-warm {
    color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.32);
}

.wr-muted {
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.clan-leaderboard-row {
    text-decoration: none;
    color: inherit;
}

.command-category.command-category-open .clan-leaderboard-grid {
    max-height: 1200px;
}

.clan-rank {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    color: var(--accent-gold);
    border: 1px solid rgba(197, 160, 89, 0.35);
    background: rgba(197, 160, 89, 0.08);
    border-radius: 4px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .clan-overview {
        grid-template-columns: 1fr;
    }

    .ships-input,
    .ships-select,
    .ships-search-btn {
        width: 100%;
        min-width: 0;
    }

    .ship-meta {
        flex-direction: column;
    }
}

/* Player-Detail: Errungenschaften im Bot-Befehle-Stil */
.achievement-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 18px;
}

.achievement-summary-card .cmd-info strong {
    font-size: 1.65rem;
    color: var(--accent-gold);
}

.achievements-category-list {
    margin-top: 20px;
}

.achievements-category .category-header {
    gap: 14px;
}

.achievements-category .category-title {
    flex: 1 1 auto;
    min-width: 0;
}

.achievement-category-count {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    margin-left: auto;
}

.achievements-category.command-category-open .bot-commands-grid {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 20px;
}

.achievements-command-grid {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.achievement-command-card {
    align-items: flex-start;
}

.achievement-command-card .achievement-icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
    flex: 0 0 68px;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
}

.achievement-command-info {
    min-width: 0;
}

.achievement-command-info strong {
    line-height: 1.3;
}

.achievement-command-info > span {
    display: block;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .achievement-category-count {
        display: none;
    }

    .achievements-command-grid {
        grid-template-columns: 1fr;
    }
}
.achievement-command-card {
    position: relative;
}

.achievement-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    color: var(--accent-gold);
}

.achievement-tooltip-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

.achievement-tooltip-corner svg {
    width: 18px;
    height: 18px;
}

.achievement-tooltip-text {
    visibility: hidden;
    opacity: 0;

    position: absolute;
    top: -8px;
    left: 28px;

    width: 320px;
    max-width: 50vw;
    padding: 12px 14px;

    background: rgba(5, 8, 12, 0.50);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;

    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;

    box-shadow: 0 12px 30px rgba(0,0,0,0.35);

    z-index: 999;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.achievement-tooltip:hover .achievement-tooltip-text,
.achievement-tooltip-corner:hover .achievement-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Kommandanten */
.commanders-count-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}

.commanders-category-list {
    margin-top: 20px;
}

.commanders-category .category-header {
    gap: 14px;
}

.commanders-category .category-title {
    flex: 1 1 auto;
    min-width: 0;
}

.commander-category-count {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    margin-left: auto;
}

.commanders-category.command-category-open .bot-commands-grid {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 20px;
}

.commanders-command-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.commander-command-card {
    align-items: center;
    position: relative;
    padding-right: 42px;
}

.commander-icon {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex: 0 0 88px;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
}

.commander-command-info {
    min-width: 0;
}

.commander-command-info strong {
    line-height: 1.3;
}

@media (max-width: 700px) {
    .commander-category-count {
        display: none;
    }

    .commanders-command-grid {
        grid-template-columns: 1fr;
    }
}

/* Karten */
.maps-count-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}

.maps-category-list {
    margin-top: 20px;
}

.maps-category .category-header {
    gap: 14px;
}

.maps-category .category-title {
    flex: 1 1 auto;
    min-width: 0;
}

.map-category-count {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    margin-left: auto;
}

.maps-category.command-category-open .bot-commands-grid {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 20px;
}

.maps-command-grid {
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.map-command-card {
    align-items: flex-start;
}

.map-icon {
    width: 132px;
    height: 132px;
    object-fit: contain;
    flex: 0 0 132px;
    border: 1px solid rgba(197, 160, 89, 0.18);
    background: rgba(0,0,0,0.20);
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
}

.map-command-info {
    min-width: 0;
}

.map-command-info strong {
    line-height: 1.3;
}

.map-command-info > span {
    display: block;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .map-category-count {
        display: none;
    }

    .maps-command-grid {
        grid-template-columns: 1fr;
    }

    .map-icon {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }
}
