/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

/* für Geschäftsbericht 2023
.Marker {background-color:#f7f7e4; color:#788200; font-weight:bold;}
 .Text-BrandRed {color:#971647;}
.Text-BrandDG {color:#788200;}
.Text-GroundGreen {background-color:#f7f7e4;}
*/

/*Für Geschäftsbericht 2024*/

.Marker {background-color:#ECF4F7; color:#008EAA; font-weight:bold;}
.Text-BrandRed {color:#008EAA;} /*dunkelblau*/
.Text-BrandDG {color:#008EAA;} /*dunkelblau*/
.Text-GroundGreen {background-color:#ECF4F7;} /*hellblau*/

body { color:#3F3F3E; } /* dunkles Grau 90% schwarz */



.swffo-table { color:#008EAA;  !important }


/* besseres Druckbild; dazu Seitennavigation ausblenden*/

@media print {

  @page {
    margin: 8mm;
  }

  /*
   * Linke Navigation entfernen.
   * Erkennung über die tatsächlich vorhandenen Navigationslinks.
   */
  ul:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]),
  nav:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]),
  [role="navigation"]:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]),
  aside:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]),
  header:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]),
  div:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]):not(:has(h1)),
  section:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]):not(:has(h1)) {
    display: none !important;
  }

  /*
   * Gemeinsamen Layout-Container von Navigation und Bericht
   * von zwei Spalten auf eine Spalte umstellen.
   */
  div:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]):has(h1),
  section:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]):has(h1) {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "content" !important;
  }

  /*
   * Alle direkten Bereiche innerhalb dieses Wrappers
   * dürfen die gesamte Druckbreite belegen.
   */
  div:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]):has(h1) > *,
  section:has(a[href*="/bereiche/"]):has(a[href*="/grundlagen/"]):has(h1) > * {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;

    grid-column: 1 / -1 !important;
    flex: 0 0 100% !important;
    transform: none !important;
  }

  /*
   * Den Bericht selbst ebenfalls von festen Breiten lösen.
   */
  main,
  article,
  [role="main"],
  div:has(h1),
  section:has(h1) {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
	
	/* Zusatz neu  */
	  /* Geschlossene Details-/Accordion-Inhalte drucken */
  main details:not([open]) > :not(summary),
  main details [hidden],
  main [class*="accordion" i] [hidden],
  main [class*="accordion" i] [class*="content" i],
  main [class*="accordion" i] [class*="panel" i],
  main [class*="accordion" i] [class*="body" i] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Diagramme und Bilder im Bericht vollständig drucken */
  main img,
  main picture img,
  main figure img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
 
	/* Zusatz neu ende */
}