/* ==========================================================================
   KI Schulungen – Pages CSS
   Styles for all subpages (NOT the home page).
   Uses global.css token names (--primary, --sp-6, --bg-white, etc.)

   CSS-Stack: global.css + home.css (Header/Footer) + pages.css
   ==========================================================================

   TOKEN REFERENCE (from global.css):
   Colors:   --primary, --primary-brand, --primary-light, --primary-accent
             --text-primary, --text-heading, --text-body, --text-secondary, --text-muted
             --white, --bg-white, --bg-subtle, --bg-muted, --bg-alt, --bg-dark, --bg-dark-alt
             --border, --border-light, --border-subtle, --border-dark
             --error
   Spacing:  --sp-1 (4px) through --sp-32 (128px)
   Layout:   --content-width (1320px), --narrow-width (872px), --max-width (1600px), --grid-gap (24px)
   Radius:   --radius-sm, --radius-md, --radius-lg, --radius-xl, --radius-2xl, --radius-full
   Shadows:  --shadow-sm, --shadow-md, --shadow-lg, --shadow-xl
   Fonts:    --font-heading, --font-body
   Motion:   --ease, --duration, --duration-slow
   ========================================================================== */


/* ==========================================================================
   SÄULEN-FARBSYSTEM (Schulungen / Beratung / Projekte)
   ========================================================================== */

:root {
  --color-schulungen: #007ebe;
  --color-beratung: #2d2b6d;
  --color-projekte: #00a89d;
}

