/* =========================================
   Schwarzes Brett (Notice Board) Seite
   ========================================= */

.brett-page {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
}

/* Background image cross-fade (similar to halle.html) */
.brett-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.15) 65%, rgba(0, 0, 0, 0) 85%), 
        url('images/brett_hauptbild.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
    display: block !important;
}

.brett-main {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brett-intro {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 800px;
}

.brett-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.brett-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cccccc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* =========================================
   Filter & Suche
   ========================================= */
.brett-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 800px;
}

.brett-search, .brett-filter {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(170, 255, 170, 0.3);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.brett-search {
    flex: 1;
    min-width: 250px;
}

.brett-filter {
    cursor: pointer;
    min-width: 180px;
}

.brett-search:focus, .brett-filter:focus, .brett-filter:hover {
    border-color: #aaffaa;
    box-shadow: 0 0 12px rgba(170, 255, 170, 0.4);
    background: rgba(10, 25, 15, 0.8);
}

.brett-filter option {
    background-color: #050a08;
    color: #ffffff;
}

/* =========================================
   Board & Kacheln (Tafel-Segmente)
   ========================================= */
.board-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

/* Kachel / Tafel-Segment */
.order-card {
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%), 
                url('images/brettkachel.png') repeat;
    background-color: #0b1712;
    box-sizing: border-box;
    padding: 2.2rem 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.3s ease;
    overflow: hidden;
    
    /* Holzrahmen Standard-Eigenschaften */
    border-left: 15px solid #4a2f1b;
    border-right: 15px solid #4a2f1b;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.6),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Dynamische Holzrahmen-Klassen */
.order-card.board-top {
    border-top: 15px solid #5a3d27;
    border-radius: 14px 14px 0 0;
    box-shadow: 
        inset 0 10px 20px rgba(0,0,0,0.6), 
        inset 0 0 30px rgba(0,0,0,0.6),
        0 -5px 15px rgba(0,0,0,0.3),
        0 10px 30px rgba(0,0,0,0.5);
}

.order-card.board-middle {
    border-top: 1px solid rgba(0, 0, 0, 0.4); /* Leichte Fuge zwischen den Kacheln */
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.6),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

.order-card.board-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    border-bottom: 15px solid #3c2413;
    border-radius: 0 0 14px 14px;
    box-shadow: 
        inset 0 -10px 20px rgba(0,0,0,0.6), 
        inset 0 0 30px rgba(0,0,0,0.6),
        0 12px 30px rgba(0,0,0,0.7);
}

.order-card.board-single {
    border: 15px solid #4a2f1b;
    border-top-color: #5a3d27;
    border-bottom-color: #3c2413;
    border-radius: 14px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.6),
        0 12px 30px rgba(0,0,0,0.7);
}

/* Hover-Effekt: dezenter Glow */
.order-card:hover {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%), 
                url('images/brettkachel.png') repeat;
    z-index: 5;
}

/* =========================================
   Inhalte der Tafel-Kachel
   ========================================= */

