:root {
	--tma-green: #479d89; 
	--tma-green-rgb: 71, 157, 137; 
	--tma-blue: #10a0cd; 
	--tma-blue-rgb: 16, 160, 205;
	--tma-yellow: #ffb600; 
	--tma-yellow-rgb: 255, 182, 0;	
    --tma-hover-color: #000000;
    --tma-hover-bg: #f8f9fa;
    --tma-hover-border-color: #f8f9fa;

    --tma-primary: var(--tma-green);
    --tma-secondary: var(--tma-blue);
    --tma-tertiary: var(--tma-yellow);
  }
  
/* Basisschriftgröße */
html {
    font-size: 16px;
}

body{ /*Schriftart der Seite ändern*/
	font-family: Verdana, Calibri, Arial, sans-serif, Comic Sans MS;
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
    margin: 0;
}

.text-tma-tertiary{
    color: var(--tma-tertiary);
}

.text-tma-secondary{
    color: var(--tma-secondary);
}


.text-tma-primary{
    color: var(--tma-primary);
}

h1 {
    font-size: min(calc(1.0rem + 1.33vw), 2rem);      
    margin-bottom: calc(0.6875rem + 0.45vw);
}

h2 {
    font-size: calc(1.3rem + 0.6vw);
    font-size: 1.75rem;
    font-size: min(calc(0.9rem + 1.1vw), 1.75rem);    
    margin-bottom: calc(0.65rem + 0.3vw);
}

p, li {
    font-size: min(calc(0.625rem + 0.3vw), 1rem);    
    margin-bottom: calc(0.4rem + 0.1875vw);
}

.footer-p {
    font-size: min(calc(0.5rem + 0.42vw), 0.875rem); /* Reduziert um etwa 20% */
    margin-bottom: calc(0.32rem + 0.15vw); /* Ebenfalls um etwa 20% reduziert */
}

.row {
    display: flex;
    flex-wrap: wrap; /* Verhindert das Umbrechen der Spalten */
    flex: 1;
}

/*Grundeinstellungen für Rahmen mit Images*/
.well, .Ausrufezeichen, .Lampe_gelb, .Achtung { 
	border-radius: 20px;
	border: 1px solid;
	padding: 60px 15px 10px 15px;
	border-image-slice: 75 75 75 75;
	border-image-width: 50px 50px 50px 50px;
	border-image-outset: 0px 0px 0px 0px;
    border-image-width: min(calc(1.8rem + 1.45vw), 3.125rem) min(calc(1.8rem + 1.45vw), 3.125rem) min(calc(1.8rem + 1.45vw), 3.125rem) min(calc(1.8rem + 1.45vw), 3.125rem);
}  	

.well { /*Formel-Rahmen*/
	background-color: #eaf5f4;
	border-image-repeat: repeat repeat;
	border-image-source: url(/fileadmin/user_upload/Bilder/Rahmen/Gluehlampe_gruen.svg); 
}

.Ausrufezeichen { /*Gerahmte Box für Anmerkungen*/
	background-color: #eaf1f5;
	border-image-repeat: repeat repeat;
	border-image-source: url(/fileadmin/user_upload/Bilder/Rahmen/Ausrufezeichen_blau.svg); 
	margin-bottom: 20px;
}

.Lampe_gelb { /*Gerahmte Box für Beispiele*/
	background-color: #f5f5ea;
	border-image-repeat: repeat repeat;
	border-image-source: url(/fileadmin/user_upload/Bilder/Rahmen/Gluehlampe_gelb.svg); 
}

.Achtung { /*Gerahmte Box für wichtige Anmerkungen*/
	background-color: #f5ecea;
	border-image-repeat: repeat repeat;
	border-image-source: url(/fileadmin/user_upload/Bilder/Rahmen/Ausrufezeichen_rot.svg); 
}
/*Ende gerahmte Boxen*/

/* Horizontale Scrollbar für lange Gleichungen */
.math-container {
    font-size: min(calc(0.65rem + 0.52vw), 1.125rem);   
	overflow-x: auto;
	overflow-y: hidden;
	display: block; /* or use a <div> instead of a span */
}