/* Seiten-spezifische Akzentfarbe */
.page-accent--schulungen { --page-accent: var(--color-schulungen); }
.page-accent--beratung   { --page-accent: var(--color-beratung); }
.page-accent--projekte   { --page-accent: var(--color-projekte); }
.page-accent--neutral    { --page-accent: #007ebe; }

/* Hero-Labels */
.page-accent--schulungen .page-hero__label,
.page-accent--beratung .page-hero__label,
.page-accent--projekte .page-hero__label {
  color: var(--page-accent);
}

.page-accent--projekte .page-hero__label {
  color: rgba(0, 168, 157, 0.85);
}

/* Breadcrumb-Akzent */
.page-accent--schulungen .breadcrumb__current,
.page-accent--beratung .breadcrumb__current,
.page-accent--projekte .breadcrumb__current {
  color: var(--page-accent);
}

/* --- Projekte (Teal) Akzente --- */
.page-accent--projekte .btn--primary,
.page-accent--projekte .case-cta-row .btn--primary {
  background: var(--color-projekte);
  box-shadow: 0 4px 16px rgba(0, 168, 157, 0.25);
}

.page-accent--projekte .btn--primary:hover,
.page-accent--projekte .case-cta-row .btn--primary:hover {
  background: #00c4b0;
  box-shadow: 0 8px 32px rgba(0, 168, 157, 0.35);
}

.page-accent--projekte .section__label,
.page-accent--projekte .case-highlight__label {
  color: var(--color-projekte);
}

.page-accent--projekte .case-quote {
  border-left-color: var(--color-projekte);
  background: linear-gradient(135deg, rgba(0, 168, 157, 0.04), rgba(0, 168, 157, 0.01));
}

.page-accent--projekte .case-quote::before {
  color: var(--color-projekte);
}

.page-accent--projekte .case-highlight {
  background: linear-gradient(135deg, rgba(0, 168, 157, 0.08), rgba(0, 168, 157, 0.03));
  border-color: rgba(0, 168, 157, 0.20);
}

.page-accent--projekte .kpi-card:hover {
  border-color: rgba(0, 168, 157, 0.15);
}

/* projekte kpi-card__title::before removed – was empty placeholder block */

.page-accent--projekte .kpi-card__list li::before {
  background: var(--color-projekte);
}

.page-accent--projekte .case-cta-row .btn--secondary:hover {
  border-color: var(--color-projekte);
  color: var(--color-projekte);
}

/* --- Beratung (Navy) Akzente --- */
.page-accent--beratung .btn--primary {
  background: var(--color-beratung);
  box-shadow: 0 4px 16px rgba(45, 43, 109, 0.25);
}

.page-accent--beratung .btn--primary:hover {
  background: #3d3b8d;
  box-shadow: 0 8px 32px rgba(45, 43, 109, 0.35);
}

.page-accent--beratung .section__label {
  color: var(--color-beratung);
}

/* --- Schulungen (Blau) Akzente --- */
.page-accent--schulungen .accordion__trigger:hover {
  color: var(--color-schulungen);
}

.page-accent--schulungen .accordion__item--active .accordion__trigger {
  color: var(--color-schulungen);
}

.page-accent--schulungen .usp-card__icon {
  background: rgba(0, 126, 190, 0.08);
  color: var(--color-schulungen);
}

.page-accent--schulungen .fokus-card__badge {
  background: rgba(0, 126, 190, 0.08);
  color: var(--color-schulungen);
}

.page-accent--schulungen .text-link,
.page-accent--schulungen .section__cta a:not(.btn) {
  color: var(--color-schulungen);
}

/* Header contrast overrides for image-hero pages are placed
   AFTER .page-sub rules (end of file) to win cascade. */


/* ==========================================================================
   PAGE WRAPPER
   ========================================================================== */

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-wrapper > main {
  flex: 1;
}

.no-scroll {
  overflow: hidden;
}


/* ==========================================================================
   CONTAINER (Narrow variant for subpages)
   ========================================================================== */

.container--narrow {
  max-width: var(--narrow-width);
}

.container--wide {
  max-width: var(--max-width);
}


/* ==========================================================================
   SKIP LINK
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 1000;
  padding: var(--sp-2) var(--sp-4);
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--sp-2);
}


/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
}

.section--sm {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
}

.section--md {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
}

.section--lg {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section--no-top { padding-top: 0; }
.section--no-bottom { padding-bottom: 0; }

.section--white { background-color: var(--bg-white); }
.section--light { background-color: var(--bg-subtle); }
.section--muted { background-color: var(--bg-muted); }
.section--alt   { background-color: var(--bg-alt); }

.section--dark {
  background-color: var(--bg-dark);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}

.section--dark a {
  color: var(--primary-accent);
}

.section--dark a:hover {
  color: var(--white);
}

.section--primary {
  background-color: var(--primary);
  color: var(--white);
}

.section--primary h2,
.section--primary h3,
.section--primary h4 {
  color: var(--white);
}

.section--primary p {
  color: rgba(255, 255, 255, 0.85);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: var(--narrow-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-16);
}

.section-header h2 {
  margin-bottom: var(--sp-4);
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-6);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--sp-6);
  line-height: 1.15;
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--sp-16);
    padding-bottom: var(--sp-16);
  }

  .section--sm {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-8);
  }

  .section--md {
    padding-top: var(--sp-10);
    padding-bottom: var(--sp-10);
  }

  .section--lg {
    padding-top: var(--sp-16);
    padding-bottom: var(--sp-16);
  }

  .section-header {
    margin-bottom: var(--sp-10);
  }

  .section__title {
    font-size: 32px;
  }

  .page-title {
    font-size: 36px;
  }
}


/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb {
  padding: var(--sp-4) 0;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: 14px;
  color: var(--text-secondary);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.breadcrumb__link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb__separator {
  color: var(--text-muted);
  user-select: none;
  font-size: 12px;
}

.breadcrumb__current {
  color: var(--text-primary);
  font-weight: 500;
}


/* ==========================================================================
   LEGAL CONTENT (Impressum, Datenschutz, AGB)
   ========================================================================== */

.legal-content {
  line-height: 1.7;
  color: var(--text-body);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.legal-content p {
  margin-bottom: var(--sp-4);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--primary-brand);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-6);
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: var(--sp-2);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content strong {
  font-weight: 600;
  color: var(--text-primary);
}


/* ==========================================================================
   FAQ ACCORDION (native <details>/<summary>)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: color var(--duration) var(--ease);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::marker {
  display: none;
  content: '';
}

.faq-item__question:hover {
  color: var(--primary);
}

.faq-item__question span {
  flex: 1;
}

.faq-item__icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 0 var(--sp-5) 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

.faq-item__answer p {
  margin-bottom: var(--sp-3);
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer ol,
.faq-item__answer ul {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.faq-item__answer ol {
  list-style: decimal;
}

.faq-item__answer li {
  margin-bottom: var(--sp-2);
}


/* ==========================================================================
   NEWSLETTER CTA
   ========================================================================== */

.newsletter-cta {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--sp-16) 0;
}

