:root {
    --ivm_blau: #0E69AB;
    --ivm_hintergrund: #f0f8ff;
    --ivm_orange: #f19654; /* Komplementaerfarbe zu ivm_blau */
    --ivm_horange: #FEE3CB;
    --ivm_grau: #d2d2d2;
    --ivm_hgrau: #DFDFDF; /* Helleres grau */
    --ivm_gelb: #E7E9B4;
    --ivm_metalisch_hblau_hell: #D9E7FB;
    --ivm_metalisch_blau_dunkel: #C8DBF9;
}

/* Allgemein */

html {
    font-size: 18px;    /* Basis Schriftgroesse */
}

body {
    background-color: var(--ivm_hintergrund) !important;
}

main {
    margin-bottom: 5em;
}

h1 {
    text-align: center;
    font-weight: bolder;
    text-decoration: none;
    font-size: 2.25em;
}

h2 {
    text-align: center;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    font-size: 1.65em;
    font-weight: bold;
}

/****** Navbar ******/

.navbar {
    background: var(--ivm_blau);
    box-shadow: 0 2px 4px rgb(177, 177, 177);
    padding: 0;
}

.navbar img {
    max-width: 8em;
    max-height: 3.5em;
    margin-left: 0.5em;
}

.nav-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.slogan {
    display: flex;
    flex-direction: column;
    color: white;
    min-width: 8rem;
}

.slogan p {
    margin: 0;
    margin-left: 1rem;
    font-size: 0.8rem;
}

/************/

.infotext {
    font-weight: normal;
    margin-top: 0.5em;
    margin-bottom: 2em;
}

.schuessel{
    display: none;
}

@media screen and (max-width: 545px) {
    h2 {
        margin-top: 1em;
    }
}

/* Knoepfe */

.knoepfe {
    border: none;
    background: var(--ivm_blau);
    text-shadow: 1px 1px 2px black;
    color: white;
    text-decoration: none;
    padding: 0.6rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    transition: transform 0.3s;
    font-weight: bold;
    cursor: pointer;
}

.knoepfe:checked {
    background: black;
}

.knoepfeLinks {
    text-decoration: none;
    color: white;
}

.knoepfe:hover {
    transform: scale(1.03);
}

/* Sucheingabe */

.form-div {
    display: flex;
    align-items: center;
}

.suche-form {
    text-align: center;
    margin: auto;
}

.input-group {
    height: 36px;
}

.suche-textfeld {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border: 1px solid lightgray;
    padding: 5px;
    margin: 0;
    width: 25em;
}

.suche-textfeld:focus {
    outline: 0;
}

.suche-textfeld:hover + .suche-button {
    background-color: var(--ivm_horange);
}

.suche-button {
    background-color: white;
    border: 1px solid lightgray;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 0 0.5rem;
}

.suche-button:focus, .suche-reset-button:focus {
    outline: none;
}

.suche-button:hover, .suche-reset-button:hover {
    background-color: var(--ivm_orange);
}

.suche-button i {
    font-size: 1.5rem;
}

