/*Debugging ------------------------------------------------------------------------------------------------------------------------*/

/*{
outline: 0.5px dotted red;
}*/


/*Farbdefinitionen ----------------------------------------------------------------------------------------------------------------*/

:root {
    --primary-color: #002060;
    --secondary-color: #e1e8ef;

    --primary-text: rgb(234, 234, 234);
    --secondary-text: rgb(24, 24, 24);
}

/*Allgemeine Layoutanweisungen ----------------------------------------------------------------------------------------------------------------*/
html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}


body {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
    max-width: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    flex-shrink: 0;
    overflow-x: hidden;

}

body * {
    box-sizing: border-box;
}

.loader {

    position: absolute;
    top: 50%;
    left: calc(50% - 40px);
    width: 80px;
    height: 80px;
    z-index: 100;
    animation-name: loader;
    animation-duration: 1.3s;
    animation-timing-function: cubic-bezier(.45, .05, .55, .95);
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes loader {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1.1);
    }
}

/*Einzelelemente ----------------------------------------------------------------------------------------------------------------*/
h1,
h2,
p,
ul,
li {
    user-select: none;
    /*margin: 0;*/
}

h1 {
    font-size: 29px;
}

p,
a,
label {
    font-size: 18px;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    color: rgb(73, 73, 73);
}

button,
input[type=button],
input[type=submit],
.button-large {
    background-color: var(--primary-color);
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: 1px 1px 10px rgba(29, 29, 29, 0.5);
    cursor: pointer;
    width: fit-content;
    color: var(--primary-text);

}



button:active,
input[type=button]:active,
input[type=submit]:active,
.button-large:active {
    box-shadow: inset 1px 1px 5px rgb(22, 22, 22);
}

button:hover,
input[type=button]:hover,
input[type=submit]:hover,
.button-large:hover {
    background-color: var(--secondary-color);
    color: rgb(0, 0, 0);
}



.button-small {
    background-color: var(--primary-color);
    border: none;
    padding: 5px 5px;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 1px 1px 5px rgba(29, 29, 29, 0.5);
    cursor: pointer;
    width: fit-content;
    color: var(--primary-text);

}

.td-grey {
    color: rgb(175, 175, 175);
}

.td-green {
    color: rgb(0, 163, 0);
}

.td-red {
    color: rgb(233, 0, 0);
}

.error-msg {
    width: 100%;
    height: fit-content;
    padding: 5px 10px;
    margin: 10px 0;
    background-color: rgba(255, 0, 0, 0.2);
    border: 1px solid red;
    color: rgb(233, 0, 0);
    border-radius: 5px;
}

.success-msg {
    width: 100%;
    height: fit-content;
    padding: 5px 10px;
    margin: 10px 0;
    background-color: rgba(0, 178, 0, 0.2);
    border: 1px solid rgb(0, 178, 0);
    color: rgb(0, 164, 0);
    border-radius: 5px;
}

.info-msg {
    width: 100%;
    height: fit-content;
    padding: 5px 10px;
    margin: 10px 0;
    background-color: rgba(0, 0, 178, 0.2);
    border: 1px solid rgb(0, 0, 178);
    color: rgb(0, 0, 164);
    border-radius: 5px;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    cursor: default;
    user-select: none;

}

.portal-table thead {
    font-weight: bold;
    border-bottom: 2px solid grey;


}

.portal-table tr {
    height: 40px;
    margin-top: auto;
    margin-bottom: auto;
}

.portal-table img {
    height: 40px;
    width: 40px;
    border-radius: 100%;
    object-fit: scale-down;
}

.portal-table tr:nth-child(even) {
    background-color: lightgrey;
}

.portal-table td {
    width: fit-content;
    text-wrap: nowrap;
    padding: 5px;

}

.status-active {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px;
    font-size: 14px;
    border: 1px solid rgb(0, 203, 0);
    color: rgb(0, 203, 0);
    border-radius: 5px;
    text-wrap: nowrap;
}

.status-inactive {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px;
    font-size: 14px;
    border: 1px solid rgb(246, 108, 10);
    color: rgb(246, 108, 10);
    border-radius: 5px;
    text-wrap: nowrap !important;
}

.status-blocked {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px;
    font-size: 14px;
    color: red;
    border: 1px solid red;
    border-radius: 5px;
}

.table-btn-blue {
    height: 30px;
    width: 30px;
    padding: 0;
    margin: 5px;
    text-align: center;
    border-radius: 5px;
    background-color: blue;
    color: var(--primary-text);
}

