* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    height: 50px;
    width: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

nav ul li a img {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    background-color: transparent;
    box-shadow: none;
    color: #ffffff;
    border-bottom: 3px solid #ffffff;
    padding-bottom: 5px;
}

nav ul li a.active img {
    filter: brightness(0) invert(1);
}

nav ul li a.lang-switch {
    padding: 8px 12px;
}

nav ul li a.lang-switch img {
    height: 24px;
    filter: none;
}

nav ul li.language-selector-nav {
    display: flex;
    gap: 2px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

nav ul li.language-selector-nav a.lang-switch {
    padding: 6px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav ul li.language-selector-nav a.lang-switch:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .hamburger {
        display: flex;
    }
    
    header .logo {
        font-size: 22px;
    }
    
    header .logo img {
        height: 40px;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    nav.active {
        max-height: 400px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        padding: 12px 20px;
        font-size: 16px;
        display: flex;
        justify-content: flex-start;
        border-radius: 0;
    }
    
    nav ul li a img {
        height: 20px;
    }
    
    .user-dropdown > a span {
        display: inline;
    }
    
    .user-dropdown::after {
        display: none;
    }
    
    /* User Dropdown volle Breite im Mobile Menu */
    .user-dropdown {
        width: 100%;
    }
    
    .user-dropdown > a {
        width: 100%;
        display: flex !important;
        padding: 12px 20px !important;
        justify-content: flex-start !important;
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        margin-top: 0;
        pointer-events: auto;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        width: 100%;
    }
    
    .dropdown-menu a {
        color: white;
        padding: 10px 20px 10px 40px;
        width: 100%;
        display: flex;
    }
    
    .dropdown-menu a img {
        filter: brightness(0) invert(1);
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Entferne Border bei Sprache und mache volle Breite */
    nav ul li.language-selector-nav {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }
    
    nav ul li.language-selector-nav a.lang-switch {
        flex: 1;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #333;
    border-radius: 6px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    margin-top: 16px;
    pointer-events: none;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a img {
    height: 18px;
    width: auto;
    filter: brightness(0) saturate(100%);
}

.dropdown-menu a img.logout-icon {
    filter: brightness(0.4);
}

/* Navigation icons */
nav img.nav-icon {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
}

nav img.account-icon {
    height: 24px;
    width: 24px;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

/* Invisible bridge between button and dropdown for hover */
.user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
    pointer-events: auto;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
    pointer-events: auto;
}

.user-dropdown a img {
    filter: brightness(0) invert(1);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 20px;
    width: 100%;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 28px 20px;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

footer p {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 0.1px;
}

footer .footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}

footer .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer .footer-links a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    footer .footer-links a {
        font-weight: 400;
        font-size: 13px;
        padding: 4px 6px;
    }
}

/* Form Styles */
form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

/* Server Form - wider layout */
form.server-form {
    max-width: 800px;
}

.form-header {
    margin-bottom: 30px;
}

.form-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.form-header-icon {
    height: 48px;
    width: 48px;
    filter: brightness(0) saturate(0) invert(0.18) sepia(1) hue-rotate(200deg) saturate(1.3);
    flex-shrink: 0;
}

.form-header-top h2 {
    margin: 0;
    font-size: 28px;
    color: #1e3c72;
}

.form-header-subtitle {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Form Row for side-by-side fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Formular Optimierungen für Mobile */
    form {
        padding: 25px 20px;
    }
    
    form.server-form {
        padding: 25px 20px;
    }
    
    .form-header-top {
        gap: 12px;
    }
    
    .form-header-icon {
        height: 40px;
        width: 40px;
    }
    
    .form-header-top h2 {
        font-size: 22px;
    }
    
    .form-header-subtitle {
        font-size: 13px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px;
    }
    
    label {
        font-size: 14px;
    }
    
    /* Kategorien im Formular */
    #categoriesContainer .language-label {
        padding: 8px 12px;
    }
    
    #categoriesContainer .language-label span {
        font-size: 12px;
    }
}

/* Settings Page Tabs Mobile */
@media (max-width: 768px) {
    form.server-form > div[style*="display: flex"] a {
        padding: 12px 8px !important;
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

form h2 {
    margin-bottom: 15px;
    color: #1e3c72;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.validation-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    min-height: 0;
}

.validation-message.success {
    color: #27ae60;
    font-weight: 500;
}

.validation-message.error {
    color: #e74c3c;
    font-weight: 500;
    min-height: 16px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.rich-text-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rich-text-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    background: #f6f7fb;
    border: 1px solid #dfe5f1;
    border-radius: 6px;
    flex-wrap: wrap;
}

.editor-label {
    font-weight: 600;
    color: #1e3c72;
    margin-right: 8px;
    display: flex;
    align-items: center;
    height: 40px;
}


.editor-button {
    border: 1px solid #cdd6e4;
    background: #ffffff;
    color: #1e3c72;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.editor-button img {
    width: 18px;
    height: 18px;
    filter: brightness(0.2) saturate(1.2);
}

.editor-button:hover {
    background: #eef3ff;
    border-color: #b9c7e3;
    box-shadow: 0 2px 6px rgba(42, 82, 152, 0.18);
}

.editor-button.active {
    background: #e0e9ff;
    border-color: #9bb3e5;
    box-shadow: inset 0 1px 3px rgba(42, 82, 152, 0.25);
}

.rich-editor {
    border: 1px solid #ddd;
    border-radius: 6px;
    min-height: 140px;
    padding: 12px;
    font-family: inherit;
    line-height: 1.6;
    background: #fff;
}

.rich-editor ul {
    margin: 10px 0 10px 20px;
    padding-left: 18px;
    list-style: disc;
}

.rich-editor li + li {
    margin-top: 4px;
}

.rich-editor:focus {
    outline: 2px solid rgba(42, 82, 152, 0.25);
    border-color: #2a5298;
}

/* URL Input Fields with Link Icon */
input[type="url"].url-input {
    padding-left: 36px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%232a5298" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>');
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 18px 18px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 5px rgba(42, 82, 152, 0.3);
}

/* Override for search input */
#searchInput {
    padding-left: 50px !important;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .language-selector {
        flex-wrap: wrap;
    }
    
    .language-selector .language-option {
        flex: 0 0 calc(50% - 7.5px);
    }
}

.language-option {
    flex: 1;
    cursor: pointer;
}

.language-option input[type="radio"] {
    display: none;
}

/* Hide checkboxes for category chips using same pattern */
.language-option input[type="checkbox"] {
    display: none;
}

.language-option .language-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
}

.language-option .language-label img {
    height: 24px;
    width: auto;
}

.language-option .language-label span {
    font-weight: 500;
    color: #333;
}

.language-option input[type="radio"]:checked + .language-label,
.language-option input[type="checkbox"]:checked + .language-label {
    border-color: #2a5298;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(42, 82, 152, 0.05) 100%);
    box-shadow: 0 0 8px rgba(42, 82, 152, 0.2);
}

/* Category icon coloring to match formatting icons */
#categoriesContainer .language-label img {
    height: 18px;
    width: 18px;
    filter: brightness(0.2) saturate(1.2);
}

/* Responsive, full-width filling category chips */
#categoriesContainer {
    display: flex;
    flex-wrap: wrap;
}

