/**
 * E3DC POWER Tarife
 */
.e3pw-tarife {
    padding: var(--pw-sec) 0;
    overflow: hidden;
}

.e3pw-tarife__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(40% 50% at 25% 60%, rgba(92, 194, 68, 0.16), transparent 70%),
        radial-gradient(40% 50% at 78% 55%, rgba(252, 178, 37, 0.14), transparent 70%);
}

.e3pw-tarife__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(18px, 2.4vw, 32px);
}

.e3pw-tarif {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    overflow: hidden;
    isolation: isolate;
}

.e3pw-tarif::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    /* dezentes Licht unter dem Inhalt, Button und Text bleiben unverändert */
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, var(--spot, 0.05)), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.e3pw-tarif:hover::after {
    opacity: 1;
}

/* Rahmen als oberste Ebene, damit er auch über dem Bild durchläuft */
.e3pw-tarif::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--tarif-border, rgba(255, 255, 255, 0.15));
}

.e3pw-tarif--fix {
    background: linear-gradient(170deg, #1f4715 0%, #143209 45%, #0f2408 100%);
    /* weicher, heller Schatten mit leichtem Grünstich statt hartem Schwarz */
    box-shadow: 0 30px 70px -38px rgba(4, 12, 2, 0.5), 0 0 60px -24px rgba(92, 194, 68, 0.22);
    --tarif-border: rgba(92, 194, 68, 0.4);
}

.e3pw-tarif--share {
    --spot: 0.12;
    --pw-logo-a: #fff;
    --pw-logo-b: #fff;
    color: #142108;
    background: linear-gradient(165deg, #ffe96b 0%, #fcb225 45%, #f99e34 100%);
    box-shadow: 0 40px 90px -40px rgba(249, 158, 52, 0.7);
    --tarif-border: rgba(255, 247, 153, 0.7);
}

/* Bild */
.e3pw-tarif__media {
    position: relative;
    height: clamp(230px, 24vw, 330px);
    overflow: hidden;
}

.e3pw-tarif__media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 1.2s var(--pw-ease);
}

.e3pw-tarif--fix .e3pw-tarif__media img {
    object-position: 38% 62%;
    transform: scale(1.25);
}

.e3pw-tarif--share .e3pw-tarif__media img {
    object-position: 50% 80%;
}

.e3pw-tarif:hover .e3pw-tarif__media img {
    transform: scale(1.06);
}

.e3pw-tarif--fix:hover .e3pw-tarif__media img {
    transform: scale(1.32);
}

.e3pw-tarif__brand {
    position: absolute;
    left: 24px;
    bottom: 22px;
    right: 24px;
    z-index: 2;
    display: flex;
    align-items: stretch;
    gap: 10px;
    pointer-events: none;
}

.e3pw-tarif__logo {
    position: relative;
    flex: 0 0 auto;
    width: min(150px, 42%);
    padding: 12px 16px 11px;
    border-radius: 18px;
    line-height: 0;
    background: rgba(13, 26, 8, 0.78);
    border: 1px solid rgba(143, 226, 94, 0.28);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.e3pw-tarif__logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.e3pw-tarif--fix .e3pw-tarif__logo {
    --pw-logo-a: #fff;
    --pw-logo-b: #5cc244;
}

.e3pw-tarif--share .e3pw-tarif__logo {
    --pw-logo-a: #142108;
    --pw-logo-b: #ffe96b;
    background: rgba(20, 33, 8, 0.82);
    border-color: rgba(255, 233, 107, 0.3);
}

.e3pw-tarif__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 99px;
    font-family: var(--pw-f-bold);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.e3pw-tarif--fix .e3pw-tarif__badge {
    color: #fff;
    background: rgba(13, 26, 8, 0.55);
    border: 1px solid rgba(143, 226, 94, 0.4);
}

.e3pw-tarif--share .e3pw-tarif__badge {
    color: #142108;
    background: rgba(255, 247, 153, 0.85);
}

/* Inhalt */
.e3pw-tarif__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 18px;
    padding: 20px 28px 30px;
}

.e3pw.e3pw .e3pw-tarif__title {
    font-family: var(--pw-f-display);
    font-weight: 400;
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.12;
    text-transform: uppercase;
    text-wrap: balance;
}

.e3pw .e3pw-tarif--fix .e3pw-tarif__title {
    color: #fff;
}

.e3pw-tarif__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.e3pw-tarif--share .e3pw-tarif__price {
    border-bottom-color: rgba(20, 33, 8, 0.15);
}

.e3pw-tarif__price strong {
    font-family: var(--pw-f-display);
    font-weight: 400;
    font-size: clamp(40px, 3.8vw, 56px);
    line-height: 1;
    letter-spacing: -0.02em;
}

.e3pw-tarif--fix .e3pw-tarif__price strong {
    color: var(--pw-green);
    text-shadow: 0 0 34px rgba(92, 194, 68, 0.4);
}

.e3pw-tarif__price span {
    font-family: var(--pw-f-bold);
    font-size: 15px;
    opacity: 0.75;
}

.e3pw .e3pw-tarif__sub {
    margin-top: -6px;
    font-family: var(--pw-f-bold);
    font-size: 15px;
    line-height: 1.4;
}

/* Preise ausgeblendet: Trennlinie wandert unter die Überschrift */
.e3pw .e3pw-tarif.is-noprice .e3pw-tarif__title {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.e3pw .e3pw-tarif--share.is-noprice .e3pw-tarif__title {
    border-bottom-color: rgba(20, 33, 8, 0.15);
}

.e3pw .e3pw-tarif.is-noprice .e3pw-tarif__sub {
    margin-top: 0;
}

.e3pw-tarif__list {
    display: grid;
    gap: 12px;
}

.e3pw-tarif__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.45;
}

.e3pw-tarif--fix .e3pw-tarif__list li {
    color: rgba(255, 255, 255, 0.85);
}

.e3pw-tarif__check {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: -1px;
    border-radius: 50%;
}

.e3pw-tarif--fix .e3pw-tarif__check {
    color: #fff;
    background: var(--pw-green);
}

.e3pw-tarif--share .e3pw-tarif__check {
    color: var(--pw-yellow-light);
    background: #142108;
}

.e3pw-tarif__check svg {
    width: 14px;
    height: 14px;
}

.e3pw-tarif__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

.e3pw .e3pw-tarif__note {
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .e3pw-tarife__grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .e3pw-tarif__body {
        padding: 18px 20px 24px;
    }
    .e3pw-tarif__brand {
        left: 16px;
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    .e3pw-tarif__logo {
        width: min(132px, 46%);
        padding: 10px 13px 9px;
        border-radius: 15px;
    }
    .e3pw-tarif__foot,
    .e3pw-tarif__foot .e3pw-btn {
        width: 100%;
    }
}

/* ── Noch nicht verfügbar ("In Kürze verfügbar") ─────────────────────── */
/* Vollgelbe Pille neben dem Logo, gleiche Höhe */
.e3pw-tarif__soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 0 14px;
    border-radius: 18px;
    font-family: var(--pw-f-display);
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #142108;
    background: #ffe96b;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}

.e3pw-tarif__soon i,
.e3pw-tarif__soon-btn i {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffe96b;
    /* Puls als Schatten des Punkts selbst: immer exakt zentriert, auch bei Subpixel-Positionen */
    animation: e3pwSoonPulse 2.2s ease-out infinite;
}

@keyframes e3pwSoonPulse {
    0% { box-shadow: 0 0 10px rgba(255, 233, 107, 0.9), 0 0 0 0 rgba(255, 233, 107, 0.65); }
    80%, 100% { box-shadow: 0 0 10px rgba(255, 233, 107, 0.9), 0 0 0 9px rgba(255, 233, 107, 0); }
}

.e3pw-tarif.is-soon .e3pw-tarif__media img {
    filter: saturate(0.75) brightness(0.88);
}

/* Hinweis an der Stelle des Buttons: nur Punkt + Text, bewusst nicht wie ein Button */
.e3pw .e3pw-tarif__soon-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 0 0 4px;
    font-family: var(--pw-f-bold);
    font-size: 16px;
    line-height: 1;
    color: #142108;
    cursor: default;
    user-select: none;
}

.e3pw-tarif__soon i {
    background: #142108;
    animation-name: e3pwSoonPulseDark;
}

.e3pw .e3pw-tarif__soon-btn i {
    background: #142108;
    animation-name: e3pwSoonPulseDark;
}

@keyframes e3pwSoonPulseDark {
    0% { box-shadow: 0 0 0 0 rgba(20, 33, 8, 0.5); }
    80%, 100% { box-shadow: 0 0 0 9px rgba(20, 33, 8, 0); }
}

@media (max-width: 560px) {
    /* Handy: kleine Pille rechts auf dem Bild, Logo bleibt links */
    .e3pw-tarif__soon {
        align-self: stretch;
        margin-left: auto;
        gap: 6px;
        padding: 0 11px 0 10px;
        border-radius: 15px;
        font-size: 10px;
        letter-spacing: 0.03em;
    }
    .e3pw-tarif__soon i {
        flex-basis: 7px;
        width: 7px;
        height: 7px;
    }
    .e3pw .e3pw-tarif__soon-btn {
        min-height: 50px;
    }
}

/* FIX-Button im Stil des mitlaufenden Buttons */
.e3pw .e3pw-tarif__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px 7px 7px;
    border-radius: 999px;
    border: 1px solid var(--pw-green);
    background: var(--pw-green);
    color: #fff;
    font-family: var(--pw-f-bold);
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
    transition: transform 0.35s var(--pw-ease), background 0.3s, box-shadow 0.35s var(--pw-ease);
}

