/* ==========================================================================
   π-THERM Heizsaison-Aktion 2026 (temporary)
   Valid until 30.11.2026. Everything for this promo lives in this file,
   js/promo.js, and markup blocks marked "Promo: Heizsaison-Aktion 2026".
   promo.js hides all promo elements automatically after the end date.
   To remove the promo completely: delete those markup blocks and the
   <link>/<script> tags pointing at promo.css / promo.js.
   ========================================================================== */

/* ---------- Shared: language toggle kept inline inside promo elements ----- */
/* The site's global rule renders .lang-en as display:block, which would
   break single-line promo text. Scope an inline variant to promo elements. */
.promo-bar .lang-en,
.promo-pill .lang-en,
.aktion .lang-en,
.aktion-box .lang-en { display: none; }
[data-lang="en"] .promo-bar .lang-de,
[data-lang="en"] .promo-pill .lang-de,
[data-lang="en"] .aktion .lang-de,
[data-lang="en"] .aktion-box .lang-de { display: none; }
[data-lang="en"] .promo-bar .lang-en,
[data-lang="en"] .promo-pill .lang-en,
[data-lang="en"] .aktion .lang-en,
[data-lang="en"] .aktion-box .lang-en { display: inline; }

.promo-hidden { display: none !important; }

/* Icon: a plain 🔥 emoji, so it never depends on an icon font loading. */
.promo-emoji {
    font-size: 1.15em;
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: normal;
    text-transform: none;
}
.promo-bar a, .promo-bar a *,
.promo-pill, .promo-pill * { text-decoration: none; }

/* ---------- Desktop (>= 1280px): two pills inside the nav row ------------- */
/* The nav row becomes a 3-column grid: service offer | nav | replacement
   offer. Everything is pinned to row 1 so nothing gets pushed onto a second
   line; each pill wraps inside its own column if space ever gets tight. */