.navbar {
    height: 84px;
    padding: 0px;
    padding-left: 1rem;
    background-color: var(--tma-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;        
}

.navbar .navbar-brand {
    /*position: absolute;
    left: 50%;
    transform: translateX(-50%);    */
    flex: 1; /* Nimmt den verfügbaren Raum in der Mitte ein */
    text-align: center; /* Zentriert den Inhalt */
    margin-right: 0px;
    padding: 0.5rem 0.3rem;    
}

/* Optional: Stile für die Buttons links und rechts */
.navbar .navbar-nav {
    display: flex;
    align-items: center; /* Vertikale Zentrierung der Buttons */
}

.navbar .btn {
    z-index: 1; /* Ensure button is clickable */
}

/* Stile für den Paragraph */
.navbar p {
    color: white; /* Beispieltextfarbe */
    font-size: 24px; /* Beispielschriftgröße */
    margin: 0;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.right-actions {
    display: flex;
    align-items: center;
    padding-right: 0.5rem; /* Fügt 1rem Abstand zum rechten Rand hinzu */
}


.navbar .bottom-row {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin-top: -1rem;
}

.navbar .greeting {
    text-align: right; /* Optional, um den Text sicher rechtsbündig zu halten */
    padding-right: 1rem; /* Fügt 1rem Abstand zum rechten Rand hinzu */
    font-size: 18px;
    color: white;
}

.navbar .greeting p{
    font-size: 18px;    
}

.navbar .hover-text-container {
    position: fixed;
    top: 50px; /* Just an example, adjust based on your layout */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 1);
    color: #212121 !important;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Optional: Schatten für Hoverfeld */
    border: 1px solid #212121; /* Schwarzer Rahmen */
}

/* Sprachauswahl-Button */
/* Positioniere den Hover-Text außerhalb des Buttons */
.navbar #languageHoverText,
.navbar #profileHoverText {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    bottom: -40px; /* Positioniere den Text unterhalb des Buttons */
    left: -20%; /* Text unter dem Button leicht links */
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 1);
    color: #212121 !important;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 14px;
    pointer-events: none; /* Verhindere Interaktion mit dem Text */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Optional: Schatten für Hoverfeld */
    border: 1px solid #212121; /* Schwarzer Rahmen */
}

/* Zeige den Hover-Text nur an, wenn über den Button gehovt wird */
#languageToggle:hover + #languageHoverText,
#profileToggle:hover + #profileHoverText {
    opacity: 1;
    pointer-events: auto;
}

/* Stile für das Dropdown-Menü */
.dropdown-menu {
    color: var(--tma-hover-color);
    background-color: var(--tma-hover-bg);
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: var(--tma-hover-color);
}

.dropdown-item:hover {
    background-color: var(--tma-primary);
    color: #fff;
}

/* Stile für die Icons im Dropdown-Menü */
.dropdown-item i {
    margin-right: 8px; /* Abstand zwischen dem Icon und dem Text */    
}

/* Ende Sprachauswahl-Button */

/* Wrapper um alles für Flexbox-Layout */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Volle Höhe des Bildschirms */
}
/* Ende Wrapper um alles für Flexbox-Layout */

.sidebar {
    margin-top: 84px;
    position: fixed; /* Fixiert die Sidebar an der Seite */
    left: 0; /* Startposition */
    top: 0;
    bottom: 0;
    width: 250px; /* Breite der Sidebar */
    background-color: var(--tma-primary);
    color: white;
    padding: 0;
    overflow-y: auto;
    transition: transform 0.3s ease; /* Animation für das Ein-/Ausschieben */
    transform: translateX(0); /* Standardposition, Sidebar ist sichtbar */
    z-index: 1000; /* Stellt sicher, dass die Sidebar über dem Main Content liegt */
}

.sidebar.minimized {
    transform: translateX(-100%); /* Verschiebt die Sidebar aus dem sichtbaren Bereich */
}

.sidebar::-webkit-scrollbar {
    width: 0px;
}

.sidebar .menu{
    width: 100%;    
}

.sidebar .menu .heading{
    position: relative; /* Macht das übergeordnete Element zum Bezugspunkt für absolute Positionierung */
    display: flex;
    align-items: center; /* Zentriert den Text und das Icon vertikal */
    justify-content: center; /* Zentriert den Text horizontal */
    padding: 5px 20px;
    line-height: 30px;
    color: #fff;
    font-size: 16px;    
    border-top: 2px solid #ffffff;    
}

.sidebar .menu .item{
    position: relative;
    cursor: pointer;
}

.sidebar .menu .item a{
    position: relative; /* Macht das übergeordnete Element zum Bezugspunkt für absolute Positionierung */
    display: flex;
    align-items: center; /* Zentriert den Text und das Icon vertikal */
    padding: 5px 20px;
    line-height: 60px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border-top: 2px solid #ffffff;    
}

