/*------------------------------------------------
Project        :   Bundesverband deutscher Banken
Version        :   V.1
Create Date    :   05/02/25
Copyright      :   BankenService.Berlin GmbH 
Author         :   Ulf Mulka
--------------------------------------------------*/

/* === Grundfarben === */
:root {
    --primary: #7b071a;
    --primary-dark: #5c0614;
    --primary-light: #a20d2a;
    --deactive: #dca8b0;
    --text: #1f1f1f;
    --bg: #f7f7f7;
    --white: #fff;
    --gray-light: #eaeaea;
}

/* === Reset und Grundlayout === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 95vh;
}

main {
    display: block;
    width: 100%;
    flex: 1;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 1rem;
}

/* === Container-Struktur mit zwei Spalten === */

.container {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    /*    width: 80vw;
*/ flex-wrap: wrap;
    border-radius: 8px;
    z-index: auto;
/*    z-index: -2;
*/
}


/* === Linke Box === */
.box-left {
    display: inline-block;
    flex: 2;
    min-width: 180px;
    background-color: var(--white);
    padding: 1.0rem;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
}

/* === Rechte Box mit Infobox === */
.box-right {
    flex: 1;
    min-width: 180px;
    background-color: var(--white);
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
}

.box-left, .box-right {
    position: relative;
    z-index: 1;
}
/*Innerhalb der Infobox (div3, div4) */
.info-block_1 {
    border: 2px solid var(--primary);
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: #f7f7f7;
}

.info-block_2 {
    border: 2px solid var(--primary);
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    /*    background-color: #fff4f6;
*/
}

.border-top footer text-muted {
    line-height: 60px;
}

footer {
    line-height: 10px !important;
    position: relative;
    z-index: 0;
    margin-top: auto;
}

/* === Buttons === */
.buttons button {
    padding: 8px 25px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    transition: all 200ms linear;
}

    .buttons button:active {
        transform: scale(0.97);
    }

    .buttons button:disabled {
        background: var(--deactive);
        cursor: not-allowed;
    }

/* === Label === */
.label {
    font-weight: bold;
    color: var(--primary);
}

/* === Formulare === */
input,
select,
textarea {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 1rem;
}

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(123, 7, 26, 0.2);
    }

    input[type="radio"]:focus {
        outline: none;
        box-shadow: none;
    }

/* === Tabellen === */
.table-responsive {
    overflow-x: auto;
    width: 100% !important;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

thead {
    background-color: var(--primary);
    color: var(--white);
}

.col-aussage {
    width: 60%;
    overflow-x: hidden;
}

.col-antwort {
    width: 20%;
    text-align: center;
    overflow-x: hidden;
}


.frage-form {
    width: 100%;
    display: block;
}



/* === Links === */
a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        color: var(--primary-light);
        text-decoration: none;
    }

/* === Responsive Breakpoints === */
@media (min-width: 490px) {
    body {
        font-size: 12px;
    }
}

@media (min-width: 576px) {
    body {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .wrapper {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .wrapper {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .wrapper {
        max-width: 1320px;
    }
}

@media (max-width: 767px) {
    .container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .box-right {
        border-left: none;
        border-top: 4px solid var(--primary);
    }
}

/* === Headings === */
h1, h2, h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
/*----------------------------------------------------------------------------------------*/


/* === Responsive Breakpoints erweitert === */

/* Smartphones klein (unter 576px) */
@media (max-width: 575px) {
    body {
        font-size: 14px;
        padding: 0.5rem;
    }

    .container {
        flex-direction: column;
        padding: 0.5rem;
    }

    .box-left, .box-right {
        width: 100%;
        padding: 0.5rem;
    }

    .buttons button {
        width: 100%;
    }

    footer {
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Smartphones groß (576px – 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .box-left, .box-right {
        flex: 1 1 100%;
    }

    .container {
        flex-direction: column;
    }
}

/* Tablets (768px – 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        flex-direction: row;
        gap: 1rem;
    }

    .box-left, .box-right {
        flex: 1 1 50%;
    }
}

/* Kleine Desktops/Laptops (992px – 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .wrapper {
        max-width: 960px;
        margin: 0 auto;
    }
}

/* Große Bildschirme (ab 1200px) */
@media (min-width: 1200px) {
    .wrapper {
        max-width: 1140px;
        margin: 0 auto;
    }

    .box-left, .box-right {
        padding: 1.5rem;
    }
}

/* === Responsive Tabelle für Fragebereich === */
@media (max-width: 767px) {
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        border: none;
    }

        .table thead {
            display: none;
        }

        .table tbody tr {
            max-width:91%;
            display: block;
            margin-bottom: 1rem;
            border-bottom: 1px solid var(--gray-light);
            padding-bottom: 0.5rem;
        }

        .table td {
            display: block;
            text-align: left !important;
            padding: 0.5rem 0;
            border: none;
        }

            .table td::before {
                content: attr(data-label);
                font-weight: bold;
                display: block;
                color: var(--primary);
                margin-bottom: 0.25rem;
            }

            .table td input[type="radio"] {
                transform: scale(1.2);
            }

    .col-aussage,
    .col-antwort {
        width: 100% !important;
    }

    .buttons {
        flex-direction: column;
    }

        .buttons button {
            width: 100%;
        }

}

