/* BTTV-Look für LimeSurvey (Theme "mein_theme", erweitert Fruity)
   Farben und Schriften an https://www.bettv.de/ angelehnt. */

@font-face { font-display: swap; font-family: 'Noto Sans'; font-style: normal; font-weight: 400; src: url(../fonts/noto-sans-v38-latin-regular.woff2) format('woff2'); }
@font-face { font-display: swap; font-family: 'Noto Sans'; font-style: normal; font-weight: 600; src: url(../fonts/noto-sans-v38-latin-600.woff2) format('woff2'); }
@font-face { font-display: swap; font-family: 'Noto Sans'; font-style: normal; font-weight: 700; src: url(../fonts/noto-sans-v38-latin-700.woff2) format('woff2'); }
@font-face { font-display: swap; font-family: 'Georama'; font-style: normal; font-weight: 500; src: url(../fonts/georama-v13-latin-500.woff2) format('woff2'); }

:root {
    --bttv-red: #e2001a;
    --bttv-red-dark: #a80013;
    --bttv-black: #0e0e0e;
    --bttv-grey: #4a525d;
    --bttv-grey-light: #f1f2f4;
    --bttv-border: #e7e7e7;
    --bttv-white: #ffffff;
    --bttv-radius: 4px;
}

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    color: var(--bttv-black);
    background-color: var(--bttv-grey-light);
}

/* Überschriften wie auf der Webseite: Georama, Versalien */
h1, h2, h3, h4, h5, h6,
.survey-name, .group-title, .group-name, .question-text-title {
    font-family: 'Georama', 'Noto Sans', Arial, sans-serif;
    font-weight: 500;
    color: var(--bttv-black);
}
h1, .survey-name { text-transform: uppercase; line-height: 1.2; }
h2, .group-title, .group-name { text-transform: uppercase; }

a { color: var(--bttv-red); }
a:hover, a:focus { color: var(--bttv-red-dark); }

/* Container / Karten */
.survey-container,
.group-outer-container,
.question-container,
.card {
    background: var(--bttv-white);
    border-color: var(--bttv-border);
    border-radius: var(--bttv-radius);
    box-shadow: none;
}
.group-outer-container { border-top: 4px solid var(--bttv-red); }

