
/* =========================================================
   PIXELWEB APP-VORSCHAU
   ========================================================= */


/* ---------------------------------------------------------
   1. GRUNDEINSTELLUNGEN
   --------------------------------------------------------- */

.pwa {
    --a: #e08a2e;
    --on: #fff!important;
    --h: 221!important;
    --s: 83!important;
    --l: 53!important;
    --rd: 16px;

 
    max-width: 960px;
 
    color: inherit;
    box-sizing: border-box;
 
}

.pwa * {
    box-sizing: border-box;
}

.pwa [hidden] {
    display: none !important;
}


/* ---------------------------------------------------------
   2. BUTTON-GRUNDLAGEN
   Theme-Styles neutralisieren
   --------------------------------------------------------- */

.pwa button {
    border: 1px solid #555 !important;
}


/* ---------------------------------------------------------
   3. FORMULAR
   --------------------------------------------------------- */

.pwa-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pwa-form input {
    flex: 1 1 280px;
    min-width: 0;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #aeaeae;
    border-radius: 5px;
    outline: none;
    background: #fff;
    color: #0f172a;
    margin: 0;
    height: auto;
}

.pwa-form input:focus {
    border-color: var(--a);
}

.pwa .pwa-form button
Specificity: (0,2,1)
 {
    min-width: 180px !important;
	border: 1px solid #777 !important;
}

.pwa .pwa-form button:hover {
    transform: translateY(-1px);
    opacity: .92;
}

.pwa .pwa-form button:disabled {
    opacity: .6;
    cursor: wait;
}

.pwa-cta a {
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 999px;
    background: var(--a);
    color: var(--on);
    text-decoration: none;
    display: inline-block;
    transition: transform .15s, opacity .15s;
}

.pwa-cta a:hover {
    transform: translateY(-1px);
    opacity: .92;
    color: var(--on);
}


.pwa-err {
    color: #dc2626;
    
    font-size: 14px;
    margin: 10px 0 0;
    min-height: 1em;
}


/* ---------------------------------------------------------
   4. VORSCHAU-BÜHNE UND INFORMATIONEN
   --------------------------------------------------------- */

.pwa-stage {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
}

.pwa-side {
    flex: 1 1 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pwa-info {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(100, 116, 139, .12);
}

.pwa-box {
    border: 1px solid rgba(100, 116, 139, .3);
    border-radius: 14px;
    padding: 14px;
}

.pwa-box h4 {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .7;
}

.pwa-note {
    font-size: 12px;
    opacity: .6;
    line-height: 1.5;
    margin: 8px 0 0;
}


/* ---------------------------------------------------------
   5. FARBREGLER
   --------------------------------------------------------- */

.pwa-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.pwa-picker input[type="color"] {
    width: 46px;
    height: 38px;
    padding: 0;
    border: 2px solid rgba(100, 116, 139, .4);
    border-radius: 10px;
    background: none;
    cursor: pointer;
}

.pwa-picker code {
    font-size: 13px;
    background: rgba(100, 116, 139, .15);
    padding: 4px 8px;
    border-radius: 8px;
    color: inherit;
}

.pwa .pwa-mini {
    border: 1px solid rgba(100, 116, 139, .45) !important;
    background: transparent !important;
    color: inherit !important;
    border-radius: 999px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    cursor: pointer;
}

.pwa .pwa-mini:hover,
.pwa .pwa-mini:focus {
    background: transparent !important;
    border-color: var(--a) !important;
    color: var(--a) !important;
}

.pwa-lbl {
    display: block;
    font-size: 12px;
    margin: 8px 0 0;
    opacity: .9;
}

.pwa-rng {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    outline: none;
    cursor: pointer;
}

.pwa-rng::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--a);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.pwa-rng::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--a);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.pwa-rng-h {
    background: linear-gradient(
        90deg,
        hsl(0 100% 50%),
        hsl(60 100% 50%),
        hsl(120 100% 50%),
        hsl(180 100% 50%),
        hsl(240 100% 50%),
        hsl(300 100% 50%),
        hsl(360 100% 50%)
    );
}

.pwa-rng-s {
    background: linear-gradient(
        90deg,
        hsl(var(--h) 0% calc(var(--l) * 1%)),
        hsl(var(--h) 100% calc(var(--l) * 1%))
    );
}

