/* =================================== */
/* Komponenten: Footer                 */
/* =================================== */

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-align: center;
    background: #18262f;
    color: #ffffff;
    bottom: 0; 
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

/* Blur Übergang vor dem Footer */
footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(24, 38, 47, 0), rgba(24, 38, 47, 0.3) 40%, rgba(24, 38, 47, 0.7) 70%, #18262f);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

/* =================================== */
/* Footer Separator and Bottom Section */
/* =================================== */

/* DESKTOP: Subtle divider line, container width only */
.footer_separator {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 20px auto 25px;
}

/* DESKTOP: 3-column layout - Copyright | Karten (zentriert) | Social */
.footer_bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 30px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px 20px;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
}

/* DESKTOP: Copyright - pinned left */
.footer_copyright {
    color: white;
    font-size: 13px;
    text-align: left;
    flex-shrink: 0;
    line-height: 1.4;
    grid-column: 1;
}

/* DESKTOP: Social icons - right column */
.footer_social {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

/* DESKTOP: Reduced icon size and border thickness */
.footer_social_icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer_social_icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}


/* =================================== */
/* Komponenten: Disclaimer             */
/* =================================== */

/* DESKTOP: Center column - horizontal Datenschutz/Support */
.container_disclaimer {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Icons auf einer Hoehe, auch bei zweizeiligem Text */
    gap: 30px;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    grid-column: 2;
}

/* DESKTOP: Reduced icon size for subtler appearance */
.feature_icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.feature_icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* Ensure icon glyph is white on main page despite global default */
.container_disclaimer .material-symbols-outlined {
    color: white !important;
    font-size: 20px;
}

/* DESKTOP: Subtle, compact link appearance */
.feature_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease-in-out;
    margin: 0;
}

.feature_card h4 {
    margin: 0;
    font-size: 0.95em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    padding-top: 8px;
    letter-spacing: 0.3px;
    white-space: nowrap; /* "Widerruf der Polizze" einzeilig */
}

.feature_card:hover h4 {
    color: #ffffff;
}

.feature_card p {
    font-size: 0.9em;
    color: #ffffff;
}

/* =================================== */
/* Responsive Design für Footer       */
/* =================================== */

/* MOBILE: Subtle refinements only */
@media (max-width: 768px) {
    footer::before {
        height: 60px;
        top: -60px;
    }
    
    .footer_separator {
        margin: 15px auto 12px;
        opacity: 0.4;
    }
    
    .footer_bottom {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 0 20px 20px;
        text-align: center;
    }
    
    .footer_copyright {
        position: static;
        text-align: center;
        font-size: 12px;
        order: 3;
    }
    
    .container_disclaimer {
        order: 1;
        gap: 20px;
    }
    
    .feature_card h4 {
        font-size: 1.05em;
        font-weight: 500;
        padding-top: 9px;
    }
    
    .feature_icon {
        width: 42px;
        height: 42px;
        border-width: 1.5px;
    }
    
    .footer_social {
        order: 2;
    }
}

@media (max-width: 480px) {
    footer::before {
        height: 40px;
        top: -40px;
    }
    
    .footer_separator {
        width: calc(100% - 20px);
        margin: 12px auto 10px;
    }
    
    .footer_bottom {
        width: calc(100% - 20px);
        gap: 16px;
    }
    
    .container_disclaimer {
        gap: 18px;
    }
    
    .feature_card {
        max-width: 100px;
    }
    
    .feature_card h4 {
        font-size: 0.95em;
        padding-top: 8px;
        white-space: normal; /* schmale Handys: Umbruch erlaubt */
    }
    
    .feature_icon {
        width: 40px;
        height: 40px;
    }
    
    .container_disclaimer .material-symbols-outlined {
        font-size: 20px;
    }
    
    .footer_copyright {
        font-size: 11px;
    }
    
    .footer_social_icon {
        width: 38px;
        height: 38px;
        border-width: 1.5px;
    }
    
    .footer_social_icon svg {
        width: 17px;
        height: 17px;
    }
    
    .footer_social {
        gap: 10px;
    }
}
