: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-black: #333333;
    --tma-white: #F3F3F3;
    --tma-hover-color: #000000;
    --tma-hover-bg: #f8f9fa;
    --tma-hover-border-color: #f8f9fa;
    --tma-link-hover-color: #356f62;

    --tma-primary: var(--tma-green);
    --tma-secondary: var(--tma-blue);
    --tma-tertiary: var(--tma-yellow);
    
    --primary-40: rgb(182, 224, 214); /* Heller Ton, entspricht etwa 40% Deckkraft */
    --primary-100: var(--tma-green);  /* Original, deckend */

    --nav-color-left: var(--primary-40);
    --nav-color-center: var(--primary-100);
    --nav-color-right: var(--primary-40);
    --nav-color-btn: var(--tma-black);
    --nav-color-text: var(--tma-white);
    --nav-link-active: #d1e7dd;   

    --jumbotron-color-left: var(--tma-white); 
    --jumbotron-color-right: var(--primary-40);

    --sidebar-background-color: var(--primary-100);
    --footer-background-color: var(--primary-100);   
}

.theme-red {    
    --primary-40: rgb(247, 181, 181); 
    --primary-100: rgb(232, 110, 110); 
    
    --nav-color-btn: var(--tma-black);
    --nav-color-text: var(--tma-white);     
    --nav-link-active: #f4cccc;    
}
.theme-blue {
    --primary-40: rgb(133, 200, 230); 
    --primary-100: var(--tma-blue);  
    
    --nav-color-btn: var(--tma-black);
    --nav-color-text: var(--tma-black);  
    --nav-link-active: #d1eef7;    
}
  
/* 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.2rem + 0.8vw), 2rem);      
    margin-bottom: min(calc(0.3rem + 0.2vw), 0.5rem);
}

h2 {
    font-size: min(calc(1.05rem + 0.7vw), 1.75rem);    
    margin-bottom: min(calc(0.3rem + 0.2vw), 0.5rem);
}

h3 {
    font-size: min(calc(0.9rem + 0.6vw), 1.5rem); 
    margin-bottom: min(calc(0.3rem + 0.2vw), 0.5rem);  
}

h4 {
    font-size: min(calc(0.75rem + 0.33vw), 1.25rem); 
    margin-bottom: min(calc(0.3rem + 0.2vw), 0.5rem);  
}

p, li {
    font-size: min(calc(0.625rem + 0.3vw), 1rem);    
    margin-bottom: calc(0.4rem + 0.1875vw);
}

a {
    color: var(--tma-primary); /* Farbe für den Link (blaues Beispiel) */
}

a:hover {
    color: var(--tma-link-hover-color); /* Dunklere und gesättigtere Version für den Hover-Effekt */       
}

.footer-p, .footer-email {
    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 */
}

.footer-p a{
	text-decoration: none;
    color: white;
}

.row {
    display: flex;
    flex-wrap: wrap; /* Verhindert das Umbrechen der Spalten */
    flex: 1;
}

/*Figure-Umgebung horizontal zentrieren*/
figure img,
figure picture {
  display: block;
  height: auto;
  /*max-width: 100%;*/
  margin: 0 auto;
}

figcaption, caption { /*Bildunterschriften und Tabellenunterschriften anpassen*/
	font-size: min(calc(0.51rem + 0.35vw), 0.85rem);    
    word-wrap: break-word;
    opacity: .8;
	/*color:rgb(150, 150, 150);*/
	padding-top: 0.5rem;
 }

/*Grundeinstellungen für Rahmen mit Images*/
.well, .Ausrufezeichen, .Lampe_gelb, .Achtung { 
	border-radius: 20px;
	border: 1px solid;
	padding: 60px 15px 10px 15px;
    margin-bottom: 1rem;
	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);   */
    font-size: min(calc(0.625rem + 0.3vw), 1rem);    
	overflow-x: auto;
	overflow-y: hidden;
	display: block; /* or use a <div> instead of a span */
}

