/* =========================
   Variablen & Basisfarben
   ========================= */
:root {
    --petrol: #217a8a;
    --kupfer: #B5794F;
    --hellgrau: #f8f9fa;
    --grau: #e9ecef;
    --schrift: #212529;

    /* Reserve bis zur Icon-Leiste (Default). Kannst du per JS dynamisch setzen. */
    --icons-reserve: 260px;
}

/* =========================
   Allgemeines Layout
   ========================= */
.content-body {
    margin-left: unset;
    z-index: unset;
    transition: unset;
    padding-top: 0 !important;
}

.finia-section {
    font-size: 18px;
    line-height: 1.7;
    color: #222;
    max-width: 1000px;
}

/* =========================
   Buttons
   ========================= */
.btn-finia {
    background-color: #45b0b9;
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0.5rem 1.6rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-finia:hover {
    background-color: #389fa8;
}

button {
    background-color: var(--kupfer);
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
button:hover { background-color: #9e5f3c; }

.btn-outline-secondary {
    color: var(--petrol);
    border-color: var(--petrol);
}
.btn-outline-secondary.disabled, .btn-outline-secondary:disabled {
    color: var(--petrol);
    background-color: transparent;
}
.btn-outline-secondary:hover {
    color: #fff;
    background-color: var(--petrol);
    border-color: var(--petrol);
}

/* =========================
   Transitions / Animations
   ========================= */
.fade-scale-enter-active,
.fade-scale-leave-active,
.fade-enter-active,
.fade-leave-active {
    transition: all 0.3s ease;
}
.fade-scale-enter-from,
.fade-scale-leave-to,
.fade-enter-from,
.fade-leave-to {
    opacity: 0;
    transform: scale(0.9);
}

/* =========================
   Topic Cards
   ========================= */
.topic-card {
    width: 180px;
    height: 180px;
    background-color: #b3774c;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px 5px;
}
.topic-card.active { background-color: #35787b; }

.topic-icon-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.topic-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.topic-text-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: flex-start; /* Text startet immer oben */
    justify-content: center;
    text-align: center;
    margin-top: 10px;
}

.topic-label {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.3;
    word-break: break-word;
}

/* =========================
   Modal: über Icon-Leiste positioniert
   ========================= */

/* Die Spalte als Bezugspunkt */
.col-md-6.position-relative { position: relative; }

/* Wrapper spannt von oben bis kurz über die Icons */
.modal-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;

    /* endet kurz vor den Icons (Default via --icons-reserve) */
    bottom: var(--icons-reserve);

    z-index: 1000;

    /* Box nach unten drücken */
    display: flex;
    flex-direction: column;
}

/* Blur-Fläche füllt Wrapper */
.modal-blur-area {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    z-index: 0;
}

/* Modal-Box selbst (NICHT absolut) – sitzt unten im Wrapper */
.modal-box {
    position: relative;         /* statt absolute */
    z-index: 1;
    width: 100%;
    max-width: 850px;
    box-sizing: border-box;

    /* nutzt Wrapper-Höhe; bei viel Content scrollt es */
    max-height: 100%;
    overflow-y: auto;

    /* Optik */
    background-color: #2f6f71;  /* Petrol */
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 20px solid #2f6f71;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    /* Inhalt innerhalb der Box optional unten ausrichten
    display: flex;
    flex-direction: column;
    justify-content: flex-end;*/

    /* schiebt die Box im Wrapper an den unteren Rand */
    margin-top: auto;
}

/* Textformatierungen im Modal */
.modal-box, .modal-box p, .modal-box .btn {
    font-size: 1rem;
    line-height: 1.6;
}
.modal-box .btn-secondary:hover {
    color: #fff;
    background-color: #B5794F;
    border-color: #ffffff;
}
.modal-box .btn-close { filter: brightness(100%) invert(1); }
.modal-box .close {
    color: #fff;
    opacity: 0.8;
}

.modal-box ul {
    margin: 0;
    padding-left: 1.2em;
    margin-bottom: 15px;
}

.modal-box ul li {
    font-size: 1rem;
    line-height: 1.6;
    list-style: outside;
    vertical-align: middle;
}

/* Falls nur der innere Content-Block unten kleben soll */
.modal-box .pe-3 {
    /* Variante A: Block nach unten drücken
    margin-top: auto;*/

    /* Variante B (Alternative):
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    */
}

/* Zusätzliche Variante: Modal über Icons (falls außerhalb Wrapper gebraucht)
.modal-above-icons {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 100%;
    z-index: 10;
    background: white;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    max-height: 200px;
    overflow-y: auto;
}*/

/* =========================
   Hero / Header
   ========================= */
.header {
    height: 5rem;
    z-index: 1;
    position: relative;
    padding-left: 17.1875rem;
    background-color: transparent;
    box-shadow: none;
    transition: all .2s ease;
}

.hero-header {
    position: relative;
    height: 650px;
    width: 100%;
    overflow: hidden;
}
.hero-bg {
    background-image: url('../../../chart/images/header.jpg');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #fff;
}

.hero-checks {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.hero-checks .check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 18px;
}
.hero-checks .check-item i {
    color: #B5794F;
    font-size: 1rem;
}

.divider {
    border: none;
    height: 1px;
    background-color: #888;
    opacity: 1;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    width: 100%;
    display: block;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.hero-left {
    max-width: 60%;
    bottom: 10%;
    position: absolute;
}
.hero-headline {
    font-size: 2.6rem;
    line-height: 1.3;
    font-weight: 400;
    color: #fff;
    margin-bottom: 1rem;
}
.hero-subline {
    font-size: 1.2rem;
    font-weight: 300;
    color: #fff;
}
.cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    right: 30px;
    position: absolute;
}

/* =========================
   Topic-Right Textblöcke
   ========================= */
.topic-title {
    font-size: 1.5rem;
    font-weight: normal;
    color: #000;
    margin-bottom: 1rem;
}
.topic-text {
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 1.5rem;
}
.topic-detail {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1rem;
}
.topic-detail strong {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}
.topic-note {
    font-size: 0.9rem;
    color: #222;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* =========================
   Wizard Header / Steps
   ========================= */
.wizard-header {
    padding: 1rem 0;
    background: transparent;
}
.wizard-steps-alt {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    height: 30px;
}
.wizard-steps-alt li {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    margin-left: -1rem;
    background: var(--grau);
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 8px;
    cursor: pointer;
    clip-path: polygon(0% 0%, calc(100% - 1rem) 0%, 100% 50%, calc(100% - 1rem) 100%, 0% 100%);
    z-index: 1;
}
.wizard-steps-alt li:first-child { margin-left: 1rem; }
.wizard-steps-alt li.completed {
    background: var(--petrol);
    color: #fff;
    z-index: 2;
}
.wizard-steps-alt li.current {
    background: var(--kupfer);
    color: #fff;
    font-weight: 600;
    z-index: 4;
    border: 1px solid transparent;
}
.wizard-steps-alt li.current + li { z-index: 1 !important; }
.wizard-steps-alt li:last-child {
    clip-path: polygon(0% 0%, calc(100% - 1.6rem) 0%, 100% 50%, calc(100% - 1.6rem) 100%, 0% 100%);
    z-index: 2;
}
.wizard-steps-alt li::before {
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    margin-right: 0.5rem;
    content: "\f303";
}
.wizard-steps-alt li.completed::before { content: "\f00c"; }

/* =========================
   Wizard Body & Form
   ========================= */
.wizard-body {
    padding: 2rem;
    background: #fff;
    color: var(--schrift);
}
.wizard-body h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    min-height: 3rem;
}
.wizard-body p {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
    min-height: 4rem;
}

/* Form Elemente */
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0;
    border: 1px solid var(--petrol);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--schrift);
    background-color: #fff;
    transition: border-color 0.3s;
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--kupfer);
    outline: none;
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--petrol);
    background: #fff;
}

