/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

/* Alle Fragen: abgerundete Ecken und dezenter Schatten */
.question-container {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Auch die oberen Bereiche der Fragen abrunden */
.question-container .question-title-container {
    border-radius: 10px 10px 0 0 !important;
}

/* Keine inneren Rahmen über die Rundung hinausragen lassen */
.question-container .question-title-container,
.question-container .answer-container {
    background-clip: padding-box;
}



/* Alle Zahlen-Eingabefelder auf 18rem Breite setzen */
.question-container.numeric input.form-control {
    width: 12rem !important;
    max-width: 100%;
    box-sizing: border-box;
}


/* Zahlenfeld und Suffix als gemeinsame Gruppe behandeln */
.question-container .ls-input-group {
    display: inline-flex !important;
    align-items: stretch !important;
    max-width: 100%;
    vertical-align: middle;
}

/* Eingabefeld: Breite beibehalten */
.question-container .ls-input-group input.form-control {
    flex: 0 1 auto !important;
    min-width: 0;
}

/* Suffix direkt hinter dem Eingabefeld */
.question-container .ls-input-group .ls-input-group-extra {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    white-space: nowrap;
}



/* oberer Teil des gemeinsamen Blocks */
.G01Q06 {
    background: #ffffff;
    margin-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
}

/* unterer Teil */
.G01Q07 {
    background: #ffffff;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
}

.G01Q07 .question-title-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-radius: 0 !important;
    border-bottom: none;
}

/* Schwarze Schrift im unteren Teil */
.G01Q07,
.G01Q07 .question-text,
.G01Q07 .question-title-container,
.G01Q07 .answer-container,
.G01Q07 label {
    color: #000000 !important;

}

/* Hintergrund und Textfarbe des Zahlenhinweises */
.G01Q07 .question-valid-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-top: none;
}



/* oberer Teil des gemeinsamen Blocks */
.G02Q01 {
    background: #ffffff;
    margin-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
}

/* Kunterer Teil */
.G02Q02 {
    background: #ffffff;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
}

.G02Q02 .question-title-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-radius: 0 !important;
    border-bottom: none;
}

/* Schwarze Schrift im unteren Teil */
.G02Q02,
.G02Q02 .question-text,
.G02Q02 .question-title-container,
.G02Q02 .answer-container,
.G02Q02 label {
    color: #000000 !important;

}

/* Hintergrund und Textfarbe des Zahlenhinweises */
.G02Q02 .question-valid-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-top: none;
}



/* oberer Teil des gemeinsamen Blocks */
.G02Q03 {
    background: #ffffff;
    margin-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
}

/* Kunterer Teil */
.G02Q04 {
    background: #ffffff;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
}

.G02Q04 .question-title-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-radius: 0 !important;
    border-bottom: none;
}

/* Schwarze Schrift im unteren Teil */
.G02Q04,
.G02Q04 .question-text,
.G02Q04 .question-title-container,
.G02Q04 .answer-container,
.G02Q04 label {
    color: #000000 !important;

}

/* Hintergrund und Textfarbe des Zahlenhinweises */
.G02Q04 .question-valid-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-top: none;
}


/* oberer Teil des gemeinsamen Blocks */
.G02Q05 {
    background: #ffffff;
    margin-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
}

/* Kunterer Teil */
.G02Q06 {
    background: #ffffff;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
}

.G02Q06 .question-title-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-radius: 0 !important;
    border-bottom: none;
}

/* Schwarze Schrift im unteren Teil */
.G02Q06,
.G02Q06 .question-text,
.G02Q06 .question-title-container,
.G02Q06 .answer-container,
.G02Q06 label {
    color: #000000 !important;

}

/* Hintergrund und Textfarbe des Zahlenhinweises */
.G02Q06 .question-valid-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-top: none;
}




/* Vier Spalten der Heiztabelle */
#heizarten-tabelle {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.25rem 0 1.75rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    background: #fff;
}

#heizarten-tabelle th,
#heizarten-tabelle td {
    padding: 14px 12px;
    border-bottom: 1px solid #e8ebef;
    text-align: left;
    vertical-align: middle;
}

#heizarten-tabelle th {
    background: #f3f6f8;
    font-weight: 600;
}

#heizarten-tabelle tr:last-child td {
    border-bottom: none;
}

#heizarten-tabelle th:nth-child(2),
#heizarten-tabelle td:nth-child(2) {
    text-align: center;
    width: 85px;
}

#heizarten-tabelle .heizart-auswahl {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#heizarten-tabelle .heizart-verbrauch,
#heizarten-tabelle .heizart-einheit {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cbd2d9;
    border-radius: 8px;
    background: #fff;
    color: #212529;
    font: inherit;
}

#heizarten-tabelle .heizart-verbrauch {
    max-width: 220px;
}

#heizarten-tabelle .heizart-einheit {
    max-width: 180px;
}

