/*
    Wertblüte – Design für die Fragebögen auf fragen.wertbluete.de
    Version 1.1 · erweitert Fruity TwentyThree (LimeSurvey 7)

    Farben, Schriften und Formen wie auf wertbluete.de und in der Wertblüte Akademie.
    Ziel: ruhig, ohne Ablenkung – Logo, Fortschritt, Frage, Weiter.
*/

/* ---------- Schriften (Noto-Teilmenge, SIL Open Font License, siehe files/fonts) ---------- */
@font-face {
    font-family: "Wert Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../files/fonts/wert-sans-400.woff2") format("woff2");
}
@font-face {
    font-family: "Wert Sans";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../files/fonts/wert-sans-700.woff2") format("woff2");
}
@font-face {
    font-family: "Wert Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../files/fonts/wert-serif-400.woff2") format("woff2");
}
@font-face {
    font-family: "Wert Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../files/fonts/wert-serif-400-italic.woff2") format("woff2");
}

/* ---------- Markenwerte ---------- */
:root {
    --wb-paper: #fcf9f6;
    --wb-white: #fffdfa;
    --wb-ink: #402832;
    --wb-plum: #603746;
    --wb-plum-deep: #4e2c39;
    --wb-rose: #b96879;
    --wb-rose-deep: #985567;
    --wb-blush: #f1e3e6;
    --wb-line: #decbd0;
    --wb-muted: #725e65;
    --wb-sans: "Wert Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wb-serif: "Wert Serif", Georgia, "Times New Roman", serif;
    --wb-ease: cubic-bezier(.2, .7, .2, 1);

    --bs-body-color: var(--wb-ink);
    --bs-body-bg: var(--wb-paper);
    --bs-link-color: var(--wb-plum);
    --bs-link-hover-color: var(--wb-rose-deep);
    --bs-border-color: var(--wb-line);
    --bs-font-sans-serif: var(--wb-sans);
}

::selection {
    background: #e7c2cd;
    color: var(--wb-plum-deep);
}

/* ---------- Grundlage ---------- */
html body {
    font-family: var(--wb-sans);
    color: var(--wb-ink);
    background-color: var(--wb-paper);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Fußzeile unten halten */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
html body > article {
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

html body a {
    color: var(--wb-plum);
    text-underline-offset: .18em;
}
html body a:hover {
    color: var(--wb-rose-deep);
}

/* Überschriften in der Serifenschrift, ohne Fettung – wie auf der Website */
html body h1, html body .h1,
html body h2, html body .h2,
html body .large-heading,
html body .survey-name,
html body .group-container .group-title,
html body .completed-wrapper .completed-heading {
    font-family: var(--wb-serif);
    font-weight: 400;
    color: var(--wb-plum);
    letter-spacing: -.015em;
}

/* ---------- Kopfzeile: nur das Logo ---------- */
html body #survey-nav.navbar {
    background-color: rgba(252, 249, 246, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(96, 55, 70, .10);
    box-shadow: none;
    min-height: 72px;
    padding-top: 0;
    padding-bottom: 0;
}
html body #survey-nav > .container-fluid {
    display: flex;
    align-items: center;
    min-height: 72px;
}
html body #survey-nav .logo-container {
    display: flex;
    align-items: center;
    height: auto;
    padding: 0;
    margin: 0;
    line-height: 0;
}
html body #survey-nav .logo-container .logo {
    height: 36px;
    width: auto;
    max-width: 230px;
}
html body #survey-nav .navbar-toggler {
    color: var(--wb-plum);
    border: 1px solid var(--wb-line);
    border-radius: 50rem;
    background: var(--wb-white);
}
html body #survey-nav .dropdown-menu {
    border-color: var(--wb-line);
    border-radius: .75rem;
    --bs-dropdown-link-hover-bg: var(--wb-blush);
    --bs-dropdown-link-hover-color: var(--wb-plum-deep);
    --bs-dropdown-link-active-bg: var(--wb-plum);
}

/* ---------- Fortschritt: schmale Linie in Rosé ---------- */
html body .top-container {
    margin-bottom: 1rem;
}
html body .top-container .progress {
    height: 4px;
    border-radius: 50rem;
    background-color: var(--wb-blush);
}
html body .top-container .progress-bar,
html body .progress-bar {
    background-color: var(--wb-rose);
    border-radius: 50rem;
    transition: width .6s var(--wb-ease);
}

/* ---------- Willkommensseite ---------- */
html body .survey-name,
html body .large-heading {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
    line-height: 1.15;
}
html body .survey-description,
html body .survey-welcome {
    color: var(--wb-ink);
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 38rem;
}
html body .question-count-text {
    color: var(--wb-muted);
}

