*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;

    background: url('../images/scheibe.jpg') no-repeat center center fixed;
    background-size: cover;

    color:white;

    min-height:100vh;

    position:relative;

    display:flex;
    flex-direction:column;
}

.page-wrapper{
    flex:1;
    display:flex;
    flex-direction:column;
}

.overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.65);
    z-index:-1;
}

.glass{
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.15);
    box-shadow:0 8px 32px rgba(0,0,0,0.4);
}

.header{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 40px;
}

.logo h1{
    font-size:38px;
    color:#ffcc70;
    text-shadow:2px 2px 10px black;
}

.login-area{
    display:flex;
    gap:15px;
}

.btn{
    display:inline-block;
    padding:10px 20px;
    text-decoration:none;
    color:white;
    border-radius:10px;
    background:rgba(255,255,255,0.1);
    transition:0.3s;
    text-align:center;
}

.btn:hover{
    background:#ff9800;
}

.btn-register{
    background:#ff9800;
}

.main-container{
    display:flex;
    width:100%;
    padding:30px 40px;
    gap:30px;

    flex:1;
}

.sidebar{
    width:250px;
    padding:25px;
    border-radius:20px;
    height:fit-content;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    margin-bottom:20px;
}

.sidebar a{
    color:white;
    text-decoration:none;
    font-size:18px;
    transition:0.3s;
}

.sidebar a:hover{
    color:#ffcc70;
    padding-left:10px;
}

.content{
    flex:1;
    padding:40px;
    border-radius:20px;
}

.content h2{
    font-size:36px;
    margin-bottom:25px;
    color:#ffcc70;
}

.content p{
    font-size:18px;
    line-height:1.8;
    margin-bottom:20px;
}

.footer{
    position:relative;

    margin:30px 40px;

    padding:20px 30px;

    border-radius:20px;

    display:flex;

    justify-content:center;

    align-items:center;
}

.footer-left{
    display:flex;
    gap:40px;
}

.footer-right{
    position:absolute;
    right:30px;
}

.footer a{
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.footer a:hover{
    color:#ffcc70;
}

.back-link{
    font-size:15px;
    color:#ccc;
}

@media(max-width:900px){

    .main-container{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .header{
        flex-direction:column;
        gap:20px;
    }

}
/* FORMULARE */

.register-form{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-top:30px;
}

.register-form input{
    padding:15px;
    border:none;
    border-radius:10px;
    background:rgba(255,255,255,0.1);
    color:white;
    font-size:16px;
}

.register-form input::placeholder{
    color:#ddd;
}

.register-form button{
    width:200px;
    cursor:pointer;
}

/* FEHLER */

.error-message{
    background:#d32f2f;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;
}

/* ERFOLG */

.success-message{
    background:#388e3c;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;
}


.welcome-text{
    display:flex;
    align-items:center;

    padding:10px 15px;

    background:rgba(255,255,255,0.1);

    border-radius:10px;

    color:#ffcc70;

    font-weight:bold;
}

.admin-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:20px;
    margin-top:30px;
}

.admin-card{
    display:block;
    padding:25px;
    border-radius:18px;
    background:rgba(255,255,255,0.09);
    border:1px solid rgba(255,255,255,0.15);
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.admin-card:hover{
    transform:translateY(-5px);
    background:rgba(255,152,0,0.25);
}

.admin-card h3{
    color:#ffcc70;
    margin-bottom:12px;
}

.table-box{
    width:100%;
    overflow-x:auto;
    margin-top:25px;
}

.data-table{
    width:100%;
    border-collapse:collapse;
    background:rgba(0,0,0,0.25);
    border-radius:15px;
    overflow:hidden;
}

.data-table th,
.data-table td{
    padding:14px 16px;
    text-align:left;
    border-bottom:1px solid rgba(255,255,255,0.12);
}

.data-table th{
    color:#ffcc70;
    background:rgba(255,255,255,0.08);
}

.data-table tr:hover{
    background:rgba(255,152,0,0.15);
}

.inline-form{
    display:flex;
    gap:10px;
    align-items:center;
}

.select-field{
    width:100%;

    padding:15px;

    border:none;
    border-radius:10px;

    background:rgba(255,255,255,0.1);

    color:white;

    font-size:16px;
}

.select-field option{
    color:black;
}

.small-btn{
    padding:8px 14px;
    border:none;
    border-radius:8px;
    background:#ff9800;
    color:white;
    cursor:pointer;
}

.small-btn:hover{
    background:#ffb74d;
}

.save-users-btn{
    margin-top:25px;
    cursor:pointer;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:20px;
    margin-top:30px;
}

.dashboard-card{
    display:block;
    text-decoration:none;
    color:white;

    padding:25px;
    border-radius:18px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.12);

    transition:0.3s;
}

.dashboard-card:hover{
    transform:translateY(-5px);

    background:rgba(255,152,0,0.18);
}

.dashboard-card h3{
    color:#ffcc70;
    margin-bottom:15px;
}

.profile-box{
    margin-top:30px;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.profile-row{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 20px;

    border-radius:14px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.12);
}

.profile-label{
    color:#ffcc70;
    font-weight:bold;
}

.profile-image{
    width:130px;
    height:130px;
    object-fit:cover;
    border-radius:50%;
    border:3px solid #ffcc70;
    margin-bottom:20px;
}

.profile-edit-btn{
    display:inline-block;
    margin-top:25px;
}

.password-box{
    display:none;
    flex-direction:column;
    gap:20px;
    margin-top:20px;
}

.toggle-password-btn{
    cursor:pointer;
}

.upload-label{
    color:#ffcc70;
    font-weight:bold;
}

.file-upload{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:rgba(255,255,255,0.1);
    color:white;
    font-size:16px;
}

.profile-divider{
    margin:40px 0;
    border:1px solid rgba(255,255,255,0.1);
}

.danger-zone{
    margin-top:20px;
    padding:25px;
    border-radius:18px;
    background:rgba(255,0,0,0.08);
    border:1px solid rgba(255,0,0,0.2);
}

.danger-zone h3{
    color:#ff7070;
    margin-bottom:15px;
}

.delete-btn{
    margin-top:20px;
    padding:14px 20px;
    border:none;
    border-radius:10px;
    background:#c62828;
    color:white;
    cursor:pointer;
    transition:0.3s;
}

.delete-btn:hover{
    background:#e53935;
}

.delete-cell{
    display:flex;
    align-items:center;
    gap:10px;
}

.delete-info{
    display:inline-flex;
    justify-content:center;
    align-items:center;

    width:20px;
    height:20px;

    border-radius:50%;

    background:#ffcc70;
    color:#111;

    font-size:13px;
    font-weight:bold;

    cursor:help;
}

.pages-grid{
    display:flex;
    flex-direction:column;
    gap:30px;
    margin-top:30px;
}

.page-editor{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:25px;
    border-radius:18px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.1);
}

