/* =================================================================
   MagicReinigung - Kumulierte und bereinigte CSS-Datei
   ================================================================= */

/* --------------------
   1. Allgemeine Stile & Typografie
   -------------------- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
}
input#website_url {
    position: absolute;
    left: -5000px;
    top: -5000px;
}
/* Media query for mobile action bar padding */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }
}

/* --------------------
   2. Farbpalette & CSS-Variablen
   -------------------- */
:root {
    --bs-primary: #034F8C;
    --bs-secondary: #5a6a7b;
    --bs-warning: #FECC40;
    --bs-light: #f0f4f8;
    --bs-dark: #2c3e50;
    --bs-primary-rgb: 3, 79, 140;
    --bs-warning-rgb: 254, 204, 64;
}

/* --------------------
   3. Header & Navigation
   -------------------- */
.navbar {
    transition: background-color 0.3s ease-in-out;
}
.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.nav-link {
    font-weight: 600;
    color: var(--bs-dark);
}
.nav-link.active, .nav-link:hover {
    color: var(--bs-primary);
}
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
}

/* --------------------
   4. Seiten-Header (Hero & Standard) - ERNEUT KORRIGIERT
   -------------------- */
/* Hero auf der Startseite */
.hero-bg {
    position: relative;
    color: white;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10vh 0; /* Korrekte Höhe wiederhergestellt */
}
.hero-bg h1 {
    font-weight: 800;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 0;
}

/* Standard-Header auf Unterseiten */
.page-header {
    position: relative;
    color: white;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0; /* Kleinere Höhe für Unterseiten */
    background-color: var(--bs-primary);
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}
.page-header h1 {
    font-weight: 800;
    position: relative;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.4);
    z-index: 1;
}
.page-header p {
    text-shadow: 0px 3px 12px rgba(0,0,0,0.3);
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}
/* Overlay für Header mit Hintergrundbild (Dienstleistungsseiten) */
.page-header[style*='background-image'] {
    padding: 6rem 0; /* Etwas mehr Höhe, wenn ein Bild vorhanden ist */
}
.page-header[style*='background-image']::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 0;
}


/* --------------------
   5. Buttons & Formularelemente
   -------------------- */
.btn {
    border-radius: 50rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-warning {
    color: var(--bs-primary);
    background-image: linear-gradient(45deg, var(--bs-warning), #ffd97a);
    border: none;
    box-shadow: 0 4px 15px rgba(var(--bs-warning-rgb), 0.3);
}
.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(var(--bs-warning-rgb), 0.4);
}
.btn-primary {
     background-image: linear-gradient(45deg, var(--bs-primary), #0465a9);
     border: none;
     box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
}
 .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(var(--bs-primary-rgb), 0.4);
}
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* --------------------
   6. Layout & Sektionen
   -------------------- */
.section-padding {
    padding: 5rem 0;
}
.section-title {
    font-weight: 800;
    color: var(--bs-dark);
}
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}
.wave-divider .shape-fill {
    fill: #f0f4f8;
}
.wave-divider-bottom .shape-fill {
    fill: #FFFFFF;
}
.wave-divider-top {
     transform: rotate(180deg);
}
.cta-section {
    background-image: linear-gradient(45deg, var(--bs-primary), #0465a9);
}

/* --------------------
   7. Komponenten-Stile (Karten, Icons etc.)
   -------------------- */
.content-card, .form-card, .contact-info-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    padding: 2rem;
}
@media (min-width: 768px) {
    .content-card, .form-card, .contact-info-card {
        padding: 3rem;
    }
}
.service-card {
    background-color: #ffffff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(var(--bs-primary-rgb), 0.15);
}
.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: -40px auto 1.5rem;
    background-image: linear-gradient(135deg, var(--bs-primary), #0465a9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.3);
    position: relative;
}
.service-card .card-body {
    padding-top: 1rem;
}
.service-overview-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(var(--bs-primary-rgb), 0.15);
}
.service-overview-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.service-overview-card .icon, .contact-info-card .icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}
.contact-info-card .icon {
    font-size: 2rem;
    margin-bottom: 0;
}
.service-overview-card .card-title {
    font-weight: 700;
}
.service-overview-card .btn {
    margin-top: auto;
}
.testimonial-card {
    border: none;
    background-color: var(--bs-light);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    height: 100%;
}
.testimonial-card::before {
    content: '\f54a';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 3rem;
    color: rgba(var(--bs-primary-rgb), 0.1);
    line-height: 1;
}
.testimonial-card .card-body {
    position: relative;
    z-index: 1;
}
.why-us-card {
    background: transparent;
    border: none;
}
.why-us-icon {
    width: 70px;
    height: 70px;
    background-image: linear-gradient(45deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-primary-rgb), 0.2));
    color: var(--bs-primary);
    font-size: 2rem;
    border-radius: 1rem;
}
.list-group-item {
    background-color: transparent;
    border-color: #e9ecef;
}
.list-group-item .bi {
    color: var(--bs-primary);
}
.accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}
.client-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.info-box .icon {
    font-size: 1.5rem;
    color: var(--bs-primary);
}
.about-image-wrapper {
    position: relative;
}
.about-image {
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background-color: rgba(var(--bs-warning-rgb), 0.2);
    border-radius: 1rem;
    z-index: -1;
    transition: all 0.3s ease;
}
.about-image-wrapper:hover::before {
    transform: translate(10px, 10px);
}

/* --------------------
   8. Footer
   -------------------- */
footer {
    background-color: #2c3e50;
}
footer .text-secondary {
    color: #adb5bd !important;
}
footer a.nav-link {
    color: #dee2e6;
    transition: color .3s;
}
footer a.nav-link:hover {
    color: var(--bs-warning);
}
.footer-social a {
     color: #dee2e6;
     transition: color .3s;
}
.footer-social a:hover {
    color: white;
}

/* --------------------
   9. Mobile-spezifische Stile
   -------------------- */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 0.5rem;
    z-index: 1050;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.mobile-action-bar .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
}
.mobile-action-bar .btn:hover {
    text-decoration: none;
}
.mobile-action-bar .btn i {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
}
.mobile-action-bar .btn-whatsapp {
    color: #25D366;
}
.mobile-action-bar .btn-call {
    color: var(--bs-primary);
}
.mobile-action-bar .btn-mail {
    color: var(--bs-secondary);
}