.newsletter-cta__inner {
  text-align: center;
}

.newsletter-cta__headline {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.newsletter-cta__subtext {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto var(--sp-8);
  line-height: 1.6;
}

.newsletter-cta__form {
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-cta__input-group {
  display: flex;
  gap: var(--sp-3);
}

.newsletter-cta__input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
}

.newsletter-cta__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-cta__input:focus {
  outline: none;
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-cta__btn {
  white-space: nowrap;
}

.newsletter-cta__status {
  font-size: 14px;
  margin-top: var(--sp-3);
  min-height: 20px;
}

.newsletter-cta__status--success {
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-cta__status--error {
  color: #ffb3b0;
}

@media (max-width: 480px) {
  .newsletter-cta__input-group {
    flex-direction: column;
  }

  .newsletter-cta {
    padding: var(--sp-10) 0;
  }

  .newsletter-cta__headline {
    font-size: 24px;
  }
}

/* Newsletter checkbox on blue background */
.newsletter-cta .form-field--checkbox {
  margin-top: var(--sp-4);
  margin-bottom: 0;
}

.newsletter-cta .form-field__checkbox {
  border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-cta .form-field__checkbox:checked {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.25);
}

.newsletter-cta .form-field__checkbox-text {
  color: rgba(255, 255, 255, 0.85);
}

.newsletter-cta .form-field__checkbox-text a {
  color: var(--white);
}

/* --quiet variant: ruhiger Newsletter-Block für Kontaktseite ------------- */
.newsletter-cta--quiet {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-10) 0;
}

.newsletter-cta--quiet .newsletter-cta__headline {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.newsletter-cta--quiet .newsletter-cta__subtext {
  color: var(--text-secondary);
  font-size: 15px;
}

.newsletter-cta--quiet .newsletter-cta__input {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.newsletter-cta--quiet .newsletter-cta__input::placeholder {
  color: var(--text-muted);
}

.newsletter-cta--quiet .newsletter-cta__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background-color: var(--bg-white);
}

.newsletter-cta--quiet .form-field--checkbox {
  margin-top: var(--sp-3);
}

.newsletter-cta--quiet .form-field__checkbox {
  border-color: var(--border);
}

.newsletter-cta--quiet .form-field__checkbox:checked {
  border-color: var(--primary);
  background-color: var(--primary);
}

.newsletter-cta--quiet .form-field__checkbox-text {
  color: var(--text-secondary);
}

.newsletter-cta--quiet .form-field__checkbox-text a {
  color: var(--primary);
  text-decoration: underline;
}

.newsletter-cta--quiet .newsletter-cta__status--success {
  color: var(--success, #16a34a);
}

.newsletter-cta--quiet .newsletter-cta__status--error {
  color: var(--error, #dc2626);
}


/* ==========================================================================
   BUTTONS (shared with home.css, but needed for subpage forms)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.btn--primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--primary-hover);
}

.btn--secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn--secondary:hover {
  background-color: var(--primary-light);
}

.btn--white {
  background-color: var(--white);
  color: var(--primary);
}

.btn--white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: 18px;
}


/* ==========================================================================
   FORMS (.form-field BEM — used by subpage HTML)
   ========================================================================== */

.form-field {
  margin-bottom: var(--sp-5);
}

.form-field__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.form-field__required {
  color: var(--error);
  margin-left: 2px;
}

.form-field__input,
.form-field__select,
.form-field__textarea {
  display: block;
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.form-field__input:hover,
.form-field__select:hover,
.form-field__textarea:hover {
  border-color: var(--text-muted);
}

.form-field__input:focus,
.form-field__select:focus,
.form-field__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-field__textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23686868' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
}

.form-field__error {
  display: block;
  font-size: 13px;
  color: var(--error);
  margin-top: var(--sp-1);
  min-height: 0;
}

.form-field--error .form-field__input,
.form-field--error .form-field__select,
.form-field--error .form-field__textarea {
  border-color: var(--error);
}

.form-field--error .form-field__input:focus,
.form-field--error .form-field__select:focus {
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

/* Checkbox variant */
.form-field--checkbox {
  margin-bottom: var(--sp-5);
}

.form-field__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
}

.form-field__checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease),
              background-color var(--duration) var(--ease);
}

.form-field__checkbox:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-field__checkbox:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-field__checkbox-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}

.form-field__checkbox-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-field__checkbox-text a:hover {
  color: var(--primary-brand);
}

/* Honeypot (hidden from users) */
.form-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.two-col--wide-right {
  grid-template-columns: 5fr 7fr;
}

.two-col--wide-left {
  grid-template-columns: 7fr 5fr;
}

@media (max-width: 768px) {
  .two-col,
  .two-col--wide-right,
  .two-col--wide-left {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}

/* Contact info */
.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.contact-info__item .icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.contact-info__item .text-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: var(--sp-1);
}

.contact-info__link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  transition: color var(--duration) var(--ease);
}

.contact-info__link:hover {
  color: var(--primary);
}

.contact-info__usps {
  margin-top: var(--sp-8);
}

.contact-info__usp-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact-info__usp-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 16px;
  color: var(--text-primary);
}

