/* === Allgemeine Layout-Resets === */
html {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.large-heading {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* === Headerstruktur TU Graz === */
#int-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    padding: 10px 20px;
    border-bottom: 4px solid #e4154b;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#int-header-text {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
    color: #000;
    text-align: left;
}

#int-header-text a {
    color: #000;
    text-decoration: none;
}

#int-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

#int-header-logo-claim {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
    font-size: 10px;
    font-weight: bold;
    text-align: right;
}

.int-header-logo-claim-single {
    color: #e4154b;
}

#int-header-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

#tug-logo-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    background-color: transparent;
    padding: 10px 20px;
    max-width: 200px;
    width: 100%;
    height: auto;
}

#tug-logo-container img#tu-logo {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* === Hide LimeSurvey internal logo === */
svg.ls-logo {
    display: none !important;
}

/* === TU Graz Logo === */
.tu-graz-logo {
    display: block;
    margin: 0 auto 1.5rem auto;
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 2rem;
}

@media (max-width: 476px) {
    .tu-graz-logo { max-width: 120px; margin-bottom: 1rem; }
}

@media (min-width: 577px) and (max-width: 991.98px) {
    .tu-graz-logo { max-width: 140px; }
}

@media (min-width: 992px) {
    .tu-graz-logo { max-width: 180px; }
}

@media (min-width: 768px) {
    .tu-graz-logo-wrapper {
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }
    .tu-graz-logo-wrapper img {
        max-width: 200px;
        height: auto;
    }
}

/* === Footer === */
.tu-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #444;
    background-color: #fff;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.tu-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tu-footer-links a {
    color: #444;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.tu-footer-links a:hover {
    color: #e4154b;
    text-decoration: underline;
}

body > article {
    padding-bottom: 140px;
}

/* === Progress Bar === */
#progress-bar-wrapper {
    width: 90%;
    margin: 1rem auto;
}

#progress-bar-wrapper .progress {
    height: 1.5rem;
}

#progress-bar-wrapper .progress-bar {
    font-size: 0.9rem;
}

/* === Welcome page: full width, center text === */
.col-centered.col-xl-8 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    padding-left: 15% !important;
    padding-right: 15% !important;
    
}

.survey-name {
    text-align: center !important;
}

.form-heading p,
.survey-description p,
.survey-welcome p {
    text-align: center !important;
}

/* === Center bottom anonymous text === */
.ls-emailed-token,
.survey-anonymous,
#ls-token-entry {
    text-align: center !important;
}
/* === Question Layout === */
.question-container {
/*    display: flex !important;*/
    flex-direction: column !important;
    gap: 0 !important;
    row-gap: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    padding: 0 !important;
}
/* === Remove space between label and answer box === */
.question-title-container,
.question-title-container.col-12 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.question-container > [class*="col-"] {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* === Answer box spacing === */
.question-text-container {
    margin: 0 !important;
    padding: 0 !important;
}

.ls-answers {
    margin: 0 !important;
    padding-top: 0 !important;
}

.ls-label-question {
    margin-bottom: 0 !important;
}

.text-long .answer-item {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* === Fix ALL gray text to black === */
.answertext,
.control-label,
.answertext.control-label,
.ls-answers .answertext,
.subquestion-list .answertext,
.answer-item,
.radio-item,
.answers-list,
.ls-label-question,
label,
.question-text,
.ls-question-text,
th.answertext,
td.answer-item {
    color: #000000 !important;
}

/* Override any inherited gray */
.table .answertext,
.table-radio .answertext,
.table-bordered .answertext {
    color: #000000 !important;
}

/* === Force ALL text to black globally ===*/
body,
body *:not(a):not(.btn):not(.progress-bar) {
    color: #000000 !important;
}


/* Keep links and buttons their original color */
a {
    color: inherit;
}

.btn-primary,
.btn-default {
    color: #ffffff !important;
}

.progress-bar {
    color: #ffffff !important;
}

/* Keep TU Graz red where needed */
.int-header-logo-claim-single,
.tu-footer-links a:hover {
    color: #e4154b !important;
}


/* === Fix welcome container width === */
#welcome-container {
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
    padding-left: 10% !important;
    padding-right: 10% !important;
}

/* === Center privacy/anonymous text === */
.ls-privacy-block {
    text-align: center !important;
}

.ls-privacy-head,
.ls-privacy-body {
    text-align: center !important;
}

.ls-privacy-body p {
    text-align: center !important;
}
