@import url('/wp-content/fonts/local-fonts.css');

/* ============================================================
   STREAMBUZZER.CSS — Brand Stylesheet
   Enterprise Streaming Platform · staging.streambuzzer.de
   ============================================================ */

/* ── Custom Properties ────────────────────────────────────── */
:root {
  --sb-primary:       #0099cc;
  --sb-primary-dark:  #007aa3;
  --sb-primary-light: #e6f6fb;
  --sb-accent:        #ff9900;
  --sb-accent-hover:  #e68a00;
  --sb-text:          #1a1a2e;
  --sb-text-muted:    #4a4a5a;
  --sb-bg:            #ffffff;
  --sb-bg-alt:        #f8f9fa;
  --sb-bg-dark:       #1a1a2e;
  --sb-border:        #e2e8f0;
  --sb-success:       #22c55e;
  --sb-error:         #ef4444;
  --sb-radius:        8px;
  --sb-radius-sm:     6px;
  --sb-shadow:        0 2px 8px rgba(0, 0, 0, 0.08);
  --sb-shadow-md:     0 4px 16px rgba(0, 0, 0, 0.10);
  --sb-shadow-lg:     0 8px 32px rgba(0, 0, 0, 0.12);
  --sb-max-width:     1200px;
  --sb-font-heading:  'Albert Sans', sans-serif;
  --sb-font-body:     'Barlow', sans-serif;
  --sb-font-label:    'Barlow Semi Condensed', sans-serif;
  --sb-section-pad:   80px;
}