/* Checkbox Custom */
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--schrift);
    position: relative;
    cursor: pointer;
}
.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    z-index: 2;
    cursor: pointer;
}
.checkbox-option span {
    padding-left: 26px;
    position: relative;
}
.checkbox-option span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 20px;
    height: 20px;
    border: 2px solid var(--petrol);
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
}
.checkbox-option input[type="checkbox"]:checked + span::before {
    background-color: var(--kupfer);
    border-color: var(--kupfer);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l3 3 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

/* Hinweise / Status */
.step-warning {
    color: red;
    margin-left: 6px;
    font-weight: bold;
    font-size: 1.2em;
}
.step-complete {
    color: white;
    margin-left: 6px;
    font-weight: bold;
    font-size: 1.2em;
}
.validation-error {
    background: #ffe5e5;
    border: 1px solid #ff8a8a;
    padding: 1rem;
    margin-top: 0;
    border-radius: 6px;
    color: #b30000;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.1);
}
.validation-error li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.disabled-group { opacity: 0.5; pointer-events: none; }

/* Footer */
.footer {
    color: #c9906a;
    font-family: 'sans-serif', serif;
    font-size: 22px;
}
.footer a { color: #c9906a; }

.footer a:hover { text-decoration: underline; }

.copyright {
    font-size: 16px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
    .wizard-header { overflow-x: auto; }
    .wizard-steps-alt {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .wizard-steps-alt::-webkit-scrollbar { display: none; }
    .wizard-steps-alt li {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        min-width: max-content;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .hero-left { max-width: 100%; }
    .cta-buttons { justify-content: center; right: unset; }
    .hero-headline { font-size: 1.8rem; }
    .hero-subline { font-size: 1rem; }
    .hero-checks {
        font-size: 0.85rem;
        justify-content: center;
    }
}

/* <br> bei schmaleren Viewports ignorieren */
@media (max-width: 1919px) {
    .topic-text br { display: none; }
}

.col-md-6.position-relative {
    display: flex;
    flex-direction: column;
}


.col-md-6.position-relative > .mt-4 {
    margin-top: auto !important; /* schiebt den Block ganz nach unten */
}
