/* Zentrale Branding- und UI-Overrides */
:root {
  --font-primary: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', 'Poppins', 'Nunito Sans', serif;
  --sans: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: 'Fraunces', 'Poppins', 'Nunito Sans', serif;
}

body {
  text-rendering: optimizeLegibility;
}

/* Breitere Inhaltsflächen auf großen Screens */
.container,
.nav-container,
.lnx-container {
  width: min(calc(100% - 5rem), 1460px);
  max-width: 1460px;
  margin-left: auto;
  margin-right: auto;
}

.container,
.lnx-container {
  padding-left: clamp(1.25rem, 1.8vw, 2.1rem);
  padding-right: clamp(1.25rem, 1.8vw, 2.1rem);
}

/* Overflow-Schutz für Karten/Kästchen */
:is(.age-card,.pricing-card,.trust-card,.lnx-path-card,.lnx-flow-step,.lnx-paper-card,.worksheet-card,.world-card,.topic-card,.category-tile,.filter-sidebar,.detail-panel,.feature-box,.benefit,[class*='card'],[class*='box']) {
  min-width: 0;
}

:is(.age-card,.pricing-card,.trust-card,.lnx-path-card,.lnx-flow-step,.lnx-paper-card,.worksheet-card,.world-card,.topic-card,.category-tile,.filter-sidebar,.detail-panel,.feature-box,.benefit,[class*='card'],[class*='box']) :is(h1, h2, h3, h4, p, li, a, span, strong, small) {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

:is(.feature-list,.pricing-grid,.worksheet-grid,.world-grid,.topic-grid,.age-grid,.trust-grid,.lnx-paths-grid,.lnx-flow) > * {
  min-width: 0;
}

/* Breadcrumbs global ausblenden */
.breadcrumb,
.content-breadcrumb,
.content-breadcrumbs {
  display: none !important;
}

/* Keine separaten Header-Streifen pro Seite, aber saubere Intro-Hierarchie */
.page-header {
  background: transparent !important;
  border-bottom: 0 !important;
  padding: 2.2rem 0 0.8rem !important;
  overflow: visible !important;
}

.page-header::after {
  display: none !important;
}

.page-header .container {
  display: grid;
  gap: 0.5rem;
}

.page-header h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.page-header p {
  margin: 0 !important;
  max-width: min(68ch, 100%);
  font-size: clamp(0.98rem, 1vw, 1.12rem);
  line-height: 1.5;
  color: #3f4f48;
}

.page-header + .section,
.page-header + main .section:first-child {
  padding-top: 1.6rem !important;
}

#konzept h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 1.14;
  margin-bottom: 0.7rem;
  max-width: 24ch;
}

#konzept p {
  max-width: min(70ch, 100%);
  font-size: 1.03rem;
  line-height: 1.62;
  color: #44564d;
}

#konzept .feature-list {
  margin-top: 1.9rem;
}

.page-header + .section .section-head,
.page-header + main .section:first-child .section-head {
  margin-bottom: 1.2rem;
}

.page-header + .section h2,
.page-header + main .section:first-child h2 {
  line-height: 1.1;
}

/* Branding: neues Wortmarken-Logo und robuste Header-Anpassung */
.brand {
  gap: 0.8rem;
}

.brand-logo {
  width: auto;
  height: clamp(2.15rem, 3.2vw, 3.05rem);
  max-width: min(36vw, 18rem);
  flex-shrink: 0;
}

.site-footer .brand-logo {
  height: clamp(2.05rem, 2.6vw, 2.7rem);
  max-width: min(34vw, 15rem);
}

@media (max-width: 980px) {
  .header-inner {
    gap: 0.8rem;
  }

  .brand-logo {
    max-width: min(44vw, 15rem);
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 1.75rem 0 0.65rem !important;
  }

  .page-header h1 {
    max-width: 100%;
    font-size: clamp(1.5rem, 7.2vw, 2.1rem);
  }

  .page-header p {
    max-width: 100%;
    font-size: 0.98rem;
  }

  #konzept h2 {
    max-width: 100%;
  }

  .page-header + .section,
  .page-header + main .section:first-child {
    padding-top: 1.25rem !important;
  }
  .container,
  .nav-container,
  .lnx-container {
    width: calc(100% - 2rem);
    max-width: 100%;
  }

  .brand-logo {
    height: clamp(1.9rem, 7vw, 2.4rem);
    max-width: min(52vw, 13.2rem);
  }

  .header-actions {
    padding-left: 0.5rem;
    gap: 0.2rem;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    max-width: min(56vw, 11.6rem);
  }
}
