/* =========================================
   FPÖ Preding – Final Overrides
   Diese Datei NACH style.css einbinden:
   <link rel="stylesheet" href="css/final-overrides.css">
   ========================================= */

/* ===== HERO / HEADER ===== */

.header-title.hero-modern {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Graue Überlagerung entfernen */
.header-title.hero-modern::before {
    display: none !important;
}

.header-title.hero-modern .container {
    position: relative;
    z-index: 2;
}

.header-title.hero-modern .title-base {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.header-title.hero-modern .title-base hr {
    border-color: rgba(255, 255, 255, 0.85);
    width: 80px;
    margin: 0 auto 20px auto;
}

.header-title.hero-modern h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.70);
}

.header-title.hero-modern p {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    color: #f3f3f3;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.70);
}

.header-title {
    background-position: center 30% !important;
    background-size: cover !important;
    background-attachment: scroll !important;
}

@media (max-width: 768px) {
    .header-title.hero-modern {
        min-height: 520px;
        padding: 80px 20px;
        align-items: center;
    }

    .header-title.hero-modern .title-base {
        max-width: 100%;
    }

    .header-title.hero-modern h1 {
        font-size: 32px;
    }

    .header-title.hero-modern p {
        font-size: 18px;
        line-height: 1.4;
    }

    .header-title {
        background-position: center 20% !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }
}

/* ===== GLOBAL SPACING ===== */

.section-empty,
.section-bg-color {
    padding-top: 70px;
    padding-bottom: 70px;
}

.title-base {
    margin-bottom: 35px;
}

.title-base h2,
.title-base h3,
.title-base h4 {
    line-height: 1.25;
}

p {
    line-height: 1.7;
}

@media (max-width: 768px) {
    .section-empty,
    .section-bg-color {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .title-base {
        margin-bottom: 25px;
    }

    p {
        line-height: 1.6;
    }
}

/* ===== PROJECT CARDS ===== */

.project-cards .col-md-4,
.project-cards .col-sm-6 {
    margin-bottom: 30px;
}

.project-card {
    background: #005bbb;
    color: #ffffff;
    padding: 32px 26px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-card .card-body {
    width: 100%;
}

.project-card h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-card p {
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.65;
    margin: 0;
}

.project-card:hover {
    background: #004799;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .project-card {
        padding: 26px 20px;
    }

    .project-card h4 {
        font-size: 22px;
    }
}

/* ===== FOOTER VOLLBREITE ===== */

.footer-base {
    background: #f2f2f2;
    width: 100%;
    font-size: 14px;
}

.footer-base .content {
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.footer-base .container {
    width: 100%;
    max-width: 1400px;
}

.footer-base h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-base p,
.footer-base a {
    line-height: 1.7;
}

.footer-base a {
    color: inherit;
    text-decoration: none;
}

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

.copy-row {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .footer-base .content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===== FORM POLISH ===== */

.form-control {
    min-height: 44px;
    border-radius: 6px;
    box-shadow: none;
}

textarea.form-control {
    min-height: 140px;
}

.form-control:focus {
    border-color: #005bbb;
    box-shadow: 0 0 0 2px rgba(0, 91, 187, 0.08);
}

/* ===== IMAGE BEHAVIOR ===== */

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-box img {
    width: 100%;
    height: auto;
}

/* ===== LEGAL TEXT ===== */

.legal-text {
    color: #333 !important;
}

.legal-text p,
.legal-text li,
.legal-text span {
    color: #444 !important;
}

.legal-text h2,
.legal-text h3 {
    color: #111 !important;
}

.legal-text a {
    color: #005bbb !important;
    font-weight: 600;
}

/* ===== COOKIE CONSENT ===== */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.98);
    color: #1f1f1f;
    border-top: 4px solid #005bbb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 20px 22px;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner__text h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #005bbb;
}

.cookie-banner__text p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    min-width: 320px;
}

.cookie-btn-primary {
    background: #005bbb;
    border-color: #005bbb;
    color: #fff;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
    background: #004799;
    border-color: #004799;
    color: #fff;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-modal__dialog {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 720px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #f7f9fc;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-modal__header h3 {
    margin: 0;
    font-size: 24px;
    color: #005bbb;
    font-weight: 700;
}

.cookie-modal__close {
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.cookie-modal__body {
    padding: 22px;
}

.cookie-modal__footer {
    padding: 18px 22px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fafafa;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #ededed;
}

.cookie-option:last-child {
    border-bottom: 0;
}

.cookie-option__info h5 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.cookie-option__info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    flex: 0 0 auto;
}

.cookie-switch input {
    display: none;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    background: #c7ccd4;
    border-radius: 30px;
    transition: 0.2s ease;
}

.cookie-switch span:before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + span {
    background: #005bbb;
}

.cookie-switch input:checked + span:before {
    transform: translateX(26px);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px;
    }

    .cookie-banner__inner {
        display: block;
    }

    .cookie-banner__text {
        margin-bottom: 15px;
    }

    .cookie-banner__actions {
        min-width: 0;
        display: block;
    }

    .cookie-banner__actions .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .cookie-banner__actions .btn:last-child {
        margin-bottom: 0;
    }

    .cookie-modal__dialog {
        width: calc(100% - 20px);
        margin: 20px auto;
    }

    .cookie-modal__header h3 {
        font-size: 20px;
    }

    .cookie-option {
        align-items: flex-start;
    }

    .cookie-modal__footer {
        display: block;
    }

    .cookie-modal__footer .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .cookie-modal__footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* ===== NEWSLETTER ===== */