.contact-info__usp-item .icon {
  flex-shrink: 0;
  color: var(--primary);
}

/* Contact form wrapper */
.contact-form-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}

.contact-form__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.contact-form__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}

.contact-form__submit {
  width: 100%;
  margin-top: var(--sp-2);
}

.contact-form__status {
  font-size: 14px;
  margin-top: var(--sp-3);
  min-height: 20px;
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: var(--sp-6);
  }
}


/* ==========================================================================
   OVERLAY / CALLBACK MODAL
   ========================================================================== */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease),
              visibility var(--duration-slow) var(--ease);
}

.overlay[aria-hidden="false"],
.overlay--open {
  opacity: 1;
  visibility: visible;
}

.overlay__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.overlay__panel {
  position: relative;
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-8);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--duration-slow) var(--ease);
}

.overlay[aria-hidden="false"] .overlay__panel,
.overlay--open .overlay__panel {
  transform: translateY(0) scale(1);
}

.overlay__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease);
}

.overlay__close:hover {
  background-color: var(--bg-muted);
}

.overlay__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  padding-right: var(--sp-10);
}

.overlay__desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}

.overlay__submit {
  width: 100%;
  margin-top: var(--sp-2);
}

.overlay__status {
  font-size: 14px;
  margin-top: var(--sp-3);
  min-height: 20px;
}


/* ==========================================================================
   CASE STUDY (erbe-group.html)
   ========================================================================== */

.case-quote {
  border-left: 3px solid var(--primary);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

.case-quote--inline {
  margin: var(--sp-4) 0;
}

.case-block {
  margin-bottom: var(--sp-10);
}

.case-block__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-4);
}

.case-block__list {
  list-style: disc;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.case-block__list li {
  margin-bottom: var(--sp-2);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

.case-subblock {
  margin-bottom: var(--sp-6);
}

.case-subblock__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-3);
}

.case-cta {
  text-align: center;
  margin-top: var(--sp-10);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.kpi-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.kpi-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.kpi-card__list {
  list-style: disc;
  padding-left: var(--sp-5);
}

.kpi-card__list li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--sp-2);
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }

.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }

.text-center { text-align: center; }

.text-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

.text-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.text-white { color: var(--white); }

