:root {
    --bg-primary: #f9fafb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --status-online: #10b981;
    --status-offline: #ef4444;
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-primary: var(--bg-main);
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    --accent-color: #3b82f6;
    --bg-light-offset: color-mix(in srgb, var(--bg-primary) 85%, white);
    --bg-dark-offset: color-mix(in srgb, var(--bg-primary) 85%, black);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0c;
    --bg-main: var(--bg-primary);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-color: #6366f1;
    --accent-hover: #818cf8;
        
    --bg-light-offset: color-mix(in srgb, var(--bg-primary) 94%, white);
    --bg-dark-offset: color-mix(in srgb, var(--bg-primary) 94%, black);

}

.light {
    background-color: var(--bg-light-offset);
}

.dark {
    background-color: var(--bg-dark-offset);
}

.transition {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.transition svg {
    display: block;
    width: 100%;
    height: max(6vw, 60px);
    pointer-events: none;
}

/* Von einer dunklen zu einer hellen Sektion */
.dark + .transition {
    background-color: var(--bg-dark-offset);
    color: var(--bg-light-offset); /* Das SVG übernimmt diesen Wert über currentColor */
}

/* Von einer hellen zu einer dunklen Sektion */
.light + .transition {
    background-color: var(--bg-light-offset);
    color: var(--bg-dark-offset);
}

/* Spezieller Fix für den ERSTEN Übergang (Hero zur Features-Section) */
.hero-section + .transition {
    background-color: var(--bg-primary); /* Hintergrund der Hero-Section */
    color: var(--bg-dark-offset);        /* Farbe der darauffolgenden Features-Section */
}
[data-theme="light"] .hero-background {
    background: radial-gradient(circle at center, #e2e8f0 0%, #f8fafc 100%);
}

[data-theme="light"] .server-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    transition: background-color 0.3s ease;
}

.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-main);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.hero-section {
    position: relative;
    padding: 10rem 2rem 8rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 150%;
    background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.online .dot {
    background-color: var(--status-online);
    box-shadow: 0 0 10px var(--status-online);
}

.offline .dot {
    background-color: var(--status-offline);
    box-shadow: 0 0 10px var(--status-offline);
}

.version-badge {
    background: var(--glass-border);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-group {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    fill: var(--bg-primary);
    transition: fill 0.3s ease;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .main-nav {
        display: none;
    }
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.text-success {
    color: #10b981;
}

.text-accent {
    color: var(--accent);
}

.text-blue {
    color: #3b82f6;
}

.text-purple {
    color: #8b5cf6;
}

.stats-banner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.6) 0%, rgba(30, 38, 63, 0.4) 100%);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-value.percent::after {
    content: ".97 %";
    font-size: 2rem;
    opacity: 0.8;
}

.counter-value.plus::after {
    content: "+";
    font-size: 2.5rem;
    opacity: 0.8;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.server-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.server-card:hover::before {
    background: var(--accent-color);
}

.server-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.bg-danger {
    background: #ef4444;
}

.bg-purple {
    background: #8b5cf6;
}

.server-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.server-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.server-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.status-badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.team-section {
    padding-top: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: var(--accent-color);
}

.team-role {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    letter-spacing: 0.5px;
}

.team-role.admin {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.team-role.mod {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.team-role.builder {
    color: #603bf6;
    background: rgba(59, 130, 246, 0.15);
}

.team-role.sysop {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.main-footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.dsmp-user-menu {
    position: relative;
    display: inline-block;
}

.dsmp-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.dsmp-user-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.dsmp-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    image-rendering: pixelated;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.dsmp-dropdown-arrow {
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.dsmp-user-menu.is-open .dsmp-dropdown-arrow {
    transform: rotate(180deg);
}

.dsmp-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    min-width: 200px;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow: hidden;
    animation: fadeInDropdown 0.15s ease-out;
}

.dsmp-dropdown-content.is-visible {
    display: block;
}

.dsmp-dropdown-header {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.dsmp-dropdown-header strong {
    color: var(--text-main);
}

.dsmp-dropdown-header span {
    opacity: 0.6;
}

.dsmp-dropdown-divider {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin: 0;
}

.dsmp-dropdown-content a {
    color: var(--text-main);
    padding: 0.7rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.dsmp-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dsmp-dropdown-logout {
    color: #ef4444 !important;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.dsmp-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dsmp-modal-backdrop.is-active {
    display: flex;
    opacity: 1;
}

.dsmp-modal-content {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-20px);
    transition: transform 0.2s ease;
}

.dsmp-modal-backdrop.is-active .dsmp-modal-content {
    transform: translateY(0);
}

.dsmp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dsmp-modal-header h3 {
    margin: 0;
    font-family: Silkscreen, sans-serif;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-main);
}

.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Sterne-Bewertung Style */
.rating-selection {
    display: flex;
    gap: 0.5rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.rating-selection input {
    display: none;
}

.rating-selection label {
    cursor: pointer;
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.15s ease;
}

.rating-selection input:checked ~ label,
.rating-selection label:hover,
.rating-selection label:hover ~ label {
    color: #f59e0b;
}

.dsmp-submit-btn {
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.dsmp-submit-btn:hover {
    background: #2563eb;
}
.dsmp-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.dsmp-slider-track {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 220px;
}

.dsmp-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    z-index: 1;
}

.dsmp-slider-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.dsmp-slider-arrow {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
    user-select: none;
}

.dsmp-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.dsmp-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.dsmp-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-main);
    opacity: 0.2;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.dsmp-slider-dot:hover {
    opacity: 0.4;
}

.dsmp-slider-dot.is-active {
    opacity: 1;
    transform: scale(1.2);
    background: #3b82f6;
}

@media (max-width: 600px) {
    .dsmp-slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    .dsmp-slider-arrow.prev { left: -10px; }
    .dsmp-slider-arrow.next { right: -10px; }
    .dsmp-slider-track { padding: 0 10px; }
}