/* Mobile Optimierung */
@media (max-width: 600px) {
    body {
        font-size: 1rem;
        padding: 8px;
    }
    h1, h2, h3 {
        font-size: 1.2em;
        margin: 0.5em 0;
    }
    nav, .navigation {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .container, .content {
        padding: 8px;
        margin: 0;
    }
    img {
        max-width: 100%;
        height: auto;
    }
    table {
        font-size: 0.9em;
        width: 100%;
        overflow-x: auto;
        display: block;
    }
    .button, button {
        font-size: 1em;
        padding: 10px 16px;
    }
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #23272A;
    color: #000000;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px 0 rgba(88,101,242,0.18);
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.discord-link::before {
    content: "";
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    z-index: -1;
    border-radius: 13px;
    padding: 0;
    background: linear-gradient(270deg, #ff0000, #ff9900, #ffee00, #33ff00, #00ffee, #0066ff, #cc00ff, #ff0000);
    background-size: 1600% 1600%;
    animation: rainbow-border 6s linear infinite;
}

@keyframes rainbow-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.discord-link:active, .discord-link:focus {
    outline: none;
}
}
.discord-link:hover {
    background: #5865F2;
    color: #fff;
    border: 2px solid #FFD700;
}
.stats-table th, .stats-table td {
    padding-right: 28px;
}


/* Aufwändigere Box für Inhalte */
li {
    padding-right: 20px;
}

ul {
    text-align: left;
}

.gray-box {
    background: rgba(40, 40, 45, 0.92);
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18), 0 1.5px 6px 0 rgba(255, 215, 0, 0.08);
    padding: 32px 32px 24px 32px;
    margin: 32px 2cm 32px 2cm;
    border: 1.5px solid #333;
    max-width: 900px;
    width: auto;
    min-width: 220px;
    box-sizing: border-box;
    display: block;
    text-align: justify;
}

/* Aufgaben-Tabellen: Punkte rechtsbündig und vertikal ausrichten */
.aufgaben-tag table {
    width: 100%;
    border-collapse: separate;
    margin-bottom: 32px;
}
.aufgaben-tag th,
.aufgaben-tag td {
    padding: 8px 16px;
    border-bottom: 1px solid #333;
}
.aufgaben-tag th {
    background: #23272A;
    color: #FFD700;
    text-align: left;
}
.aufgaben-tag td:last-child {
    text-align: right;
    vertical-align: middle;
    font-weight: bold;
    color: #FFD700;
    font-variant-numeric: tabular-nums;
}
.aufgaben-tag tr:last-child td {
    border-bottom: none;
}
@media (max-width: 900px) {
    main {
        margin-right: 0;
        padding: 20px 0;
    }

    .gray-box {
        margin: 18px 8px 18px 8px;
        padding: 18px 8px 14px 8px;
        min-width: unset;
        max-width: 100vw;
    }
}
/* Responsive Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, #2f3136, #23272A);
    padding: 0 1rem;
    min-height: 52px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100vw;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    overflow: hidden;
    border-radius: 12px;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.navbar-title {
    color: #FFD700;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    padding: 0;
}
.navbar-toggle .bar {
    width: 28px;
    height: 4px;
    background: #FFD700;
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.navbar-links {
    display: flex;
    gap: 0.4em;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}
.navbar-links a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.navbar-links a.discord-link {
    background: #5865F2;
    color: #000000;
    border: none;
    margin: 0 0.8rem 0 10px;
    padding: 5px 10px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 6px;
    font-size: 0.9em;
    align-self: center;
}
.navbar-links a.discord-link:hover {
    background: #4752c4;
    color: #fff;
}
.navbar-links a:hover, .navbar-links a.active {
    background: #FFD700;
    color: #23272A;
}
@media (max-width: 900px) {
    .navbar-links {
        gap: 0.5em;
    }
}
@media (max-width: 700px) {
    .navbar {
        padding: 0.3rem 0.5rem;
        min-height: 50px;
    }
    .navbar-toggle {
        display: flex;
    }
    .navbar-links {
        flex-direction: column;
        align-items: stretch;
        background: #2f3136;
        position: absolute;
        top: 50px;
        left: 0;
        width: calc(100% - 1.2rem);
        max-width: none;
        padding: 0;
        display: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        border-top: 1px solid #202225;
        box-sizing: border-box;
        margin: 0 0.6rem;
        border-radius: 0 0 8px 8px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1001;
    }
    .navbar-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .navbar-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.95em;
        border-radius: 0;
        border-bottom: 1px solid #202225;
    }
    .navbar-links a.discord-link {
        background: #5865F2;
        color: #fff;
        border-bottom: none;
        justify-content: center;
        border-radius: 8px;
        margin: 15px 10px;
        width: calc(100% - 50px);
        font-size: 0.95em;
    }
    .navbar-links a.discord-link:hover {
        background: #4752c4;
        color: #fff;
    }
    .navbar-links a:last-child {
        border-bottom: none;
    }
}
@media (max-width: 500px) {
    .navbar {
        padding: 0.25rem 0.4rem;
    }
    .navbar-title {
        font-size: 0.95em;
    }
    .navbar-logo {
        gap: 0.5em;
    }
    .navbar-logo svg {
        width: 32px;
        height: 32px;
    }
    .navbar-toggle {
        width: 40px;
        height: 40px;
    }
    .navbar-toggle .bar {
        width: 24px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #181A1B;
    background-image: url('data:image/svg+xml;utf8,<svg width="120" height="120" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" opacity="0.015"><circle cx="24" cy="24" r="22" fill="none" stroke="%23FFD700" stroke-width="2"/><polygon points="24,8 32,40 16,40" fill="%23FFD700"/><text x="24" y="30" text-anchor="middle" font-size="12" fill="%23fff" font-family="Arial" font-weight="bold">LDG</text></svg>');
    background-repeat: repeat;
    background-size: 120px 120px;
    color: #F5F5F5;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow-y: scroll;
    overflow-x: hidden;
    max-width: 100vw;
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    text-align: left;
}

.nav-item.discord {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    width: auto;
    height: auto;
    padding: 0;
}

main {
    padding: 40px 60px;
    flex: 1;
    position: relative;
}

.logo-watermark {
    display: none;
}

.clan-header {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.clan-logo {
    margin-right: 18px;
    display: flex;
    align-items: center;
}

.clan-title {
    font-size: 2em;
    font-weight: bold;
    color: #FFD700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px #222;
    text-align: left;
}

.content h1 {
    color: #FFD700;
    margin-top: 0;
}

.content p {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
}

@media (max-width: 900px) {
    main {
        margin-right: 0;
        padding: 20px 10px;
    }

    .logo-watermark {
        display: none;
    }

    .navbar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: none;
    }

    .nav-item {
        width: auto;
        margin: 0 8px;
        padding: 8px 12px;
        font-size: 1em;
    }
}

.site-footer {
    text-align: center;
    color: #B5B5B5;
    font-size: 0.9em;
    padding: 12px 16px;
}