/* Icon base */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}


/* ==========================================================================
   KI-SCHULUNGEN PAGE
   Section variants and content components
   ========================================================================== */

.section--subtle { background-color: var(--bg-subtle); }

.section__label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

.page-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 720px;
}

.section__intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-10);
  max-width: 800px;
}

.section__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
}

.section__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-top: var(--sp-8);
}

.section__cta-text {
  margin-top: var(--sp-4);
}

.section__cta {
  margin-top: var(--sp-10);
}

.text-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.text-link:hover {
  color: var(--primary-brand);
}


/* ==========================================================================
   USP GRID (ki-schulungen "Warum"-Section)
   ========================================================================== */

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.usp-card {
  padding: var(--sp-6);
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.usp-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: var(--sp-4);
}

.usp-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-2);
}

.usp-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

@media (max-width: 1024px) {
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .usp-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   SCHULUNGEN GROUPS + ACCORDION (ki-schulungen)
   ========================================================================== */

.schulungen-group {
  margin-bottom: var(--sp-16);
}

.schulungen-group__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--primary);
}

.schulungen-group__subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}


/* ==========================================================================
   SCHULUNGEN SPLIT LAYOUT (Accordion + Image side by side)
   ========================================================================== */

.schulungen-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
  margin-bottom: var(--sp-20);
}

.schulungen-split:last-child {
  margin-bottom: 0;
}

.schulungen-split__content {
  min-width: 0;
}

.schulungen-split__image {
  position: sticky;
  top: 120px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.schulungen-split__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Reversed variant: image left, content right */
.schulungen-split--reversed {
  direction: rtl;
}

.schulungen-split--reversed > * {
  direction: ltr;
}

@media (max-width: 1024px) {
  .schulungen-split {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .schulungen-split--reversed {
    direction: ltr;
  }

  .schulungen-split__image {
    position: static;
    max-height: 360px;
  }

  .schulungen-split__image img {
    max-height: 360px;
  }

  /* On mobile, always show image first */
  .schulungen-split__content {
    order: 2;
  }

  .schulungen-split__image {
    order: 1;
  }
}

@media (max-width: 640px) {
  .schulungen-split__image {
    max-height: 240px;
  }

  .schulungen-split__image img {
    max-height: 240px;
  }
}


/* ==========================================================================
   CONTEXT IMAGE (full-width visual block below hero)
   ========================================================================== */

.context-image__wrapper {
  margin-top: var(--sp-10);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  max-height: 400px;
}

.context-image__img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  max-height: 400px;
}

@media (max-width: 768px) {
  .context-image__wrapper {
    margin-top: var(--sp-6);
    border-radius: var(--radius-xl);
    max-height: 220px;
  }

  .context-image__img {
    max-height: 220px;
  }
}

.accordion {
  border-top: 1px solid var(--border-subtle);
}

.accordion__item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  transition: color var(--duration) var(--ease);
}

.accordion__trigger:hover {
  color: var(--primary);
}

.accordion__title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

.accordion__trigger:hover .accordion__title {
  color: var(--primary);
}

.accordion__icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
}

.accordion__item--active .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  padding: 0 0 var(--sp-5) 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

.accordion__content[hidden] {
  display: none;
}

.accordion__content p {
  margin-bottom: var(--sp-3);
}


/* ==========================================================================
   COURSE DETAIL (inside accordion, ki-schulungen)
   ========================================================================== */

.course-detail {
  padding: var(--sp-2) 0;
}

.course-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.course-detail__badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.course-detail__section {
  margin-bottom: var(--sp-5);
}

.course-detail__heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-3);
}

.course-detail__list {
  list-style: disc;
  padding-left: var(--sp-6);
}

.course-detail__list li {
  margin-bottom: var(--sp-2);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}


/* ==========================================================================
   FOKUS GRID (ki-schulungen Fokus-Themen)
   ========================================================================== */

.fokus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}

.fokus-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: box-shadow var(--duration) var(--ease);
}

.fokus-card:hover {
  box-shadow: var(--shadow-md);
}

