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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050508;
    color: #f5f5f5;
}

a {
    color: inherit;
}

/* Wrapper */
.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER – ähnlich Backend */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: radial-gradient(circle at top left, #ff5252 0, #13131a 45%, #050508 100%);
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.site-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 82, 82, 0.7));
}

.site-header-title h1 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header-title .subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Login-Bereich */

.login-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.9rem;
}

.login-form input {
    background: #161620;
    border: 1px solid #333;
    color: #f5f5f5;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.login-form input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 6px rgba(229, 57, 53, 0.7);
}

.login-form button,
.btn-backend,
.btn-logout {
    background: #e53935;
    border: none;
    color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.login-form button:hover,
.btn-backend:hover,
.btn-logout:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.8);
}

.welcome-text {
    font-size: 0.9rem;
    color: #f5f5f5;
}

.login-error {
    color: #ff7676;
    font-size: 0.8rem;
}

/* Layout – 3 Spalten wie Backend */

.site-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.7fr 1.1fr;
    gap: 18px;
    align-items: flex-start;
}

/* Panels */

.panel {
    background: #101018;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 82, 82, 0.12);
}

.panel-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ff5252;
}

/* Boxen in Panels */

.panel-box {
    background: #151521;
    border-radius: 10px;
    padding: 12px 12px 10px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.panel-box h3 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: #ff867c;
}

.panel-box p {
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.muted {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Server-Listen (Root + Game) */

.server-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.server-item:last-child {
    border-bottom: none;
}

.server-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background: #0a0a0f;
}

.server-info {
    flex: 1;
    min-width: 0;
}

.server-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.server-game {
    font-size: 0.78rem;
    opacity: 0.8;
}

.server-desc {
    font-size: 0.8rem;
    margin-top: 2px;
    opacity: 0.9;
}

.server-meta {
    font-size: 0.78rem;
    opacity: 0.75;
}

.server-tags {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.badge-online {
    border-color: #4caf50;
    background: #1b2b1b;
    color: #a5d6a7;
}

.badge-offline {
    border-color: #e53935;
    background: #2b1b1b;
    color: #ef9a9a;
}

.badge-ssl {
    border-color: #42a5f5;
    background: #10263a;
    color: #90caf9;
}

.badge-no-ssl {
    border-color: #757575;
    background: #262626;
    color: #bdbdbd;
}

/* News */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item {
    background: #151521;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.news-title {
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.news-meta {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 6px;
}

.news-body {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Rechte Seite – Navigation + Partner */

.side-nav {
    margin-bottom: 12px;
}

.side-title {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav li {
    margin-bottom: 4px;
}

.nav-link {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #f5f5f5;
    background: #151521;
    border: 1px solid transparent;
    transition: background 0.2s, transform 0.1s, border-color 0.2s, box-shadow 0.2s;
}

.nav-link:hover {
    background: #1f1f2b;
    border-color: rgba(255, 82, 82, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.6);
}

.nav-link.active {
    background: linear-gradient(135deg, #ff5252, #ff867c);
    border-color: #ffb199;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.8);
}

.partner-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.partner-list li {
    margin-bottom: 4px;
}

.partner-list a {
    text-decoration: none;
    color: #ffb199;
}

.partner-list a:hover {
    text-decoration: underline;
}

/* Footer */

.site-footer {
    margin-top: 18px;
    padding-top: 10px;
}

/* Copyright-Zeile */
.footer-info {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;

    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06); /* Strich nur hier */
}


.footer-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.footer-box {
    background: #101018;
    border-radius: 10px;
    padding: 8px;
    font-size: 0.8rem;
    text-align: center;
}

/* Wartungsmodus Box */

.maintenance-box {
    margin-top: 20px;
    background: #151521;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 82, 82, 0.3);
    text-align: center;
}

/* Responsiv */

@media (max-width: 1100px) {
    .site-layout {
        grid-template-columns: 1fr 1fr;
    }

    .panel-main {
        grid-column: 1 / 3;
    }
}

@media (max-width: 800px) {
    .site-layout {
        grid-template-columns: 1fr;
    }

    .panel {
        margin-bottom: 10px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .login-area {
        align-self: flex-end;
        flex-wrap: wrap;
    }

    .footer-panels {
        grid-template-columns: 1fr;
    }
}
/* ============================
   ABOUT-ME LAYOUT
============================ */

.about-box {
    padding: 16px 14px;
}

.about-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-avatar-wrap {
    flex: 0 0 auto;
}

.about-avatar-initials {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ff867c, #e53935 45%, #1a1a24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(229, 57, 53, 0.7);
}

.about-main-content {
    flex: 1;
    min-width: 0;
}

.about-name {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
}

.about-text {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
}

.about-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.about-meta li {
    margin-bottom: 4px;
}

.about-meta-label {
    display: inline-block;
    min-width: 52px;
    opacity: 0.8;
}

.about-meta a {
    color: #ffb199;
    text-decoration: none;
}

.about-meta a:hover {
    text-decoration: underline;
}

/* Mobil: Avatar über Text statt links daneben */
@media (max-width: 700px) {
    .about-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-avatar-initials {
        width: 64px;
        height: 64px;
        font-size: 1.3rem;
    }
}