.promo-pill { display: none; }
@media (min-width: 80rem) {
    .promo-navrow {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        column-gap: 24px;
    }
    .promo-navrow > nav { grid-column: 2; grid-row: 1; }
    .promo-pill--left { grid-column: 1; grid-row: 1; justify-self: start; }
    .promo-pill--right { grid-column: 3; grid-row: 1; justify-self: end; }
    .promo-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        padding: 6px 12px;
        border: 1px solid #ffd8a8;
        border-radius: 12px;
        background: #fff4e5;
        color: #1a365d;
        font-family: "Inter", sans-serif;
        font-size: 13px;
        line-height: 1.3;
        text-align: left;
        transition: background-color 0.2s;
    }
    .promo-pill:hover { background: #ffe8c7; }
    .promo-pill strong { font-weight: 800; color: #904d00; }
}

/* ---------- Mobile / tablet / small laptop (< 1280px): bar below header --- */
/* Bottom row INSIDE the sticky header, so it stays visible while scrolling.
   One slim line on phones. Dismissible (remembered). Hidden where the
   desktop pills take over. */
.promo-bar {
    background: #0f2038;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 12.5px;
    line-height: 1.3;
}
@media (min-width: 768px) { .promo-bar { font-size: 13px; } }
@media (min-width: 80rem) { .promo-bar { display: none; } }
.promo-bar__inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6px 40px 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.promo-bar__link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.promo-bar__link:hover .promo-bar__cta { text-decoration: underline; }
.promo-bar__icon.material-symbols-outlined {
    font-size: 18px;
    color: #ff8c00;
    line-height: 1;
    flex-shrink: 0;
}
.promo-bar strong { font-weight: 700; color: #fff; }
.promo-bar__cta {
    color: #ff8c00;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 4px;
}
.promo-bar__close {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    opacity: 0.75;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.promo-bar__close:hover,
.promo-bar__close:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.12); }

/* Short text on phones, full text from tablet up */
.promo-bar .promo-long { display: none; }
.promo-bar .promo-short { display: none; }
@media (min-width: 768px) {
    .promo-bar .promo-long { display: inline; }
}

/* Phone layout: orange "Aktion" tag | two stacked offer lines | chevron */
@media (max-width: 767.98px) {
    .promo-bar__inner { padding: 6px 40px 6px 10px; justify-content: flex-start; }
    .promo-bar__link { width: 100%; }
    .promo-bar__link > .promo-emoji { display: none; } /* the tag carries its own flame */
    .promo-bar .promo-short {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: left;
    }
}
.promo-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 8px;
    background: #ff8c00;
    color: #0f2038;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.promo-tag small {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.promo-lines { display: block; font-size: 13px; line-height: 1.3; color: #fff; }
.promo-lines b { color: #ffb347; font-weight: 800; }
.promo-bar .promo-lines .lang-de { display: flex; flex-direction: column; }
.promo-bar .promo-lines .lang-en { display: none; }
[data-lang="en"] .promo-bar .promo-lines .lang-de { display: none; }
[data-lang="en"] .promo-bar .promo-lines .lang-en { display: flex; flex-direction: column; }
.promo-chevron { margin-left: auto; font-size: 24px; line-height: 1; color: #ff8c00; }

/* ---------- Attention: gentle pulse + flame flicker ----------------------- */
@keyframes promo-ring {
    0%   { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 140, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}
@keyframes promo-flicker {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25%      { transform: scale(1.18) rotate(-6deg); }
    50%      { transform: scale(0.95) rotate(4deg); }
    75%      { transform: scale(1.1) rotate(-3deg); }
}
@keyframes promo-nudge {
    0%, 70%, 100% { transform: translateX(0); }
    80%           { transform: translateX(4px); }
    90%           { transform: translateX(0); }
}
@keyframes promo-glow {
    0%, 100% { background-color: #0f2038; }
    50%      { background-color: #1a365d; }
}
@media (min-width: 80rem) {
    .promo-pill { animation: promo-ring 2.4s ease-out infinite; }
    .promo-pill--right { animation-delay: 1.2s; } /* the two pills take turns */
}
.promo-emoji { display: inline-block; animation: promo-flicker 1.8s ease-in-out infinite; }
.promo-bar { animation: promo-glow 3s ease-in-out infinite; }
.promo-bar__cta, .promo-chevron { display: inline-block; animation: promo-nudge 2.4s ease-in-out infinite; }
.aktion__box { animation: promo-ring 2.6s ease-out 3; } /* pulses 3x after the page loads */

/* Respect users who turn motion off */
@media (prefers-reduced-motion: reduce) {
    .promo-pill, .promo-emoji, .promo-bar, .promo-bar__cta, .promo-chevron, .aktion__box { animation: none !important; }
}

/* ---------- Offer section on leistung-gastherme.html (#aktion) ------------ */
#aktion { scroll-margin-top: 140px; }
.aktion {
    max-width: 1100px;
    margin: 0 auto 72px;
    padding: 0 16px;
}
.aktion__box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    padding: 28px 20px;
    box-shadow: 0 20px 40px -20px rgba(15, 32, 56, 0.25);
}
@media (min-width: 768px) { .aktion__box { padding: 44px; } }
.aktion__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 14px;
    border-radius: 999px;
    background: #fff4e5;
    color: #904d00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.aktion__badge .material-symbols-outlined { font-size: 16px; color: #ff8c00; }
.aktion__title {
    margin: 14px 0 6px;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.2;
    color: #002045;
}
@media (min-width: 768px) { .aktion__title { font-size: 32px; } }
.aktion__sub { margin: 0 0 24px; color: #475569; font-size: 15px; }
.aktion__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .aktion__grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.aktion__card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #f8fafc;
}
.aktion__name { margin: 0; font-weight: 700; font-size: 18px; color: #002045; }
.aktion__model { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.aktion__price {
    margin: 16px 0 6px;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 1;
    color: #002045;
}
.aktion__incl { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #0f172a; }
.aktion__fine { margin: 0; font-size: 12.5px; line-height: 1.55; color: #64748b; }
.aktion__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
@media (min-width: 640px) { .aktion__cta { flex-direction: row; } }
.aktion__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.aktion__btn:hover { opacity: 0.9; }
.aktion__btn--call { background: #1a365d; color: #fff; border: 2px solid #1a365d; }
.aktion__btn--wa { background: #fff; color: #1a365d; border: 2px solid #1a365d; }
.aktion__btn img { width: 22px; height: 22px; }

/* ---------- Small offer box inside blog posts ----------------------------- */
.aktion-box {
    margin: 0;
    padding: 22px 24px;
    border-radius: 1.5rem;
    border: 1px solid #ffd8a8;
    border-left: 5px solid #ff8c00;
    background: #fffaf3;
}
.aktion-box__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #904d00;
}
.aktion-box__badge .material-symbols-outlined { font-size: 18px; color: #ff8c00; }
.aktion-box__text { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: #0f172a; }
.aktion-box__link { font-weight: 700; color: #1a365d; text-decoration: underline; text-underline-offset: 3px; }
.aktion-box__link:hover { color: #904d00; }