.pwa-rng-l {
    background: linear-gradient(
        90deg,
        #000,
        hsl(var(--h) calc(var(--s) * 1%) 50%),
        #fff
    );
}

.pwa-rng-n {
    background: rgba(100, 116, 139, .35);
}

.pwa-sw {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pwa .pwa-sw button {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 3px solid transparent !important;
    cursor: pointer;
    padding: 0 !important;
    outline: 2px solid rgba(100, 116, 139, .3);
}

.pwa .pwa-sw button.on {
    border-color: #fff !important;
    outline-color: #0f172a;
}


/* ---------------------------------------------------------
   6. TOGGLE-BUTTONS
   --------------------------------------------------------- */

.pwa-tg {
    display: inline-flex;
    border: 2px solid rgba(100, 116, 139, .4);
    border-radius: 999px;
    overflow: hidden;
}

.pwa .pwa-tg button {
    border: 0 !important;
    background: transparent !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    cursor: pointer;
    color: inherit !important;
    border-radius: 0 !important;
}

.pwa .pwa-tg button.on {
    background: var(--a) !important;
    color: var(--on) !important;
}

.pwa .pwa-tg button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.pwa-cta {
    text-align: center;
    margin-top: 4px;
}

.pwa-cta p {
    margin: 0 0 12px;
    font-size: 15px;
}


/* ---------------------------------------------------------
   7. SMARTPHONE-RAHMEN
   --------------------------------------------------------- */

.pwa-phone {
    width: 316px;
    height: 660px;
    background: #0f172a;
    border-radius: 46px;
    padding: 10px;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45);
    position: relative;
    flex: 0 0 auto;
}

.pwa-screen {
    --bg: #f8fafc;
    --card: #fff;
    --tx: #0f172a;
    --line: #e2e8f0;
    --mut: #64748b;

    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: var(--bg);
    position: relative;
    display: flex;
    flex-direction: column;
    color: var(--tx);
    transition: background .25s, color .25s;
}

.pwa-dark .pwa-screen {
    --bg: #0b1120;
    --card: #172033;
    --tx: #e5e7eb;
    --line: #223049;
    --mut: #94a3b8;
}

.pwa-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 22px;
    background: #0f172a;
    border-radius: 14px;
    z-index: 30;
}


/* ---------------------------------------------------------
   8. STATUSLEISTE UND APP-KOPF
   --------------------------------------------------------- */

.pwa-status {
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 22px 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--a);
    color: var(--on);
    transition: background .15s;
}

.pwa-bar {
    flex: 0 0 52px;
    background: var(--a);
    color: var(--on);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px 6px;
    transition: background .15s;
}

.pwa-bar img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    padding: 3px;
    object-fit: contain;
    flex: 0 0 28px;
}

.pwa-bar b {
    font-size: 16px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-bell {
    font-size: 18px;
}


/* ---------------------------------------------------------
   9. ANSICHTEN UND ANIMATIONEN
   --------------------------------------------------------- */

.pwa-views {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.pwa-views::-webkit-scrollbar {
    display: none;
}

.pwa-view {
    display: none;
    padding-bottom: 12px;
}

.pwa-view.on {
    display: block;
    animation: pwaIn .25s ease;
}

@keyframes pwaIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* ---------------------------------------------------------
   10. HERO-BEREICH
   --------------------------------------------------------- */

.pwa-hero {
    height: 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--a), #0f172a);
}

.pwa-hero .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pwa-hero .ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, .1) 0%,
        rgba(0, 0, 0, .72) 100%
    );
}

.pwa-hero .txt {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 30px;
    color: #fff;
    z-index: 2;
}

.pwa-hero .ht {
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

.pwa-hero .hp {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .9);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pwa-hero .hb {
    display: inline-block;
    background: var(--a);
    color: var(--on);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    transition: background .15s;
}


/* ---------------------------------------------------------
   11. LIVE-ANSICHT
   Echte Website im App-Rahmen
   --------------------------------------------------------- */

.pwa-live .pwa-view[data-v="0"] {
    padding-bottom: 0;
}

.pwa-live .pwa-view[data-v="0"] .pwa-grid,
.pwa-live [data-r="home-cards"],
.pwa-live [data-r="home-btn"] {
    display: none;
}

.pwa-live .pwa-hero {
    height: 482px;
    background: #fff;
}

.pwa-live-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 390px;
    height: 636px;
    border: 0;
    transform: scale(.759);
    transform-origin: top left;
    background: #fff;
}