.page-edit-form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.page-title-input{
    width:100%;

    padding:15px;

    border:none;
    border-radius:10px;

    background:rgba(255,255,255,0.1);

    color:white;

    font-size:20px;
    font-weight:bold;
}

.page-content-input{
    width:100%;
    min-height:250px;

    padding:15px;

    border:none;
    border-radius:10px;

    resize:vertical;

    background:rgba(255,255,255,0.1);

    color:white;

    font-size:16px;
    line-height:1.6;
}

.page-content{
    margin-top:25px;

    line-height:1.8;

    font-size:17px;
}

.tournament-form{
    display:flex;
    flex-direction:column;
    gap:25px;
    margin-top:30px;
}

.form-section{
    padding:25px;
    border-radius:18px;
    background:rgba(255,255,255,0.07);
    border:1px solid rgba(255,255,255,0.12);
}

.form-section h3{
    color:#ffcc70;
    margin-bottom:20px;
}

.form-row{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:20px;
    align-items:center;

    margin-bottom:18px;
}

.form-row label{
    color:#ffcc70;
    font-weight:bold;
}

.form-row input,
.form-row select{
    width:100%;
}

.checkbox-line input{
    width:auto;
    justify-self:start;
}

.checkbox-row input{
    width:auto;
}

.tournament-form option{
    color:black;
}

.tournament-form input{
    height:35px;

    box-sizing:border-box;

    font-size:17px;

    padding:0 12px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.12);

    color:white;
}

.tournament-form select{
    height:42px;

    box-sizing:border-box;

    font-size:17px;

    padding:0 12px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.12);

    color:white;
}

.tournament-form input:focus,
.tournament-form select:focus{
    outline:none;

    border:1px solid #ffcc70;

    background:rgba(255,255,255,0.12);
}

.tournament-list{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(360px, 1fr));
    gap:25px;
    margin-top:30px;
}

.tournament-card{
    display:grid;

    grid-template-columns:1fr 180px;

    align-items:center;

    gap:30px;

    padding:25px;

    border-radius:18px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.14);

    box-shadow:0 8px 25px rgba(0,0,0,0.35);
}

.tournament-content{
    width:100%;
}

.tournament-card h3{
    color:#ffcc70;

    margin-bottom:18px;

    font-size:24px;
}

.tournament-info{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:14px 25px;
}

.tournament-info p{
    margin:0;

    font-size:16px;

    line-height:1.5;
}

.tournament-info strong{
    color:#ffcc70;
}

.tournament-actions{
    text-align:right;
}

.tournament-card .btn{
    display:inline-block;

    margin:0;
}

