h1 {
    margin-top: 1em;
    margin-bottom: 0.3em;
}

h2,
main.content > section:first-of-type > h2:nth-child(1) {
    margin-top: 2em;
}

p {
    text-align: justify;
}


p code:not(.sourceCode) {
    /* background-color: transparent; */
}



/* main */
#quarto-document-content {
    margin-top: 1rem;
}

#my-main-header .my-main-header-title {
    font-size: x-large;
}

#title-block-header > nav {
    margin-top: 1rem;
    padding-top: .5rem;
    border-top: 1px solid #ccc;
}

#title-block-header .quarto-title h1.title {
    margin-top: 1rem;
    margin-bottom: 1rem;
}


/* nav */
#quarto-sidebar { 
    margin-top: 1rem;
}

#quarto-sidebar .sidebar-header { 
    display: none;
}

#quarto-sidebar > div { 
    padding-top: 0;
}

#quarto-sidebar > div.sidebar-menu-container { 
    padding-top: .5rem;
}

#quarto-sidebar > div.sidebar-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* On this page */
#quarto-margin-sidebar {
    margin-top: 1rem;
}


/* Abbildung */
div.abbildung {
    width: fit-content;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

div.abbildung img {
    padding: 3px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

div.abbildung div.sourceCode {
    min-width: 36rem;
    border: 1px solid darkgray;
    padding: .5em;
    margin: 0;
}

div.abbildung p:last-child {
    font-size: .8em;
    margin-bottom: 0;
} 

div.abbildung div.klassendiagramm {
    border: 1px solid darkgray;
    min-width: 36rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

div.abbildung div.klassendiagramm img{
    padding-top: 5px;
    padding-bottom: 0;
}


/* Abbildung Spielbrett*/
div.abbildung.spielbrett {
    width: auto;
    padding: .5em;
}

div.abbildung.spielbrett figcaption,
div.abbildung.spielbrett p {
    width: fit-content;
    /*min-width: 36rem;*/
    display: block;
    margin-left: auto;
    margin-right: auto;
} 

div.abbildung.spielbrett figcaption {
    font-size: .8rem;
    color: black;
    margin-top: 0.2em;
    line-height: 1.2;
}

div.abbildung.spielbrett p {
    border: 1px solid darkgray;
}

div.abbildung.spielbrett img{
    margin-bottom: 0;
}


/* Struktorgramm */
div.abbildung.struktogramm figure p {
    border: 1px solid darkgray;
    text-align: center;
}

div.abbildung.struktogramm img {
    margin-bottom: 0;
    padding: 0;
}

div.abbildung.struktogramm figcaption {
    font-size: .8rem;
    color: black;
    margin-top: 0.2em;
    line-height: 1.2;
}


/* Aufgabe */
section.aufgabe  {
    border-left: 6px solid ForestGreen;
    padding: 0.3rem 0.7rem;
    margin: 2rem 0.3rem;
}

section.aufgabe h3 {
    margin-top: 0.1rem;
    text-decoration: underline;
    color: ForestGreen;
}

section.aufgabe div.abbildung:last-child  {
    margin-bottom: 0;
}


/* Merke */
div.merke {
    border: 1px solid darkgray;
    background-color: gold;
    padding: .5em .75em;
    margin: 2em 0em;
}

div.merke > p {
    margin-bottom: 0.5em;
}

div.merke > p:last-of-type {
    margin-bottom: 0;
}

/* Problem */
div.problem {
    border: 1px solid darkgray;
    padding: .5em .75em;
    margin: 2em 0;
}

div.problem > p {
    margin-bottom: 0.5em;
}

div.problem > p:last-of-type {
    margin-bottom: 0;
}


/* Footer */
#site_footer {
	width:100%;
	max-width:1000px;
	margin:0 auto;
	
	margin-top: 5em;
	padding: 1em;
	font-size: .75em;
	color: darkgrey;
	
	padding-top: 20px; 
	padding-bottom: 20px; 
	border-color: #D8D8D8;
	border-top-style: solid ;
	border-top-width : 2px;
}

#site_footer > .tabelle{
	width: 100%;
}

#site_footer > .tabelle > .zelle:nth-of-type(1){
	width: 25em;
	vertical-align: top;
}

#site_footer > .tabelle > .zelle:nth-of-type(3){
	width: 15em;
	vertical-align: top;
}

#site_footer .tabelle.kstbb .zelle {
	padding: .2em;
	vertical-align: middle;
}

#site_footer img.logo_kstbb {
	height: 2em;
}

#site_footer ul {
	padding-left: 0;
	list-style-type: none;
}

#site_footer ul.triangle li:before {
	content: "\25B8";
	font-size: 1.5em;
	margin-right: .2em;
	vertical-align: -10%;
}

#site_footer a {
	color: darkgrey;
	text-decoration: none;
}

.tabelle {
	display: table;
	width: 100%;
}

.zelle {
	display: table-cell;
	vertical-align: top;
}

.zelle_letzte {
	display: table-cell;
	width:100%; 
	vertical-align: top;
}

.zeile {
	display: table-row;
}