/* ---------------------------------------------------------
   12. KACHELN UND INHALTSKARTEN
   --------------------------------------------------------- */

.pwa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 6px 14px 4px;
    margin-top: -16px;
    position: relative;
    z-index: 2;
}

.pwa-grid div {
    background: var(--card);
    border-radius: calc(var(--rd) * .85);
    padding: 10px 0 8px;
    text-align: center;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
    min-width: 0;
}

.pwa-grid span {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}

.pwa-grid i {
    font-style: normal;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
}

.pwa-card {
    margin: 12px 14px 0;
    background: var(--card);
    border-radius: var(--rd);
    padding: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
    font-size: 13px;
    line-height: 1.45;
    overflow: hidden;
}

.pwa .pwa-card h5 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--tx);
    font-weight: 700;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.pwa-card p {
    margin: 0;
    color: var(--mut);
}

.pwa-card img.pwa-cimg {
    display: block;
    width: calc(100% + 28px);
    max-width: none;
    margin: -14px -14px 10px;
    height: 112px;
    object-fit: cover;
}

.pwa-more {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--a);
}

.pwa-tag {
    display: inline-block;
    background: var(--a);
    color: var(--on);
    border-radius: 999px;
    font-size: 10px;
    padding: 2px 9px;
    margin-bottom: 6px;
}

.pwa-btn {
    display: block;
    margin: 12px 14px 0;
    background: var(--a);
    color: var(--on);
    text-align: center;
    padding: 12px;
    border-radius: calc(var(--rd) * .9);
    font-weight: 600;
    font-size: 14px;
    transition: background .15s;
}


/* ---------------------------------------------------------
   13. INHALTSELEMENTE UND ZEILEN
   --------------------------------------------------------- */

.pwa-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pwa-row > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.pwa-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--a);
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pwa-chev {
    margin-left: auto;
    color: var(--mut);
    font-size: 18px;
}


/* ---------------------------------------------------------
   14. UNTERE NAVIGATION
   --------------------------------------------------------- */

.pwa-tabs {
    flex: 0 0 62px;
    background: var(--card);
    border-top: 1px solid var(--line);
    display: flex;
    padding-bottom: 8px;
}

.pwa .pwa-tabs button {
    flex: 1;
    border: 0 !important;
    background: none !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: var(--mut) !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 !important;
    border-radius: 0 !important;
}

.pwa-tabs button span {
    font-size: 20px;
    filter: grayscale(1);
    opacity: .7;
}

.pwa .pwa-tabs button.on {
    color: var(--a) !important;
    font-weight: 700 !important;
}

.pwa-tabs button.on span {
    filter: none;
    opacity: 1;
}


/* ---------------------------------------------------------
   15. STARTBILDSCHIRM (SPLASH SCREEN)
   --------------------------------------------------------- */

.pwa-splash {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: var(--a);
    color: var(--on);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: opacity .5s, visibility .5s, background .15s;
}

.pwa-splash.off {
    opacity: 0;
    visibility: hidden;
}

.pwa-splash img {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    animation: pwaPop .6s ease;
    object-fit: contain;
}

@keyframes pwaPop {
    from {
        transform: scale(.4);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.pwa-splash b {
    font-size: 20px;
    max-width: 240px;
    text-align: center;
}

.pwa-spin {
    width: 22px;
    height: 22px;
    border: 3px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pwaSpin .8s linear infinite;
    opacity: .8;
}

@keyframes pwaSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ---------------------------------------------------------
   16. BENACHRICHTIGUNGEN (TOAST)
   --------------------------------------------------------- */

.pwa-toast {
    position: absolute;
    top: 50px;
    left: 10px;
    right: 10px;
    z-index: 25;
    background: rgba(255, 255, 255, .96);
    color: #0f172a;
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
    font-size: 12px;
    transform: translateY(-140%);
    transition: transform .45s cubic-bezier(.2, .9, .3, 1.2);
}

.pwa-toast.show {
    transform: none;
}

.pwa-toast img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.pwa-toast b {
    display: block;
    font-size: 12px;
}


/* ---------------------------------------------------------
   17. RESPONSIVE DESIGN – SMARTPHONE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .pwa-side {
        max-width: none;
    }

    .pwa-stage {
        gap: 22px;
    }

}
