/**
 * Rohrreinigung 24 Theme — Elementor Custom Skin CSS
 * Compatible with Elementor 3.x (classic sections + flexbox containers)
 *
 * @package rohrreinigung24
 * @version 1.1.0
 */

/* ============================================================================
   ELEMENTOR CONTAINER / SECTION MAX-WIDTH
   ============================================================================ */

/* Classic sections */
.elementor-section .elementor-container,
.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
    width: 100%;
}

/* Flexbox containers (Elementor 3.6+) */
.e-con,
.e-con-inner {
    max-width: 1200px !important;
}

.e-con.e-con--full-width > .e-con-inner {
    max-width: 100% !important;
}

/* ============================================================================
   ELEMENTOR SECTION PADDING DEFAULTS
   ============================================================================ */

.elementor-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.elementor-section.elementor-section-sm {
    padding-top: 32px;
    padding-bottom: 32px;
}

.elementor-section.elementor-section-lg {
    padding-top: 80px;
    padding-bottom: 80px;
}

.elementor-section.no-padding,
.elementor-section.no-padding > .elementor-container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Default column padding */
.elementor-column > .elementor-element-populated {
    padding: 12px;
}

/* Prevent column overflow */
.elementor-column {
    min-width: 0;
    max-width: 100%;
}

/* ============================================================================
   ELEMENTOR HEADING WIDGET
   ============================================================================ */

.elementor-widget-heading .elementor-heading-title {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #41423F;
}

.elementor-widget-heading h2.elementor-heading-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: #41423F;
}

.elementor-widget-heading h3.elementor-heading-title {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: #41423F;
}

.elementor-widget-heading h4.elementor-heading-title {
    font-size: 18px;
    font-weight: 600;
    color: #41423F;
}

/* Accent color variant */
.elementor-widget-heading .elementor-heading-title.color-primary {
    color: #28ABE1;
}

/* ============================================================================
   ELEMENTOR TEXT WIDGET
   ============================================================================ */