@media(max-width:700px){
    .tournament-list{
        grid-template-columns:1fr;
    }

    .tournament-info{
        grid-template-columns:1fr;
    }
}

.tournament-detail-card{
    padding:30px;
    border-radius:20px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.14);
}

.detail-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:20px;
    margin-top:30px;
}

.detail-item{
    padding:20px;
    border-radius:14px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);

    display:flex;
    flex-direction:column;
    gap:10px;
}

.detail-item span{
    color:#ffcc70;
    font-size:15px;
}

.detail-item strong{
    font-size:18px;
}

.participant-box{
    margin-top:35px;

    padding:30px;

    border-radius:20px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.14);
}

.participant-list{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:25px;
}

.participant-item{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:16px 20px;

    border-radius:12px;

    background:rgba(255,255,255,0.05);
}

.participant-status{
    color:#ffcc70;
    font-weight:bold;
}

.signup-box{
    margin-top:25px;
    padding:25px;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.14);
}

.participant-admin-box{
    margin-top:30px;

    padding:25px;

    border-radius:18px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.12);
}

.guest-form{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.guest-form input{
    flex:1;

    height:35px;

    padding:0 12px;

    font-size:17px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.12);

    color:white;

    border-radius:10px;

    box-sizing:border-box;
}

.guest-form input:focus{
    outline:none;

    border:1px solid #ffcc70;

    background:rgba(255,255,255,0.12);
}

.hidden-form{
    display:none;
    margin-top:25px;
}

.status-dot{
    display:inline-block;
    width:14px;
    height:14px;
    border-radius:50%;
}

.status-pending{
    background:#ff9800;
}

.status-confirmed{
    background:#4caf50;
}

.status-rejected{
    background:#d32f2f;
}

.back-link{
    font-size:14px;
    color:#ccc;
    text-decoration:none;
    transition:0.3s;
}

.back-link:hover{
    color:#ffcc70;
}

.small-input{
    width:100%;

    height:35px;

    padding:0 10px;

    border-radius:8px;

    border:1px solid rgba(255,255,255,0.12);

    background:rgba(255,255,255,0.08);

    color:white;
}

.small-input:focus{
    outline:none;

    border:1px solid #ffcc70;
}

.round-groups{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap:25px;
    margin-top:30px;
}

.round-group-box{
    padding:25px;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
}

.round-group-box h3{
    color:#ffcc70;
    margin-bottom:20px;
}

.life-form{
    margin:0;
}

.life-hearts{
    border:none;
    background:none;
    color:#ff4d6d;
    font-size:22px;
    cursor:pointer;
    letter-spacing:3px;
}

.life-hearts:hover{
    transform:scale(1.05);
}

.life-changed{
    opacity:0.55;
}

.round-finish-box{
    margin-top:40px;

    padding:25px;

    border-radius:18px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.12);
}

.round-finish-box h3{
    color:#ffcc70;

    margin-bottom:15px;
}

.round-finish-list{
    margin:15px 0 25px 20px;

    line-height:1.8;
}

.placements-box{
    margin-top:40px;

    padding:25px;

    border-radius:18px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.12);
}

.placements-box h3{
    color:#ffcc70;

    margin-bottom:20px;
}

.round-settings-box{
    margin-top:25px;
    padding:25px;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
}

.round-settings-box h3{
    color:#ffcc70;
    margin-bottom:20px;
}

.round-settings-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:18px;
}

.round-settings-grid div{
    padding:16px;
    border-radius:12px;
    background:rgba(255,255,255,0.06);
}

.round-settings-grid span{
    display:block;
    color:#ffcc70;
    margin-bottom:8px;
    font-size:14px;
}

.round-settings-grid strong{
    font-size:17px;
}

.board-label{
    display:inline-block;
    margin-bottom:18px;
    padding:8px 14px;
    border-radius:10px;
    background:rgba(255,152,0,0.2);
    color:#ffcc70;
    font-weight:bold;
}

.round-header-box{
    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:40px;

    margin-top:25px;

    margin-bottom:35px;

    padding:25px;

    border-radius:18px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.12);
}

.round-title-area h2{
    margin-bottom:20px;

    color:#ffcc70;

    font-size:38px;
}

.round-badges{
    display:flex;

    flex-wrap:wrap;

    gap:12px;
}

.round-badge{
    padding:10px 16px;

    border-radius:12px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.08);

    color:#ffcc70;

    font-weight:bold;
}

.compact-settings-grid{
    display:grid;

    grid-template-columns:repeat(3, 1fr);

    gap:15px;

    min-width:450px;
}

.compact-setting{
    padding:14px 18px;

    border-radius:12px;

    background:rgba(255,255,255,0.05);
}

.compact-setting span{
    display:block;

    font-size:13px;

    color:#ffcc70;

    margin-bottom:6px;
}

