
@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;
    --bs-primary: #000;
    --bs-primary-rgb: 0, 0, 0;

    /* site palette (define_colors.inc.php), exposed for JS apps (e.g. the Vue course manager) */
    --color-bg: #fff;
    --color-text: #000;
    --color-accent: #0d9488;
    --color-accent-dark: #0c867b;
    --color-accent-bright: #56b5ac;
    --color-accent-complementary: #f26b77;
    --color-bg-accent-bright: #dbefee;
    --color-bg-accent-brighter: #f3fafa;
    --color-bg-complementary-bright: #fee9eb;
}
.btn-primary {
    --bs-btn-bg: #000;
    --bs-btn-hover-bg: #0d9488;
    --bs-btn-active-bg: #0d9488;
    --bs-btn-border-color: #0000;
    --bs-btn-hover-border-color: #0000;
}

.bg-primary {
    background-color: #0d9488 !important;
}

* {
    font-family: 'Open Sans', sans-serif;
}

.logo, .fixedwidth {
    font-family: Courier Prime, Courier New, monospace;
    font-weight: 300;
}
.logo {
}

.container {
    max-width: 1024px;
}

.fullheight {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.of-base-color {
    color: #0d9488;
}

.frame {
    color: #000;
    background: #dbefee;
}

main {
    color: #000;
    background: #fff;
    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: #0c867b;
}
.dropdown-item:hover {
    background-color: #dbefee;
}
.dropdown-item:active {
    background-color: #0d9488;
    color: white;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show, .navbar-nav .nav-link:focus {
    color: #0d9488;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    margin-bottom: 1rem;
    margin-top: 0;
    color: #0d9488;
}

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: #dbefee;
}

.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: #0d9488;
}
.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: 0 0 0 0.2rem #0d9488 !important;
}

main.singlecol {
    background-color: #dbefee;
}

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: #0d9488;
}
.colored-red {
    color: #f26b77;
}

.bg-colored-bright {
    background-color: #dbefee;
}

/* links */
a {
    position: relative;
    text-decoration: none;
    color: #000;
}
a.link {
    cursor: pointer;
}
a:hover {
    color: #0d9488;
}
a.colored, a.link {
    color: #0d9488;
}
a.underlined:hover {
    text-decoration: underline;
}
a.animated::before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
a.animated.colored::before, a.animated.colored::after {
    background-color: #0d9488;
}
a.animated::after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    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;
}
/*
.frame {
    a {
        color: #0d9488;
    }
}
*/

/* buttons and links styled as buttons */
button, input[type="submit"] {
    background: #fff;
    border: 1px solid #ccc;
}
.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 #56b5ac;
    border-radius: 0.25rem;
    background-color: white;
    color: #0d9488;
    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),
input[type="submit"]:hover:not(:disabled) {
    background-color: #0d9488;
    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: #f26b77;
    color: #f26b77;
}
a.button.red:hover, a.button.red:focus {
    background-color: #f26b77;
    color: white;
}

.rating-button.active {
    background: #0d9488;
}

.rating-bar {
    background: #0d9488;
    height: 30px;
}

.form-check-input:checked {
    background-color: #0d9488;
    border-color: #0d9488;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem #dbefee;
}

.link {
    color: #0d9488;
    cursor: pointer;
}

.hover-outline {
    border: 1px solid transparent;
    box-sizing: border-box;
}
.hover-outline:hover {
    border: 1px solid #0d9488;
    cursor: pointer;
}

textarea::placeholder {
    color: #a0a0a0;
    font-style: italic;
}

.info-box {
    background: #f8f8f8;
    border-left: 4px solid #0d9488;
    padding: 20px;
    margin: 20px 0;
}

.error {
    border-left: 4px solid red;
    padding-left: 20px;
}

.disclaimer {
    padding: 25px 0;
    color: #888;
    background-color: #f3fafa;
    font-size: 90%;
}

address {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.cookie-banner button.accept {
    color: #0d9488;
    border-color: #0d9488;
}
.cookie-banner button.accept:hover {
    background-color: #0d9488;
    color: white;
}

* > p:last-child {
    margin-bottom: 0;
}

/* top tabs (used in "question" pages) */
.top-tabs {
    display: flex;
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    font-size: 85%;
}
.top-tabs:not([style*="display: none"]) + main > h1 {
    margin-top: 0 !important;
}
.top-tab.active {
    background-color: #0c867b;
    color: #000;
}
.top-tab {
    flex: 1;
    padding: 10px;
    background-color: white;
    margin-right: 3px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    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 #0d9488;
    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: #f3fafa;
}
.flow-container a {
    margin-top: 1rem;
}
.flow-arrow {
    position: absolute;
    color: #0d9488;
    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);
    }
}

.copyright {
    border-top: 1px solid #222;
}

/* Query input container and textarea with embedded submit button */
.query-container {
    position: relative;
    max-width: 100%;
    margin: 1rem 0;
}

.query-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 1.3em;
    padding-bottom: 3em;
    transition: border-color 0.2s ease;
}

.query-wrapper:focus-within {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px #dbefee;
}

textarea.query {
    width: 100%;
    min-height: 24px;
    max-height: 200px;
    padding: 0;
    border: none;
    outline: none;
    resize: none;
    overflow-y: hidden;
    font-family: 'Courier Prime', Courier New, Courier, monospace;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    background: transparent;
}

textarea.query::placeholder {
    color: #9ca3af;
}

.query-submit-btn {
    position: absolute;
    right: 1em;
    bottom: 1em;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #0d9488;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.query-submit-btn:hover:not(:disabled) {
    background-color: #56b5ac;
}

.query-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.query-submit-btn svg {
    width: 16px;
    height: 16px;
    color: white;
}

.card {
    --bs-card-bg: white;
    --bs-card-cap-bg: transparent;
}

.card-header {
    border-bottom: 0;
}