/* ── Global Overrides (Twenty Twenty-Five) ────────────────── */
body {
  font-family: var(--sb-font-body) !important;
  font-weight: 400;
  color: var(--sb-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sb-font-heading) !important;
  font-weight: 600;
  color: var(--sb-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Limit content width globally */
.wp-site-blocks .entry-content > *,
.wp-site-blocks .wp-block-post-content > * {
  max-width: var(--sb-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Full-width for sb sections */
.wp-site-blocks .entry-content > .sb-hero,
.wp-site-blocks .entry-content > .sb-cta,
.wp-site-blocks .entry-content > .sb-trust-signals,
.wp-site-blocks .entry-content > .sb-trust-bar,
.wp-site-blocks .wp-block-post-content > .sb-hero,
.wp-site-blocks .wp-block-post-content > .sb-cta,
.wp-site-blocks .wp-block-post-content > .sb-trust-signals,
.wp-site-blocks .wp-block-post-content > .sb-trust-bar,
.sb-hero,
.sb-cta,
.sb-trust-signals,
.sb-trust-bar {
  max-width: none;
}

/* Override TT5 content widths for sb-* blocks */
.is-layout-constrained > .sb-hero,
.is-layout-constrained > .sb-section,
.is-layout-constrained > .sb-cta,
.is-layout-constrained > .sb-trust-signals,
.is-layout-constrained > .sb-trust-bar,
.is-layout-constrained > .sb-trust-logos,
.is-layout-constrained > .sb-testimonials,
.is-layout-constrained > .sb-contact,
.is-layout-constrained > .sb-textk-teaser {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ── .sb-hero — Hero Section ──────────────────────────────── */
.sb-hero {
  background: linear-gradient(135deg, var(--sb-primary) 0%, #006b8f 100%);
  color: #ffffff;
  text-align: center;
  padding: 100px 24px 90px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.sb-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sb-hero h1,
.sb-hero h2 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.sb-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  line-height: 1.6;
}

.sb-hero .sb-btn {
  margin: 8px;
}


/* ── .sb-section — Standard Section ───────────────────────── */
.sb-section {
  padding: var(--sb-section-pad) 24px;
  max-width: none;
}

.sb-section:nth-of-type(even) {
  background-color: var(--sb-bg-alt);
}

.sb-section:nth-of-type(odd) {
  background-color: var(--sb-bg);
}

.sb-section > h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 12px;
  max-width: var(--sb-max-width);
  margin-left: auto;
  margin-right: auto;
}

.sb-section > p {
  text-align: center;
  color: var(--sb-text-muted);
  font-size: 1.1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

/* Inner content width constraint */
.sb-section > .sb-card-grid,
.sb-section > .sb-feature-grid,
.sb-section > .sb-comparison-table,
.sb-section > .sb-faq-item {
  max-width: var(--sb-max-width);
  margin-left: auto;
  margin-right: auto;
}


/* ── .sb-cta — Call-to-Action Section ─────────────────────── */
.sb-cta {
  background: var(--sb-bg-dark);
  color: #ffffff;
  text-align: center;
  padding: var(--sb-section-pad) 24px;
}

.sb-cta h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 16px;
}

.sb-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.sb-cta a:not(.sb-btn) {
  color: var(--sb-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-cta a:not(.sb-btn):hover {
  color: #ffffff;
}


/* ── .sb-card-grid / .sb-card — Card Layout ───────────────── */
.sb-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--sb-max-width);
  margin-left: auto;
  margin-right: auto;
}

.sb-card {
  background: var(--sb-bg);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 32px 28px;
  box-shadow: var(--sb-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sb-card:hover {
  box-shadow: var(--sb-shadow-md);
  transform: translateY(-3px);
}

.sb-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--sb-text);
}

.sb-card p {
  color: var(--sb-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.sb-card a {
  color: var(--sb-primary);
  font-weight: 500;
  text-decoration: none;
  font-family: var(--sb-font-body);
}

.sb-card a:hover {
  color: var(--sb-primary-dark);
  text-decoration: underline;
}


/* ── .sb-feature-grid / .sb-feature — Feature Layout ──────── */
.sb-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--sb-max-width);
  margin-left: auto;
  margin-right: auto;
}

.sb-feature {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--sb-radius);
  background: var(--sb-bg);
  border: 1px solid var(--sb-border);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--sb-text-muted);
  transition: box-shadow 0.2s ease;
}

.sb-feature:hover {
  box-shadow: var(--sb-shadow);
}

.sb-feature strong {
  display: block;
  color: var(--sb-text);
  font-size: 1.05rem;
  margin-top: 8px;
  margin-bottom: 4px;
}


/* ── .sb-trust-signals / .sb-signal — Trust Signals ───────── */
.sb-trust-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 60px 24px;
  background: var(--sb-primary-light);
  border-top: 3px solid var(--sb-primary);
  border-bottom: 3px solid var(--sb-primary);
}

.sb-signal {
  text-align: center;
  max-width: 220px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--sb-text-muted);
}

.sb-signal strong {
  display: block;
  color: var(--sb-text);
  font-size: 1rem;
  margin-top: 4px;
  margin-bottom: 2px;
}


/* ── .sb-trust-bar / .sb-trust-item — Trust Bar (compact) ── */
.sb-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 24px;
  background: var(--sb-bg-alt);
  border-bottom: 1px solid var(--sb-border);
}

.sb-trust-item {
  text-align: center;
  max-width: 200px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sb-text-muted);
}

.sb-trust-item strong {
  display: block;
  color: var(--sb-text);
  font-size: 0.95rem;
  margin-top: 4px;
}


/* ── .sb-trust-logos — Logo Bar ────────────────────────────── */
.sb-trust-logos {
  text-align: center;
  padding: 32px 24px;
  color: var(--sb-text-muted);
  font-family: var(--sb-font-label);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}


/* ── .sb-comparison-table — Comparison Table ──────────────── */
.sb-comparison-table {
  width: 100%;
  max-width: var(--sb-max-width);
  margin: 0 auto 32px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--sb-radius);
  overflow: hidden;
  box-shadow: var(--sb-shadow);
  font-size: 0.95rem;
}

.sb-comparison-table thead th {
  background: var(--sb-primary);
  color: #ffffff;
  font-family: var(--sb-font-heading);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--sb-primary-dark);
}

