/*
Theme Name:   wwwagency.de Child Theme
Template:     hello-elementor
Description:  Custom child theme for wwwagency.de based on Elementor
Author:       wwwagency.de - Daniel Pelz
Author URI:   https://wwwagency.de
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  wwwagencyde
screenshot: screenshot.png

*/

/*
 * Custom styles for your child theme go below this line
 * The parent theme styles will be loaded via functions.php
 */

.gradient-text {
    background: linear-gradient(135deg, #b00400 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*
LEARN DASH FIXES
*/

.learndash-wrapper .ld-tabs {
    margin: 0;
}

/*
 * LearnDash lesson 21462 iframe loader
 */
body.postid-21462 {
    background: #11172B;
}

html.wwwa-lesson-frame-active,
body.postid-21462.wwwa-lesson-frame-active {
    overflow: hidden;
}

.wwwa-lesson-loader {
    position: fixed;
    top: var(--wwwa-loader-top, 0px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--wwwa-loader-top, 0px));
    padding: clamp(24px, 5vw, 48px);
    overflow: hidden;
    color: #ffffff !important;
    background: #11172B;
    font-family: inherit;
    opacity: 1;
    visibility: visible;
    transition: opacity 520ms ease, visibility 520ms ease;
}

body.admin-bar .wwwa-lesson-loader {
    top: var(--wwwa-loader-top, 32px);
    min-height: calc(100vh - var(--wwwa-loader-top, 32px));
}

body.postid-21462 iframe.AnC-iFrame {
    background: #11172B;
    display: block;
    width: 100% !important;
    height: calc(100vh - var(--wwwa-lesson-offset, 0px)) !important;
    max-height: calc(100vh - var(--wwwa-lesson-offset, 0px));
    overflow: auto;
    transition: opacity 360ms ease;
}

body.postid-21462.wwwa-lesson-loader-active iframe.AnC-iFrame:not(.wwwa-lesson-iframe-ready) {
    opacity: 0;
}

.wwwa-lesson-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wwwa-lesson-loader::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 27, 0.36) 100%);
}

.wwwa-lesson-loader__shell {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(17, 23, 43, 0.10);
    border-left: 4px solid #b00400;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    text-align: left;
}

.wwwa-lesson-loader__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(22px, 4vw, 32px);
    color: #495255 !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wwwa-lesson-loader__mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #b00400;
    box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.18);
    position: relative;
}

.wwwa-lesson-loader__mark::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg) translate(-1px, 1px);
}

.wwwa-lesson-loader__content {
    max-width: 520px;
}

.wwwa-lesson-loader__eyebrow {
    margin: 0 0 10px;
    color: #b00400 !important;
    font-size: 0.95rem;
    font-weight: 700;
}

.wwwa-lesson-loader__title {
    margin: 0;
    color: #11172B !important;
    font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.wwwa-lesson-loader__status {
    min-height: 1.6em;
    margin: 14px 0 0;
    color: #495255 !important;
    font-size: clamp(0.98rem, 1.4vw, 1.05rem) !important;
    line-height: 1.55;
}

.wwwa-lesson-loader__progress {
    position: relative;
    height: 6px;
    margin-top: clamp(30px, 5vw, 42px);
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.wwwa-lesson-loader__progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 34%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b00400 0%, #d00500 52%, #ffffff 100%);
    animation: wwwaLoaderBar 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.wwwa-lesson-loader__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.wwwa-lesson-loader__steps span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280 !important;
    font-size: 0.86rem;
    white-space: nowrap;
    transition: color 220ms ease;
}

.wwwa-lesson-loader__steps span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.wwwa-lesson-loader__steps span.is-active {
    color: #11172B !important;
}

.wwwa-lesson-loader__note {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280 !important;
    font-size: 0.92rem;
    line-height: 1.5;
}

@keyframes wwwaLoaderBar {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(330%);
    }
}