#categoriesContainer .language-option {
    flex: 0 0 auto; /* size to content, no fixed basis */
    min-width: auto;
}

#categoriesContainer .language-label {
    width: auto;
    padding: 9px 14px; /* a bit larger for readability */
    gap: 10px;
    border-width: 1px;
    border-radius: 6px;
}

#categoriesContainer .language-label span {
    font-size: 13px;
}

/* Index page category filter chips - smaller */
#indexCategoriesContainer .language-option {
    flex: 0 0 auto;
}

#indexCategoriesContainer .language-label {
    padding: 7px 11px;
    gap: 6px;
    font-size: 12px;
    border-width: 1px;
}

#indexCategoriesContainer .language-label img {
    height: 16px;
    width: 16px;
    filter: brightness(0.2) saturate(1.2);
}

#indexCategoriesContainer .language-label span {
    font-size: 12px;
}

/* Removed fixed 5-column grid to avoid fixed widths/overlap */

.language-option:hover .language-label {
    border-color: #2a5298;
    transform: translateY(-2px);
}

/* Button Styles */
button,
input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.4);
}

button:active,
input[type="submit"]:active {
    transform: translateY(0);
}

/* Override for reset button - no animations */
.btn-reset:hover,
.btn-reset:active {
    transform: none !important;
    box-shadow: none !important;
}

/* Alert/Error Messages */
.error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #f5c6cb;
}

.success,
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c3e6cb;
}

/* Links */
a {
    color: #2a5298;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Server Page Styles */
.server-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.server-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
    margin-bottom: 25px;
}

.server-info h1 {
    color: #1e3c72;
    font-size: 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.status-dot.online {
    background: #1bc274;
}

.status-dot.offline {
    background: #e74c3c;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(42, 82, 152, 0.15);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.1) 100%);
    border-radius: 6px;
}

.stat-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(22%) sepia(51%) saturate(1234%) hue-rotate(192deg) brightness(92%) contrast(93%);
}

.stat-icon img.flag-icon {
    filter: none !important;
}

.flag-icon img {
    filter: none !important;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 14px;
    color: #1e3c72;
    font-weight: 600;
}