.table-btn-blue:hover {
    background-color: rgb(128, 128, 255);
    color: rgb(49, 49, 49);
}

.table-btn-green {
    height: 30px;
    width: 30px;
    padding: 0;
    margin: 5px;
    text-align: center;
    border-radius: 5px;
    background-color: rgb(0, 203, 0);
    color: var(--primary-text);
}

.table-btn-green:hover {
    background-color: rgb(128, 203, 128);
    color: rgb(49, 49, 49);
}

.table-btn-red {
    height: 30px;
    width: 30px;
    padding: 0;
    margin: 5px;
    text-align: center;
    border-radius: 5px;
    background-color: red;
    color: var(--primary-text);
}

.table-btn-red:hover {
    background-color: rgb(255, 171, 171);
    color: rgb(49, 49, 49);
}

.bordered-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid lightgrey;
    padding: 10px;
    border-radius: 15px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*HEADER UND NAVIGATION ----------------------------------------------------------------------------------------------------------------*/
header {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(255, 255, 255);
    border-radius: 0px 0px 8px 8px;
    box-shadow: 0 2px 5px rgb(120, 120, 120);
    z-index: 100;
}

.logo {
    height: 80px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 90%;

    cursor: pointer;
}

.user-img {
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    overflow: hidden;

}

.user-img img {
    height: 100%;
    width: 100%;
    object-fit: scale-down;
}

/*Desktop-Navigation ---------------------------------------------------------------------------------------------------------- */
nav {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    margin: 8px;
    font-size: 35px;
}

nav a {
    font-size: 35px;
}

.user {
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-info {

    text-align: end;
    padding-right: 5px;
}

.user-info-name {
    font-size: 18px;
    font-weight: bold;
}

.user-info-ressort {
    font-size: 16px;
    font-style: italic;
}

/*Desktop-/Mobile-Navigation Links ----------------------------------------------------------------------------------------------------------------------------------*/


/*Mobile Navigation ----------------------------------------------------------------------------------------------------------------*/



/*Mobile-Navigation Dropdown */

/*Container */

/*INHALTSBERIECH --------------------------------------------------------------------------------------------------------------------------------------------------- */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    margin-top: 80px;
    background-color: rgb(240, 240, 240);
}

.sidebar {
    min-width: 300px;
    width: 30%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    box-shadow: 5px 5px 10px lightgrey;
    margin: 10px;
    padding: 15px;
    gap: 5px;
}

.sidebar>div,
.sidebar>a {
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    user-select: none;
}

.active {
    background-color: var(--primary-color);
}

.sub-menu {

    flex-direction: column;
    gap: 5px;
    padding-left: 55px;

}


.sub-menu a {
    font-size: 16px;
    padding-left: 25px;
}

.sub-menu i {
    align-self: left;
}

.content {
    min-width: 70%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    /*gap: 20px;*/
    padding: 10px 10px;

}

.dashboard {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;

}

.dashboard-card {
    max-width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: left;
    background-color: white;
    border-radius: 10px;
    box-shadow: 5px 5px 10px lightgrey;
    flex: 0 1 100%;
    padding: 10px;

}

.dashboard-card-image {
    width: 25%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card-image img {
    width: clamp(100%, 100%, 100px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    object-fit: scale-down;
}

.dashboard-card-information {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 50%;
    padding: 10px;
}

.dashboard-card-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 25%;
    padding: 10px;
}

.dashboard-aktuelles,
.dashboard-blog,
.dashboard-events {
    width: 33.3%;
    display: flex;
    background-color: white;
    border-radius: 10px;
    box-shadow: 5px 5px 10px lightgrey;
    flex: 0 1 200px;
}

.pinboard {
    width: 100%;
    display: flex;
    background-color: white;
    border-radius: 10px;
    box-shadow: 5px 5px 10px lightgrey;
    flex: 1 0 100%;
}



.landing-page-article:nth-child(1) {
    flex-direction: column-reverse;
}


.article {
    display: flex;
    flex-direction: column;

    height: fit-content;
    width: 100%;
    padding: 10px;
}

.column {
    flex-direction: column !important;
}

.row {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 10px;
}

.left-align {
    align-items: left;
}

.center-align {
    align-items: center;
    align-content: center;
    justify-content: center;
}

/*.landing-page-article * {
    outline: 0.5px dotted red;
}*/

.article-left {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 15px;
}

.article-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 15px;
}

