/* Grundlayout */

*{
    box-sizing:border-box;
}

body{
    width:100%;
    max-width:1170px;
    margin:0 auto;
    font-family:Arial, Helvetica, sans-serif;
    color:#ffffff;
    text-align:center;
    background-image:url("../images/background.jpg");
    background-size:cover;
    background-position:center top;
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-color:#000;
}


/* HEADER */

.site-header{
    width:100%;
    height:465px;
    margin:0 auto;
    background-image:url("../images/header.jpg");
    background-size:contain;
    background-position:center;
    background-repeat:no-repeat;
    background-color:rgba(0,0,0,0.6);
    border-radius:10px;
    overflow:hidden;
    position:relative;
}

.header-bg{
    position:absolute;
    inset:0;
	width:100%;
}


/* TITEL */

.page-title{
    margin:20px 0;
}

.page-title h1{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    font-size:38px;
    font-weight:700;
    letter-spacing:1px;
    padding:20px 0;
    border-radius:10px;
    background:rgba(0,0,0,0.6);
    border:1px solid #EE57FF;
    color:#ffffff;
    text-align:center;
    text-shadow:
        0 0 6px rgba(255,255,255,0.5),
        0 0 15px rgba(0,150,255,0.6),
        0 0 25px rgba(0,150,255,0.4);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 20px rgba(0,150,255,0.2);
}


/* BUTTONS */

.btn,
button{
    display:inline-block;
    background:rgba(0,0,0,0.6);
    color:#ffffff !important;
    text-decoration:none;
    border-radius:6px;
    border:1px solid rgba(255,255,255,0.15);
    transition:0.2s;
    cursor:pointer;
}

.btn{
    padding:6px 12px;
    font-size:14px;
}

button{
    padding:8px 14px;
}

.btn:hover,
button:hover{
    background:rgba(0,0,0,0.8);
}

.btn-small{
    padding:4px 10px;
    font-size:13px;
}


/* KATEGORIE TITEL */

h2{
    width:1200px;
    max-width:100%;
    padding:10px 20px;
    background:rgba(0,0,0,0.6);
    border-radius:10px;
    border:1px solid #EE57FF;
    text-align:center;
}


/* GALERIE */

.gallery{
    display:grid;
    grid-template-columns:repeat(5,200px);
    justify-content:center;
    gap:20px;
}

.imgbox{
    width:200px;
    text-align:center;
}

.imgbox img{
    width:200px;
    height:220px;
    object-fit:contain;
    cursor:pointer;
    border-radius:6px;
}

.imgname{
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	background: rgba(0,0,0,0.75);
	padding: 5px;
	border-radius: 5px;
	border: 1px solid #EE57FF;
}

.inline-form{
    display:inline;
    margin:0;
}

.inline-form button{
    font:inherit;
}


/* Footer Link */

.footer-copy a{
    color:#ffffff;
    text-decoration:none;
    cursor:pointer;
}

.footer-copy a:hover{
    color:#ffffff;
    text-decoration:underline;
}


/* ADMIN PANEL */

.admin-topbar,
.admin-panel,
.site-footer,
.loginbox,
.notice,
.error,
.password-topbar,
.password-panel,
.password-notice,
.password-error{
    width:1200px;
    max-width:100%;
    background:rgba(0,0,0,0.6);
    border-radius:10px;
}

.admin-topbar,
.password-topbar{
    margin:20px auto;
    padding:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    text-align:left;
}

.admin-panel,
.password-panel{
    margin:20px auto;
    padding:20px;
}

.notice,
.error,
.password-notice,
.password-error{
    margin:20px auto;
    padding:14px 20px;
}

.loginbox{
    width:420px;
    margin:60px auto;
    padding:25px;
}

.password-error{
    border:1px solid rgba(255,120,120,0.35);
    background:rgba(120,0,0,0.55);
}

.password-notice{
    border:1px solid rgba(120,255,120,0.25);
    background:rgba(0,70,0,0.55);
}

.password-page{
    width:1200px;
    max-width:100%;
    margin:20px auto 40px;
}

.password-topbar h1{
    margin:0;
    font-size:30px;
}

.password-subtitle{
    opacity:.85;
    font-size:14px;
    margin-top:6px;
}

.password-panel h2{
    width:100%;
    margin:0 0 20px;
    padding:0;
    background:none;
    border-radius:0;
}