.fokus-card__badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
}

.fokus-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-2);
}

.fokus-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

@media (max-width: 1024px) {
  .fokus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .fokus-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PAGE HERO (Subpage visual hero)
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, #f7f8fa 0%, #eef0f4 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

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

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  max-width: 640px;
}

/* Dark hero variant with background image */
.page-hero--dark {
  background: #1a1a1a;
  color: white;
  padding: 160px 0 100px;
}

.page-hero--dark .page-hero__title {
  color: white;
}

.page-hero--dark .page-hero__subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero--image {
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-hero--image::before {
  display: none;
}

.page-hero--image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Near-fullscreen hero variant (opt-in) */
.page-hero--tall {
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
}

.page-hero--tall .container {
  text-align: center;
}

.page-hero--tall .page-hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.page-hero--image .page-hero__title {
  color: white;
}

.page-hero--image .page-hero__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero--image .breadcrumb__link,
.page-hero--image .breadcrumb__current {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero--image .breadcrumb__link:hover {
  color: white;
}

.page-hero--image .breadcrumb__separator {
  color: rgba(255, 255, 255, 0.4);
}

.page-hero--image .page-hero__label {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero--image {
    padding: 130px 0 70px;
  }

  .page-hero--tall {
    min-height: 60vh;
  }
}


/* ==========================================================================
   SCROLL REVEAL FOR SUBPAGES
   ========================================================================== */

.page-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   PAGE SECTIONS (consistent subpage spacing)
   ========================================================================== */

.page-section {
  padding: 100px 0;
}

.page-section--muted {
  background: #f7f8fa;
}

.page-section--dark {
  background: #1a1a1a;
  color: white;
}


/* ==========================================================================
   ENHANCED CARDS (hover effects for all card types)
   ========================================================================== */

.usp-card,
.fokus-card,
.kpi-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.usp-card,
.fokus-card {
  border-radius: 20px;
}

.usp-card:hover,
.fokus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 126, 190, 0.1);
}


/* ==========================================================================
   ENHANCED FAQ ITEMS
   ========================================================================== */

.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:hover {
  border-color: rgba(0, 126, 190, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.faq-item__question {
  padding: 24px 32px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.faq-item__answer {
  padding: 0 32px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}


/* ==========================================================================
   ENHANCED CASE STUDY STYLES
   ========================================================================== */

/* Quote blocks with blue accent bar and quote icon */
.case-quote {
  border-left: 4px solid #007ebe;
  padding: 20px 24px;
  margin: 32px 0;
  background: linear-gradient(135deg, rgba(0, 126, 190, 0.03), rgba(0, 126, 190, 0.01));
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: #333;
  position: relative;
}

.case-quote::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: Georgia, serif;
  font-size: 48px;
  color: #007ebe;
  opacity: 0.2;
  line-height: 1;
}

.case-quote p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.case-quote--inline {
  margin: 24px 0;
}

/* Case images */
.case-image {
  margin: 48px 0;
  border-radius: 12px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-image--full {
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.case-image--side {
  max-width: 480px;
  float: right;
  margin: 0 0 32px 48px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .case-image--side {
    float: none;
    max-width: 100%;
    margin: 32px 0;
  }
}

/* Aha-Moment highlight box */
.case-highlight {
  background: linear-gradient(135deg, #f0f7fc, #e8f4fa);
  border: 1px solid rgba(0, 126, 190, 0.12);
  border-radius: 12px;
  padding: 24px 32px;
  margin: 32px 0;
  position: relative;
}

.case-highlight__label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #007ebe;
  margin-bottom: 16px;
}

.case-highlight__quote {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #333;
  margin: 0;
  border: none;
  padding: 0;
}

/* Case section spacing */
.case-block {
  padding: 0;
  margin-bottom: var(--sp-10);
}

.case-block + .case-block {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: var(--sp-10);
}

/* Fazit grid */
.case-fazit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.case-fazit-card {
  background: #f7f8fa;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.case-fazit-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.case-fazit-card ul {
  list-style: disc;
  padding-left: 20px;
}

.case-fazit-card li {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .case-fazit-grid {
    grid-template-columns: 1fr;
  }

  .case-highlight {
    padding: 20px 20px;
  }
}

/* Transformation before/after grid */
.case-transformation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.case-transformation__item {
  position: relative;
}

.case-transformation__label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.case-transformation .case-image {
  margin: 0;
}

@media (max-width: 768px) {
  .case-transformation {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Section intro text (below section title, before grid) */
.section__intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: var(--narrow-width);
}

/* Dual CTA row */
.case-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 48px 0;
  flex-wrap: wrap;
}

.case-cta-row .btn--primary {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  background: #007ebe;
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 126, 190, 0.25);
}

.case-cta-row .btn--primary:hover {
  background: #1a9fe0;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 126, 190, 0.35);
}

.case-cta-row .btn--secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
}

.case-cta-row .btn--secondary:hover {
  border-color: #007ebe;
  color: #007ebe;
}

/* KPI cards upgraded */
.kpi-card {
  background: white;
  padding: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.35s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 126, 190, 0.1);
}

.kpi-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* kpi-card__title::before removed – was empty placeholder block */

.kpi-card__list {
  list-style: none;
  padding-left: 0;
}

.kpi-card__list li {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.kpi-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}


/* ==========================================================================
   ENHANCED LEGAL CONTENT
   ========================================================================== */

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 0 120px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin-top: 56px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 126, 190, 0.1);
  letter-spacing: -0.02em;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.85;
  color: #555;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
}