/* Header-Zeile */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.order-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.order-title-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.order-title {
    font-family: 'Chalkboard', 'Architects Daughter', 'Comic Sans MS', cursive, sans-serif;
    font-size: 1.7rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.order-meta-top {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Kategorie Badges mit Neonglow */
.order-category {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid currentColor;
}

/* Kategoriefarben */
.cat-webseite {
    color: #aaffaa;
    background: rgba(170, 255, 170, 0.08);
    box-shadow: 0 0 10px rgba(170, 255, 170, 0.15), inset 0 0 5px rgba(170, 255, 170, 0.1);
}

.cat-discord-serveroverlay {
    color: #cceeff;
    background: rgba(204, 238, 255, 0.08);
    box-shadow: 0 0 10px rgba(204, 238, 255, 0.15), inset 0 0 5px rgba(204, 238, 255, 0.1);
}

.cat-discordbot {
    color: #e5b3ff;
    background: rgba(229, 179, 255, 0.08);
    box-shadow: 0 0 10px rgba(229, 179, 255, 0.15), inset 0 0 5px rgba(229, 179, 255, 0.1);
}

.cat-fest {
    color: #ffcc99;
    background: rgba(255, 204, 153, 0.08);
    box-shadow: 0 0 10px rgba(255, 204, 153, 0.15), inset 0 0 5px rgba(255, 204, 153, 0.1);
}

.cat-sonstiges {
    color: #ffe066;
    background: rgba(255, 224, 102, 0.08);
    box-shadow: 0 0 10px rgba(255, 224, 102, 0.15), inset 0 0 5px rgba(255, 224, 102, 0.1);
}

/* Beschreibung */
.order-desc {
    color: #dddddd;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Footer-Zeile (Details) */
.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Mitwirkende */
.order-contributors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.contributor-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.contributor-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    color: #ffffff;
}

/* Status-Indikatoren */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-open {
    background-color: #aaffaa;
    box-shadow: 0 0 8px #aaffaa, 0 0 15px rgba(170, 255, 170, 0.5);
}

.status-closed {
    background-color: #ff5555;
    box-shadow: 0 0 8px #ff5555, 0 0 15px rgba(255, 85, 85, 0.5);
}

.status-open-text {
    color: #aaffaa;
    text-shadow: 0 0 5px rgba(170, 255, 170, 0.3);
}

.status-closed-text {
    color: #ff5555;
    text-shadow: 0 0 5px rgba(255, 85, 85, 0.3);
}

/* Belohnung / Mitwirkungspreis */
.order-reward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reward-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.reward-tag {
    background: rgba(255, 224, 102, 0.08);
    border: 1px solid #ffe066;
    border-radius: 20px;
    padding: 0.25rem 0.8rem;
    font-size: 0.85rem;
    color: #ffe066;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 224, 102, 0.3);
    box-shadow: 0 0 8px rgba(255, 224, 102, 0.1);
}

/* Frist */
.order-deadline {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.deadline-active {
    color: #ff9999;
    text-shadow: 0 0 8px rgba(255, 153, 153, 0.3);
}

.deadline-none {
    color: rgba(255, 255, 255, 0.4);
}

/* Fortschrittsbalken */
.order-progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 220px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.08);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #aaffaa, #55ff55);
    box-shadow: 0 0 10px rgba(85, 255, 85, 0.8);
    transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Wenn 100% fertig */
.progress-completed {
    background: linear-gradient(90deg, #cceeff, #33aaff) !important;
    box-shadow: 0 0 10px rgba(51, 170, 255, 0.8) !important;
}

/* =========================================
   Status & Hilfsklassen
   ========================================= */

.no-results {
    width: 100%;
    text-align: center;
    color: #ff7777;
    font-size: 1.2rem;
    padding: 4rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 119, 119, 0.2);
    border-radius: 8px;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 4rem;
    color: #aaffaa;
}

.loading-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(170, 255, 170, 0.15);
    border-radius: 50%;
    border-top-color: #aaffaa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.is-hidden {
    display: none !important;
}

/* =========================================
   Dekorative Irrlichter für das Brett
   ========================================= */
.brett-wisps {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bw-1 { top: 20%; left: 5vw; width: 14px; height: 14px; animation: wispWobble 4s infinite alternate ease-in-out; }
.bw-2 { top: 60%; right: 5vw; width: 12px; height: 12px; animation: wispWobble 3.5s infinite alternate-reverse ease-in-out; }
.bw-3 { bottom: 15%; left: 8vw; width: 10px; height: 10px; animation: wispWobble 4.5s infinite alternate ease-in-out; }

/* =========================================
   Mobile responsive Anpassung
   ========================================= */
@media (max-width: 768px) {
    .brett-main {
        padding-top: 6rem;
    }
    
    .brett-intro h1 {
        font-size: 2.6rem;
    }

    .order-card {
        padding: 1.5rem 1.8rem;
        border-left-width: 10px;
        border-right-width: 10px;
    }
    
    .order-card.board-top { border-top-width: 10px; }
    .order-card.board-bottom { border-bottom-width: 10px; }
    .order-card.board-single { border-width: 10px; }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .order-title {
        font-size: 1.4rem;
    }

    .order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .order-progress-container {
        width: 100%;
        min-width: 100%;
    }
}

/* =========================================
   Claim Button & Modal Styling
   ========================================= */
.claim-btn {
    background: rgba(170, 255, 170, 0.06);
    border: 1px solid rgba(170, 255, 170, 0.3);
    color: #aaffaa;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 0 0 5px rgba(170, 255, 170, 0.3);
    box-shadow: inset 0 0 5px rgba(170, 255, 170, 0.1);
    font-family: inherit;
}

.claim-btn:hover {
    background: #aaffaa;
    color: #0b1712;
    box-shadow: 0 0 15px rgba(170, 255, 170, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.2);
    text-shadow: none;
    transform: translateY(-2px);
}

.claim-btn:active {
    transform: translateY(0);
}

.claim-btn-submit {
    background: linear-gradient(135deg, rgba(170, 255, 170, 0.15) 0%, rgba(170, 255, 170, 0.03) 100%);
    border: 1px solid rgba(170, 255, 170, 0.5);
    color: #aaffaa;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(170, 255, 170, 0.1);
    font-family: inherit;
}

.claim-btn-submit:hover:not(:disabled) {
    background: #aaffaa;
    color: #050a08;
    box-shadow: 0 0 20px rgba(170, 255, 170, 0.4);
    transform: translateY(-2px);
}

.claim-btn-submit:disabled {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.claim-status-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(170, 255, 170, 0.25);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.claim-result-box {
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Klikbare Belohnungs-Links */
.reward-tag.reward-link {
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reward-tag.reward-link:hover {
    background: rgba(255, 224, 102, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 224, 102, 0.6), inset 0 0 5px rgba(255, 224, 102, 0.3);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.reward-tag.reward-link:active {
    transform: translateY(0);
}

/* =========================================
   Gilden-Login Seite Styling (Premium Card)
   ========================================= */
.login-section {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.login-card {
    background: rgba(10, 15, 12, 0.7);
    border: 1px solid rgba(170, 255, 170, 0.2);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(170, 255, 170, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(170, 255, 170, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.login-card h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.login-card p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.login-card p strong {
    color: #aaffaa;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.form-group label {
    font-weight: bold;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(170, 255, 170, 0.2);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #aaffaa;
    box-shadow: 0 0 15px rgba(170, 255, 170, 0.3), inset 0 0 5px rgba(170, 255, 170, 0.1);
    outline: none;
}

.form-group small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

.form-group small .key-link {
    color: #aaffaa;
    text-decoration: underline;
    transition: color 0.3s;
}

.form-group small .key-link:hover {
    color: #ffffff;
}

.login-btn-submit {
    width: 100%;
    background: rgba(170, 255, 170, 0.1);
    border: 1px solid #aaffaa;
    color: #aaffaa;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(170, 255, 170, 0.1);
}

.login-btn-submit:hover:not(:disabled) {
    background: #aaffaa;
    color: #050a08;
    box-shadow: 0 0 25px rgba(170, 255, 170, 0.4);
    transform: translateY(-2px);
}

.login-btn-submit:disabled {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-status-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(170, 255, 170, 0.25);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-sizing: border-box;
}

.login-result-box {
    margin-top: 2rem;
    padding: 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-result-box.success {
    background: rgba(170, 255, 170, 0.15);
    border: 1px solid rgba(170, 255, 170, 0.4);
    color: #aaffaa;
}

.login-result-box.error {
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.4);
    color: #ff8888;
}

/* Austreten-Button Styling */
.claim-btn.withdraw-btn {
    background: rgba(255, 85, 85, 0.1) !important;
    border: 1px solid #ff5555 !important;
    color: #ff5555 !important;
    box-shadow: 0 0 10px rgba(255, 85, 85, 0.1) !important;
}

.claim-btn.withdraw-btn:hover:not(:disabled) {
    background: #ff5555 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 85, 85, 0.4) !important;
}