/* Buttons */
.btn-primary,
.btn-primary:visited {
    background-color: var(--bttv-red);
    border-color: var(--bttv-red);
    color: var(--bttv-white);
    border-radius: var(--bttv-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-check:checked + .btn-primary {
    background-color: var(--bttv-red-dark) !important;
    border-color: var(--bttv-red-dark) !important;
    color: var(--bttv-white) !important;
}
.btn-outline-secondary, .btn-secondary, .btn-default {
    border-radius: var(--bttv-radius);
    border-color: var(--bttv-grey);
    background: var(--bttv-white);
    color: var(--bttv-grey);
    font-weight: 600;
}
.btn-outline-secondary:hover, .btn-secondary:hover, .btn-default:hover {
    background: var(--bttv-grey);
    color: var(--bttv-white);
}

/* Formularelemente */
.form-control, .form-select, textarea, select {
    border-radius: var(--bttv-radius);
    border-color: #cdcdcd;
}
.form-control:focus, .form-select:focus, textarea:focus, select:focus {
    border-color: var(--bttv-red);
    box-shadow: 0 0 0 .2rem rgba(226, 0, 26, .2);
}
.form-check-input:checked {
    background-color: var(--bttv-red);
    border-color: var(--bttv-red);
}
.form-check-input:focus {
    border-color: var(--bttv-red);
    box-shadow: 0 0 0 .2rem rgba(226, 0, 26, .2);
}

/* Fortschrittsbalken */
.progress { background-color: var(--bttv-border); border-radius: var(--bttv-radius); }
.progress-bar { background-color: var(--bttv-red); }

/* Pflichtfeld-Sternchen und Fehler */
.asterisk, .text-danger { color: var(--bttv-red); }
.ls-em-error, .alert-danger { border-left: 4px solid var(--bttv-red); }

/* Fußbereich */
footer, .footer { color: var(--bttv-grey); }

/* ---------- Responsive: Abstände am Rand ---------- */
.top-content { padding-left: 16px; padding-right: 16px; }
#main-col { padding-left: 16px; padding-right: 16px; }
#navigator-container { --bs-gutter-x: 0; margin-left: 0; margin-right: 0; }
#navigator-container .btn { white-space: normal; }
.progress { margin-left: 0; margin-right: 0; }

/* Logo auch auf kleinen Bildschirmen zeigen */
@media (max-width: 767.98px) {
    .navbar-brand.logo-container { display: block !important; margin-right: auto; }
    .navbar-brand.logo-container { flex-shrink: 0; padding: 6px 0; }
    .navbar-brand.logo-container .logo { height: 56px; width: auto; max-height: none; max-width: none; }
    #main-col, .top-content { padding-left: 20px; padding-right: 20px; }
    #navigator-container .btn { padding-left: 1rem; padding-right: 1rem; }
}
@media (min-width: 768px) {
    #main-col { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Angleichung an die Startseite bettv.de ---------- */
:root { --bttv-radius: 5px; --bttv-shadow: 1px 1px 7px 2px rgba(74, 82, 93, .25); }

/* Header: weiß, weicher Schatten, kein Farbstreifen */
#survey-nav {
    background: var(--bttv-white) !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 4px 0 rgba(74, 82, 93, .25);
}
#survey-nav a, #survey-nav .nav-link { color: var(--bttv-black); font-weight: 600; }
#survey-nav a:hover { color: var(--bttv-red); }

/* Überschriften: Georama 500, Versalien, 28/34 px */
h1.survey-name {
    font-family: 'Georama', 'Noto Sans', Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    line-height: 1.2143;
    text-transform: uppercase;
    margin: 1rem 0;
}
h3, .group-title { font-size: 1.375rem; line-height: 1.18; }
.survey-welcome, .survey-description, .number-of-questions { color: var(--bttv-grey) !important; }

/* Inhaltskarte: weiß, 5 px Radius, diffuser Schatten */
#main-col {
    background: var(--bttv-white);
    border: 0;
    border-radius: var(--bttv-radius);
    box-shadow: var(--bttv-shadow);
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.group-outer-container { border-top: 0; }
.top-content { background: transparent; }

/* Buttons: Georama 500, 5 px Radius, rote 2 px Kontur im Sekundärstil */
.btn { border-radius: var(--bttv-radius); font-family: 'Georama', 'Noto Sans', Arial, sans-serif; font-weight: 500; }
.btn-primary { border-width: 2px; }
.btn-outline-secondary, .btn-secondary, .btn-default {
    background: var(--bttv-white);
    border: 2px solid var(--bttv-red);
    color: var(--bttv-red);
}
.btn-outline-secondary:hover, .btn-secondary:hover, .btn-default:hover {
    background: var(--bttv-red);
    border-color: var(--bttv-red);
    color: var(--bttv-white);
}
/* ---------- Kopf: Logo + allgemeiner Titel ---------- */
.bttv-brand { display: flex !important; align-items: center; gap: 14px; margin-right: auto; flex-shrink: 0; padding: 6px 0; max-width: 100%; }
.bttv-brand-link { display: inline-flex; flex-shrink: 0; }
.bttv-brand .logo { height: 56px; width: auto; max-height: none; max-width: none; }
.bttv-site-title {
    font-family: 'Georama', 'Noto Sans', Arial, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--bttv-black);
    white-space: normal;
}
@media (max-width: 575.98px) {
    .bttv-brand { gap: 10px; }
    .bttv-brand .logo { height: 44px; }
    .bttv-site-title { font-size: .8125rem; }
}

/* ---------- Fuß mit rechtlichen Links ---------- */
body { padding-bottom: 0 !important; display: flex; flex-direction: column; min-height: 100vh; }
body > #content { flex: 1 0 auto; }
.bttv-footer {
    flex-shrink: 0;
    background: var(--bttv-black);
    color: var(--bttv-white);
    padding: 24px 20px;
    margin-top: 2rem;
}
.bttv-footer-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.bttv-footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.bttv-footer a { color: var(--bttv-white); font-family: 'Georama', 'Noto Sans', Arial, sans-serif; font-weight: 500; text-decoration: none; }
.bttv-footer a:hover, .bttv-footer a:focus { color: var(--bttv-white); text-decoration: underline; text-decoration-color: var(--bttv-red); text-underline-offset: 4px; }
.bttv-footer-copy { margin: 0; font-size: .875rem; color: #cdcdcd; }

/* Abstand zwischen Menü-Button und Logo */
#survey-nav .navbar-toggler { margin-right: 16px; }
.bttv-brand { margin-left: 0; }
@media (max-width: 575.98px) {
    #survey-nav .navbar-toggler { margin-right: 14px; }
    .bttv-brand { align-items: center; }
    .bttv-brand .logo { height: 48px; }
}

/* ---------- Kopf-Layout: Desktop nebeneinander, Handy zweizeilig ---------- */
#survey-nav > .container-fluid { flex-wrap: wrap; align-items: center; }
.bttv-brand { margin-right: 0; }
.bttv-site-title {
    margin-right: auto;
    padding-left: 18px;
    margin-left: 18px;
    border-left: 1px solid var(--bttv-border);
    font-size: 1.25rem;
    letter-spacing: .01em;
}
@media (max-width: 767.98px) {
    .bttv-brand { margin-right: auto; }
    .bttv-site-title {
        order: 3;
        flex: 0 0 100%;
        margin: 0;
        padding: 7px 0 8px;
        border-left: 0;
        border-top: 1px solid var(--bttv-border);
        text-align: center;
        font-size: .8125rem;
        letter-spacing: .04em;
        color: var(--bttv-grey);
    }
}