.article-left img,
.article-right img {
    height: 100%;
    width: 100%;

}

.cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: 15px;
    padding: 0px;
}

.cards-container>div {
    flex: 1 0 300px;
}

.text {
    margin: 10px;
}

.line {
    align-self: center;
    width: 95%;
    height: 1px !important;
    background-color: rgb(211, 211, 211);
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0 !important;
}

/*Footer----------------------------------------------------------------------------------------------*/



footer {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: fit-content;

    border-radius: 8px 8px 0px 0px;
    background-color: var(--primary-color);
    color: rgb(234, 234, 234);


}

.footer-top a {
    text-decoration: none;
    color: rgb(234, 234, 234);
}

.footer-top a:hover {
    color: rgb(146, 146, 146);
}

.footer-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    padding: 0 10px 0 10px;
    word-wrap: break-word;
}

.footer-top-center {
    display: flex;
    flex-direction: column;
}


.footer-form input:not(input[type=button]) {
    border: none;
    padding: 10px;
    margin: 5px 0px;
    border-radius: 5px;
    font-size: 18px;
    height: 40px;
}

.footer-form input:focus {
    outline: 2px solid var(--secondary-color) !important;

}

.in-form-container {
    padding-bottom: 10px;
}

.checkbox {
    display: inline-block;
    position: relative;
    width: fit-content;
    padding: 10px 15px;
    margin: 5px 0px;
    cursor: pointer;
    color: black;
    border-radius: 15px;
    background-color: rgb(234, 234, 234);
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;

}

.checkbox:has(input:checked) {
    background-color: var(--secondary-colorer);
    border: 2px solid var(--secondary-color);
    color: rgba(11, 193, 206, 0.892);
}

.footer-middle {
    display: flex;
    flex-direction: column;
    height: fit-content;

    margin: 10px;
    border-top: 1px solid rgb(155, 155, 155);
    border-bottom: 1px solid rgb(155, 155, 155);

}

.footer-middle-center,
.footer-middle-left,
.footer-middle-right {
    padding: 5px 0px 5px 0px;
}


.footer-middle-left {
    display: flex;
    flex-direction: column;
}

.footer-middle img {
    width: auto;
    max-width: 100%;
    max-height: 100px;
    padding: 5px 0 5px 0;
}

.footer-middle span {
    width: 100%;
    text-align: left;
    padding: 0 0 5px 0;
}






.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: left;
    height: fit-content;
}

.footer-bottom a,
span {
    text-decoration: none;
    color: rgb(234, 234, 234);
    padding: 10px
}

.footer-bottom a:hover {
    color: rgb(146, 146, 146);
}

.footer-bottom-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-form * {
    width: 100%;
}



.sort-fieldset {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    border-radius: 10px;
}

.sort-fieldset>div {
    display: flex;
    align-items: baseline;
    width: fit-content;
    gap: 2px;

}

/*Responsive----------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 600px) {
    main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin: 0;
    }

    .dashboard-card {
        display: flex;
        flex-direction: column;
    }

    .dashboard-card div {
        width: 100%;
    }
}

@media only screen and (min-width: 760px) {


    .landing-page-article {
        flex-direction: row !important;
    }

    .article {
        display: flex;
        flex-direction: column;
        align-items: left;
        height: fit-content;
        width: 80%;
        align-self: center;
        padding-bottom: 15px;
    }

    .cards-container>div {
        flex: 0 0 300px;
    }

    footer {
        display: flex;
        flex-direction: column;
    }

    .footer-top {
        display: flex;
        flex-direction: row;



    }

    .footer-top-left,
    .footer-top-center,
    .footer-top-right {
        width: fit-content;
        max-width: 100%;
        min-width: 30%;
        padding: 5px;


    }

    .footer-top-center {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .footer-middle {
        display: flex;
        flex-direction: row;
        height: fit-content;
        border-top: 1px solid rgb(155, 155, 155);
        border-bottom: 1px solid rgb(155, 155, 155);

    }

    .footer-middle-center,
    .footer-middle-left,
    .footer-middle-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: top;
        align-items: left;
        margin: 10px 5px 10px 5px;

    }


    .footer-middle-center {
        padding-left: 10px;
        border-right: 1px solid rgb(155, 155, 155);
        border-left: 1px solid rgb(155, 155, 155);
    }

    .footer-middle img {
        width: auto;
        max-width: 100%;
        max-height: 100px;

    }

    .footer-bottom {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin: 0px 15px 5px 15px;
    }


}