.password-form{
    max-width:460px;
    margin:0 auto;
    text-align:left;
}

.password-form label{
    display:block;
    margin:14px 0 6px;
    font-weight:bold;
}


/* FORM */

.admin-form input,
.admin-form select,
.admin-form button,
.loginbox input,
.loginbox button,
.password-form input,
.password-form button{
    display:block;
    margin:10px auto;
    padding:12px;
    border-radius:8px;
    width:100%;
    max-width:400px;
}

/* DUNKLE INPUTS */

.loginbox input,
.admin-form input,
.admin-form select,
.password-form input[type="password"],
.password-form input[type="text"]{
    background:rgba(0,0,0,0.6);
    color:#ffffff;
    border:1px solid rgba(255,255,255,0.25);
}

/* FOCUS */

.loginbox input:focus,
.admin-form input:focus,
.admin-form select:focus,
.password-form input[type="password"]:focus,
.password-form input[type="text"]:focus{
    outline:none;
    border:1px solid #ffcc00;
    background:#222;
    box-shadow:0 0 6px rgba(255,204,0,0.4);
}


/* PASSWORD INPUT WRAP */

.password-input-wrap{
    display:flex;
    align-items:stretch;
    gap:10px;
}

.password-input-wrap input{
    width:100%;
    max-width:none;
    margin:0;
}

.password-input-wrap button.toggle-password{
    width:auto;
    min-width:54px;
    max-width:none;
    margin:0;
    border:1px solid rgba(255,255,255,0.15);
    border-radius:8px;
    cursor:pointer;
    background:#1f1f1f;
    color:#fff;
    font-size:18px;
    transition:0.2s;
}

.password-input-wrap button.toggle-password:hover{
    background:#2b2b2b;
}

.password-actions{
    display:flex;
    gap:10px;
    margin-top:20px;
    flex-wrap:wrap;
    justify-content:center;
}

.password-actions .btn,
.password-actions button{
    min-width:170px;
    text-align:center;
}


/* DROPZONE */

#dropzone{
    border:2px dashed #777;
    padding:20px;
    margin:20px auto;
    text-align:center;
    width:100%;
    max-width:400px;
    border-radius:10px;
    background:rgba(255,255,255,0.05);
}

#dropzone input{
    display:block;
    margin:15px auto 0 auto;
}


/* UPLOAD PROGRESS */

.progress-wrap{
    margin:15px auto;
    width:100%;
    max-width:500px;
}

.progress-label{
    display:flex;
    justify-content:space-between;
    margin-bottom:8px;
}

.progress-bar{
    width:100%;
    height:22px;
    background:rgba(255,255,255,0.12);
    border-radius:999px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.15);
}

#progressFill{
    width:0%;
    height:100%;
    background:linear-gradient(90deg,#b00000,#ff2a2a);
}

#uploadStatus,
#fileNames{
    text-align:center;
    margin:15px auto;
    width:100%;
    max-width:400px;
}


/* LIGHTBOX */

#lightbox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.9);
    align-items:center;
    justify-content:center;
}

#lightbox img{
    max-width:90%;
    max-height:90%;
}


/* FOOTER */

.site-footer{
    margin:30px auto 20px auto;
    padding:20px;
    border:1px solid #EE57FF;
}

.footer-version{
    margin-top:8px;
    font-size:14px;
    opacity:.9;
}


/* RESPONSIVE */

@media (max-width:1100px){
    .site-header,
    .page-title h1,
    h2,
    .admin-topbar,
    .admin-panel,
    .site-footer,
    .loginbox,
    .notice,
    .error,
    .password-topbar,
    .password-panel,
    .password-notice,
    .password-error{
        width:calc(100% - 24px);
    }

    .gallery{
        grid-template-columns:repeat(3,200px);
        gap:14px;
    }
}