#newsletter-form .btn-default {
    background: #005bbb;
    border-color: #005bbb;
    color: #fff;
}

#newsletter-form .btn-default:hover,
#newsletter-form .btn-default:focus {
    background: #004799;
    border-color: #004799;
    color: #fff;
}

#newsletter-form .form-control {
    border-color: #d7dce3;
    box-shadow: none;
}

#newsletter-form .form-control:focus {
    border-color: #005bbb;
    box-shadow: 0 0 0 2px rgba(0, 91, 187, 0.08);
}

#newsletter-form p {
    color: #555;
}

#newsletter-form p a {
    color: #005bbb;
    text-decoration: underline;
}

#newsletter-msg {
    margin-top: 12px;
}

#newsletter-msg .alert {
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#newsletter-msg .alert-success {
    background: #eef5ff;
    color: #0f3f7a;
    border-color: #cfe0fb;
}

#newsletter-msg .alert-info {
    background: #f2f7ff;
    color: #1c4f91;
    border-color: #d7e6ff;
}

#newsletter-msg .alert-warning {
    background: #fff6f2;
    color: #8a3f1f;
    border-color: #f2d2c1;
}

#newsletter-msg .alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}


/* ===== SEPARATE HEADER FÜR DESKTOP / MOBILE ===== */

.hero-desktop {
    display: block;
}

.hero-mobile {
    display: none;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 520px;
    padding: 80px 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-desktop {
        display: none !important;
    }

    .hero-mobile {
        display: flex !important;
    }
}

/* ===== HEADER TEXT NO SHADOW FINAL ===== */
.header-title.hero-modern::before { display: none !important; }
.header-title.hero-modern h1 {
    color: #2b2b2b !important;
    text-shadow: none !important;
}
.header-title.hero-modern p {
    color: #444444 !important;
    text-shadow: none !important;
}

/* ===== HEADER SWITCH FINAL ===== */
.hero-desktop { display: block !important; }
.hero-mobile {
    display: none !important;
    min-height: 520px;
    padding: 80px 20px;
    align-items: center;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}
@media (max-width: 768px) {
    .hero-desktop {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .hero-mobile { display: flex !important; visibility: visible !important; }
}

/* ===== WAHLERGEBNISSE + PROJEKTE HERVORHEBEN ===== */
#B,
#projekte.section-empty {
    position: relative;
    background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%) !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}
#B > .container.content,
#projekte > .container.content {
    position: relative;
    z-index: 1;
    background: #ffffff !important;
    border: 1px solid #dce5f0 !important;
    border-radius: 12px !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}
#B h4, #projekte h2, #projekte h3, #projekte h4 { color: #1f1f1f !important; }
#B p, #B li, #projekte p, #projekte li { color: #444444 !important; }
#B { display: block !important; visibility: visible !important; }
#B .abs-image {
    position: relative !important;
    max-width: 100% !important;
    height: auto !important;
    right: auto !important;
    left: auto !important;
    float: none !important;
    margin: 20px auto 0 auto !important;
    display: block !important;
}
@media (max-width: 992px) {
    #B, #projekte.section-empty {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    #B > .container.content,
    #projekte > .container.content {
        padding: 25px !important;
        border-radius: 10px !important;
    }
    #B .col-md-4, #B .col-md-8 {
        width: 100% !important;
        float: none !important;
    }
    #B .abs-image { width: 100% !important; }
}

/* ===== FOOTER FINAL ===== */
.footer-base {
    position: relative;
    background: #3a3a3a !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    color: #ffffff;
}
.footer-base::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #3a3a3a;
    z-index: 0;
}
.footer-base > .content { position: relative; z-index: 1; max-width: 100%; width: 100%; }
.footer-base p, .footer-base a, .footer-base h4, .footer-base h5, .footer-base .copy-text { color: #ffffff !important; }

/* ===== NEWSLETTER STACK FINAL ===== */
#newsletter-form .newsletter-stack { display: block; }
#newsletter-form #newsletter-email {
    display: block;
    width: 100%;
    height: 48px !important;
    margin-bottom: 10px;
    border-radius: 6px !important;
}
#newsletter-form .newsletter-submit {
    display: block;
    width: 100%;
    height: 48px !important;
    border-radius: 6px !important;
    background: #005bbb !important;
    border-color: #005bbb !important;
    color: #fff !important;
    font-weight: 600;
}
#newsletter-form .newsletter-submit:hover,
#newsletter-form .newsletter-submit:focus {
    background: #004799 !important;
    border-color: #004799 !important;
    color: #fff !important;
}


/* ===== BLOG FLEXSLIDER FIX ===== */

.blog-slider-fix,
.blog-slider-fix .flex-viewport,
.blog-slider-fix .slides,
.blog-slider-fix .slides > li,
.blog-slider-fix .slides > li > a {
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
}

.blog-slider-fix .slides > li > a > img,
.blog-slider-fix .slides > li > img,
.blog-slider-fix .slides img {
    width: 100% !important;
    height: 260px !important;   /* hier steuerst du den Beschnitt */
    max-width: 100% !important;
    display: block !important;
    object-fit: cover !important;
}


@media (max-width: 768px) {
    .blog-slider-fix .slides > li > a > img,
    .blog-slider-fix .slides > li > img,
    .blog-slider-fix .slides img {
        height: 220px !important;
    }
}


.img-box.img-box-full {
    height: auto !important;
    overflow: visible !important;
}

.img-box.img-box-full img,
.img-box.img-box-full > img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
}