/**
 * FRONTEND VISUAL FIXES - CRITICAL EDITION - FIXED
 * 
 * FOOTER REGELN ENTFERNT - werden von oyropa-footer.css übernommen
 */

/* ============================================
   RECHTLICHER DISCLAIMER - LESBAR (Screenshot-Problem)
   ============================================ */

.disclaimer-box,
.legal-notice,
.wichtiger-hinweis {
    background: #FFF9E6 !important; /* Helles Gelb */
    border: 2px solid #D69E2E !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin: 32px 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Disclaimer Heading - Auffällig */
.disclaimer-box h3,
.disclaimer-box h4,
.legal-notice h3,
.wichtiger-hinweis h3 {
    color: #1A365D !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Disclaimer Text - LESBAR */
.disclaimer-box p,
.disclaimer-box li,
.legal-notice p,
.wichtiger-hinweis p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #2D3748 !important;
    margin-bottom: 12px !important;
}

/* Disclaimer Listen - Strukturiert */
.disclaimer-box ul,
.disclaimer-box ol {
    padding-left: 20px !important;
    margin: 12px 0 !important;
}

.disclaimer-box li {
    padding: 6px 0 !important;
}

/* Zusammenklappbarer Disclaimer */
.disclaimer-collapsible {
    cursor: pointer !important;
    user-select: none !important;
}

.disclaimer-content {
    margin-top: 12px !important;
}

/* Mobile Disclaimer - Kompakter */
@media (max-width: 768px) {
    .disclaimer-box,
    .legal-notice,
    .wichtiger-hinweis {
        padding: 16px !important;
        margin: 24px 0 !important;
    }

    .disclaimer-box h3,
    .disclaimer-box h4 {
        font-size: 16px !important;
    }

    .disclaimer-box p,
    .disclaimer-box li {
        font-size: 14px !important;
    }
}

/* ============================================
   ACCORDION SPACING - MEHR LUFT (Screenshot-Problem)
   ============================================ */

.bewertungs-card,
.accordion-item,
.card {
    margin-bottom: 20px !important;
    padding: 20px !important;
}

.card-header {
    padding: 20px !important;
    margin-bottom: 16px !important;
    min-height: 56px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
}

.card-content,
.card-body {
    padding: 20px !important;
    line-height: 1.7 !important;
}

/* Accordion Buttons - MEHR ABSTAND */
.accordion-button {
    padding: 18px 20px !important;
    margin-bottom: 8px !important;
    min-height: 56px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* Mobile Accordion - NOCH MEHR ABSTAND */
@media (max-width: 768px) {
    .bewertungs-card,
    .accordion-item,
    .card {
        margin-bottom: 24px !important;
        padding: 16px !important;
    }

    .card-header {
        padding: 16px !important;
        min-height: 60px !important;
    }

    .accordion-button {
        padding: 16px 18px !important;
        margin-bottom: 12px !important;
        min-height: 60px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   MOBILE SPACING - DURCHGEHEND MEHR LUFT
   ============================================ */

@media (max-width: 768px) {
    /* Sections - Mehr Padding */
    section {
        padding: 40px 20px !important;
    }

    /* Hero - Mehr Luft */
    .hero {
        padding: 60px 20px !important;
        margin-bottom: 40px !important;
    }

    /* Headings - Mehr Abstand */
    h1, h2, h3 {
        margin-bottom: 20px !important;
        margin-top: 32px !important;
    }

    h1:first-child,
    h2:first-child,
    h3:first-child {
        margin-top: 0 !important;
    }

    /* Paragraphs - Mehr Zeilenabstand */
    p {
        margin-bottom: 16px !important;
        line-height: 1.8 !important;
    }

    /* Listen - Mehr Abstand */
    ul, ol {
        margin: 20px 0 !important;
        padding-left: 24px !important;
    }

    li {
        margin-bottom: 12px !important;
        line-height: 1.7 !important;
    }

    /* Buttons - Mehr Abstand */
    .btn,
    button {
        margin: 12px 0 !important;
        padding: 14px 24px !important;
        min-height: 48px !important;
    }

    /* Forms - Mehr Abstand */
    .form-group {
        margin-bottom: 24px !important;
    }

    input,
    select,
    textarea {
        padding: 14px 16px !important;
        margin-bottom: 12px !important;
        min-height: 48px !important;
    }

    label {
        margin-bottom: 10px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   TEXT LESBARKEIT - KONTRASTE
   ============================================ */

/* Alle Texte - KONTRAST */
body {
    color: #2D3748 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #1A365D !important;
}

p, li, span, div {
    color: #4A5568 !important;
}

/* Links - SICHTBAR */
a {
    color: #1A365D !important;
    text-decoration: underline !important;
}

a:hover {
    color: #D69E2E !important;
}

/* Buttons - HOHER KONTRAST */
.btn-primary,
.btn-navy {
    background: #1A365D !important;
    color: white !important;
    border: 2px solid #1A365D !important;
}

.btn-primary:hover,
.btn-navy:hover {
    background: #D69E2E !important;
    color: #1A365D !important;
    border-color: #D69E2E !important;
}

/* ============================================
   CARDS - SAUBERE SCHATTEN
   ============================================ */

.card,
.bewertungs-card,
.service-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: white !important;
}

.card:hover,
.bewertungs-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-4px) !important;
}

/* ============================================
   MOBILE NAVIGATION - SICHTBAR
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .navbar-brand {
        font-size: 20px !important;
        font-weight: 700 !important;
    }

    .navbar-toggler {
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 12px !important;
        border: 2px solid #1A365D !important;
    }

    .nav-link {
        padding: 16px 20px !important;
        font-size: 16px !important;
        min-height: 52px !important;
        border-bottom: 1px solid #E2E8F0 !important;
    }
}

/* ============================================
   IMAGES - RESPONSIVE
   ============================================ */

img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* ============================================
   PREVENT HORIZONTAL SCROLL - AGGRESSIV
   ============================================ */

html,
body,
* {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Tabellen scrollbar */
table {
    display: block !important;
    overflow-x: auto !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    * {
        max-width: 100vw !important;
    }
}
