/* ========== FONT AND GLOBAL STYLES ========== */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


/* ========== GLOBAL COLORS ========== */
:root {
    --primary-color: #6329ab;
    --primary-shade: #e8d9fb;
    --background-color: #ffffff;
    --text-color: #444e58;
    --divider-color: #e0e0e0;
    --input-color: #e9e9e9;
    --red: #ba3228;
    --red-shade: #f5b8b5;
}


.dark-mode {
    --primary-color: #6329ab;
    --primary-shade: #e8d9fb;

    --background-color: #2c2f38;
    --text-color: #e1e4e8;
    --divider-color: #3b414b;
    --input-color: #3e434d;
}

/* ========== GLOBAL STYLES ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    background-color: var(--primary-color);
}

body {
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    width: 90%;
    margin: 15px auto;
}

.pointer {
    cursor: pointer;
}

.center-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.margin-top {
    margin-top: 3rem;
}

.float-right {
    float: right;
}

.profile-picture img {
    border-radius: 50%;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.card {
    display: flex;
    flex-flow: column;
    position: relative;

    padding: 10px;
    margin-bottom: 15px;

    border: 1px solid var(--divider-color);
    border-radius: 12px;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(121, 121, 121, 0.1);
    overflow: hidden;
}

/* ========== FOOTER =========== */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    font-size: 0.875rem;
    color: var(--text-color);
    gap: 8px;
}

.footer-text {
    margin: 0;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-weight: 300;
    justify-content: center;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.divider {
    color: var(--divider-color);
}


/* ========== FLASH ========== */



.flash {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: fit-content;
    max-width: 100%;
}

.notification {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease-out, fadeOut 4s 2.5s forwards;
}

.notification .icon {
    cursor: pointer;
    font-size: 18px;
    color: white;
    margin-left: 15px;
    transition: color 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ========== BUTTON STYLES ========== */
.icon-button {
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 8px;
    color: var(--text-color);
    background-color: var(--input-color);

}

.button {
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

.standard-button {
    text-decoration: none;
    color: #ffffff;
    background-color: var(--primary-color);
}

.floating-action-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    text-decoration: none;
    color: #ffffff;
    background-color: var(--primary-color);
    text-wrap: nowrap;
}

.heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: fit-content;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
    width: 100%;
}

/* ========== INFO CHIP ========== */
.m-l-5 {
    margin-left: 5px;
}

.m-r-5 {
    margin-right: 5px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    margin-right: 3px;
    border-radius: 16px;
    background-color: var(--primary-shade);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    min-height: 28px;
}

.chip svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.chip-container {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.availability-yellow {
    background-color: #fef394;
    color: #c1772d;
}

.availability-yellow svg {
    color: #c1772d;
}

.availability-green {
    background-color: #c7e0a9;
    color: #527b24;
}

.availability-green svg {
    color: #527b24;
}

.availability-red {
    background-color: #f5b8b5;
    color: #ba3228;
}

.availability-red svg {
    color: #ba3228;
}

/* ========== HEADER STYLES ========== */
.header {
    display: flex;
    justify-content: center;
    padding: 15px;

    background-color: var(--primary-color);
}

.maintenance-header {
    display: flex;
    background-color: #7dafff;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

}

@media screen and (max-width: 768px) {
    .maintenance-header {
        justify-content: left;
    }

}

.maintenance-header div{
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 15px;
    word-break: break-word;
    flex-wrap: wrap;
}

.maintenance-header div h3{
    padding-right: 5px;
    margin: 0;
}

.header a {
    color: #ffffff;
    text-decoration: none;
}

.header div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
}

.header div div {
    width: fit-content;
}

.header div div a {
    margin-left: 15px;
}

.header .button {
    background-color: #ffffff;
    color: var(--text-color);
    box-shadow: 0 2px 8px hsla(0, 0%, 100%, 0.2);
}

.hamburger-icon {
    cursor: pointer;
    margin-right: 15px;
}

.acc-menu-btn img {
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: border 0.1s ease;
}

.acc-menu-btn img:hover {
    border: 2px solid var(--primary-shade);
}

/* ========== NAVIGATION MENU STYLES ========== */
.menu {
    display: none;
    position: absolute;

    background-color: var(--background-color);
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.menu ul {
    width: 100%;
    list-style-type: none;
    padding: 0 20px;
}

.menu.active {
    display: flex;
    justify-content: center;
}

#nav-menu {
    width: 100%;
    border-bottom: 1px solid var(--divider-color);
}

#nav-menu ul {
    width: 90%;
    padding: 0;
}

