/**
 * Blueprint Blocks – Frontend CSS v1.0.0
 */

.bbl-eyebrow {
    display: block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--color-accent, var(--accent-color, #007bff));
    margin-bottom: 1rem;
}

/* Hero */
.bbl-hero__headline { font-size: clamp(2.2rem, 5.5vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--color-heading, var(--text-primary, #212529)); margin: 0 0 1.5rem; }
.bbl-hero__highlight { color: var(--color-secondary, #515f74); }
.bbl-hero__text { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--color-text-muted, var(--text-secondary, #6c757d)); max-width: 640px; margin: 0 0 2rem; }
.bbl-hero__image { width: 100%; height: auto; border-radius: var(--radius-lg, 12px); display: block; }
.bbl-stat-card { background: var(--color-surface, var(--bg-primary, #fff)); border-radius: var(--radius-lg, 12px); padding: 2rem 2.5rem; box-shadow: var(--shadow-card, 0 4px 24px rgba(25,28,30,0.08)); }
.bbl-stat-card__number { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--color-accent, var(--accent-color, #007bff)); line-height: 1; margin-bottom: 0.5rem; }
.bbl-stat-card__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary, var(--text-secondary, #6c757d)); }
@media (max-width: 63.9375em) { .bbl-hero .cell.large-4 { margin-top: 2rem; } }

/* CTA */
.bbl-cta__headline { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--color-heading, var(--text-primary, #212529)); margin: 0 0 1rem; }
.bbl-cta__text { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; color: var(--color-text-muted, var(--text-secondary, #6c757d)); margin: 0 0 2rem; max-width: 640px; }
.bbl-cta--centered .bbl-cta__text { margin-left: auto; margin-right: auto; }
.bbl-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.bbl-cta--centered .bbl-cta__actions { justify-content: center; }
.bbl-cta__actions--split { justify-content: flex-end; }
@media (max-width: 768px) { .bbl-cta__actions--split { justify-content: flex-start; margin-top: 1.5rem; } }

/* Features */
.bbl-feature-item { height: 100%; padding: 2rem; text-align: left; }
.bbl-feature-item--card { background: var(--color-surface, var(--bg-primary, #fff)); border-radius: var(--radius-lg, 12px); box-shadow: var(--shadow-card, 0 2px 8px rgba(25,28,30,0.07)); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.bbl-feature-item--card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(25,28,30,0.12); }
.bbl-feature-item--flat { padding: 1.5rem 0; border-top: 2px solid var(--border-color, #dee2e6); }
.bbl-feature-item--icon-top { text-align: center; padding: 2rem 1.5rem; }
.bbl-feature-item__icon { width: 52px; height: 52px; border-radius: var(--radius-base, 4px); background: var(--bg-secondary, #f8f9fa); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--bbl-eyebrow-color, var(--color-accent, var(--accent-color, #007bff))); }
.bbl-feature-item__icon i { font-size: 22px; }
.bbl-feature-item--icon-top .bbl-feature-item__icon { margin-left: auto; margin-right: auto; }
.bbl-feature-item__img { margin-bottom: 1.25rem; border-radius: var(--radius-base, 4px); overflow: hidden; }
.bbl-feature-item__img img { width: 100%; height: auto; display: block; }
.bbl-feature-item__title { font-size: 1.15rem; font-weight: 700; color: var(--color-heading, var(--text-primary, #212529)); margin: 0 0 0.75rem; }
.bbl-feature-item__text { font-size: 0.95rem; line-height: 1.65; color: var(--color-text-muted, var(--text-secondary, #6c757d)); margin: 0 0 1rem; }
.bbl-feature-item__link { font-size: 0.875rem; font-weight: 700; color: var(--color-accent, var(--accent-color, #007bff)); text-decoration: none; transition: color 0.2s; }
.bbl-feature-item__link:hover { color: var(--accent-hover, #0056b3); }

/* Text + Bild */
.bbl-ti__headline { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--color-heading, var(--text-primary, #212529)); margin: 0 0 1.25rem; }
.bbl-ti__text { font-size: clamp(0.95rem, 1.3vw, 1.1rem); line-height: 1.75; color: var(--color-text-muted, var(--text-secondary, #6c757d)); margin: 0 0 1.75rem; }
.bbl-ti__image { width: 100%; height: auto; display: block; }
.bbl-ti__image--rounded { border-radius: var(--radius-lg, 12px); }
.bbl-ti__image--shadow { box-shadow: var(--shadow-card, 0 4px 24px rgba(25,28,30,0.1)); }
@media (max-width: 63.9375em) { .bbl-ti__image { margin-top: 2rem; } }

/* Dark Mode */
[data-theme="dark"] .bbl-stat-card,
[data-theme="dark"] .bbl-feature-item--card { background: var(--bg-secondary, #2d2d2d); }

/* Hero alignment */
.bbl-hero--center { text-align: center; }
.bbl-hero--center .bbl-hero__text { margin-left: auto; margin-right: auto; }
.bbl-hero--center .bp-button { display: inline-block; }
.bbl-hero--right { text-align: right; }
.bbl-hero--right .bbl-hero__text { margin-left: auto; }

/* Block-level color overrides via CSS Custom Properties */
.bbl-hero__headline,
.bbl-cta__headline,
.bbl-ti__headline,
.bbl-feature-item__title {
    color: var(--bbl-headline-color, var(--color-heading, var(--text-primary, #212529)));
}

.bbl-hero__text,
.bbl-cta__text,
.bbl-ti__text,
.bbl-feature-item__text {
    color: var(--bbl-text-color, var(--color-text-muted, var(--text-secondary, #6c757d)));
}

.bbl-eyebrow {
    color: var(--bbl-eyebrow-color, var(--color-accent, var(--accent-color, #007bff)));
}

.bbl-hero .bp-button--primary,
.bbl-cta .bp-button--primary,
.bbl-ti .bp-button--primary,
.bbl-features .bp-button--primary {
    background-color: var(--bbl-btn-color, var(--btn-primary, #2c3e50));
    color: var(--bbl-btn-text-color, var(--btn-primary-text, #ffffff));
    border-color: var(--bbl-btn-color, var(--btn-primary, #2c3e50));
}

/* Blueprint Blocks – Button overrides */
.bbl-hero .bp-button,
.bbl-cta .bp-button,
.bbl-ti .bp-button,
.bbl-features .bp-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--btn-border-radius, 4px);
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.bbl-hero .bp-button--primary,
.bbl-cta .bp-button--primary,
.bbl-ti .bp-button--primary,
.bbl-features .bp-button--primary {
    background: var(--bbl-btn-color, var(--btn-primary, var(--accent-color, #007bff)));
    color: var(--bbl-btn-text-color, var(--btn-primary-text, #ffffff)) !important;
    border: 2px solid var(--bbl-btn-color, var(--btn-primary, var(--accent-color, #007bff)));
}

.bbl-hero .bp-button--hollow,
.bbl-cta .bp-button--hollow,
.bbl-ti .bp-button--hollow,
.bbl-features .bp-button--hollow {
    background: transparent;
    color: var(--bbl-btn-color, var(--btn-primary, var(--accent-color, #007bff))) !important;
    border: 2px solid var(--bbl-btn-color, var(--btn-primary, var(--accent-color, #007bff)));
}

.bbl-hero .bp-button--secondary,
.bbl-cta .bp-button--secondary,
.bbl-ti .bp-button--secondary {
    background: var(--color-secondary, #515f74);
    color: #ffffff !important;
    border: 2px solid var(--color-secondary, #515f74);
}

.bbl-hero .bp-button:hover,
.bbl-cta .bp-button:hover,
.bbl-ti .bp-button:hover,
.bbl-features .bp-button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* CTA actions flex */
.bbl-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

/* Feature icon size — use CSS var set inline */
.bbl-feature-item__icon i {
    font-size: inherit;
    line-height: 1;
}

.bbl-feature-item__icon {
    /* Size set inline via PHP (icon_size field) */
    border-radius: var(--radius-base, 4px);
    background: var(--bg-secondary, #f8f9fa);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--bbl-eyebrow-color, var(--color-accent, var(--accent-color, #007bff)));
}
.bbl-feature-item__icon i {
    font-size: inherit;
    line-height: 1;
    display: block;
}
/* ==========================================================================
   Bild Block
   ========================================================================== */

.bbl-image-block { width: 100%; }
.bbl-image-block__img { transition: transform 0.3s ease; }
.bbl-image-block__caption {
    font-size: 0.8rem;
    color: var(--color-text-muted, var(--text-secondary, #6c757d));
    margin-top: 0.5rem;
    text-align: center;
}

/* ==========================================================================
   Text + Bild – Mobil: Bild immer oben
   ========================================================================== */

@media (max-width: 63.9375em) {
    .bbl-text-image .grid-x { flex-direction: column; }
    .bbl-text-image .bbl-ti__image-col { order: -1 !important; margin-bottom: 1.5rem; margin-top: 0; }
    .bbl-text-image .bbl-ti__text-col  { order: 1; }
}

/* ==========================================================================
   Pagebuilder Spalten – Mobile Order
   ========================================================================== */

@media (max-width: 39.9375em) {
    .cell.mobile-first { order: -1 !important; }
    .cell.mobile-last  { order: 99 !important; }
}

/* ============================================================
   AudioPixel Dark Blocks v1.2.0
   Brand Colors: #34aee4 | #65b32e | #e63912 | #fdc716 | #874997
   ============================================================ */

.ap-btn { display:inline-block; font-size:0.6875rem; font-weight:500; letter-spacing:0.12em; text-transform:uppercase; padding:0.75rem 1.5rem; border-radius:4px; text-decoration:none; transition:opacity 0.2s, transform 0.2s; }
.ap-btn:hover { opacity:0.85; transform:translateY(-1px); }
.ap-btn--primary { background:#34aee4; color:#080d1a; border:none; }
.ap-btn--ghost { background:rgba(255,255,255,0.05); color:rgba(255,255,255,0.7); border:1px solid rgba(255,255,255,0.12); }

.ap-dark-hero { position:relative; padding:6rem 0 7rem; overflow:hidden; }
.ap-dark-hero__glow { position:absolute; top:-80px; right:5%; width:500px; height:500px; border-radius:50%; background:radial-gradient(circle,rgba(52,174,228,0.1) 0%,transparent 70%); pointer-events:none; }
.ap-dark-hero__eyebrow { display:block; font-size:0.625rem; font-weight:500; letter-spacing:0.2em; text-transform:uppercase; color:rgba(255,255,255,0.4); margin-bottom:1.25rem; }
.ap-dark-hero__headline { font-size:clamp(2.5rem,5vw,3.5rem); font-weight:500; line-height:1.0; letter-spacing:-0.03em; text-transform:uppercase; color:#fff; margin:0 0 1.5rem; }
.ap-dark-hero__highlight { color:#34aee4; }
.ap-dark-hero__text { font-size:0.9375rem; line-height:1.75; color:rgba(255,255,255,0.5); max-width:440px; margin:0 0 2.25rem; }
.ap-dark-hero__actions { display:flex; gap:0.875rem; align-items:center; flex-wrap:wrap; }
.ap-dark-hero__cards { display:flex; flex-direction:column; gap:0.875rem; }

.ap-glass-card { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.09); border-radius:12px; padding:1.375rem 1.5rem; position:relative; overflow:hidden; }
.ap-glass-card::before { content:''; position:absolute; top:0; left:0; right:0; height:50%; background:linear-gradient(180deg,rgba(255,255,255,0.06) 0%,transparent 100%); border-radius:12px 12px 0 0; pointer-events:none; }
.ap-glass-card::after { content:''; position:absolute; top:0; left:10%; right:10%; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent); pointer-events:none; }
.ap-glass-card__label { font-size:0.5625rem; letter-spacing:0.15em; text-transform:uppercase; color:rgba(255,255,255,0.35); margin-bottom:0.625rem; position:relative; }
.ap-glass-card__title { font-size:0.9375rem; font-weight:500; color:#fff; margin-bottom:0.25rem; position:relative; }
.ap-glass-card__sub { font-size:0.75rem; color:rgba(255,255,255,0.4); position:relative; }
.ap-glass-card__tags { display:flex; gap:0.5rem; flex-wrap:wrap; margin-top:0.875rem; position:relative; }
.ap-tag { font-size:0.625rem; letter-spacing:0.08em; text-transform:uppercase; padding:0.25rem 0.625rem; border-radius:3px; border:1px solid; }
.ap-tag--blue   { background:rgba(52,174,228,0.12);  color:#34aee4; border-color:rgba(52,174,228,0.25); }
.ap-tag--green  { background:rgba(101,179,46,0.12);  color:#65b32e; border-color:rgba(101,179,46,0.25); }
.ap-tag--red    { background:rgba(230,57,18,0.12);   color:#e63912; border-color:rgba(230,57,18,0.25); }
.ap-tag--yellow { background:rgba(253,199,22,0.1);   color:#fdc716; border-color:rgba(253,199,22,0.25); }
.ap-tag--purple { background:rgba(135,73,151,0.12);  color:#874997; border-color:rgba(135,73,151,0.25); }
.ap-glass-card__stats { display:flex; gap:1.75rem; position:relative; }
.ap-glass-card__stat-number { font-size:1.875rem; font-weight:500; color:#fff; letter-spacing:-0.04em; }
.ap-glass-card__stat-label { font-size:0.5625rem; letter-spacing:0.15em; text-transform:uppercase; color:rgba(255,255,255,0.35); margin-top:0.25rem; }

.ap-brand-separator { height:1px; background:linear-gradient(90deg,transparent,#34aee4,#65b32e,#e63912,#fdc716,#874997,transparent); margin:0 2.5rem; }

.ap-services-dark__header { margin-bottom:3rem; }
.ap-services-dark__headline { font-size:clamp(2rem,4vw,2.5rem); font-weight:500; letter-spacing:-0.03em; text-transform:uppercase; color:#fff; line-height:1.05; margin:0 0 0.75rem; }
.ap-services-dark__grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0.875rem; }
@media (max-width:63.9375em) { .ap-services-dark__grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:39.9375em) { .ap-services-dark__grid { grid-template-columns:1fr; } }

.ap-service-card { border-radius:10px; padding:1.5rem 1.25rem; cursor:pointer; transition:transform 0.2s; position:relative; overflow:hidden; }
.ap-service-card:hover { transform:translateY(-2px); }
.ap-service-card::before { content:''; position:absolute; top:0; left:0; right:0; height:45%; background:linear-gradient(180deg,rgba(255,255,255,0.06) 0%,transparent 100%); pointer-events:none; border-radius:10px 10px 0 0; }
.ap-service-card::after { content:''; position:absolute; top:0; left:10%; right:10%; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.18),transparent); pointer-events:none; }
.ap-service-card--blue   { background:rgba(52,174,228,0.09);  border:1px solid rgba(52,174,228,0.2); }
.ap-service-card--green  { background:rgba(101,179,46,0.09);  border:1px solid rgba(101,179,46,0.2); }
.ap-service-card--yellow { background:rgba(253,199,22,0.07);  border:1px solid rgba(253,199,22,0.2); }
.ap-service-card--purple { background:rgba(135,73,151,0.09);  border:1px solid rgba(135,73,151,0.2); }
.ap-service-card--red    { background:rgba(230,57,18,0.09);   border:1px solid rgba(230,57,18,0.2); }
.ap-service-card__bar { height:2px; border-radius:1px; margin-bottom:1.125rem; position:relative; }
.ap-service-card--blue   .ap-service-card__bar { background:#34aee4; }
.ap-service-card--green  .ap-service-card__bar { background:#65b32e; }
.ap-service-card--yellow .ap-service-card__bar { background:#fdc716; }
.ap-service-card--purple .ap-service-card__bar { background:#874997; }
.ap-service-card--red    .ap-service-card__bar { background:#e63912; }
.ap-service-card__icon { font-size:1.25rem; margin-bottom:1rem; position:relative; }
.ap-service-card--blue   .ap-service-card__icon { color:#34aee4; }
.ap-service-card--green  .ap-service-card__icon { color:#65b32e; }
.ap-service-card--yellow .ap-service-card__icon { color:#fdc716; }
.ap-service-card--purple .ap-service-card__icon { color:#874997; }
.ap-service-card--red    .ap-service-card__icon { color:#e63912; }
.ap-service-card__title { font-size:0.75rem; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; color:#fff; margin-bottom:0.625rem; position:relative; }
.ap-service-card__text { font-size:0.75rem; line-height:1.65; color:rgba(255,255,255,0.5); position:relative; }
.ap-service-card__link { display:inline-block; font-size:0.625rem; letter-spacing:0.1em; text-transform:uppercase; margin-top:1rem; color:rgba(255,255,255,0.4); text-decoration:none; position:relative; transition:color 0.2s; }
.ap-service-card__link:hover { color:#fff; }

.ap-cta-dark { border:1px solid rgba(255,255,255,0.07); border-radius:12px; padding:4rem 3rem; text-align:center; position:relative; overflow:hidden; background:rgba(255,255,255,0.02); }
.ap-cta-dark::before { content:''; position:absolute; top:0; left:0; right:0; height:40%; background:linear-gradient(180deg,rgba(255,255,255,0.04) 0%,transparent 100%); pointer-events:none; }
.ap-cta-dark__separator { position:absolute; top:0; left:10%; right:10%; height:1px; background:linear-gradient(90deg,transparent,#34aee4,#65b32e,#e63912,#fdc716,#874997,transparent); }
.ap-cta-dark__glow { position:absolute; top:-100px; left:50%; transform:translateX(-50%); width:400px; height:300px; border-radius:50%; background:radial-gradient(circle,rgba(52,174,228,0.07) 0%,transparent 70%); pointer-events:none; }
.ap-cta-dark__eyebrow { display:block; font-size:0.625rem; letter-spacing:0.2em; text-transform:uppercase; color:rgba(255,255,255,0.35); margin-bottom:1rem; position:relative; }
.ap-cta-dark__headline { font-size:clamp(2rem,4vw,2.75rem); font-weight:500; letter-spacing:-0.04em; text-transform:uppercase; color:#fff; margin-bottom:1rem; line-height:1.05; position:relative; }
.ap-cta-dark__text { font-size:0.9375rem; color:rgba(255,255,255,0.45); margin:0 auto 2rem; max-width:440px; line-height:1.75; position:relative; }
.ap-cta-dark__actions { display:flex; gap:0.875rem; justify-content:center; flex-wrap:wrap; position:relative; }