/* Senkrechter Text in Tabellen */
.tab_st_labeled {
	writing-mode: vertical-rl; 
	transform:rotate(180deg);
	text-align: center;
	vertical-align: center;
 }

 /* Text in Tabellenfeld zentrieren */
 .tab_center {
	text-align: center;
 }

  /* Text in Tabellenfeld vertikal zentrieren */
 .tab_center_vert {
	vertical-align: middle;
 }

 /* Text in Tabellenfeld horizontal und vertikal zentrieren */
 .tab_center_hor_vert {
	text-align: center;
	vertical-align: middle;
 }

 .tab_bottom_line {
	border-bottom: 1px solid;
 }

 .tab_legend {   
    color: #333;
    background: linear-gradient(to right, #ffffff, #10a0cd); /* Verlauf von weiß nach blau mit Deckkraft 100% */ 
}

 .tab_legend ul {
    list-style-type: none;
    padding: 0;    
    margin-left: 10px;
}
.tab_legend li {
    margin-bottom: 5px;
}

.table {
    font-size: min(calc(0.625rem + 0.3vw), 1rem);  
}

.table-responsive {
    overflow-x: auto; /* Aktiviert horizontales Scrollen */
    white-space: nowrap; /* Verhindert Zeilenumbruch in der Tabelle */
}

.table-responsive img {
    min-width: 100px; /* Das Bild wird nicht kleiner als 100px */
    /*width: 100px;*/     /* Setzt eine feste Breite von 100px */
    height: auto;     /* Beibehaltung des Seitenverhältnisses */
    object-fit: contain; /* Stellt sicher, dass das Bild nicht verzerrt wird */
}

.navbar {
    height: 84px;
    padding: 0px;
    padding-left: 1rem;
    /*background-color: var(--tma-primary);*/
    background: linear-gradient(to right, var(--nav-color-left), var(--nav-color-center), var(--nav-color-right));
    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 */
    border-color: var(--nav-color-btn);
    color: var(--nav-color-btn);
}

/* 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: var(--nav-color-text);
}

.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(--sidebar-background-color);    
    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: var(--nav-link-active) !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 */     
}

/* Skalierung von Bildern innerhalb des Inhalts */
.main-content img {
    max-width: 100%; /* Bild darf die Breite des Containers nicht überschreiten */
    height: auto; /* Proportionen des Bildes beibehalten */
    display: block; /* Entfernt eventuelle Inline-Margins */
}

.main-content img.image100{width:100px;}
.main-content img.image150{width:150px;}
.main-content img.image300{width:300px;}
.main-content img.image450{width:450px;}
.main-content img.image500{width:500px;}
.main-content img.image600{width:600px;}
.main-content img.image750{width:750px;}
.main-content img.image900{width:900px;}
.main-content img.image1000{width:1000px;}
.main-content img.image1100{width:1100px;}
.main-content img.image1200{width:1200px;}
/* Ende Bildergröße begrenzen */

/* 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 0 0.3rem 0.3rem; /* Oben links, oben rechts, unten rechts, unten links */
    background: linear-gradient(to right, var(--jumbotron-color-left), var(--jumbotron-color-right)); /* Verlauf von weiß nach dunkler Farbe */
  }

.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(--footer-background-color); /* 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: var(--tma-primary);
}

.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: var(--tma-primary);
    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 */

/*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*/

/* # Style 4 # */
details.style4 summary{
	background: #FFF;
	color: black;
	font-size: min(calc(0.51rem + 0.35vw), 0.85rem);    
	font-weight: 700;
    line-height: 1.2;
	padding: .5rem;
	padding-left: 2.2rem;
}

details.style4 summary::before {
	top: 0.70rem;
	left: 0.9rem;
	border-width: .6rem;
	border-color: transparent transparent transparent var(--tma-primary);
}

details[open].style4 > summary:before {
	transform: rotate(90deg);
}

.content4 {
	padding: 10px;
	background: #FFF;
	font-size: min(calc(0.51rem + 0.35vw), 0.85rem);    
}
/* # Ende Style 4 # */

/* Themenübersicht Aufgabenseite*/
.bd-toc {
    grid-area: toc;
}

.bd-toc nav{font-size: calc(0.525rem + 0.35vw);}

