
@import "datebox.css";
:root {
    /* Dimensionen und Schriftgrößen */
    --header-height: 3rem;
    --nav-width: 68px;
    --nav-expanded-width: 250px;
    --normal-font-size: 1rem;
    --z-fixed: 100;
    --body-font: "Montserrat", sans-serif, "google";

    /* Farben */
    --first-color: #4723D9;
    /* nicht verwendet */
    --first-color-light: #AFA5D9;
    /* nicht verwendet */
    --white-color: #F7F6FB;
    --text-color: #000000;
    --primary-color: #4a4b9a;
    --secondary-color: #f0f0f0;
    /* nicht verwendet */
    --accent-color: #007bff;
    --primary-color-f: #4a90e2;
    /* nicht verwendet */
    --secondary-color-f: #f5f5f5;
    /* nicht verwendet */
    --accent-color-f: #e74c3c;
    /* nicht verwendet */
    --text-color-f: #ffffff;
    --hover-color-f: #3498db;
    --background-color: #ffffff;
    --Icon-hightlight: #f19229;
    --Icon-normal: #ffffff;
    --heading-color: #4a4b9a;
    --footer-color: #17171d;
    /* nicht verwendet */
}

/* Grundlegende Stilregeln */
@media screen and (max-width: 767px) {
    * {
        max-width: 100vh;
    }
}

*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}

a {
    text-decoration: none;
}

/* Header */
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1rem;
    background-color: var(--Icon-normal);
    z-index: var(--z-fixed);
    transition: .5s;
}

/* Navbar */
.navbar-brand {
    margin-left: 20px;
}

.navbar-custom {
    background-color: var(--background-color);
    width: 100%;
    transition: all 0.5s;
    padding: 1rem;
}

.navbar-nav {
    gap: 1.2rem;
}

.navbar-nav .nav-link {
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.navbar-nav .nav-link:hover {
    color: var(--Icon-hightlight);
}

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--primary-color);
    padding: .5rem 1rem 0 0;
    transition: width 0.5s;
    z-index: var(--z-fixed);
}

.sidebar.show {
    width: var(--nav-expanded-width);
    visibility: visible;
}

.nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.nav-logo,
.nav-link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem;
}

.nav-logo {
    margin-bottom: 2rem;
}

.nav-link {
    position: relative;
    color: var(--Icon-normal);
    margin-bottom: 1.5rem;
    transition: .3s;
}