/* ---------- Gruppen ---------- */
html body .group-container .group-title {
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
    line-height: 1.2;
    margin-top: .5em;
}
html body .group-container .group-description {
    margin-bottom: 1.5rem;
    color: var(--wb-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* ---------- Fragen als ruhige Karten ---------- */
html body .question-container {
    background-color: var(--wb-white);
    border: 1px solid var(--wb-line);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    margin: 0 0 1.5rem;
    box-shadow: 0 1px 2px rgba(64, 40, 50, .04);
}
@media (min-width: 768px) {
    html body .question-container {
        padding: 2rem 2.25rem;
    }
}
html body .question-container .ls-label-question {
    -webkit-hyphens: manual;
    hyphens: manual;
    font-family: var(--wb-serif);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--wb-plum);
}
html body .question-container .ls-questionhelp,
html body .question-container .help-block,
html body .question-container .ls-question-message {
    color: var(--wb-muted);
    font-weight: 400;
    font-style: normal;
}
html body .question-container .asterisk {
    color: var(--wb-rose-deep);
}
/* Fehlermeldung bei Pflichtfragen: deutlich, aber nicht schrill */
html body .question-container.input-error {
    border-color: var(--wb-rose);
    box-shadow: 0 0 0 3px rgba(185, 104, 121, .15);
}
html body .question-container .ls-em-error,
html body .question-container .text-danger {
    color: #a3364c;
}

/* Antworten */
html body .ls-answers label,
html body .answer-item label,
html body .control-label {
    font-weight: 400;
    color: var(--wb-ink);
    line-height: 1.45;
}
html body .answer-item .form-control,
html body .ls-answers .form-control,
html body .form-select,
html body textarea.form-control {
    border: 1px solid #9b858b;
    border-radius: .75rem;
    background-color: #fff;
    color: var(--wb-ink);
    font-family: var(--wb-sans);
}
html body .form-control:focus,
html body .form-select:focus {
    border-color: var(--wb-rose-deep);
    box-shadow: 0 0 0 .25rem rgba(152, 85, 103, .25);
}
html body .form-control::placeholder {
    color: #9b858b;
}

/* Skalen und Tabellen */
html body table.ls-answers th,
html body table.ls-answers td {
    border-color: var(--wb-line);
}
html body table.ls-answers thead th {
    color: var(--wb-muted);
    font-weight: 400;
    font-size: .9375rem;
}
html body table.ls-answers tbody tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: #fbf6f4;
}

/* ---------- Schaltflächen: Pillenform wie auf der Website ---------- */
html body .btn {
    font-family: var(--wb-sans);
    font-weight: 700;
    border-radius: 50rem;
    letter-spacing: 0;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--wb-ease);
}
html body .btn-primary {
    --bs-btn-bg: var(--wb-plum);
    --bs-btn-border-color: var(--wb-plum);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--wb-plum-deep);
    --bs-btn-hover-border-color: var(--wb-plum-deep);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--wb-plum-deep);
    --bs-btn-active-border-color: var(--wb-plum-deep);
    --bs-btn-focus-shadow-rgb: 152, 85, 103;
}
html body .btn-primary:not(:disabled):hover {
    transform: translateY(-1px);
}
html body .btn-outline-secondary,
html body .btn-secondary {
    --bs-btn-bg: var(--wb-white);
    --bs-btn-color: var(--wb-plum);
    --bs-btn-border-color: var(--wb-line);
    --bs-btn-hover-bg: var(--wb-blush);
    --bs-btn-hover-color: var(--wb-plum-deep);
    --bs-btn-hover-border-color: var(--wb-plum);
    --bs-btn-active-bg: var(--wb-blush);
    --bs-btn-active-color: var(--wb-plum-deep);
    --bs-btn-active-border-color: var(--wb-plum);
    background-color: var(--wb-white);
    color: var(--wb-plum);
    border-color: var(--wb-line);
}
html body .btn-outline-secondary:hover,
html body .btn-secondary:hover {
    background-color: var(--wb-blush);
    color: var(--wb-plum-deep);
    border-color: var(--wb-plum);
}
html body #navigator-container {
    margin-top: 2rem;
}
html body #navigator-container .btn {
    font-family: var(--wb-sans);
    font-weight: 700;
    font-size: 1rem;
    padding: .8rem 1.75rem;
    min-width: 9rem;
}

/* Sichtbarer Fokus für Tastatur */
html body :focus-visible {
    outline: 3px solid rgba(152, 85, 103, .55);
    outline-offset: 2px;
}

/* ---------- Abschlussseite ---------- */
html body .completed-wrapper .completed-heading {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
    line-height: 1.15;
}
html body .completed-wrapper .completed-Content {
    color: var(--wb-ink);
    font-size: 1.125rem;
    line-height: 1.65;
}

/* ---------- Datenschutz-Hinweis und Hinweise ---------- */
html body .privacy,
html body .ls-privacy-block {
    color: var(--wb-ink);
}
html body .alert {
    border-radius: .75rem;
}
html body .alert-info {
    --bs-alert-bg: var(--wb-blush);
    --bs-alert-color: var(--wb-plum-deep);
    --bs-alert-border-color: var(--wb-line);
}

/* ---------- Startseite fragen.wertbluete.de (Umfrageliste) ---------- */
html body .wb-surveylist {
    padding: 3rem 0 2rem;
}
html body .wb-surveylist-title {
    font-family: var(--wb-serif);
    font-weight: 400;
    color: var(--wb-plum);
    font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}
html body .wb-surveylist-lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--wb-ink);
    margin-bottom: 1.5rem;
}
html body .wb-surveylist-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 0 0 2rem;
}
html body .wb-surveylist-list .btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
}
html body .wb-surveylist-contact {
    color: var(--wb-muted);
    font-size: .9375rem;
}

/* ---------- Fußzeile ---------- */
.wb-footer {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid var(--wb-line);
    background: var(--wb-paper);
}
.wb-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    max-width: 58rem;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 1.5rem;
    font-size: .875rem;
    color: var(--wb-muted);
}
.wb-footer-sign {
    margin: 0;
    font-family: var(--wb-serif);
    font-size: 1rem;
    color: var(--wb-plum);
}
.wb-footer-legal {
    display: flex;
    gap: 1.25rem;
}
html body .wb-footer-legal a {
    color: var(--wb-muted);
    text-decoration: none;
}
html body .wb-footer-legal a:hover,
html body .wb-footer-legal a:focus-visible {
    color: var(--wb-plum);
    text-decoration: underline;
}

/* ---------- Weniger Bewegung, wenn gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
    html body *,
    html body *::before,
    html body *::after {
        transition: none !important;
        animation: none !important;
    }
}
