
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bs-body-font-size: 1.1rem;
}

.bg-primary {
    background-color: #0089BC !important;
}

* {
    font-family: 'Noto Sans', sans-serif !important;
}

.container {
    max-width: 1024px;
}

.fullheight {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.of-base-color {
    color: #0089BC;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
main.admin > div {
    width: 1024px;
    max-width: unset !important;
}

.vstretch {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.container {
    --bs-gutter-x: 3rem;
    display: block;
}

.nav-link {
    color: black;
}
.nav-link:hover {
    color: #0089BC;
}
.dropdown-item:hover {
    background-color: #d9eef5;
}
.dropdown-item:active {
    background-color: #0089BC;
    color: white;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show, .navbar-nav .nav-link:focus {
    color: #0089BC;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    font-family: Montserrat, sans-serif !important;
    margin-bottom: 1rem;
    margin-top: 0;
    color: #0089BC;
}

h1, main > h2:first-child {
    font-size: 2rem;
}
h2 {
    font-size: 1.5rem;
}
h3 {
    font-size: 1.25rem;
}
h4 {
    font-size: 1.1rem;
}
h5 {
    font-size: 1rem;
}
/* spacing between paragraphs and subsequent headings (Fließtexte) */
:is(p, ul) + :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 2.2rem;
}

nav, footer {
    background-color: #d9eef5;
}

.navbar-brand img {
    max-width: 250px;
    height: auto;
}
img.persona-header {
    height: 60px;
    width: auto;
    border-radius: 50%;
    margin-right: 0.5rem;
}
@media (min-width: 520px) {
    .navbar-brand img {
        max-width: 500px;
        height: auto;
    }
}
@media (min-width: 992px) {
    .navbar-brand img {
        height: 150px;
        width: auto;
    }
    img.persona-header {
        height: 100px;
        margin-right: 1rem;
    }
}
/* navigation menu toggle button for mobile devices */
.navbar-toggler i {
    color: #0089BC;
}
.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: 0 0 0 0.2rem #0089BC !important;
}

main.singlecol {
    background-color: #d9eef5;
}

main.singlecol > .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 88ch;
    background: white;
    padding-top: 30px;
    padding-bottom: 40px;
}

@media (min-width: 992px) {
    main.singlecol > .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.answer {
    border: 1px solid #aaa;
}

.colored {
    color: #0089BC;
}
.colored-red {
    color: #ff7643;
}

.bg-colored-bright {
    background-color: #d9eef5;
}


a {
    position: relative;
    text-decoration: none;
    color: #0089BC;
}
a.link {
    cursor: pointer;
}
a.colored, a.link {
    color: #0089BC;
}
a.underlined:hover {
    text-decoration: underline;
}
a.animated::before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #0089BC;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
a.animated.colored::before, a.animated.colored::after {
    background-color: #0089BC;
}
a.animated::after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #0089BC;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
a.animated:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
a.animated:hover::after {
    transform: scaleX(0);
    transform-origin: right;
}

/* buttons and links styled as buttons */
.button-like-baseline {
    margin-top: 0.375rem;
    font-size: 1rem;
}
a.button, button {
    font-size: 1rem !important;
    padding: 0.375rem 0.75rem;
}
a.button, button.colored {
    border: 1px solid #4dadd1;
    border-radius: 0.25rem;
    background-color: white;
    color: #0089BC;
    transition: background-color 0.15s ease-in-out;
}
a.button {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
}
a.button:hover, a.button:focus,
button.colored:hover:not(:disabled) {
    background-color: #0089BC;
    text-decoration: none;
    color: white;
}
button:disabled, button[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
    color: #888;
    border-color: #aaa;
}
a.button.red {
    border-color: #ff7643;
    color: #ff7643;
}
a.button.red:hover, a.button.red:focus {
    background-color: #ff7643;
    color: white;
}

.rating-button.active {
    background: #0089BC;
}

.rating-bar {
    background: #0089BC;
    height: 30px;
}

.form-check-input:checked {
    background-color: #0089BC;
    border-color: #0089BC;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem #d9eef5;
}

img.party {
    height: 100px;
}

.sources {
    color: #666;
    font-size: 80%;
}

.source {
    color: #999;
}

.answers.hide-party-names .reveals-party-name {
    display: none;
}

.link {
    color: #0089BC;
    cursor: pointer;
}

.question-list-item {
    background: #f5f5f5;
    margin-bottom: 10px;
}

.question-list-item i.bi-plus-circle:hover {
    color: #0089BC;
}

input.question-weight {
    width: 3.5rem;
    border-radius: 0.25rem;
}

.hover-outline {
    border: 1px solid transparent;
    box-sizing: border-box;
}
.hover-outline:hover {
    border: 1px solid #0089BC;
    cursor: pointer;
}

textarea::placeholder {
    color: #a0a0a0;
    font-style: italic;
}

.info-box {
    background: #f8f8f8;
    border-left: 4px solid #0089BC;
    padding: 20px;
    margin: 20px 0;
}

.answer .response ul:last-child {
    margin-bottom: 0;
}

.answer .response li {
    margin-bottom: 5px;
}

.answer .response li p {
    margin-bottom: 0;
}

.answer .response > p:first-child {
    background: rgba(239, 239, 239, 0.3);
    padding: 15px;
    border-left: 4px solid #0089BC;
}

.error {
    border-left: 4px solid red;
    padding-left: 20px;
}

.disclaimer {
    padding: 25px 0;
    color: #888;
    background-color: #f3fafc;
    font-size: 90%;
}

address {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.cookie-banner button.accept {
    color: #0089BC;
    border-color: #0089BC;
}
.cookie-banner button.accept:hover {
    background-color: #0089BC;
    color: white;
}

* > p:last-child {
    margin-bottom: 0;
}

/* top tabs (used in "question" pages) */
.top-tabs {
    display: flex;
    background-color: transparent;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    font-size: 85%;
}
.top-tabs:not([style*="display: none"]) + main > h1 {
    margin-top: 0 !important;
}
.top-tab.active {
    background-color: #f3fafc;
}
.top-tab {
    flex: 1;
    padding: 10px;
    background-color: white;
    margin-right: 3px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 4px;
    cursor: pointer;
    display: grid;
    place-items: center;
    text-align: center;
}


.flow-box {
    border: 1px solid #0089BC;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.flow-container {
    position: relative;
    margin-bottom: 2rem;
    font-size: 80%;
    background-color: #f3fafc;
}
.flow-container a {
    margin-top: 1rem;
}
.flow-arrow {
    position: absolute;
    color: #0089BC;
    font-size: 1.5rem;
    z-index: 1;
}
@media (min-width: 768px) {
    .flow-box {
        min-height: 150px;
    }
    .flow-arrow {
        right: -24px;
        top: 50%;
        transform: translateY(-50%);
    }
}
@media (max-width: 767px) {
    .flow-arrow {
        bottom: -33px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }
}

.user-area, .walkthrough {
    .party-row {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        gap: 1rem;
    }

    .party-logo.disabled {
        filter: grayscale(100%);
    }

    .tooltip {
        position: relative;
        display: inline-block;
    }

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 200px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -100px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

    .num-ratings {
        font-size: 80%;
        margin-top: 1rem;
    }

    .party-status {
        display: none;
        font-size: 50%;
    }

    .party-rating-indicator {
        border-radius: 3px;
        display: inline-block;
        cursor: default;
        opacity: 1.0;
        background-color: transparent;
        border-width: 1px;
        border-style: solid;
        border-color: black;
        color: black;
    }

    .party-rating-indicator.unrated {
        color: #bbb;
        border-color: #bbb;
    }

    .party-status.with-ratings {
        .party-rating-indicator {
            color: white;
        }
        .party-rating-indicator.r0 {
            background-color: #ff7643;
            border-color: #ff7643;
        }
        .party-rating-indicator.r1 {
            background-color: #c07b62;
            border-color: #c07b62;
        }
        .party-rating-indicator.r2 {
            background-color: #808080;
            border-color: #808080;
        }
        .party-rating-indicator.r3 {
            background-color: #40859e;
            border-color: #40859e;
        }
        .party-rating-indicator.r4 {
            background-color: #0089BC;
            border-color: #0089BC;
        }
        .party-rating-indicator.unrated {
            background-color: transparent;
            border-color: black;
            color: black;
        }
    }
}