/* ============================= */
/* RESET                         */
/* ============================= */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 10px 50px;
    color: #333;
}

/* ============================= */
/* CONTAINER BASIS               */
/* ============================= */

.form-container,
.page-container {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.admin-card,
.form-card,
.page-card {
    background-color: #bde0ff;
    border: 1px solid black;
    border-radius: 12px;
    padding: 10px;
    width: 100%;
    max-width: 1000px;
    position: center;
}

.admin-card-content,
.form-card-inner,
.page-card-inner {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
}

/* ============================= */
/* LINKS                         */
/* ============================= */

a {
    text-decoration: none;
    color: inherit;
}

.back-link,
.form-back {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

.back-link:hover,
.form-back:hover {
    text-decoration: underline;
}

/* ============================= */
/* Labels                        */
/* ============================= */

.label-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: #e0f2ff;
    font-size: 13px;
    margin: 4px 6px 0 0;
    text-decoration: none;
}

.label-badge:hover {
    background-color: #bde0ff;
}

/* ===================================== */
/* SCROLL TO TOP BUTTON                  */
/* ===================================== */

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #4da6ff;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background-color: #3399ff;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ============================= */
/* Top-Bar - Content alignment   */
/* ============================= */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1001;
    border-bottom: 1px solid #ddd;
    padding-right: 20px;
}

.page-content {
    margin-top: 45px;
}

/* ============================= */
/* Logout Button                  */
/* ============================= */

.logout-btn {
    position: fixed;
    right: 20px;
    font-size: 24px;
    color: #777;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.logout-btn:hover {
    opacity: 1;
    color: #c0392b; /* dezentes Rot beim Hover */
    transform: scale(1.1);
}

/* ============================= */
/* BUTTON BASIS                  */
/* ============================= */

.btn {
    all: unset;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    transition: background-color 0.2s ease;
    width: 180px;
}

.btn-primary {
    background-color: #4da6ff;
    color: white;
}

.btn-primary:hover {
    background-color: #3399ff;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
}

.btn-submit:hover {
    background-color: #43a047;
}

.btn-danger {
    background-color: #ff4d4d;
    color: white;
}

.btn-danger:hover {
    background-color: #e60000;
}

.btn-warning {
    background-color: #ffb703;
    color: white;
}

.btn-warning:hover {
    background-color: #fb8500;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ============================= */
/* Honey Pod                     */
/* ============================= */

.hp-field {
    position: absolute;
    left: -9999px;
}

/* ============================= */
/* RESPONSIVE BASIS              */
/* ============================= */

@media (max-width: 768px) {

    body {
        padding: 10px 10px;
        padding-bottom: 120px;
    }

    .admin-card-content,
    .form-card-inner,
    .page-card-inner {
        padding: 10px;
    }

    .btn {
        width: 80px;
    }

    #scrollTopBtn {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
}