.e3pw .e3pw-tarif__cta:hover {
    transform: translateY(-3px);
    background: #52b53b;
    border-color: #52b53b;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.75);
}

.e3pw-tarif__cta-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--pw-green);
    background: #142108;
}

.e3pw-tarif__cta-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    animation: e3pwTarifPulse 2.4s var(--pw-ease) infinite;
}

@keyframes e3pwTarifPulse {
    0% { transform: scale(0.85); opacity: 0.9; }
    70%, 100% { transform: scale(1.35); opacity: 0; }
}

.e3pw-tarif__cta-icon svg {
    width: 20px;
    height: 20px;
}

.e3pw-tarif__cta-text {
    padding-right: 2px;
}

.e3pw-tarif__cta-arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(20, 33, 8, 0.18);
}

.e3pw-tarif__cta-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.35s var(--pw-ease);
}

.e3pw .e3pw-tarif__cta:hover .e3pw-tarif__cta-arrow svg {
    transform: translateX(3px);
}

@media (max-width: 560px) {
    .e3pw .e3pw-tarif__cta {
        font-size: 14px;
        gap: 10px;
    }
}

/* Sehr schmale Handys: Logo und Hinweis etwas kompakter, damit beides nebeneinander passt */
@media (max-width: 380px) {
    .e3pw-tarif__logo {
        width: min(116px, 42%);
        padding: 9px 11px 8px;
    }
    .e3pw-tarif__soon {
        gap: 5px;
        padding: 0 9px 0 8px;
        font-size: 9px;
    }
}