.server-image {
    width: 350px;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-image .no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.server-image .no-image span {
    font-size: 64px;
    margin-bottom: 10px;
}

.server-image .no-image p {
    font-size: 14px;
    font-weight: 600;
}

.server-description {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    margin-top: 10px;
}

.description-content {
    line-height: 1.6;
    color: #444;
}

.description-content ul {
    margin: 10px 0 10px 20px;
    padding-left: 15px;
    list-style: disc;
}

.description-content li + li {
    margin-top: 4px;
}

.description-content br {
    line-height: 1.6;
}

.server-description h2 {
    color: #1e3c72;
    font-size: 22px;
    margin-bottom: 12px;
}

.server-description p {
    color: #333;
    line-height: 1.8;
    font-size: 15px;
}

@media (max-width: 1024px) {
    .server-content {
        grid-template-columns: 1fr;
    }

    .server-image {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }

    .server-stats {
        grid-template-columns: 1fr;
    }
}

/* Index Page Styles */
.index-hero {
    text-align: center;
    margin-bottom: 20px;
}

.index-hero h1 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 36px;
}

.index-hero p {
    font-size: 18px;
    color: #666;
}

@media (max-width: 768px) {
    .index-hero {
        margin-bottom: 15px;
    }
    
    .index-hero h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .index-hero p {
        font-size: 14px;
    }
}

.login-banner {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(42, 82, 152, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(42, 82, 152, 0.1);
}

.login-banner p {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .login-banner {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .login-banner p {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

.login-banner-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 28px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.2);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 82, 152, 0.3);
}

.btn-secondary {
    padding: 12px 28px;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #1e3c72;
    display: inline-block;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

.no-servers-message {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-servers-message img {
    height: 80px;
    filter: brightness(0.5);
    margin-bottom: 25px;
    opacity: 0.4;
}

.no-servers-message h3 {
    color: #1e3c72;
    margin-bottom: 12px;
    font-size: 22px;
}

.no-servers-message p {
    color: #999;
    font-size: 16px;
}

.filter-bar {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    filter: brightness(0.5);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0 15px 0 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    height: 48px;
    box-sizing: border-box;
    line-height: normal;
}

.search-input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    outline: none;
}

.filter-select {
    padding: 0 40px 0 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22currentColor%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3e%3cpolyline points=%226 9 12 15 18 9%22%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    height: 48px;
    box-sizing: border-box;
    line-height: normal;
}

.filter-select option {
    padding: 8px;
}

.filter-select:focus {
    border-color: #2a5298;
    outline: none;
}

.btn-reset {
    margin: 0;
    padding: 0 20px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    height: 48px;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.btn-reset:hover {
    background: #e8e8e8;
}

.btn-reset:active {
    transform: none;
}

.results-count {
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .results-count {
        text-align: center;
        margin-bottom: 15px;
        font-size: 13px;
    }
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-item {
    text-decoration: none;
    color: inherit;
    display: block;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.server-item.own-server {
    border-color: #2a5298;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.02) 0%, rgba(42, 82, 152, 0.02) 100%);
    padding-left: 40px;
}

.server-item.own-server::before {
    content: attr(data-badge);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: 8px 0 0 8px;
}

.server-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 24px rgba(42, 82, 152, 0.15);
    border-color: #2a5298;
}

.server-item-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.server-item-info h3 {
    margin: 0 0 12px 0;
    color: #1e3c72;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-item-info h3 img {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.server-item-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.server-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-meta-item img {
    height: 18px;
}

.server-meta-item img.flag {
    border-radius: 2px;
}

.server-meta-item img.icon {
    filter: brightness(0.5);
}

.server-meta-item span {
    color: #666;
    font-size: 15px;
}

.server-item-button {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.no-results-message {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.no-results-message img {
    height: 60px;
    filter: brightness(0.5);
    margin-bottom: 20px;
    opacity: 0.4;
}

.no-results-message h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-results-message p {
    color: #999;
}

/* Server category tags in list */
.server-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 13px;
    color: #1e3c72;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}
.server-category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(42,82,152,0.15);
}
.server-category-tag .cat-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30,60,114,0.1) 0%, rgba(42,82,152,0.1) 100%);
    border-radius: 50%;
}
.server-category-tag .cat-icon img {
    width: 14px;
    height: 14px;
    filter: brightness(0) saturate(100%) invert(22%) sepia(51%) saturate(1234%) hue-rotate(192deg) brightness(92%) contrast(93%);
}

@media (max-width: 768px) {
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        padding: 20px;
    }
    
    /* Kategorien kompakter für Mobile */
    #indexCategoriesContainer {
        gap: 6px;
    }
    
    #indexCategoriesContainer .language-label {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    #indexCategoriesContainer .language-label img {
        height: 14px;
        width: 14px;
    }
    
    #indexCategoriesContainer .language-label span {
        font-size: 11px;
    }
    
    .server-item-content {
        grid-template-columns: 1fr;
    }
    
    .server-item-button {
        text-align: center;
    }
    
    .server-item.own-server {
        padding-left: 35px;
    }
    
    .server-item.own-server::before {
        width: 24px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    /* Server Namen mit Word-Break */
    .server-item-info h3 {
        font-size: 18px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .server-item {
        padding: 20px;
    }
    
    .server-item.own-server {
        padding: 20px 20px 20px 30px;
    }
}
