/* Body Styling */
body {
    padding: 0;
    margin: 0 auto;
    max-width: 2000px;
    background: #222629;
}

/* Background Styling */
.background {
    background: rgba(0, 0, 0, 0.9) url(images/background.jpg) no-repeat center top;
    background-size: cover;
}

.background li,
.background p {
    text-shadow: 1px 1px 4px #000;
}

/* Main Navigation */
#main-navigation-con {
    background: #5ea758;
}

.navbar-brand,
.navbar-brand img {
    height: 45px;
    margin: 0;
    padding: 0;
}

.nav-link,
.navbar-brand {
    color: #fff;
    cursor: pointer;
    box-sizing: content-box;
}

.nav-link {
    margin-right: 1em !important;
    padding-right: 0.5rem;
}

.nav-link.active,
.nav-link:hover {
    color: #1a1a1a;
}

.navbar-brand:hover {
    filter: invert(0.9);
    color: #fff;
}

.nav-link.active {
    text-decoration: underline;
}

.navbar-collapse {
    justify-content: flex-end;
}

/* Header Section */
.header {
    background-image: url(images/background.png);
    background-size: contain;
    background-position: center;
}

.header,
.start,
div.anchor {
    position: relative;
}

/* Carousel */
.start .carousel-item {
    width: 100%;
    padding-top: 100%;
    position: relative;
}

.start .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: dashed 3px #5ea758;
}


/* Descriptions */
.description {
    position: absolute;
    top: 45%;
    transform: translate(0, -55%);
    text-align: center;
}

.mydescription {
    text-align: center;
    padding-top: 15px;
}

h1,
h2 {
    color: #dab4e6;
}

.mydescription p {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.5;
}

.mydescription button {
    border: 1px solid #5ea758;
    background: #5ea758;
    border-radius: 3px;
    color: #fff;
}

.mydescription button:hover {
    border: 1px solid #fff;
    background: #fff;
    color: #000;
}

/* Event Gallery Description */
.background-box {
    background-color: rgba(95, 167, 88, 0.9);
    border-radius: 15px;
    padding: 15px 20px;

    /* Textfarbe für besseren Kontrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.background-box p {
    margin: 0;
    color: rgb(20, 20, 20);
    font-weight: 500;
    font-size: 1.2rem;
    text-shadow: none !important;
}

span[title] {
    text-decoration: underline;
    cursor: help;
}

/* Features */
.features {
    margin: 0 auto;
    padding: 1em;
    position: relative;
}

.feature-title {
    color: #ddd;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.features img {
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
}

.features .btn,
.date .list-group-item {
    background-color: #5ea758;
    border: 1px solid #5ea758;
    color: #fff;
}

.features .btn:hover {
    background-color: #333;
    border: 1px solid #333;
}

/* Date List */
.date .list-group-item {
    margin: 20px;
    cursor: initial;
    background-color: transparent;
}

/* Text */
p {
    color: #e6e6e6;
}

li,
p {
    font-weight: 600;
}

/* Panel and Forms */
.panel-body,
.row a {
    word-break: break-word;
}

.panel,
.form-control,
.panel-body,
input,
label,
textarea {
    background-color: #888;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.panel {
    margin-bottom: 20px;
    border: solid 1px #5ea758;
    border-radius: 4px;
}

div.panel-heading {
    color: #ddd;
}

div.panel-body {
    color: #fff;
}

.panel div {
    margin: 10px 15px;
}

.panel i {
    font-size: 0.9rem;
}

.form-control::-webkit-input-placeholder {
    color: #ddd;
}

/* Footer */
.page-footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-copyright {
    color: #666;
    padding: 15px 0;
}

.page-footer p {
    margin-bottom: 0;
}

/* Misc */
.row {
    margin: 0;
    padding-bottom: 15px;
}

div.anchor {
    display: block;
    top: -74px;
    visibility: hidden;
}

.simple .list-group-item {
    border: 0;
    padding: 0;
    background-color: transparent;
    color: #ddd;
}

ul,
ul.simple {
    padding-left: 1em;
}

.dia {
    display: block;
    margin: auto;
    height: 700px;
    object-fit: contain;
    background-color: rgba(170, 170, 170, 0.6);
    border: 0;
}

.back-to-top {
    background: #5ea758;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1em;
    z-index: 100;
}

.arrow {
    border: solid #000;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.up {
    transform: rotate(-135deg);
}

/* External Links */
a[href^=http]:not([href*="haplozeiger.de"]):after {
    content: "";
    background: url(images/external-link.svg) center right no-repeat;
    background-size: 12px;
    padding-right: 13px;
}

/* No Click */
.noclick * {
    pointer-events: none !important;
    touch-action: none !important;
}

/* Media Queries */
@media (max-width: 768px) {

    .collapse *,
    .collapsing * {
        border: 0;
    }

    .background {
        background-image: url(images/background_mobile.jpg);
    }

    .description {
        top: 0;
        transform: none;
    }

    .description,
    .mydescription {
        padding: 0 15px;
    }

    .mydescription h1,
    .start h1 {
        font-size: 2em;
    }

    .mydescription p,
    .start p {
        font-size: 1.1rem;
    }

    @media (max-width: 576px) {
        .carousel {
            margin: 0 -1em;
        }
    }

    @media (max-width: 1200px) {
        .dia {
            height: 500px;
        }
    }
}