.suche-reset-button {
    text-decoration: none;
    background-color: white;
    border: 1px solid lightgray;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

.suche-reset-button i {
    font-size: 1.5rem;
    color: black;
}

@media screen and (max-width:545px) {
    .suche-textfeld {
        width: 20em;
    }
}

@media screen and (max-width:450px) {
    .suche-textfeld {
        width: 18em;
    }

    .input-group i{
        font-size: 1.0rem;
    }
}

@media screen and (max-width:410px) {
    .suche-textfeld {
        width: 15em;
    }
}

@media screen and (max-width:350px) {
    .suche-textfeld {
        width: 12.5em;
    }
}

/* Buttons Anzeige nach Typ */

.filter-container {
    text-align: center;
    margin-top: 0.5em;
}

.typ-input {
    display: none;
}

.typ-button {
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    min-width: 12em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.typ-button:hover {
    background-color: #0c578d;
}

.typ-input:checked+.typ-button {
    background-color: #0b4c7a;
    pointer-events: none;
}

.typ-input:checked+.typ-button:hover {
    transform: scale(1.0) !important;
}

@media screen and (max-width:768px) {
    .typ-button {
        min-width: 9.0rem;
        font-size: 0.8rem;
        margin-left: 0.3rem;
        margin-right: 0.3rem;
    }
}

@media screen and (max-width:545px) {
    .typ-button {
        min-width: 8rem;
        font-size: 0.7rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
}

@media screen and (max-width:430px) {
    .typ-button {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 19rem;
        font-size: 1rem;
    }   
}

@media screen and (max-width:350px) {
    .typ-button {
        max-width: 16rem;
    }
}

/* Anzeige Ergebnisse */

.ergebnis-ul {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}

.ergebnis-li-titel {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline;
}

p.ergebnis-li-untertitel {
    font-size: 1rem;
    font-weight: normal;
    display: inline-block;
    vertical-align: top;
    text-align: left;
    min-width: 40rem;
    max-width: 40rem;
    margin-bottom: 0;
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width:992px) {
    p.ergebnis-li-untertitel {
        min-width: 30rem;
        max-width: 30rem;
        display: block;
    }

    .list-group-item {
        padding-left: 9;
        padding-right: 9;
    }
}

@media screen and (max-width:768px) {
    p.ergebnis-li-untertitel {
        display: none;
    }
}

@media screen and (max-width:350px) {
    .list-group-item {
        padding-left: 5;
        padding-right: 5;
    }
}

.ergebnis-li-titel i, .ergebnis-li-vorschau i {
    color: gray;
    font-size: 1.25em;
    vertical-align: middle;
}

.ergebnis-li-titel i:hover, .ergebnis-li-vorschau i:hover {
    color: var(--ivm_orange);
    font-size: 1.25em;
}

.titelzeile-div {
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.titelzeile-div:hover i {
    color: var(--ivm_orange);
}

p.ergebnis-li-titel {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    min-width: 40rem;
    max-width: 40rem;
    margin-bottom: 0;
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fa-angle-down {
    color: var(--ivm_orange) !important;
    margin-left: -0.25em !important;
}

.ergebnis-li-button {
    margin-left: 0.5em;
    margin-right: 0.5em;
}

.ergebnis-li-vorschau {
    text-align: center;
    height: auto;
}

.pdf-vorschau {
    margin: auto;
    margin-top: 0.5em;
    width: 800px;
    height: 25em;
}

/*----- Sprungbefehle -----*/

#scrollUp {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 1.35rem;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: #ffdfbf;
    opacity: 0.6;
    border-radius: 50%;
    transition: transform 0.3s;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--ivm_orange);
}

#scrollUp a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: black;
    font-size: 24px;
}

#scrollUp a::before {
    font-size: 24px;
}

#scrollUp:hover {
    transform: scale(1.1);
}

.fa-caret-up {
	color: #ff7600
}

@media screen and (max-width:992px) {
    p.ergebnis-li-titel {
        min-width: 30rem;
        max-width: 30rem;
    }

    .pdf-vorschau {
        width: 630px;
    }
}

@media screen and (max-width:768px) {
    .ergebnis-li-titel i, .ergebnis-li-vorschau i {
        font-size: 1em;
    }
    
    .ergebnis-li-titel i:hover, .ergebnis-li-vorschau i:hover {
        font-size: 1em;
    }

    .ergebnis-li-button {
        margin-left: 0.2em;
        margin-right: 0.2em;
    }
    
    p.ergebnis-li-titel {
        font-size: 0.9rem;
        min-width: 23rem;
        max-width: 23rem;
    }

    .pdf-vorschau {
        width: 450px;
    }

    #scrollUp {
        right: 15px;
    }
}

@media screen and (max-width:545px) {
    p.ergebnis-li-titel {
        min-width: 18rem;
        max-width: 18rem;
    } 

    .pdf-vorschau {
        width: 380px;
    }
}

@media screen and (max-width:450px) {
    p.ergebnis-li-titel {
        min-width: 15rem;
        max-width: 15rem;
        font-size: 0.8rem;
    }

    .pdf-vorschau {
        width: 320px;
    }
}

@media screen and (max-width:395px) {
    .ergebnis-li-titel i, .ergebnis-li-vorschau i {
        font-size: 0.8em;
    }
    
    .ergebnis-li-titel i:hover, .ergebnis-li-vorschau i:hover {
        font-size: 0.8em;
    }
    
    p.ergebnis-li-titel {
        min-width: 13rem;
        max-width: 13rem;
        font-size: 0.8rem;
    }   

    .pdf-vorschau {
        width: 280px;
    }
}

@media screen and (max-width:350px) {
    p.ergebnis-li-titel {
        min-width: 11rem;
        max-width: 11rem;
        font-size: 0.7rem;
    }   

    .pdf-vorschau {
        width: 240px;
    }

    .ergebnis-li-titel i, .ergebnis-li-vorschau i {
        font-size: 0.7em;
    }
    
    .ergebnis-li-titel i:hover, .ergebnis-li-vorschau i:hover {
        font-size: 0.7em;
    }
}

/*----- Footer -----*/

footer {
    display: flex;
    justify-content: center;
    background-color: var(--ivm_blau);
    color: white;
    box-shadow: 0 -2px 4px rgb(177, 177, 177);
    padding: 0.15rem;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 2px;
}

footer a, footer span {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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