.elementor-widget-text-editor {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.elementor-widget-text-editor p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.elementor-widget-text-editor p:last-child {
    margin-bottom: 0;
}

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.elementor-widget-text-editor li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ============================================================================
   ELEMENTOR BUTTON WIDGET
   ============================================================================ */

.elementor-widget-button .elementor-button {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease,
                transform 0.25s ease, box-shadow 0.25s ease;
    padding: 14px 28px;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

/* Primary button */
.elementor-widget-button .elementor-button.elementor-button-primary,
.elementor-widget-button .elementor-button[data-rohr-variant="primary"] {
    background-color: #28ABE1;
    border-color: #28ABE1;
    color: #ffffff;
}

.elementor-widget-button .elementor-button.elementor-button-primary:hover,
.elementor-widget-button .elementor-button[data-rohr-variant="primary"]:hover {
    background-color: #1a8fc7;
    border-color: #1a8fc7;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 171, 225, 0.3);
}

/* Outline button */
.elementor-widget-button .elementor-button[data-rohr-variant="outline"] {
    background-color: transparent;
    border-color: #28ABE1;
    color: #28ABE1;
}

.elementor-widget-button .elementor-button[data-rohr-variant="outline"]:hover {
    background-color: #28ABE1;
    color: #ffffff;
}

/* Emergency / Red button */
.elementor-widget-button .elementor-button[data-rohr-variant="emergency"] {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #ffffff;
}

.elementor-widget-button .elementor-button[data-rohr-variant="emergency"]:hover {
    background-color: #a93226;
    border-color: #a93226;
    color: #ffffff;
}

/* ============================================================================
   ELEMENTOR IMAGE WIDGET
   ============================================================================ */

.elementor-widget-image .elementor-image img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.elementor-widget-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================================
   ELEMENTOR DIVIDER WIDGET
   ============================================================================ */

.elementor-widget-divider .elementor-divider-separator {
    border-color: #e0e0e0;
}

/* ============================================================================
   ELEMENTOR ICON BOX WIDGET
   ============================================================================ */

.elementor-widget-icon-box .elementor-icon-box-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 600;
    color: #41423F;
    line-height: 1.3;
}

.elementor-widget-icon-box .elementor-icon-box-description {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #666666;
    line-height: 1.6;
    font-size: 15px;
}

/* ============================================================================
   ELEMENTOR TESTIMONIAL / REVIEWS WIDGET
   ============================================================================ */

.elementor-widget-testimonial .elementor-testimonial-content {
    font-family: 'Open Sans', Arial, sans-serif;
    font-style: italic;
    color: #333333;
    line-height: 1.7;
}

.elementor-widget-testimonial .elementor-testimonial-name {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    color: #41423F;
}

/* ============================================================================
   ELEMENTOR FORM WIDGET
   ============================================================================ */

.elementor-widget-form .elementor-field-group .elementor-field,
.elementor-widget-form .elementor-field-group input,
.elementor-widget-form .elementor-field-group textarea,
.elementor-widget-form .elementor-field-group select {
    font-family: 'Open Sans', Arial, sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    line-height: 1.4;
}

.elementor-widget-form .elementor-field-group .elementor-field:focus,
.elementor-widget-form .elementor-field-group input:focus,
.elementor-widget-form .elementor-field-group textarea:focus {
    border-color: #28ABE1;
    box-shadow: 0 0 0 3px rgba(40, 171, 225, 0.15);
    outline: none;
}

.elementor-widget-form .elementor-field-label {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #41423F;
    margin-bottom: 4px;
    display: block;
}

.elementor-widget-form .elementor-button {
    background-color: #28ABE1;
    border-color: #28ABE1;
    color: #ffffff;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    border-radius: 4px;
    padding: 12px 24px;
    transition: background-color 0.25s ease;
}

.elementor-widget-form .elementor-button:hover {
    background-color: #1a8fc7;
    border-color: #1a8fc7;
}

/* ============================================================================
   ELEMENTOR PAGE BUILDER SECTIONS WITH THEME BG CLASSES
   ============================================================================ */

/* Dark section */
.elementor-section[data-rohr-bg="dark"],
.elementor-section.rohr-section-dark {
    background-color: #41423F;
}

.elementor-section[data-rohr-bg="dark"] .elementor-heading-title,
.elementor-section.rohr-section-dark .elementor-heading-title,
.elementor-section[data-rohr-bg="dark"] p,
.elementor-section.rohr-section-dark p {
    color: #ffffff;
}

/* Light section */
.elementor-section[data-rohr-bg="light"],
.elementor-section.rohr-section-light {
    background-color: #f5f5f5;
}

/* Primary light section */
.elementor-section.rohr-section-primary-light {
    background-color: #e8f4fc;
}

/* Emergency red section */
.elementor-section[data-rohr-bg="emergency"],
.elementor-section.rohr-section-emergency {
    background-color: #c0392b;
}

.elementor-section[data-rohr-bg="emergency"] .elementor-heading-title,
.elementor-section.rohr-section-emergency .elementor-heading-title,
.elementor-section[data-rohr-bg="emergency"] p,
.elementor-section.rohr-section-emergency p {
    color: #ffffff;
}

/* ============================================================================
   ELEMENTOR: Transparent page canvas (let theme handle body bg)
   ============================================================================ */

.elementor-page .elementor {
    background: transparent;
}

/* ============================================================================
   ELEMENTOR PRO POPUP
   ============================================================================ */

.elementor-popup-modal .elementor-widget-heading .elementor-heading-title {
    color: #41423F;
}

/* ============================================================================
   ELEMENTOR RESPONSIVE: max-width 1024px (Tablet)
   ============================================================================ */

@media (max-width: 1024px) {
    .elementor-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .elementor-section.elementor-section-lg {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .elementor-widget-heading h1.elementor-heading-title {
        font-size: clamp(26px, 4vw, 38px);
    }

    .elementor-widget-heading h2.elementor-heading-title {
        font-size: clamp(20px, 3vw, 28px);
    }
}

/* ============================================================================
   ELEMENTOR RESPONSIVE: max-width 768px (Mobile)
   ============================================================================ */

@media (max-width: 768px) {
    .elementor-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .elementor-section.elementor-section-lg {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .elementor-section.elementor-section-sm {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .elementor-section .elementor-container,
    .elementor-section-boxed > .elementor-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .elementor-widget-heading h1.elementor-heading-title {
        font-size: 28px;
    }

    .elementor-widget-heading h2.elementor-heading-title {
        font-size: 22px;
    }

    .elementor-widget-heading h3.elementor-heading-title {
        font-size: 18px;
    }

    /* Stack columns on mobile unless explicitly set otherwise */
    .elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated {
        padding: 8px;
    }

    /* Full-width buttons on mobile in Elementor */
    .elementor-widget-button .elementor-button-wrapper {
        text-align: center;
    }

    .elementor-widget-button.rohr-btn-full .elementor-button {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* ============================================================================
   ELEMENTOR RESPONSIVE: max-width 480px (Small mobile)
   ============================================================================ */

@media (max-width: 480px) {
    .elementor-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .elementor-section .elementor-container,
    .elementor-section-boxed > .elementor-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .elementor-widget-heading h1.elementor-heading-title {
        font-size: 24px;
    }

    .elementor-widget-heading h2.elementor-heading-title {
        font-size: 20px;
    }

    .elementor-widget-button .elementor-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}