.sb-comparison-table thead th:first-child {
  background: var(--sb-primary-dark);
}

.sb-comparison-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--sb-border);
  vertical-align: top;
  color: var(--sb-text);
}

.sb-comparison-table tbody tr:nth-child(even) td {
  background-color: var(--sb-bg-alt);
}

.sb-comparison-table tbody tr:nth-child(odd) td {
  background-color: var(--sb-bg);
}

.sb-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.sb-comparison-table tbody td:first-child {
  font-weight: 500;
  color: var(--sb-text);
  font-family: var(--sb-font-heading);
}

.sb-comparison-table tbody tr:hover td {
  background-color: var(--sb-primary-light);
}


/* ── .sb-testimonials / .sb-testimonial — Testimonials ────── */
.sb-testimonials {
  padding: var(--sb-section-pad) 24px;
  background: var(--sb-bg-alt);
  max-width: none;
}

.sb-testimonials > h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 48px;
  max-width: var(--sb-max-width);
  margin-left: auto;
  margin-right: auto;
}

.sb-testimonial {
  background: var(--sb-bg);
  border-left: 4px solid var(--sb-primary);
  border-radius: 0 var(--sb-radius) var(--sb-radius) 0;
  padding: 32px 36px;
  margin: 0 auto 24px;
  max-width: 760px;
  box-shadow: var(--sb-shadow);
  position: relative;
  font-style: normal;
  quotes: none;
}

.sb-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 3.5rem;
  color: var(--sb-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.sb-testimonial p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--sb-text);
  margin-bottom: 12px;
}

.sb-testimonial cite {
  font-style: normal;
  font-weight: 500;
  color: var(--sb-text-muted);
  font-size: 0.92rem;
  font-family: var(--sb-font-label);
}


/* ── .sb-btn / .sb-btn-primary / .sb-btn-secondary — Buttons */
.sb-btn {
  display: inline-block;
  font-family: var(--sb-font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--sb-radius-sm);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  line-height: 1.4;
  text-align: center;
}

.sb-btn-primary {
  background: var(--sb-accent) !important;
  color: #ffffff !important;
  border-color: var(--sb-accent) !important;
}

.sb-btn-primary:hover {
  background: var(--sb-accent-hover) !important;
  border-color: var(--sb-accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.35);
}

.sb-btn-secondary {
  background: transparent !important;
  color: var(--sb-primary) !important;
  border-color: var(--sb-primary) !important;
}

