/*
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: 1024px) {
    .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;
    }
}

/* Buchungsformular / Tingle-Modal CSS → verwaltet in shared-functions.php */

.desktop-phone-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.desktop-phone-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.desktop-phone-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
}

.desktop-phone-modal__box {
    position: relative;
    width: 100%;
    max-width: 540px;
    background: #ffffff;
    color: #111827;
    border-radius: 28px;
    padding: 38px 34px 32px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
    transform: translateY(14px) scale(0.97);
    transition: transform 0.25s ease;
}

.desktop-phone-modal.is-visible .desktop-phone-modal__box {
    transform: translateY(0) scale(1);
}

/* button.-Praefix + !important auf background/border/color noetig: Hello-
   Elementor reset.css setzt eine eigene globale Button-Grundregel mit
   gleicher Selektor-Spezifitaet (0,1,1) wie eine reine Klassen-Regel
   (0,1,0), sonst geht die Optik verloren (identisches Prinzip wie
   button.kommunen-certificate-modal__close in certificate-grid.css).
   Farbschema = Button-Style 2, dunkle Variante (sc-btn-2.sc-btn-2-dark
   aus button-styles.css), identisch zum Zertifikats-Popup-X - Admin-
   Wunsch nach Design-Konsistenz. Hover ohne Lift/Schatten (Admin-
   Wunsch), nur Farbwechsel. */
button.desktop-phone-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 2px solid rgba(176, 4, 0, 0.4) !important;
    background: rgba(176, 4, 0, 0.08) !important;
    color: #475569 !important;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 27px !important;
    box-shadow: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.desktop-phone-modal__close span {
    display: inline-block;
    transform: translateY(-1px);
}

button.desktop-phone-modal__close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(176, 4, 0, 0.35);
}

button.desktop-phone-modal__close:active {
    background: rgba(176, 4, 0, 0.18) !important;
    border-color: rgba(176, 4, 0, 0.55) !important;
    box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
    button.desktop-phone-modal__close:hover {
        background: linear-gradient(135deg, #B00400, #D00500) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
    }
}

.desktop-phone-modal__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: #e30613;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.desktop-phone-modal__icon svg {
    fill: #fff;
    width: 25px;
}

.desktop-phone-modal h3 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
}

.desktop-phone-modal__text {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.5;
    color: #4b5563;
}

.desktop-phone-modal__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    margin-bottom: 22px;
    padding: 14px 20px;
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #e30613;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.02em;
}

@media (hover: hover) and (pointer: fine) {
    .desktop-phone-modal__number:hover {
        background: #fff5f5;
        color: #c4000b !important;
        font-size: 30px !important;
    }
}

/* flex statt grid 1fr 1fr: bei fixen Grid-Spalten aendert Padding am
   Button nie dessen sichtbare Breite (box-sizing:border-box haelt die
   Spaltenbreite konstant, Padding geht nur vom Innenraum ab) - das
   Padding-Update davor blieb dadurch unsichtbar (Admin-Feedback
   "sehe nichts"). Als Flex-Row bestimmt der Button-Inhalt + Padding
   die tatsaechliche Breite. */
.desktop-phone-modal__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

/* Komplett neu als <button> statt <a> aufgebaut (vorher <a>): Elementor-
   Kit (.elementor-kit-7 a:hover, post-7.css) ueberschreibt bei JEDEM
   gehoverten Link site-weit font-size/-weight/-family auf die globale
   "Accent"-Typografie - das war die tatsaechliche, wiederkehrende
   Ursache des "Text wird groesser bei Hover"-Effekts. Als <button>
   greift diese a:hover-Regel strukturell gar nicht mehr, unabhaengig
   von Spezifitaet/!important-Wettrennen (Admin-Feedback 2026-07-12).
   button.-Praefix + !important weiterhin noetig gegen Hello-Elementor
   reset.css ([type="button"] setzt eigene Border/Farbe/Hintergrund,
   gleiches Muster wie button.desktop-phone-modal__close). */
button.desktop-phone-modal__action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    font-size: 15px !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

button.desktop-phone-modal__action svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

button.desktop-phone-modal__action--whatsapp {
    background: #1da851 !important;
    color: #ffffff !important;
}

button.desktop-phone-modal__action--email {
    background: #1f2937 !important;
    color: #ffffff !important;
}

@media (hover: hover) and (pointer: fine) {
    button.desktop-phone-modal__action--whatsapp:hover,
    button.desktop-phone-modal__action--email:hover {
        transform: translateY(-2px);
    }

    button.desktop-phone-modal__action--whatsapp:hover {
        background: #178f43 !important;
    }

    button.desktop-phone-modal__action--email:hover {
        background: #111827 !important;
    }
}

.desktop-phone-modal__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}

.desktop-phone-modal-is-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .desktop-phone-modal {
        display: none !important;
    }
}

/* Mobile-Popup: Dashboard-Eintrag wie login-button stylen */
.elementor-16692 .dashboard-button {
    display: block !important;
    padding: 0 !important;
    text-align: center;
}
.elementor-16692 .dashboard-button a,
.elementor-16692 .dashboard-button a.elementor-item,
.elementor-16692 .dashboard-button a:focus,
.elementor-16692 .dashboard-button a:active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 25px 6px !important;
    position: relative !important;
    display: inline-block !important;
}

@media (hover: hover) and (pointer: fine) {
    .elementor-16692 .dashboard-button a:hover {
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 25px 6px !important;
        position: relative !important;
        display: inline-block !important;
    }
}
