/* ==========================================================================
   ZELX MOBILE & THEME ENHANCEMENTS (m.css) - PERFORMANCE OPTIMIZED
   ========================================================================== */

/* Globale Basis & Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Medien & Elemente vor Überläufen schützen */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   1. FEEDBACK-BOX ANPASSUNGEN
   -------------------------------------------------------------------------- */
.zelx-feedback-box button {
    font-size: 16px !important;
}

.zelx-feedback-box img, 
.zelx-feedback-box svg {
    max-width: 24px !important;
    max-height: 24px !important;
}

/* --------------------------------------------------------------------------
   2. SCHULFERIEN & FEIERTAGS-WIDGET (Mobile Fixes)
   -------------------------------------------------------------------------- */
.calendar-widget-container,
div[class*="ferien"],
div[class*="feiertage"] {
    max-width: 100%;
}

.calendar-widget-container ul li,
.calendar-widget-container .row,
div[class*="ferien"] li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    word-break: break-word;
}

@media (max-width: 480px) {
    .calendar-widget-container form,
    .calendar-widget-container .form-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .calendar-widget-container select,
    .calendar-widget-container button,
    .calendar-widget-container input[type="submit"] {
        width: 100%;
        margin: 0;
    }
}

/* --------------------------------------------------------------------------
   3. FOOTER & BACK-TO-TOP BUTTON
   -------------------------------------------------------------------------- */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

@media (min-width: 600px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* --------------------------------------------------------------------------
   4. ÜBER UNS & CARD LAYOUTS
   -------------------------------------------------------------------------- */
.about-page-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
}

.about-page-card h2 {
    font-size: 1.3rem;
    color: #c0392b;
    margin-bottom: 1rem;
    text-align: center;
}

.about-page-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 0.25rem;
}

.about-page-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0.75rem;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 1.5rem;
}

.about-badges .badge {
    background: #f8f9fa;
    border: 1px solid #dcdde1;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. FORMULAR- & CALCULATOR-RESPONSIVENESS
   -------------------------------------------------------------------------- */
main input[type="text"],
main input[type="number"],
main input[type="email"],
main select,
main textarea,
.entry-content input,
.entry-content select {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

main form,
.entry-content form {
    width: 100%;
    max-width: 100%;
}

iframe, 
table, 
.calculator, 
div[class*="calculator"],
div[id*="calculator"],
.rechner-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}