#heizarten-tabelle .heizart-verbrauch:disabled,
#heizarten-tabelle .heizart-einheit:disabled {
    background-color: #edf0f2;
    color: #8a929b;
    border-color: #d9dee3;
    cursor: not-allowed;
    opacity: 1;
}

#heizarten-tabelle .heizart-verbrauch:focus,
#heizarten-tabelle .heizart-einheit:focus {
    outline: 2px solid #7aa7d9;
    outline-offset: 1px;
}

@media (max-width: 600px) {
    #heizarten-tabelle th,
    #heizarten-tabelle td {
        padding: 9px 6px;
        font-size: 0.9rem;
    }

    #heizarten-tabelle .heizart-verbrauch,
    #heizarten-tabelle .heizart-einheit {
        padding: 8px 5px;
        font-size: 0.9rem;
    }

    #heizarten-tabelle th:nth-child(2),
    #heizarten-tabelle td:nth-child(2) {
        width: 55px;
    }
}


/* Originalfelder und Hinweise ausblenden; Abstände unter Frage 51 entfernen */
.G03Q01 .question-valid-container,
.G03Q01 .question-help-container,
.G03Q01 > .answer-container,
.G03Q02,
.G03Q03 {
    display: none !important;
}

.G03Q01 {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

.G03Q01 > .question-valid-container,
.G03Q01 > .answer-container,
.G03Q01 > .question-help-container {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Gemeinsamer Kasten für Tabelle und Fußnoten */
#heizarten-bereich {
    margin: 1rem 0 0;
    padding: 0 12px 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

/* Tabelle in den gemeinsamen Kasten integrieren */
#heizarten-bereich #heizarten-tabelle {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Fußnoten */
#heizarten-fussnoten {
    padding: 12px 4px 0;
    border-top: 1px solid #e8ebef;
    color: #626d78;
    font-size: 0.82rem;
    line-height: 1.5;
}

#heizarten-fussnoten p {
    margin: 0 0 5px;
}

#heizarten-fussnoten p:last-child {
    margin-bottom: 0;
}

#heizarten-fussnoten sup {
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 4px;
}


#heizarten-tabelle td sup {
    font-size: 0.72em;
    line-height: 0;
    vertical-align: super;
    margin-left: 2px;
}

#heizarten-tabelle .heizart-baujahr {
    width: 100%;
    min-width: 0;
    max-width: 120px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cbd2d9;
    border-radius: 8px;
    background: #fff;
    color: #212529;
    font: inherit;
}

#heizarten-tabelle .heizart-baujahr:disabled {
    background-color: #edf0f2;
    color: #8a929b;
    border-color: #d9dee3;
    cursor: not-allowed;
    opacity: 1;
}

@media (max-width: 600px) {
    #heizarten-tabelle .heizart-baujahr {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
}

.energietraeger-hinweis {
    margin: 0 0 16px 0;
    padding: 14px 16px;
    background-color: #f2f5f7;
    border-left: 4px solid #527a91;
    border-radius: 4px;
    color: #293746;
    font-size: 14px;
    line-height: 1.6;
}

.G03Q06 {
    margin-top: 2rem;
}


/* oberer Teil des gemeinsamen Blocks */
.G03Q08 {
    background: #ffffff;
    margin-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
}

/* unterer Teil */
.G03Q09 {
    background: #ffffff;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
}

.G03Q09 .question-title-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-radius: 0 !important;
    border-bottom: none;
}

/* Schwarze Schrift im unteren Teil */
.G03Q09,
.G03Q09 .question-text,
.G03Q09 .question-title-container,
.G03Q09 .answer-container,
.G03Q09 label {
    color: #000000 !important;

}

/* Hintergrund und Textfarbe des Zahlenhinweises */
.G03Q09 .question-valid-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-top: none;
}




.G03Q09 .answer-container ul.ls-answers > li.question-item > label.control-label {
    text-align: left !important;
}

@media (min-width: 768px) {
    .G03Q09 .answer-container ul.ls-answers > li.question-item > label.control-label {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }

    .G03Q09 .answer-container ul.ls-answers > li.question-item > label.control-label + div {
        flex: 0 0 80% !important;
        max-width: 80% !important;
    }
}



.G01Q05 .answer-container ul.ls-answers > li.question-item > label.control-label {
    text-align: left !important;
}

@media (min-width: 768px) {
    .G01Q05 .answer-container ul.ls-answers > li.question-item > label.control-label {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }

    .G01Q05 .answer-container ul.ls-answers > li.question-item > label.control-label + div {
        flex: 0 0 80% !important;
        max-width: 80% !important;
    }
}



/* Frage 10: Beschriftungen linksbündig und Eingabefelder weiter links */
.G04Q01 .answer-container ul.ls-answers > li.question-item > label.control-label {
    text-align: left !important;
}

@media (min-width: 768px) {
    .G04Q01 .answer-container ul.ls-answers > li.question-item > label.control-label {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }

    .G04Q01 .answer-container ul.ls-answers > li.question-item > label.control-label + div {
        flex: 0 0 80% !important;
        max-width: 80% !important;
    }
}