.legal-content a {
  color: #007ebe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #1a9fe0;
}

/* Legal-Hero kompakter */
.page-hero--legal {
  padding: 130px 0 50px !important;
  background: #f7f8fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.page-hero--legal .page-hero__title {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 8px;
}


/* ==========================================================================
   ENHANCED FAQ
   ========================================================================== */

.faq-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:hover {
  border-color: rgba(0, 126, 190, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-item[open] {
  border-color: rgba(0, 126, 190, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq-item__question {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question:hover {
  color: var(--primary);
}

.faq-item[open] .faq-item__question {
  color: var(--primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-item__answer {
  padding: 16px 24px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}


/* ==========================================================================
   KONTAKT ENHANCEMENT
   ========================================================================== */

.contact-info__item .icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 126, 190, 0.08);
  color: #007ebe;
  flex-shrink: 0;
  margin-top: 0;
}


/* ==========================================================================
   SUBPAGE NAVBAR (dark text for light-hero subpages)
   ========================================================================== */

.page-sub .site-header:not(.scrolled) .navbar__link {
  color: var(--text-body);
}

.page-sub .site-header:not(.scrolled) .navbar__link:hover {
  color: var(--text-primary);
}

.page-sub .site-header:not(.scrolled) .navbar__cta {
  background: var(--primary);
  color: var(--white);
}

.page-sub .site-header:not(.scrolled) .navbar__hamburger span {
  background: var(--text-primary);
}

.page-sub .topbar a {
  color: var(--text-secondary);
}

.page-sub .topbar__divider {
  background: var(--border);
}

/* Override .page-sub dark text for image-hero pages (projekte only – schulungen now uses light hero) */
.page-accent--projekte .site-header:not(.scrolled) .navbar__link {
  color: rgba(255, 255, 255, 0.9);
}

.page-accent--projekte .site-header:not(.scrolled) .navbar__link:hover {
  color: var(--white);
}

.page-accent--projekte .site-header:not(.scrolled) .topbar {
  opacity: 1;
}

.page-accent--projekte .site-header:not(.scrolled) .topbar a,
.page-accent--projekte .topbar a {
  color: rgba(255, 255, 255, 0.8);
}

.page-accent--projekte .topbar__divider {
  background: rgba(255, 255, 255, 0.2);
}

.page-accent--projekte .site-header:not(.scrolled) .navbar__hamburger span {
  background: var(--white);
}
