@media print {
  @page { size: A4; margin: 18mm 12mm 18mm 12mm; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* 1) Menü, Footer, Buttons weg */
  .ab-navbar, .ab-footer, nav, [role="navigation"],
  .ab-button, .button-element, button,
  input[type="button"], input[type="submit"], a[role="button"] {
    display: none !important;
  }

  /* 2) Nur LEERE Wrapper entfernen (nicht pauschal alles mit mode="preview") */
  .element__wrapper:has(> .element__inner-wrapper:empty) {
    display: none !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important;
  }

  /* 3) Linie/Lücke am ersten sichtbaren Block entfernen */
  body > *:first-child,
  .ab-app > *:first-child,
  main > *:first-child,
  .app-content > *:first-child,
  .element__wrapper:first-of-type,
  .element__inner-wrapper:first-of-type {
    border-top: 0 !important; box-shadow: none !important; outline: 0 !important;
    margin-top: 0 !important; padding-top: 0 !important; background-image: none !important;
  }
  .element__wrapper:first-of-type::before,
  .element__wrapper:first-of-type::after,
  .element__inner-wrapper:first-of-type::before,
  .element__inner-wrapper:first-of-type::after {
    content: none !important; display: none !important; border: 0 !important;
  }

  /* 4) Logo links, 50 % Breite */
  .element__wrapper:first-of-type,
  .element__inner-wrapper:first-of-type { text-align: left !important; }
  .element__wrapper:first-of-type img,
  .element__wrapper:first-of-type svg {
    width: 50% !important; max-width: 50% !important;
    height: auto !important; max-height: none !important;
    display: block !important; margin: 0 !important;
  }
  .element__wrapper:first-of-type {
    background-position: left top !important;
    background-repeat: no-repeat !important;
    background-size: 50% auto !important;
  }

/* Hintergrundfarben konsequent entfernen */
  * {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  /* Farbliche Sektionen des Application Builders neutralisieren */
  .app-content,
  .ab-page,
  .element__wrapper,
  .element__inner-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  /* Farbige Panels, Container, Layout-Elemente */
  [class*="container"],
  [class*="box"],
  [class*="panel"],
  [class*="section"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  /* Falls Baserow inline styles setzt */
  *[style*="background"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }
}


.section__header {
  cursor: pointer;
  position: relative;
  padding-left: 20px;
}

.section__header::before {
  content: "▼";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.section__header.active::before {
  transform: translateY(-50%) rotate(-180deg);
}

.section__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.section__header {
  cursor: pointer;
  position: relative;
  padding-left: 20px;
}

.section__header::before {
  content: "▼";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.section__header.active::before {
  transform: translateY(-50%) rotate(-180deg);
}

.section__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}