.h6, h6 {
    font-size: calc(0.525rem + 0.35vw);
	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;
    font-size: inherit; /* Li-Element erbt die Schriftgröße vom nav-Element */
}
.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*/

/* Aufgaben-Boxen*/
.aufgabe-box{
	background-color: #ecf5f3;
    border: 1px solid #cdecea;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
	width: 100%;
    position: relative;
}

.aufgabe-kopf {
    background-color: #c7e1db;
    border-color: #cdecea;
	font-size: min(calc(0.625rem + 0.3vw), 1rem);    
	padding: min(calc(0.625rem + 0.3vw), 1rem);    
	border-top-left-radius: 3px;
    border-top-right-radius: 3px;
	color: #333;
	position: relative;
}

.aufgabe-bild, .aufgabe-ohne-bild{	
	background-color: #FFF;	
	display: flex;
	justify-content: center;
	align-items: center;
}

.aufgabe-ohne-bild{
	background-color: #ecf5f3;
}

.aufgabe-inhalt {
    font-size: min(calc(0.525rem + 0.35vw), .875rem); 	
	padding: 10px;
	word-wrap: break-word;
}

.aufgabe-inhalt h5 {
    font-size: min(calc(0.625rem + 0.3vw), 1rem);  
	margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn-tma-outline-primary {
    --bs-btn-color: var(--tma-primary);
    --bs-btn-border-color: var(--tma-primary);
    --bs-btn-hover-color: #000000;
    --bs-btn-hover-bg: var(--tma-primary);
    --bs-btn-hover-border-color: var(--tma-primary);
    --bs-btn-focus-shadow-rgb: 71, 157, 137;
    --bs-btn-active-color: #000000;
    --bs-btn-active-bg: var(--tma-primary);
    --bs-btn-active-border-color: var(--tma-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--tma-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--tma-primary);
    --bs-gradient: none;

    font-size: min(calc(0.625rem + 0.3vw), 1rem);       
}

.btn-tma-outline-primary:hover {
    --bs-btn-hover-color: #000000;
    --bs-btn-hover-bg: var(--tma-primary);
    --bs-btn-hover-border-color: var(--tma-primary);    
}
/* Ende Aufgaben-Boxen*/

/* Modal-Fenster für Hinweis 'Anmeldung erforderlich'*/
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);  /* Dunkleres Overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;             /* Startet unsichtbar */
    transition: opacity 0.3s ease;  /* Animation beim Öffnen */
}

/* Fade-in Animation */
.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease; /* Animation beim Öffnen */
}

/* Modal-Inhalt */
.modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    text-align: center;
    animation: scaleUp 0.4s ease-in-out;  /* Vergrößert beim Öffnen */
}

/* Scale-Up Animation für Modal */
@keyframes scaleUp {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

/* Modal-Titel */
.modal-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-size: min(calc(1.05rem + 0.7vw), 1.75rem);    
    margin-bottom: min(calc(0.3rem + 0.2vw), 0.5rem);
}

/* Modal-Text */
.modal-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    font-size: min(calc(0.625rem + 0.3vw), 1rem);    
    margin-bottom: calc(0.4rem + 0.1875vw);
    
}

/* Buttons */
.modal-content .btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: min(calc(0.625rem + 0.3vw), 1rem);  
    cursor: pointer;
    transition: background 0.3s ease;
    outline: none;
    border: none;
}

.modal-content .btn-primary {
    background-color: var(--tma-primary);
    color: #fff;
}

.modal-content .btn-primary:hover {
    background-color:  #3a816f;
}

.modal-content .btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.modal-content .btn-secondary:hover {
    background-color: #b0b0b0;
}

.modal-close-icon {
    font-size: min(calc(0.9rem + 0.6vw), 1.5rem); 
    color: #888;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-icon:hover {
    color: #333;
}

/* Schließen-Button */
.modal-close-button {
    cursor: pointer;    
}

.inline-block-link {
    display: inline-block;
}
/* Ende Modal-Fenster für Hinweis 'Anmeldung erforderlich'*/