/*
    BdSt Umfragen - custom styles
    -----------------------------
    Survey theme for Bund der Steuerzahler Deutschland e.V.
    Child theme of Fruity TwentyThree. Copyright (C) 2026 ADVADA Unternehmensberatung.
    License: GNU General Public License version 2 or later.

    The primary colour (#012756) is compiled into css/variations/theme_bdst.css.
    This file adds the BdSt fonts, the header wordmark, the survey list page and the footer.

    Colours:  dark blue #012756 | light blue #0960a2 | yellow #ffc000
              red #d7003a | light grey #ebebeb | text #212226 | grey text #4a4a4a
*/

/* ---------- Fonts (served from this theme, no external requests) ---------- */

@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../files/fonts/RobotoSlab-Variable.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../files/fonts/Montserrat-Variable.woff2") format("woff2");
}

body,
body[class*="font-"] {
    font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
    color: #212226;
}

body.fruity_twentythree .large-heading {
    font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
}

body.fruity_twentythree h1,
body.fruity_twentythree .h1,
body.fruity_twentythree h2,
body.fruity_twentythree .h2 {
    color: #012756;
}

body.fruity_twentythree a {
    color: #0960a2;
}

body.fruity_twentythree a:hover,
body.fruity_twentythree a:focus {
    color: #012756;
}

/* Buttons keep their own text colour */
body.fruity_twentythree a.btn,
body.fruity_twentythree a.btn:hover,
body.fruity_twentythree a.btn:focus {
    color: inherit;
}

body.fruity_twentythree a.btn-primary,
body.fruity_twentythree a.btn-primary:hover,
body.fruity_twentythree a.btn-primary:focus {
    color: #ffffff;
}

/* ---------- Buttons: pill shape as on steuerzahler.de ---------- */

body.fruity_twentythree .btn {
    border-radius: 25px;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-weight: 700;
}

body.fruity_twentythree .ls-move-btn {
    min-height: 44px;
    padding-left: 30px;
    padding-right: 30px;
}

/* ---------- Header: logo and wordmark ---------- */

body.fruity_twentythree #survey-nav.navbar {
    border-bottom: 2px solid #ebebeb;
}

body.fruity_twentythree #survey-nav .logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    float: none;
    overflow: visible;
}

body.fruity_twentythree #survey-nav .logo-container > img {
    max-height: 66px;
    padding: 8px 0;
    width: auto;
}

body.fruity_twentythree #survey-nav .logo-container::after {
    content: "Bund der Steuerzahler\A Deutschland e.V.";
    white-space: pre;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: #012756;
}

@media (max-width: 480px) {
    body.fruity_twentythree #survey-nav .logo-container > img {
        max-height: 56px;
    }

    body.fruity_twentythree #survey-nav .logo-container::after {
        font-size: 14px;
    }
}

/* ---------- Page frame: footer stays at the bottom ---------- */

body.fruity_twentythree {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.fruity_twentythree > article,
body.fruity_twentythree > div:not([id]) {
    flex: 1 0 auto;
}

/* Same column as the header and the survey pages of Fruity TwentyThree
   (.container-fluid.col-xl-8): full width, two thirds from 1200px up. */
.bdst-wrap {
    width: 100%;
    margin: 0 auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 1200px) {
    .bdst-wrap {
        width: 66.66666667%;
    }
}

/* ---------- Survey list page ---------- */

.bdst-hero {
    background: #012756;
    color: #ffffff;
}

.bdst-hero .bdst-wrap {
    padding-top: 56px;
    padding-bottom: 60px;
}

body.fruity_twentythree .bdst-hero .bdst-hero-title {
    margin: 0 0 18px;
    font-size: 39px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

.bdst-hero-line {
    width: 72px;
    height: 4px;
    margin-bottom: 18px;
    background: #ffc000;
}

.bdst-hero-sub {
    margin: 0;
    font-size: 19px;
    font-weight: 300;
    color: #ffffff;
}

body.fruity_twentythree #surveys-list-container.bdst-surveylist {
    min-height: 0 !important;
    margin-top: 0;
    padding-top: 40px;
    padding-bottom: 56px;
}

.bdst-surveys {
    margin: 0 0 32px;
    padding: 0;
    border-top: 2px solid #ebebeb;
}

.bdst-surveys:empty {
    display: none;
}

.bdst-survey {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 2px solid #ebebeb;
}

.bdst-survey-title {
    min-width: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #012756;
}

body.fruity_twentythree .bdst-survey-link.btn {
    min-height: 44px;
    padding: 8px 30px;
    white-space: nowrap;
}

.bdst-contact {
    margin: 0;
    padding: 20px 24px;
    background: #ebebeb;
    color: #212226;
}

#surveylist-language-changer {
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    body.fruity_twentythree .bdst-hero .bdst-hero-title {
        font-size: 30px;
    }

    .bdst-hero-sub {
        font-size: 17px;
    }
}

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

.bdst-footer {
    flex-shrink: 0;
    margin-top: 48px;
    background: #012756;
    color: #ffffff;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.bdst-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.bdst-footer-name {
    font-weight: 700;
}

.bdst-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

body.fruity_twentythree .bdst-footer a,
body.fruity_twentythree .bdst-footer a:hover,
body.fruity_twentythree .bdst-footer a:focus {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    color: #ffffff;
    text-decoration: underline;
}

/* ---------- Error page (expired survey, wrong link, ...) ---------- */

body.fruity_twentythree.error-page {
    font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
}

/* The illustration of the base theme is not shown.
   !important is needed because Bootstrap sets .d-flex with !important. */
body.fruity_twentythree.error-page .row > .col.d-flex {
    display: none !important;
}

/* The base theme colours the title paragraph with !important as well. */
body.fruity_twentythree.error-page .error-title,
body.fruity_twentythree.error-page .error-title p {
    color: #012756 !important;
}

body.fruity_twentythree.error-page .error-logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 2rem;
}

body.fruity_twentythree.error-page .error-logo-container > img {
    max-height: 66px;
}

body.fruity_twentythree.error-page .error-logo-container::after {
    content: "Bund der Steuerzahler\A Deutschland e.V.";
    white-space: pre;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: #012756;
}

@media print {
    .bdst-footer,
    .bdst-hero {
        background: none;
        color: #000000;
    }
}