#acc-menu {
    right: 5px;
    margin-top: 5px;
    width: min(300px, 100%);
    border-radius: 8px;
    border: 1px solid var(--divider-color);
}

#gd-menu {
    right: 15px;
    width: min(300px, 100%);
    border-radius: 8px;
    border: 1px solid var(--divider-color);
    transform: translateY(75%);
}

.menu a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.menu a .icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    margin-right: 5px;
}

.menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ========== TABLE STYLES ========== */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
}

table tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

table tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.title {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: large;
}

.table thead {
    display: none;
    text-align: left;
    background-color: var(--primary-color);
    color: var(--background-color);
}

.table th,
td {
    display: block;
}

.table td {
    border: none;
    padding: 5px;
}

.table tr {
    display: flex;
    flex-flow: column;
    position: relative;

    padding: 10px;
    margin-bottom: 15px;

    border: 1px solid var(--divider-color);
    border-radius: 12px;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(121, 121, 121, 0.1);
    overflow: hidden;
}

.table .td-eingeteilt {
    border-top: 1px solid var(--divider-color);
}

.label {
    display: inline-block;
    font-weight: 500;
    padding-right: 5px;
    margin: 0;
}

.eingeteilt-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.td-eingeteilt-first,
.td-eingeteilt-second {
    flex: 1;
    justify-content: start;
}


/* Desktop and larger screens */
@media screen and (min-width: 1024px) {
    .table:not(.no-transform) {
        table-layout: fixed;
        box-shadow: 0 2px 5px rgba(121, 121, 121, 0.1);
    }

    .table:not(.no-transform) thead {
        display: table-header-group;
        border: none;
    }

    .table:not(.no-transform) th,
    .table:not(.no-transform) td {
        display: table-cell;
        padding: 10px;
        border-bottom: 1px solid var(--divider-color);
    }

    .table:not(.no-transform) tr td:first-child {
        border-left: 1px solid var(--divider-color);
    }

    .table:not(.no-transform) tr td:last-child {
        border-right: 1px solid var(--divider-color);
    }

    .table:not(.no-transform) tr {
        display: table-row;
        margin-bottom: 0;
        box-shadow: none;
        background-color: transparent;
        border-top: 1px solid var(--divider-color);
        padding: 0;
    }

    .table:not(.no-transform) .label {
        display: none;
    }

    .table:not(.no-transform) .td-eingeteilt {
        border-left: 1px solid var(--divider-color);
        border-top: none;
    }
}


/* ========== FORM STYLES ========== */
.form {
    margin: 10px 0;
}

.form-input {
    padding: 12px;
    width: 100%;
    background-color: var(--input-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color);
}

.form-container {
    text-align: left;
    padding: 25px;
    width: min(500px, 100%);
    border-radius: 12px;
    border: 1px solid var(--divider-color);
}

.form-container-full-width {
    text-align: left;
    padding: 25px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--divider-color);
}

.form-container h1 {
    text-align: center;
}

.form-button {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 16px;
}

#termine-form {
    width: 100%;
}

.termine-card {
    display: flex;
    flex-flow: row;
    min-height: 150px;
}

.termine-info {
    flex: 1;
    margin: 8px;
}

.danger-zone {
    border: solid 1px var(--red);
    background-color: var(--red-shade);
}

/* ========== AVAILABILITY RADIO BUTTONS ========== */
.availability-container {
    display: flex;
    flex-direction: column;
}

.availability-label input[type="radio"] {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.availability-label {
    padding: 7px;
    margin: 2px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;

    background-color: var(--input-color);
}

.availability-label[data-value="1"]:has(input[type="radio"]:checked) {
    background-color: #fef394;
    color: #c1772d;
}

.availability-label[data-value="2"]:has(input[type="radio"]:checked) {
    background-color: #c7e0a9;
    color: #527b24;
}

.availability-label[data-value="3"]:has(input[type="radio"]:checked) {
    background-color: #f5b8b5;
    color: #ba3228;
}

.availability-label .icon-container {
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
}

/* ========= FAQ Section ========== */
details {
    padding: 12px;
    border-bottom: solid 1px var(--divider-color);
    cursor: pointer;
}

hr {
    border: none;
    height: 1px;
    background-color: var(--divider-color);
}

/* ========= Home / Dashboard ========== */
.post{
    flex-flow: row;
    align-items: center;
}

.post a{
    text-decoration: none;
    color: var(--text-color);
}

.post img{
    border-radius: 8px;
    margin-right: 12px;
    height: 100px;
    width: 150px;
    object-fit: cover;
}

.post p {
    margin: 5px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}