@media (max-width:700px){
    body{
        background-attachment:scroll;
    }

    .site-header{
        height:230px;
        margin:12px auto;
        border-radius:8px;
    }

    .page-title{
        margin:12px 0;
    }

    .page-title h1{
        font-size:28px;
        padding:16px 12px;
        border-radius:14px;
    }

    h2{
        margin:16px auto 10px auto;
        padding:10px 12px;
        font-size:22px;
        line-height:1.35;
    }

    .gallery{
        grid-template-columns:repeat(2, minmax(0, 150px));
        gap:12px;
    }

    .imgbox,
    .imgbox img{
        width:150px;
    }

    .imgbox img{
        height:180px;
    }

    .imgname{
        font-size:16px;
        line-height:1.25;
    }

    .admin-topbar,
    .password-topbar{
        flex-direction:column;
        gap:12px;
        padding:16px;
        align-items:flex-start;
    }

    .admin-topbar h1,
    .password-topbar h1{
        margin:0;
        font-size:28px;
    }

    .admin-panel,
    .site-footer,
    .loginbox,
    .notice,
    .error,
    .password-panel,
    .password-notice,
    .password-error{
        padding:16px;
    }

    .btn,
    button{
        min-height:42px;
    }

    #dropzone{
        padding:16px 12px;
    }

    .password-actions{
        flex-direction:column;
    }

    .password-actions .btn,
    .password-actions button{
        width:100%;
        min-width:0;
    }
}

@media (max-width:480px){
    .site-header{
        height:170px;
    }

    .page-title h1{
        font-size:22px;
        letter-spacing:0.5px;
    }

    h2{
        font-size:20px;
    }

    .gallery{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        width:calc(100% - 16px);
        margin:0 auto;
        gap:10px;
    }

    .imgbox,
    .imgbox img{
        width:100%;
        max-width:160px;
    }

    .imgbox{
        justify-self:center;
    }

    .imgbox img{
        height:160px;
    }

    .imgname{
        font-size:15px;
    }

    .admin-topbar h1,
    .password-topbar h1{
        font-size:24px;
    }

    .admin-topbar > div,
    .password-topbar > div{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:8px;
    }

    .progress-label{
        font-size:14px;
    }

    .loginbox{
        margin:24px auto;
    }
}

/* Passwortfelder auch bei Browser-Autofill dunkel halten */

.password-form input[type="password"],
.password-form input[type="text"],
.password-form input[type="password"]:-webkit-autofill,
.password-form input[type="password"]:-webkit-autofill:hover,
.password-form input[type="password"]:-webkit-autofill:focus,
.password-form input[type="text"]:-webkit-autofill,
.password-form input[type="text"]:-webkit-autofill:hover,
.password-form input[type="text"]:-webkit-autofill:focus{
    -webkit-text-fill-color:#ffffff !important;
    -webkit-box-shadow:0 0 0px 1000px rgba(0,0,0,0.6) inset !important;
    box-shadow:0 0 0px 1000px rgba(0,0,0,0.6) inset !important;
    background:rgba(0,0,0,0.6) !important;
    border:1px solid rgba(255,255,255,0.25) !important;
    caret-color:#ffffff !important;
}


/* user_admin.php */
/* Benutzerverwaltung – Tabellen und Panels im dunklen Design */

.users-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.4);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.users-table thead th {
    background: rgba(0,0,0,0.7);
    font-weight: bold;
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.users-table tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.users-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.tag, .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.muted-dash {
    color: #aaa;
    font-weight: normal;
}

/* Buttons speziell für Gefahrenaktionen (Löschen) */
.danger-btn {
    background: rgba(180, 0, 0, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

.danger-btn:hover {
    background: rgba(200, 0, 0, 0.9);
}

/* Für das Anlege‑Formular das vorhandene .admin‑Grid durch Flex ersetzen */
.users-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.users-grid label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #ddd;
    font-size: 14px;
}

.users-grid input,
.users-grid select {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
}

.users-grid input:focus,
.users-grid select:focus {
    border-color: #ffcc00;
    outline: none;
    background: #222;
}

/* Responsive Anpassungen für das Grid */
@media (max-width: 900px) {
    .users-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Überschriften in den Panels */
.admin-panel h2 {
    margin-top: 0;
    color: #fff;
    font-size: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

/* Speziell für den Link »Admin« in der Top‑Leiste – bleibt ein normaler .btn */
.top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* activity_log.php */
/* Data tables (für Aktivitäten und Benutzerverwaltung) */
.data-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.4);
    margin-top: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.data-table thead th {
    background: rgba(0,0,0,0.7);
    font-weight: bold;
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.data-table tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.data-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Badges (Rolle, Status) */
.role-badge, .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Roter Gefahren‑Button */
.btn-danger {
    background: rgba(180, 0, 0, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

.btn-danger:hover {
    background: rgba(200, 0, 0, 0.9);
}

/* Hilfsklasse für die Aktionsgruppe in der Kopfleiste */
.log-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}