.nav-link:hover {
    color: var(--Icon-hightlight);
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inhalte */
.content-padded {
    padding-left: var(--nav-expanded-width);
    transition: padding-left 0.5s;
}

.height-100 {
    height: 100vh;
}

.active {
    color: var(--Icon-hightlight);
}

.event {
    background-color: var(--background-color);
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.event:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.event-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.event-date {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-description {
    font-size: 16px;
}

/* Sonstiges */
.gap-6 {
    gap: 3rem;
}
.gap-5 {
    gap: 2.5rem;
}
.gap-4 {
    gap: 2rem;
}
.gap-3 {
    gap: 1.5rem;
}
.gap-2 {
    gap: 1rem;
 }
.gap-1 {
    gap: .5rem;
}

/* Footer */
.footer {
    background-color: var(--footer-color);
    /* verwendet */
    color: var(--Icon-normal);
    padding: 20px 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    margin-top: 20px;
}

/* Custom */
.zweizeilig {
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* Maximal 2 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Menü */
.mobile-menu {
    background-color: var(--Icon-normal);
    position: absolute;
    left: 0;
    width: 100%;
    height: 0;
    z-index: var(--z-fixed);
    overflow: hidden;
    text-align: center;
    transition: height 1s;
    box-shadow: 0 .5rem 0.25rem rgba(0, 0, 0, .15);
}

.mobile-menu.show {
    height: auto;
}

/* Medien Queries */
@media screen and (max-width: 767px) {
    .navbar-brand {
        display: none;
    }

    .content-padded {
        padding-left: 0;
    }
    main.container.is-logged-in, .background-img.is-logged-in, header.is-logged-in {
        margin-left: var(--nav-width);
        width: calc(100% - var(--nav-width));
    }
    .fc .fc-toolbar.fc-header-toolbar {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    .print-button {
        display: none;
    }
    .fc .fc-list-event-graphic, .fc .fc-list-event-time {
        white-space: pre-wrap;
    }
}

@media screen and (min-width: 768px) {
    .sidebar {
        visibility: visible;
    }

    .header {
        padding-left: var(--nav-width);
    }
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
    }
    body {
        display: unset;
    }
}


@media (min-width: 768px) and (max-width: 991px) {

    body {
        display: unset;
    }
    .search-container form .col-md-5,
    .search-container form .col-md-2,
    .search-container form .col-md-1 {
        flex: 1 0 100%;
    }

    .search-container form .col-md-5 {
        flex: 2;
    }
}

@media (min-width: 992px) {
    .search-container form .col-md-5 {
        flex: 2 0 40%;
    }

    .search-container form .col-md-2 {
        flex: 1 0 20%;
    }

    .search-container form .col-md-1 {
        flex: 1 0 10%;
    }
}

/* Überschriften */
.custom-heading {
    color: var(--heading-color);
}

h1,
h2,
h3 {
    color: var(--primary-color);
}

h1 {
    font-size: 44px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 1rem;
}

/* Sonstiges */
.main-container {
    position: relative;
    margin-top: -50px;
    z-index: 1;
    margin-bottom: 30px;
    padding: 0px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px dotted rgba(0, 0, 0, .125);
}

.card.registrierung {

    border: 1px solid rgba(0, 0, 0, .125);
}

.card .card-body {
    display: grid;
    flex-direction: column;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
}

.card.registrierung .card-header {
    background-color: #4a4b9a;
    color: #fff;
}

.background-img {
    overflow: hidden;
    position: relative;
}

.background-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pointer {
    cursor: pointer;
}

.btn-primary {
    background-color: #4a4b9a !important;
}

body .ui-messages .ui-messages-info {
    background-color: #28a745;
    border-color: #4a4b9a;
    color: #000;
}

/* pagination */

.pagination {
    position: relative;
}

.pagination-container {
    width: 100%;
}

.pagination ul {
    position: relative;
    margin: 0;
    left: 0;
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
}

.pagination-list-container {
    width: auto;
    /*max-width: calc(100% - 190px);*/
    overflow: hidden;
    position: relative;
}

.pagination .control {
    padding: 0;
    line-height: normal;
    position: relative;
    margin-top: 15px;
}

.pagination .control:hover {
    color: #024987;
    text-decoration: underline;
}

.pagination .control:hover svg #stroke {
    stroke: #024987;
}

.pagination .control svg {
    top: calc(50% - 10px);
    position: absolute;
    width: 13px;
    height: 20px;
}

.pagination .control.next svg {
    right: 0;
}

.pagination .control.prev span {
    padding-left: 25px;
}
.pagination .control.next span {
    padding-right: 25px;
}

.pagination ul {
    margin-bottom: 0;
}

.pagination ul li {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    height: 100%;
    vertical-align: top;
    float: left;
    padding: 10px 5px;
}

.pagination ul li::before {
    content: none;
}

.pagination ul li span {
    display: inline-block;
}

.pagination ul li a {
    font-weight: 400;
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.pagination li a:hover {
    color: #4a4b9a;
}

.pagination li.current,
.pagination li.current a {
    color: #4a4b9a;
    font-weight: 700;
}

/*
    Datatable Styling
 */

body .ui-datatable.ui-datatable-striped .ui-datatable-data>tr.ui-datatable-odd {
    background-color: #f2f2f2;
}

/* Primefaces Calendar/Timetable */

.fc .fc-timegrid-axis-frame {
    justify-content: center;
}

body .fc th {
    background: #4a4b99;
    border: 1px solid #dde1e5;
    color: #fdfdfd;
}

body .fc .fc-event {
    background: #4a4b9a;
    border: 0px solid #4a4b9a;

}

body .fc .fc-toolbar .fc-button {
    background: #4a4b9a;
    border: 1px solid #4a4b9a;
}

body .fc .fc-toolbar .fc-button:active, body .fc .fc-toolbar .fc-button.fc-button-active, body .fc .fc-toolbar .fc-button:not(:disabled):hover {
    background: #fff;
    border-color: #0b7ad1;
    color: #4a4b9a;
}

.ui-tooltip:not([role]) {
    background: #ed7c00;
    color: #fff;
}

.fc .fc-list-event:hover td {
    background-color: #ed7c00;
}

.fc-theme-standard .fc-list-day-cushion {
    color: #000;
}

.fc-description-button.fc-button.fc-button-primary {
    display: none;
}

.color-inherit {
    color: inherit;
}
.color-inherit:hover {
    color: inherit;
}
.form-switch .form-check-input {
    background-repeat: no-repeat;
}