.sidebar .menu .item a.no-top-border {
    border-top: none; /* Entfernt den oberen Rahmen */
}

.sidebar .menu .item a:hover,
.sidebar .menu .item .sub-menu a:hover{
    color: var(--tma-hover-color);
    background-color: var(--tma-hover-bg);
    border-color: var(--tma-hover-border-color);
    transition: 0.3s ease;
}

.sidebar .menu .item a .dropdown{
    position: absolute;
    right: 20px; /* Abstand zum rechten Rand */
    top: 50%; /* Vertikale Mitte des Eltern-Containers */
    transform: translateY(-50%); /* Korrektur zur exakten Zentrierung */
    transition: transform 0.3s ease; /* Smooth rotation */
}

.sidebar .menu .item a .dropdown.rotate {
    transform: translateY(-50%) rotate(90deg); /* Rotation mit vertikaler Zentrierung */
}

.sidebar .menu .item i{
    margin-right: 15px;
}

.sidebar .menu .item .sub-menu,
.sidebar .menu .item .sub-sub-menu {
    background: var(--tma-primary);
    display: none;
}

.sidebar .menu .item .sub-menu .show,
.sidebar .menu .item .sub-sub-menu .show {
    display: block;
}

.sidebar .menu .item .sub-menu a {
    font-size: 14px;
    padding-left: 30px;
    line-height: 30px;
    border-top: none;    
    border-top: 1px dashed #666666; /* Gestrichelte Linie */
    background-color: #5fb8a1;
}

.sidebar .menu .item .sub-sub-menu a {
    font-size: 14px;
    padding-left: 50px;
    line-height: 30px;
    border-top: none;
}

.sidebar .menu .item:first-child a {
    border-top: none;
}

.sidebar .menu .item .sub-menu a.background-color-1 {
    background-color: #4ea88f;     
}

.sidebar .menu .item .sub-menu a.background-color-2 {
    background-color: #5ab19c;     
}
 
.sidebar .menu .item .sub-menu a.background-color-1:hover,
.sidebar .menu .item .sub-menu a.background-color-2:hover {
    color: var(--tma-hover-color);
    background-color: var(--tma-hover-bg);
    border-color: var(--tma-hover-border-color);
    transition: 0.3s ease;
    z-index: 1;
}

/* Definiert das Aussehen des unterstrichenen Menüeintrags */
.item a.nav-link.active,
.sub-item  a.nav-link.active,
.sub-sub-item a.nav-link.active {
    background-color: #f0e68c ;
    background-color: #d1e7dd !important; 
    color: #333; /* Dunklere Textfarbe für Kontrast */   
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.3) !important; /* Eingedrückter Schatteneffekt */
    z-index: 1; /* Bringt das Element in den Vordergrund */
}

.item a.nav-link.active:hover,
.sub-item  a.nav-link.active:hover,
.sub-sub-item a.nav-link.active:hover {
    color: var(--tma-hover-color);
    background-color: var(--tma-hover-bg) !important;
    border-color: var(--tma-hover-border-color);
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.3) !important; /* Eingedrückter Schatteneffekt */
    z-index: 1; /* Bringt das Element in den Vordergrund */
}

.main-content {
    margin-top: 84px;
    background-color: #f8f9fa;
    transition: margin-left 0.3s ease, max-width 0.3s ease; /* Synchronisierte Animationen */
    margin-left: 250px; /* Platz für die Sidebar lassen */
    padding: 0;
    box-sizing: border-box;
    flex: 1; 
}

.main-content.minimized {
    margin-left: 0; /* No margin when sidebar is minimized */   
    max-width: 100%; /* Full width when sidebar is minimized */     
}

/* Rundes Button-Styling */
#toggleSidebar, 
.tma-button {
    border-radius: 50%; /* Macht den Button rund */
    padding: 5px; /* Fügt Innenabstand hinzu, um den Button größer zu machen */
    width: 40px; /* Setzt eine feste Breite */
    height: 40px; /* Setzt eine feste Höhe */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover-Farbe ändern */
#toggleSidebar:hover,
.tma-button:hover {
    color: var(--tma-hover-color);
    background-color: var(--tma-hover-bg);
    border-color: var(--tma-hover-border-color);
}

/* Hover-Effekt für spezifischen Button deaktivieren */
button.no-hover:hover {
    color: white; /* Verhindert Farbänderung */
    background-color: inherit; /* Verhindert Hintergrundänderung */
    border-color: inherit; /* Verhindert Randänderung */
    cursor: default;    
}

/* Simulation eines deaktivierten Buttons */
.disabled-simulation {
    opacity: 0.5; /* Reduzierte Sichtbarkeit */    
}

#hamburgerIcon {
    display: block; /* Hamburger-Symbol standardmäßig anzeigen */
}