.sb-btn-secondary:hover {
  background: var(--sb-primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* In hero/cta contexts, secondary should be white outline */
.sb-hero .sb-btn-secondary,
.sb-cta .sb-btn-secondary {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.sb-hero .sb-btn-secondary:hover,
.sb-cta .sb-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}


/* ── .sb-faq / .sb-faq-item — FAQ ─────────────────────────── */
.sb-faq {
  padding: var(--sb-section-pad) 24px;
}

.sb-faq-item {
  max-width: 800px;
  margin: 0 auto 28px;
  background: var(--sb-bg);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 28px 32px;
  box-shadow: var(--sb-shadow);
  transition: box-shadow 0.2s ease;
}

.sb-faq-item:hover {
  box-shadow: var(--sb-shadow-md);
}

.sb-faq-item h3 {
  font-size: 1.1rem;
  color: var(--sb-text);
  margin-bottom: 10px;
  font-family: var(--sb-font-heading);
  font-weight: 600;
}

.sb-faq-item p {
  color: var(--sb-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.sb-faq-item a {
  color: var(--sb-primary);
  text-decoration: none;
  font-weight: 500;
}

.sb-faq-item a:hover {
  color: var(--sb-primary-dark);
  text-decoration: underline;
}


/* ── .sb-contact — Contact Section ────────────────────────── */
.sb-contact {
  padding: var(--sb-section-pad) 24px;
  background: var(--sb-bg-alt);
  text-align: center;
}

.sb-contact h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 16px;
}

.sb-contact p {
  color: var(--sb-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  line-height: 1.7;
}

.sb-contact strong {
  color: var(--sb-text);
  font-size: 1.2rem;
}


/* ── .sb-textk-teaser — textk.ai Teaser Box ──────────────── */
.sb-textk-teaser {
  max-width: 900px;
  margin: 48px auto;
  padding: 36px 40px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f0ff 100%);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--sb-primary), #8b5cf6) 1;
  border-radius: 0; /* border-image doesn't work with border-radius, using outline trick */
  position: relative;
}

/* Use a pseudo-element for the gradient border with rounded corners */
.sb-textk-teaser {
  border: none;
  border-radius: var(--sb-radius);
  position: relative;
  overflow: hidden;
}

.sb-textk-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: var(--sb-radius);
  background: linear-gradient(135deg, var(--sb-primary), #8b5cf6);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.sb-textk-teaser h3 {
  font-size: 1.2rem;
  color: var(--sb-text);
  margin-bottom: 12px;
}

.sb-textk-teaser p {
  color: var(--sb-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 8px;
}


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sb-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sb-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --sb-section-pad: 56px;
  }

  .sb-hero {
    padding: 72px 20px 64px;
  }

  .sb-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sb-feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sb-trust-signals {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 48px 24px;
  }

  .sb-trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 36px 24px;
  }

  .sb-comparison-table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sb-comparison-table thead th,
  .sb-comparison-table tbody td {
    padding: 10px 14px;
    white-space: nowrap;
  }

  .sb-testimonial {
    padding: 24px 24px;
  }

  .sb-testimonial::before {
    font-size: 2.5rem;
    top: 8px;
    left: 10px;
  }

  .sb-faq-item {
    padding: 22px 24px;
  }

  .sb-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .sb-textk-teaser {
    margin: 32px 16px;
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --sb-section-pad: 44px;
  }

  .sb-hero {
    padding: 56px 16px 48px;
  }

  .sb-hero h1,
  .sb-hero h2 {
    font-size: 1.7rem;
  }

  .sb-section > h2,
  .sb-cta h2,
  .sb-testimonials > h2,
  .sb-contact h2 {
    font-size: 1.4rem;
  }
}


/* ── Print ────────────────────────────────────────────────── */
@media print {
  .sb-hero {
    background: none !important;
    color: #000 !important;
    padding: 20px 0;
  }

  .sb-hero h1,
  .sb-hero h2,
  .sb-hero p {
    color: #000 !important;
  }

  .sb-cta {
    background: none !important;
    color: #000 !important;
    border: 2px solid #000;
    padding: 20px;
  }

  .sb-cta h2,
  .sb-cta p {
    color: #000 !important;
  }

  .sb-btn {
    border: 1px solid #000 !important;
    background: none !important;
    color: #000 !important;
  }

  .sb-card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .sb-testimonial {
    box-shadow: none;
    page-break-inside: avoid;
  }

  .sb-comparison-table {
    box-shadow: none;
  }

  .sb-trust-signals,
  .sb-trust-bar {
    border: 1px solid #ccc;
  }
}


/* ── Navigation Refinements ───────────────────────────────── */
.wp-block-site-title a {
  font-family: var(--sb-font-heading) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wp-block-navigation {
  font-family: var(--sb-font-body) !important;
}

/* ── Footer Cleanup ───────────────────────────────────────── */
footer.wp-block-template-part {
  font-family: var(--sb-font-body);
}

footer .wp-block-site-title a {
  font-family: var(--sb-font-heading) !important;
}

/* ── Links in sections ────────────────────────────────────── */
.sb-section a:not(.sb-btn) {
  color: var(--sb-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.sb-section a:not(.sb-btn):hover {
  color: var(--sb-primary-dark);
  text-decoration: underline;
}
