/* --- MAGISCHES GRUNDLEGENDES DESIGN --- */
body {
    /* Mystischer Font für normalen Text */
    font-family: 'Raleway', sans-serif;

    /* DEIN NEUES HINTERGRUNDBILD */
    background: url('/images/Partner-Hintergrund.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #0d021a;

    color: #e0d4ff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Mystische Überschriften */
.mystic-title {
    font-family: 'Cinzel', serif;
    text-align: center;
    font-size: 3em;
    color: #dfc5fe;
    text-shadow: 0 0 20px rgba(186, 85, 211, 0.8), 0 0 40px rgba(138, 43, 226, 0.6), 0 2px 4px #000;
    margin-bottom: 10px;
}

.mystic-subtitle {
    font-family: 'Cinzel', serif;
    text-align: center;
    color: #bfa1e6;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8), 0 2px 4px #000;
    margin-top: 50px;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 1px solid rgba(186, 85, 211, 0.3);
    padding-bottom: 10px;
}

/* --- ADMIN BEREICH & BUTTONS --- */
.hidden {
    display: none !important;
}

.header {
    text-align: right;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #4a148c;
}

/* Magische Buttons */
.btn {
    font-family: 'Cinzel', serif;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-magic {
    background: linear-gradient(45deg, #4a148c, #7b1fa2);
    border: 1px solid #ab47bc;
}

.btn-magic:hover {
    background: linear-gradient(45deg, #7b1fa2, #9c27b0);
    box-shadow: 0 0 15px #ce93d8;
}

.btn-green {
    background: linear-gradient(45deg, #004d40, #00796b);
    margin-top: 15px;
    width: 90%;
    padding: 12px;
    border: 1px solid #26a69a;
}

.btn-green:hover {
    box-shadow: 0 0 15px #4db6ac;
}

.btn-purple {
    background: linear-gradient(45deg, #311b92, #512da8);
    margin-top: 15px;
    width: 90%;
    padding: 12px;
    border: 1px solid #7e57c2;
}

.btn-purple:hover {
    box-shadow: 0 0 15px #b39ddb;
}

.btn-red {
    background: linear-gradient(45deg, #b71c1c, #d32f2f);
    padding: 5px 15px;
    margin-left: 10px;
    font-size: 12px;
}

.btn-red:hover {
    box-shadow: 0 0 10px #ef5350;
}

/* Admin Formulare */
.admin-form {
    text-align: center;
    margin-bottom: 20px;
}

.admin-form input[type="text"] {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #7b1fa2;
    background: rgba(20, 5, 30, 0.8);
    color: #e0d4ff;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

.admin-form input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 10px #ab47bc;
}

/* Datei-Upload */
.file-label {
    display: block;
    width: 90%;
    margin: 15px auto 5px auto;
    text-align: left;
    color: #bfa1e6;
    font-size: 14px;
}

.admin-form input[type="file"] {
    width: 90%;
    background: rgba(20, 5, 30, 0.8);
    border: 1px dashed #ab47bc;
    padding: 10px;
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
}

/* Admin Panel Layout */
.admin-panel {
    background: rgba(15, 3, 25, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 15px;
    border: 2px solid #7b1fa2;
    box-shadow: 0 0 30px rgba(123, 31, 162, 0.4);
}

h2,
h3,
h4 {
    color: #dfc5fe;
    font-family: 'Cinzel', serif;
}

.admin-panel p {
    color: #a285c5;
    font-size: 14px;
    text-align: center;
}

.admin-section {
    background: rgba(30, 10, 50, 0.5);
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid rgba(123, 31, 162, 0.3);
}

.admin-divider {
    border: 0;
    border-top: 1px solid #4a148c;
    margin: 30px 0;
}

.admin-list-item {
    background: rgba(20, 5, 30, 0.8);
    padding: 10px 15px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    border-left: 3px solid #ab47bc;
}

/* --- KRISTALLKUGEL GLASSMORPHISMUS-KARTEN --- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.partner-card {
    /* Der Glas-Effekt */
    background: rgba(20, 5, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 20px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: #dfc5fe;
    border: 1px solid rgba(186, 85, 211, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Magisches Leuchten beim Hovern */
.partner-card:hover {
    transform: translateY(-10px);
    border: 1px solid rgba(186, 85, 211, 0.8);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5), inset 0 0 15px rgba(186, 85, 211, 0.2);
    background: rgba(30, 10, 50, 0.8);
}

.partner-card h3 {
    font-family: 'Cinzel', serif;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.partner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-image {
    transform: scale(1.02);
}

/* --- TWITCH STREAMER (MAGISCHE SPIEGEL) --- */
.twitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 35px;
}

@media (max-width: 500px) {
    .twitch-grid {
        grid-template-columns: 1fr;
    }
}

.twitch-card {
    background: rgba(20, 5, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(145, 70, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

.twitch-card:hover {
    box-shadow: 0 0 30px rgba(145, 70, 255, 0.6);
    border: 1px solid rgba(145, 70, 255, 0.8);
}

.twitch-card h3 {
    margin: 0 0 15px 0;
    color: #b58cff;
    text-align: center;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 5px #000, 0 0 10px rgba(145, 70, 255, 0.8);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    border: 2px solid #2a0845;
    box-shadow: inset 0 0 20px #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- MYSTISCHES LOGIN MODAL --- */
.mystic-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 2, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.mystic-modal.hidden {
    display: none;
}

.mystic-modal-content {
    background: rgba(20, 5, 30, 0.95);
    border: 2px solid #8a2be2;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.6);
}

.mystic-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #dfc5fe;
    border-radius: 8px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1em;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.mystic-input:focus {
    outline: none;
    border-color: #b768ff;
    box-shadow: 0 0 15px rgba(183, 104, 255, 0.6);
}

.mystic-modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.mystic-modal-actions .btn {
    flex: 1;
    padding: 10px;
}

/* --- FLAGGEN SPRACHWECHSLER --- */
.lang-flag {
    width: 35px;
    /* Passe die Grösse hier an deine Original-Flaggen an */
    height: auto;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;

    /* Inaktiver Zustand: Leicht durchsichtig und entsättigt */
    filter: grayscale(80%) opacity(0.5);
}

/* Hover-Effekt (wenn man mit der Maus drüberfährt) */
.lang-flag:hover {
    filter: grayscale(30%) opacity(0.8);
    transform: scale(1.1);
}

/* Aktiver Zustand (Die aktuell gewählte Sprache) */
.lang-flag.active {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(183, 104, 255, 0.7);
    border-radius: 50%;
}

/* --- CUSTOM DATEI UPLOAD (ÜBERSETZBAR) --- */
.hidden-file-input {
    display: none;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px auto;
    width: 90%;
    background: rgba(20, 5, 30, 0.8);
    border: 1px dashed #ab47bc;
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box;
}

.custom-file-btn {
    background: linear-gradient(45deg, #4a148c, #7b1fa2);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9em;
    border: 1px solid #ab47bc;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.custom-file-btn:hover {
    background: linear-gradient(45deg, #7b1fa2, #9c27b0);
    box-shadow: 0 0 10px #ce93d8;
}

.file-name-text {
    color: #ccc;
    font-size: 0.9em;
    font-family: 'Raleway', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* --- VISION BETRETEN BUTTON --- */
.vision-btn {
    display: block;
    width: fit-content;
    margin: 15px auto 10px auto;
    padding: 10px 25px;
    background: linear-gradient(135deg, #1a0033, #3a0ca3);
    border: 2px solid #bfa;
    border-radius: 8px;
    color: #bfa;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(187, 255, 170, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.partner-card:hover .vision-btn {
    background: linear-gradient(135deg, #3a0ca3, #7209b7);
    box-shadow: 0 0 20px rgba(187, 255, 170, 0.6);
    color: #fff;
    border-color: #fff;
    transform: scale(1.05);
}