#closeIcon {
    display: none; /* X-Symbol standardmäßig verstecken */
}

.sidebar.visible + #toggleSidebar #hamburgerIcon {
    display: none; /* Hamburger-Symbol verstecken, wenn Sidebar sichtbar ist */
}

.sidebar.visible + #toggleSidebar #closeIcon {
    display: block; /* X-Symbol anzeigen, wenn Sidebar sichtbar ist */
}

.logo {
    height: 52px;
    height: 72px;
    margin-bottom: -20px; /* Überlappt die bottom-row */
}

.jumbotron {
    border-radius: 0.3rem;
    background-image: url("../Images/Background/Background_479d89.png");
    background-size: cover; /* Das Bild wird den gesamten Container ausfüllen */
    background-position: center; /* Das Bild wird zentriert */   
  }

.main-content-padding {
    padding: 3rem 10vw 1rem 10vw;
    padding: min(calc(0.8rem + 1.0vw), 3rem) 10vw 1rem 10vw;
  }

.main-content-padding > * {
    margin-bottom: 2rem; /* Den Abstand zwischen den Elementen festlegen */
}

.main-content-padding > *:last-child {
    margin-bottom: 0; /* Optional: Beim letzten Element keinen Abstand */
}

main {
    flex: 1; /* Allows the main content to take up available space */
    display: flex;
    flex-direction: row;
}

/* Footer */
.container-fluid {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /*min-height: 100vh;*/
}

.footer-section {    
    background-color: var(--tma-primary); /* Optional: Hintergrundfarbe für den Footer */
    color: white;    
    padding: min(calc(0.8rem + 1.0vw), 1.5rem) 10vw 1.5rem 10vw;
    position: relative; /* Wichtig für den z-index */
    /*bottom: 0;*/
    left: 0;
    right: 0;   
    width: calc(100% - 250px); /* Volle Breite des Bildschirms */
    transition: 0.3s ease;
    margin-left: 250px; /* Platz für die Sidebarpx lassen */    
}

footer, .footer-section {
    clear: both; /* Clears any floated elements */
    flex-shrink: 0; /* Stellt sicher, dass der Footer nicht schrumpft */
}

.footer-section.minimized {
    margin-left: 0; /* No margin when sidebar is minimized */   
    width: 100%; /* Volle Breite */    
    max-width: 100%; /* Full width when sidebar is minimized */   
}
/* Ende Footer */

/* Favorites*/
.bookmark-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 20px;
    transition: transform 0.2s ease-in-out;
}

.bookmark-card:hover {
    transform: translateX(+5px);
}

.bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*.bookmark-header a{
    font-size: min(calc(0.625rem + 0.3vw), 1rem);   
}*/