/* oberer Teil des gemeinsamen Blocks */
.G05Q01,
.G05Q03,
.G05Q05,
.G05Q07,
.G06Q02 {
    background: #ffffff;
    margin-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
}

/* unterer Teil */
.G05Q02,
.G05Q04,
.G05Q06,
.G05Q08,
.G06Q03 {
    background: #ffffff;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
}

/* Titelcontainer im unteren Teil */
.G05Q02 .question-title-container,
.G05Q04 .question-title-container,
.G05Q06 .question-title-container,
.G05Q08 .question-title-container,
.G06Q03 .question-title-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-radius: 0 !important;
    border-bottom: none;
}

/* Schwarze Schrift im unteren Teil */
.G05Q02,
.G05Q04,
.G05Q06,
.G05Q08,
.G06Q03,
.G05Q02 .question-text,
.G05Q04 .question-text,
.G05Q06 .question-text,
.G05Q08 .question-text,
.G06Q03 .question-text,
.G05Q02 .question-title-container,
.G05Q04 .question-title-container,
.G05Q06 .question-title-container,
.G05Q08 .question-title-container,
.G06Q03 .question-title-container,
.G05Q02 .answer-container,
.G05Q04 .answer-container,
.G05Q06 .answer-container,
.G05Q08 .answer-container,
.G06Q03 .answer-container,
.G05Q02 label,
.G05Q04 label,
.G05Q06 label,
.G05Q08 label,
.G06Q03 label {
    color: #000000 !important;
}

/* Hintergrund und Rahmen des Zahlenhinweises */
.G05Q02 .question-valid-container,
.G05Q04 .question-valid-container,
.G05Q06 .question-valid-container,
.G05Q08 .question-valid-container,
.G06Q03 .question-valid-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-top: none;
}




/* Frage 10: Beschriftungen linksbündig und Eingabefelder weiter links */
.G06Q05 .answer-container ul.ls-answers > li.question-item > label.control-label {
    text-align: left !important;
}

@media (min-width: 768px) {
    .G06Q05 .answer-container ul.ls-answers > li.question-item > label.control-label {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }

    .G06Q05 .answer-container ul.ls-answers > li.question-item > label.control-label + div {
        flex: 0 0 80% !important;
        max-width: 80% !important;
    }
}



/* Gemeinsamer Außenrahmen für Heiztabelle und Kommentar */
.G03Q01 {
    border: 1px solid #d5dbe3 !important;
    border-radius: 10px 10px 0 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: none !important;
}


/* unterer Teil */
.G03Q05 {
    background: #ffffff;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
}

.G03Q05 .question-title-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-radius: 0 !important;
    border-bottom: none;
}

/* Schwarze Schrift im unteren Teil */
.G03Q05,
.G03Q05 .question-text,
.G03Q05 .question-title-container,
.G03Q05 .answer-container,
.G03Q05 label {
    color: #000000 !important;

}

/* Hintergrund und Textfarbe des Zahlenhinweises */
.G03Q05 .question-valid-container {
    background-color: #ffffff !important;
    border-left: 1px solid #d5dbe3;
    border-right: 1px solid #d5dbe3;
    border-top: none;
}


/* Untere Frage: Kommentar */
.G03Q05 {
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    margin-top: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

/* Titelbereich der Kommentarfrage */
.G03Q05 .question-title-container {
    background: #ffffff !important;
	border: 1px solid #d5dbe3 !important;
	border-top: none !important;
	border-bottom: none !important;
    border-radius: 0 !important;
}

/* Untere Ecken sauber abschließen */
.G03Q05 .answer-container {
    background: #ffffff !important;
    border-radius: 0 0 10px 10px !important;
}


/* Frage 51: innere Rundungen entfernen */
.G03Q01 .question-title-container,
.G03Q01 .question-valid-container,
.G03Q01 .question-help-container,
.G03Q01 > .answer-container {
    border-radius: 0 !important;
}

/* Der eingefügte Heizarten-Bereich soll keine zusätzlichen Ecken haben */
.G03Q01 #heizarten-bereich {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Nur die Tabelle selbst behält ihre eigenen oberen Ecken */
#heizarten-tabelle {
    border-radius: 10px 10px 0 0 !important;
}


/* Eigenes Logo im Kopfbereich */
.navbar-brand img {
    display: none !important;
}

.navbar-brand {
    display: inline-block;
    width: 1000px;
    background-image: url("../files/logo_pfaffenhofen.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}




/* =====================================
   WILLKOMMENSTEXT – LOGO
   ===================================== */


.welcome-image-container {
    display: block;
    width: 100%;
    text-align: left;
    margin: 20px 0 30px 0;
    padding: 0;
}

.welcome-image {
    display: block;
    width: 100%;
    max-width: 840px;
    height: auto;
    margin: 0;
}