.compact-setting strong{
    font-size:18px;

    color:white;
}

.life-display{
    color:#ff4d6d;
    font-size:22px;
    letter-spacing:3px;
}

.lost-life-text{
    color:#ff7070;
    font-weight:bold;
}

.safe-life-text{
    color:#8bc34a;
    font-weight:bold;
}

.heart-active{
    color:#ff4d6d;

    margin-right:5px;

    font-size:22px;
}

.heart-lost{
    color:#666;

    opacity:0.5;

    margin-right:5px;

    font-size:22px;
}

.round-finish-actions{
    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:20px;
}

.round-finish-actions{
    display:flex;

    justify-content:space-between;

    gap:40px;

    margin-top:20px;
}

.action-block{
    display:flex;

    flex-direction:column;

    gap:15px;
}

.action-right{
    align-items:flex-end;
}

.archive-round-box{
    margin-top:30px;
    padding-top:25px;
    border-top:1px solid rgba(255,255,255,0.12);
}

.archive-round-box h3{
    color:#ffcc70;
    margin-bottom:20px;
}

.archive-actions{
    display:flex;

    flex-direction:column;

    gap:10px;

    align-items:center;
}

.archive-actions .small-btn,
.archive-actions .archive-delete-btn{
    width:120px;

    text-align:center;

    box-sizing:border-box;
}

.archive-delete-btn{
    display:inline-block;

    width:120px;

    padding:9px 15px;

    text-align:center;

    text-decoration:none;

    color:#fff;

    background:#b93131;

    border-radius:10px;

    transition:0.2s;
}

.archive-delete-btn:hover{
    background:#d13b3b;
}

.prize-distribution{
    display:flex;
    flex-wrap:wrap;
    gap:25px;
    align-items:center;
    font-size:14px;
}

.prize-distribution span{
    color:#d9d9d9;
}

.prize-distribution-row td{
    background:rgba(255,255,255,0.03);
    padding:16px 20px 22px 20px;
    border-top:none;
    border-bottom:3px solid #ffcc70;
}

.switch-tournament-box{
    margin-bottom:30px;
    padding:18px 22px;
    border-radius:16px;
    background:rgba(255,255,255,0.07);
    border:1px solid rgba(255,255,255,0.12);
}

.switch-tournament-box strong{
    color:#ffcc70;
}

.switch-tournament-links{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
}

.members-grid{
    display:grid;

    grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));

    gap:15px;
}

.member-card{
    padding:18px 22px;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
}

.member-row{
    display:flex;
    align-items:center;
    gap:18px;
}

.member-image,
.member-placeholder{
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #ffcc70;
    flex-shrink:0;
}

.member-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.08);
    color:#ffcc70;
    font-size:28px;
    font-weight:bold;
}

.member-details h3{
    margin:0;
    color:#fff;
}

.member-role{
    display:block;
    margin-top:5px;
    color:#ffcc70;
    font-size:14px;
}

.member-info strong{
    color:#ffcc70;
}



/* HANDY OPTIMIERUNG */
@media(max-width:700px){

    body{
        background-attachment:scroll;
    }

    .header{
        padding:18px 15px;
        text-align:center;
    }

    .logo h1{
        font-size:28px;
    }

    .login-area{
        flex-direction:column;
        width:100%;
    }

    .login-area .btn,
    .welcome-text{
        width:100%;
        text-align:center;
        justify-content:center;
    }

    .main-container{
        padding:15px;
        gap:20px;
    }

    .sidebar{
        padding:18px;
    }

    .sidebar li{
        margin-bottom:14px;
    }

    .content{
        padding:22px 16px;
    }

    .content h2{
        font-size:28px;
    }

    .content p{
        font-size:16px;
    }

    .footer{
        margin:20px 15px;
        flex-direction:column;
        gap:15px;
        text-align:center;
    }

    .footer-left{
        flex-direction:column;
        gap:12px;
    }

    .footer-right{
        position:static;
    }

    .form-row{
        grid-template-columns:1fr;
        gap:8px;
    }

    .tournament-card{
        grid-template-columns:1fr;
        gap:20px;
    }

    .tournament-actions{
        text-align:left;
    }

    .guest-form,
    .inline-form,
    .round-finish-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .compact-settings-grid{
        grid-template-columns:1fr;
        min-width:0;
    }

    .round-header-box{
        flex-direction:column;
        gap:20px;
    }

    .round-title-area h2{
        font-size:30px;
    }

    .members-grid{
        grid-template-columns:1fr;
    }

    .member-row{
        align-items:flex-start;
    }

    .member-image,
    .member-placeholder{
        width:58px;
        height:58px;
        font-size:22px;
    }

    .profile-row{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .btn,
    .small-btn,
    .delete-btn{
        width:100%;
        text-align:center;
    }

}