@media (max-width: 640px) {
    .wwwa-lesson-loader {
        align-items: flex-start;
        padding: 18px;
        padding-top: clamp(28px, 10vh, 96px);
    }

    .wwwa-lesson-loader__shell {
        padding: 24px 20px;
    }

    .wwwa-lesson-loader__steps {
        display: grid;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .wwwa-lesson-loader,
    .wwwa-lesson-loader *,
    .wwwa-lesson-loader::before,
    .wwwa-lesson-loader::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

/*
 * Gravity Perks Nested Forms / Tingle modal branding
 */
.tingle-modal.tingle-modal--noOverlayClose.gpnf-modal.gform-theme--api.gpnf-modal-1-80.tingle-modal--visible {
    z-index: 999999999;
}

.tingle-modal .tingle-modal-box {
    border-radius: 0 !important;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(17, 23, 43, 0.22);
}

.tingle-modal .tingle-modal__close {
    top: 18px !important;
    right: 22px !important;
    color: #ffffff !important;
    z-index: 1001;
}

.tingle-modal .tingle-modal__closeIcon {
    color: inherit;
}

.tingle-modal .tingle-modal__closeIcon svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
}

.tingle-modal .tingle-modal-box__content {
    padding: 0;
}

.gpnf-modal .gpnf-modal-header,
.tingle-modal .gpnf-modal-header {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 22px 64px 22px 28px !important;
    background: #11172B !important;
    color: #ffffff !important;
    border-left: 5px solid #b00400;
    border-radius: 0 !important;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

#input_2_24.gform-text-input-reset,
.gform_wrapper input#input_2_24[readonly] {
    padding: 0.9rem 0.75rem;
}

.tingle-modal .gform-theme--framework,
.tingle-modal .gform_wrapper[data-form-theme="orbital"] {
    --gf-color-primary: #b00400;
    --gf-color-primary-rgb: 176, 4, 0;
    --gf-color-primary-darker: #8b0300;
    --gf-color-primary-lighter: #ff6b6b;
    --gf-color-in-ctrl-primary: #b00400;
    --gf-color-in-ctrl-primary-rgb: 176, 4, 0;
    --gf-color-in-ctrl-primary-darker: #8b0300;
    --gf-color-in-ctrl-primary-lighter: #ff6b6b;
    --gf-ctrl-bg-color: #ffffff;
    --gf-ctrl-border-color: #d1d5db;
    --gf-ctrl-color: #11172B;
    --gf-ctrl-label-color-primary: #11172B;
    --gf-ctrl-label-color-secondary: #495255;
    --gf-ctrl-btn-bg-color-primary: #b00400;
    --gf-ctrl-btn-bg-color-hover-primary: #8b0300;
    --gf-ctrl-btn-border-color-primary: #b00400;
    --gf-ctrl-btn-color-primary: #ffffff;
    --gf-ctrl-radius: 8px;
    --gf-radius: 8px;
    padding: 28px;
}

.tingle-modal .gform_wrapper .gfield_label,
.tingle-modal .gform_wrapper .gform-field-label {
    font-weight: 600;
}

.tingle-modal .gchoice {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.tingle-modal .gfield-choice-input:checked {
    accent-color: #b00400;
}

.tingle-modal .tingle-modal-box__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 28px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.tingle-modal .tingle-btn,
body .wwwa-gf-red-action,
body .wwwa-gf-blue-action {
    min-height: 48px !important;
    padding: 0.9rem 1.35rem !important;
    border-radius: 50px !important;
    border: 2px solid transparent !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tingle-modal .tingle-btn--primary,
.tingle-modal .gpnf-btn-submit,
body .wwwa-gf-red-action:not(.wwwa-gf-blue-action),
body .gform_wrapper input[type="submit"].gform_button,
body input[type="submit"]#gform_submit_button_1,
body input[type="submit"]#gform_submit_button_2 {
    background-color: #b00400 !important;
    background-image: linear-gradient(135deg, #b00400 0%, #d00500 100%) !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    border-color: transparent !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 30px rgba(176, 4, 0, 0.24) !important;
}

.tingle-modal .tingle-btn--primary *,
.tingle-modal .gpnf-btn-submit *,
body .wwwa-gf-red-action:not(.wwwa-gf-blue-action) *,
body .gform_wrapper input[type="submit"].gform_button *,
body input[type="submit"]#gform_submit_button_1 *,
body input[type="submit"]#gform_submit_button_2 * {
    color: #ffffff !important;
    fill: #ffffff !important;
}

body .gpnf-add-entry,
body .wwwa-gf-blue-action,
body .gpnf-add-entry button,
body .gpnf-row-actions a,
body .gpnf-row-actions button,
body .gpnf-edit-entry,
body .gpnf-delete-entry,
body .gpnf-view-entry {
    background-color: #11172B !important;
    background-image: none !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    border-color: transparent !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 26px rgba(17, 23, 43, 0.24) !important;
}

body .gpnf-row-actions ul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body .gpnf-row-actions .wwwa-gpnf-icon-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

body .gpnf-row-actions .wwwa-gpnf-icon-button svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
    pointer-events: none;
}

body .gpnf-add-entry:hover,
body .wwwa-gf-blue-action:hover,
body .gpnf-add-entry button:hover,
body .gpnf-row-actions a:hover,
body .gpnf-row-actions button:hover,
body .gpnf-edit-entry:hover,
body .gpnf-delete-entry:hover,
body .gpnf-view-entry:hover {
    background-color: #0b1020 !important;
    background-image: none !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    box-shadow: 0 14px 34px rgba(17, 23, 43, 0.3) !important;
}

.tingle-modal .tingle-btn--primary:hover,
.tingle-modal .gpnf-btn-submit:hover,
body .wwwa-gf-red-action:not(.wwwa-gf-blue-action):hover,
body .gform_wrapper input[type="submit"].gform_button:hover,
body input[type="submit"]#gform_submit_button_1:hover,
body input[type="submit"]#gform_submit_button_2:hover {
    transform: translateY(-2px);
    background-image: linear-gradient(135deg, #8b0300 0%, #b00400 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 34px rgba(176, 4, 0, 0.3) !important;
}

.tingle-modal .tingle-btn--default,
.tingle-modal .gpnf-btn-cancel,
.tingle-modal .gpnf-btn-cancel-mobile {
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    background-image: none !important;
    color: #11172B !important;
    fill: #11172B !important;
    border-color: #d1d5db !important;
    border-radius: 50px !important;
    box-shadow: none !important;
}

.tingle-modal .tingle-btn--default:hover,
.tingle-modal .gpnf-btn-cancel:hover,
.tingle-modal .gpnf-btn-cancel-mobile:hover {
    transform: translateY(-1px);
    color: #b00400 !important;
    border-color: #b00400 !important;
    background: #ffffff !important;
}

@media (max-width: 640px) {

    .tingle-modal .gpnf-modal-header,
    .tingle-modal .gform_wrapper,
    .tingle-modal .tingle-modal-box__footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tingle-modal .tingle-modal-box__footer {
        display: grid;
    }

    .tingle-modal .tingle-btn {
        width: 100%;
    }

    .tingle-modal .gpnf-btn-cancel-mobile:not([style*="display"]) {
        display: none;
    }
}