.bookmark-title {
    font-size: 18px;
    font-size: min(calc(0.65rem + 0.52vw), 1.125rem);   
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.bookmark-title:hover {
    color: #479d89;
}

.delete-button {
    background-color: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
}

.delete-button:hover {
    color: #c0392b;
}

.bookmark-body {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.comment-text {
    margin-bottom: 5px;    
    font-size: min(calc(0.625rem + 0.3vw), 1rem);   
}

.comment-text[contenteditable="true"] {
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 5px;
}

.bookmark-footer {
    margin-top: 15px;
    text-align: right;
}

.btn-tma-primary, .btn-edit-comment, .btn-save-comment {
    background-color: #479d89;
    border: none;
    color: white;
    font-size: min(calc(0.625rem + 0.3vw), 1rem);   
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-tma-primary:hover, .btn-edit-comment:hover, .btn-save-comment:hover {
    background-color: #3a816f;
}
/* Ende Favorites */

/* Unterüberschrift und Zwischenüberschriften */
.subtitle {
	margin-top: 0.25rem !important;
	margin-bottom: 1.5rem !important;	
	font-size: min(calc(0.65rem + 0.47vw), 1.1rem);     
	font-weight: bolder;		
}

.subheader {
	margin-top: min(calc(1.0rem + 1.33vw), 2rem);      
  	margin-bottom: min(calc(1.0rem + 1.33vw), 2rem);   
    font-size: min(calc(0.65rem + 0.47vw), 1.1rem);     
	font-weight: bolder;	
}

.subheader1 {
	margin-top: min(calc(1.0rem + 1.33vw), 2rem);      
  	margin-bottom: min(calc(1.0rem + 1.33vw), 2rem);      
	color: var(--tma-primary);
	font-size: min(calc(0.65rem + 0.47vw), 1.1rem); 
	font-weight: bolder;	
}
/* Ende Unterüberschrift und Zwischenüberschriften */

/* Verschieben eines Sprungziels um 75 Pixel nach oben */ 
.sprung {
    visibility: hidden;
    height: 0px !important;
    position: absolute;
    margin: -95px;
}
/* Ende Verschieben eines Sprungziels um 75 Pixel nach oben */

/* Bildergröße begrenzen */
.image100, .image150, .image300, .image450, .image500, .image600, .image750, .image900, .image1000, .image1100, .image1200, .image_full_width{width:100%;}

.image100{max-width:100px;}
.image150{max-width:150px;}
.image300{max-width:300px;}
.image450{max-width:450px;}
.image500{max-width:500px;}
.image600{max-width:600px;}
.image750{max-width:750px;}
.image900{max-width:900px;}
.image1000{max-width:1000px;}
.image1100{max-width:1100px;}
.image1200{max-width:1200px;}
/* Ende Bildergröße begrenzen */

/*Verschachtelte Listen mit Nummerierung (1, 1.1) ermöglichen*/
ol.ebene {
	counter-reset: item;
	list-style-type: none;
}
ol.ebene>li { 
	counter-increment: item;
}
ol.ebene>li::before { 
	content: counters(item, '.') ". "; 
}
/*Ende Verschachtelte Listen mit Nummerierung (1, 1.1) ermöglichen*/

/*Ausklappbare Elemente mit html5*/
details {
	width: 100%;
	margin: 0 auto ;
	background: #eaf5f4;
	margin-bottom: .5rem;
	box-shadow: 0 .1rem 1rem -.5rem rgba(0,0,0,.4);
	border-radius: 5px;
	overflow: hidden;
}

details a {
    color: var(--tma-primary); /* Farbe der Links innerhalb von <details> */
    text-decoration: none; /* Optional: Unterstreichung entfernen */
}
  
details a:hover {
    color: #3a816f; /* Farbe der Links im Hover-Zustand innerhalb von <details> */
    text-decoration: underline; /* Optional: Unterstreichung beim Hover */
}

details ol {
    padding-top: 1rem; 
  }

 
  
  
summary {
	padding: 1rem;
	display: block;
	background: var(--tma-primary);
	color: white;	
    font-size: min(calc(0.8rem + 0.5vw), 1.25rem);    
	padding-left: 2.2rem;
	position: relative;
	cursor: pointer;
}
  
summary:before {
	content: '';
	border-width: .4rem;
	border-style: solid;
	border-color: transparent transparent transparent #fff;
	position: absolute;
	top: 1.3rem;
	left: 1rem;
	transform: rotate(0);
	transform-origin: .2rem 50%;
	transition: .25s transform ease;
}
  
/* THE MAGIC 🧙‍♀️ */
details[open] > summary:before {
	transform: rotate(90deg);
}
/*Ende Ausklappbare Elemente mit html5*/

/* Themenübersicht Aufgabenseite*/
.bd-toc {
    grid-area: toc;
}

.bd-toc nav{font-size:.875rem}

.h6, h6 {
    font-size: calc(0.625rem + 0.3vw);
	margin-top: 0;
    margin-bottom: .5rem;
    margin-bottom: calc(0.4rem + 0.1875vw);
    font-weight: 700;
    line-height: 1.2;
}

/*.bd-toc{position:-webkit-sticky;position:sticky;top:5rem;right:0;z-index:2;height:calc(100vh - 7rem);overflow-y:auto}*/
.bd-toc nav ul{padding-left:0;list-style:none}
.bd-toc nav ul ul{padding-left:1rem;margin-top:.25rem}
.bd-toc nav li{margin-bottom:.25rem}
.bd-toc nav a{
    color:var(--tma-primary);
    text-decoration: none;
}
.bd-toc nav a:hover {
    color: #3a816f; /* Farbe der Links im Hover-Zustand innerhalb von <details> */
    text-decoration: underline; /* Optional: Unterstreichung beim Hover */
}
/*.bd-toc nav a:not(:hover){text-decoration:none}*/
.bd-toc nav a code{font:inherit}

/* Ende Themenübersicht Aufgabenseite*/