/*
 * MOBIS design adjustments (2026-11)
 * Loaded after agency.min.css. All visual changes of the design-optimierung
 * branch live in this file, so removing the <link> restores the old look.
 */

/* ---------- 1. Hero: darker overlay for legibility, fluid heading ---------- */
header {
    background-image: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), url(../img/header-bg.jpg);
}
.intro-text .intro-lead-in {
    font-size: clamp(20px, 3vw, 40px);
    line-height: 1.2;
}
.intro-text .intro-heading {
    font-size: clamp(32px, 5.5vw, 75px);
    line-height: 1.1;
}

/* ---------- 2. Tighter section spacing ---------- */
section h3.section-subheading {
    margin-bottom: 50px;
}
section .section-footer {
    margin-top: 40px;
}
@media (min-width: 768px) {
    section {
        padding: 100px 0;
    }
}
/* WIE has no subheading: give the heading the same gap */
#WIE h2.section-heading {
    margin-bottom: 60px;
}

/* ---------- 3. Timeline: line on the left, text uses the full width ---------- */
.timeline > li {
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .timeline:before {
        left: 50px;
    }
    .timeline > li {
        min-height: 100px;
        margin-bottom: 40px;
    }
    .timeline > li .timeline-image {
        left: 0;
        margin-left: 0;
    }
    .timeline > li .timeline-panel,
    .timeline > li.timeline-inverted > .timeline-panel {
        width: 100%;
        float: right;
        text-align: left;
        padding: 10px 0 0 130px;
    }
}
@media (min-width: 992px) {
    .timeline:before {
        left: 75px;
    }
    .timeline > li {
        min-height: 150px;
    }
    .timeline > li .timeline-image {
        margin-left: 0;
    }
    .timeline > li .timeline-panel,
    .timeline > li.timeline-inverted > .timeline-panel {
        padding: 25px 0 0 190px;
    }
}
@media (min-width: 1200px) {
    .timeline:before {
        left: 85px;
    }
    .timeline > li {
        min-height: 170px;
    }
    .timeline > li .timeline-image {
        margin-left: 0;
    }
    .timeline > li .timeline-panel,
    .timeline > li.timeline-inverted > .timeline-panel {
        padding: 30px 0 0 210px;
    }
}
.timeline .timeline-body > p {
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- 4. One list style everywhere (check marks) ---------- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px;
    display: table;          /* shrink-wrap and center the block */
    text-align: left;
    font-size: 16px;
}
.check-list li {
    position: relative;
    padding: 6px 0 6px 32px;
    line-height: 1.5;
}
.check-list li:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 14px;
    height: 8px;
    border-left: 3px solid #ffae33;
    border-bottom: 3px solid #ffae33;
    transform: rotate(-45deg);
}
@media (min-width: 768px) {
    .check-list.check-list-2 {
        display: block;
        max-width: 700px;
        columns: 2;
        column-gap: 48px;
    }
    .check-list.check-list-2 li {
        break-inside: avoid;
    }
}

/* ---------- 5. Modals: centered card instead of full-screen overlay ---------- */
.portfolio-modal .modal-dialog {
    height: auto;
    width: auto;
    margin: 10px;
}
@media (min-width: 768px) {
    .portfolio-modal .modal-dialog {
        width: 560px;
        margin: 100px auto;
    }
    #impressumModal .modal-dialog {
        width: 720px;
    }
}
.portfolio-modal .modal-content {
    min-height: 0;
    padding: 40px 30px 30px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
/* the template nests a full Bootstrap grid inside the modal: neutralize it */
.portfolio-modal .modal-content .container {
    width: auto;
    padding: 0;
}
.portfolio-modal .modal-content .row {
    margin: 0;
}
.portfolio-modal .modal-content [class*="col-"] {
    width: auto;
    float: none;
    margin-left: 0;
    padding: 0;
}
/* template sets 1.8em / 3em (>=768px): too big for a card */
.portfolio-modal .modal-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}
.portfolio-modal .modal-content img.modal-thumb {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f1f1f1;
}
.portfolio-modal .modal-content .check-list {
    margin-bottom: 25px;
}
/* small close cross in the card corner */
.portfolio-modal .close-modal {
    width: 32px;
    height: 32px;
    top: 14px;
    right: 14px;
    z-index: 2;
}
.portfolio-modal .close-modal .lr,
.portfolio-modal .close-modal .lr .rl {
    height: 32px;
    width: 2px;
    background-color: #999;
}
.portfolio-modal .close-modal .lr {
    margin-left: 15px;
}
/* Impressum: long text reads better left-aligned */
#impressumModal .modal-content {
    text-align: left;
}
#impressumModal .modal-content .btn {
    margin-top: 10px;
}
