.metismenu.mod-menu .metismenu-item > ul {
-webkit-border-radius: 0 0 6px 6px;
-moz-border-radius: 0 0 6px 6px;
border-radius: 0 0 6px 6px;
background-color: #f2f2f2;
  color:#111 !important;
  font-size:90%;
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.3);
  line-height:14px !important;
}
ul.mm-collapse .level-2 a{font-size:90% !important;
  padding-left:8px !important;
  padding-right:8px !important;
  line-height:14px !important;
}

.item-content a:visited, 
.item-content li a:visited, 
.card-body ul li a:visited, 
.mainfield:visited, 
a:visited fas.fa-image::before {
  color: #00008B !important;
}

/* submenu-item */
.metismenu.mod-menu .metismenu-item.active>a, .metismenu.mod-menu .metismenu-item.active>button, .metismenu.mod-menu .metismenu-item>a:hover, .metismenu.mod-menu .metismenu-item>button:hover {
text-decoration: underline;
text-decoration-line: none; /*underline;*/ /*item>a:hover*/
text-decoration-thickness: initial;
text-decoration-style: initial;
text-decoration-color: initial;
}

.container-header .metismenu > li.active > button.mm-toggler-link::before, .container-header .metismenu > li > button.mm-toggler-link:hover::before {
	 left: .0em !important;
	 right: .0em !important; 
}

/* Text should now be blue */
.container-header .mod-menu {
  /*color: #0088cc;*/
  color:#fff;
}
/* We add padding and radius so that on hover there is a nice background */
.container-header .mod-menu a {
  -webkit-border-radius: 0 0 6px 6px;
  -moz-border-radius: 0 0 6px 6px;
  border-radius: 0 0 6px 6px;
  padding: 3px 8px;
 /* color: #ffffff !important;*/
}
/* On hover there should be a gray background*/
.container-header .mod-menu a:hover {
  background-color: none;
  color:#0a84ff !important;
}
/* We need to change the color of the Hamburger Menu because white on white is not good */
.container-header .navbar-toggler {
  color: #fff;
  border: 1px solid #fff;
}

.metismenu.mod-menu .mm-toggler::after {
  -webkit-margin-start: .0em !important;
  margin-inline-start: 0 !important;
 /* margin-right:15px !important;*/
}

.metismenu.mod-menu .metismenu-item {
  padding: .5em 0.25em !important; 
  font-size: 1.05rem !important;
  line-height: 1.5;
  font-weight:400;

}
.metismenu.mod-menu .metismenu-item::after {
	content: ""!important;
}
.container-header .metismenu > li.active > a::after, .container-header .metismenu > li.active > button::before, .container-header .metismenu > li > a:hover::after, .container-header .metismenu > li > button:hover::before {
	/*background: none!important;*/  /*Weiße Linie*/
}

.container-header .metismenu > li > a::after, .container-header .metismenu > li > button::before {
  height: 2px;
  opacity: 2 !important;
  } 

.container-header .mod-menu > li::after  {
 height: 2px;
 opacity: 0 !important; /*Weiße Linie*/
} 

.container-nav li.level-1.deeper.parent:hover > ul {display:block !important;}

.container-header .container-nav {
/*	padding-bottom: 0em !important;*/
}

.container-header .grid-child {
	padding-top: 0em !important;
	background-color: #202940;
	/* padding-bottom: 0.5em !important; */
}

.container-header nav{margin-top: 0 !important;}
  
/*Template-Color*/
:root {
    --website-color-1: #2a69b8;
    --website-color-2: #a51f18;
}
a {
    color: var(--cassiopeia-color-link);
}

:root {
    --cassiopeia-color-primary: #112855;
    --cassiopeia-color-link: #e10e3f;
    --link-color: #224faa;
    --link-color-rgb: 34,79,170;
    --cassiopeia-color-hover: #424077;
    --link-hover-color: #a51f18;
    --link-hover-color-rgb: 66,64,119;
}

@media screen and (prefers-color-scheme: dark) { /* to override the Dark Mode Colors defined in the Dark Magic plugin */
    :root {
        --cassiopeia-color-primary: var(--website-color-1) !important;
        --cassiopeia-color-link: var(--website-color-1) !important;
        --cassiopeia-color-hover: var(--website-color-2) !important;
        --cassiopeia-color-gradient-end: var(--website-color-1) !important;
        --cassiopeia-color-gradient-start: var(--website-color-2) !important;
    }
    .btn-primary {
        background-color: var(--website-color-1) !important;
    }
    .btn-primary:focus, .btn-primary:hover {
        background-color: var(--website-color-2) !important;
    }
    .back-to-top-link {
       /* color: white !important;*/
    }
    #cf_1 { /* Convert Forms also uses CSS Variables */
        --background-color: rgba(0, 0, 0, 0.9) !important;
    }
}

/*.metismenu.mod-menu .metismenu-item.active.deeper.parent > a {
	color: #ffffff;
  	border-radius:0px !important;
}*/
  
.container-header .metismenu.mod-menu .metismenu-item > a:hover {
	color:#a60d8a;
	border-radius:0px !important;
}

.container-header ul li.current a{
    /*background-color: #a60d8a !important;
	color: #a60d8a;
  color:#DC143C;*/
  	border-radius:0px !important;
}

/*Template-Color-End*/

.container-header {
	background-color: transparent;
	background-image: none;
	box-shadow: none;
}

.container-header .navbar-brand img {
/*	width: 25rem; 
	min-width: 25rem; */
}

main .blog-featured .page-header h1 {display:none}

h1.nui.header {
  color: #008080;
  font-size: 2.0rem;
}

.page-header h1{
  font-size: 2em;
  line-height: 28px;
  word-wrap: break-word;
  color: #008080; !important;
  font-weight: bold;
}

.item-content h3{
  color: #008080;
  font-size: 2.1em;
 font-weight: 600;
}

.item-content h3{
  font-size: calc(24px + (28 - 24) * ((100vw - 320px) / (1600 - 320)));
}

.btn.jmodedit{display:none}

.float-end a{display:none}

#member-profile fieldset legend {
color:#008080; font-size: 1.6rem; font-weight:600;margin-bottom:18px;
}

/* Text should now be blue */
.container-header .mod-menu {
  /*color: #0088cc;*/
  color:#fff;
}
/* We add padding and radius so that on hover there is a nice background */
.container-header .mod-menu a {
  -webkit-border-radius: 0 0 6px 6px;
  -moz-border-radius: 0 0 6px 6px;
  border-radius: 0 0 6px 6px;
  padding: 3px 8px;
 /* color: #ffffff !important;*/
    font-size:90% !important;
}
/* On hover there should be a gray background*/
.container-header .mod-menu a:hover {
  background-color: none;
  color:#fff
}
/* We need to change the color of the Hamburger Menu because white on white is not good */
.container-header .navbar-toggler {
  color: #fff;
  border: 1px solid #fff;
}

/*Success Message Styles*/
.ui.message.visible.G3-message.success ul {
  list-style: none; /* Standard-Bullet entfernen */
  padding-left: 0;
}

.ui.message.visible.G3-message.success ul li {
  display: flex;
  align-items: center;
  margin:0 !important;
  gap: 12px !important; /* Abstand zwischen Icon (::before) und Text */
  color:#457d54 !important;
}

.ui.message.visible.G3-message.success ul li::before {
  content: "\f058" !important;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block !important; /* wichtig, damit es als Flex-Item zählt */
  position: unset !important;
  color:#457d54 !important;
}

/*--------- Slider -----------*/
.camera_caption > div {
	/* background: #000; */
	background: rgba(0, 0, 0, 0.4)!important;
}
/*.camera_pag .camera_pag_ul{visible:hidden}*/

.camera_caption_title {
	font-size: 1.3em;
	font-weight: bold;
	line-height: 1em;
  letter-spacing:0.03em !important;
  
	font-family: var(--cassiopeia-font-family-headings,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji") !important;
	font-weight: var(--cassiopeia-font-weight-headings,700) !important;
}

.slider{margin-bottom:20px}

/*Font awesome 6*/
  .icon::before {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
  }
  .account::before {
   
font-family: "Font Awesome 5 Free";
    content: "\f007";
  }
ul.liste,ul.liste_plus{margin-bottom:30px}
ul.liste,ul.liste_plus {
padding-left:10px; 
list-style:none; 
}
ul.liste li,ul.liste_plus li {
margin-bottom:12px !important; 
color:#000;
font-weight:400;
}

ul.liste li:before {    
font-family: 'Font Awesome 5 Free';

font-weight: 900;
    content: "\f056";
    margin:0 10px 0 -25px;
    color:#d54062;
}
ul.liste_plus li:before {    
    font-family: 'Font Awesome 5 Free';
    content: "\f055";
    margin:0 10px 0 -25px;
   font-weight: 900; 
    color:green;
}

.gartencheck{
list-style: none !important; 
}
.gartencheck li{
line-height:28px !important;
font-size:110% !important;
font-weight:500;
color:green;
}

/*------------------------Footer-------------------*/

.footer{
  background-color:#fff !important;
 /* color:#999;
  font-size:95%;*/
  background-image:none;
  margin-top:3em !important;
}

.footer img.responsive{
   width: 100%;
  max-width: 150px;
  height: auto;
}

.container-footer {
 background-color: hsla(0,0%,95%,.35) !important; 
}

.foo2{
   background-color: #708090 !important;  
 /* color:#999;*/
  font-size:96%;
  background-image:none;
  margin-top:0px !important
}

/*---------Hinweisbox-------------*/
.hinweisbox{
  /*font-size:95%;*/
  font-size: 14px;
  padding:10px;
  margin-bottom:20px;
  margin-top:20px;
  background-color: #eaf6fc;
  border:1px solid #c2dbff; /*bce8f1*/
  color:#003b8f;
  }
  .hinweisbox h7{
    color: #003b8f !important;
    line-height:18px !important;
    font-weight:600;
    margin:0px;
  }
.hinweisbox ul{margin:0}

.hinweisbox p{
    line-height:16px !important;
  }
  .hinweisbox a{
    text-decoration:underline !important;
  }

.lnpd_item_wrapper .lnpd_item_with_intro .lnpd_item_title {
    font-size: .95rem !important; 
	line-height: normal;
	display: block;
	margin-bottom: .1em !important;
}

/*--------------- rechte spalte -----------------*/

.RL_legende {font-size:95%}


.faun_klatur ul li a {font-size:.9em !important;line-height:1.2em !important}
.faun_klatur ul li {list-style: disc !important; }
.faun_klatur ul li   {list-style-position: outside !important;}
.faun_klatur ul li {padding: .25em 0;}
.faun_klatur ul {margin-left: 1rem;}

.card-body ul li a span {font-size:.9em !important}
.card-body ul li {line-height:1.2em !important}
.card-body nav div#navbar120 ul li a{font-size:.9em !important;line-height:1.2em !important}
.card-body nav div#navbar188 ul li a{font-size:.9em !important;line-height:1.2em !important}
.card-body nav div#navbar194 ul li a{font-size:.9em !important;line-height:1.2em !important}

.card-header {
background-color: #202940;
	/*margin-bottom: 0;
	padding: .5rem 1rem;*/
	color: #66bd63 !important;
    font-weight: 600;
}
.card {border:1px solid #90EE90 !important;}

.statistik .card-body {
background-color:#f4f4f3 !important;
}

.veranstaltungen {background-color:#f4f4f3}
.veranstaltungen ul, .veranstaltungen h4{margin-bottom:0px}
.veranstaltungen .mod-articles-title a{color: #224faa !important;}


/*----------- SC-Login --------------------------------*/

.ns-bs5 .btn-primary {
	color: #fff;
	background-color: transparent !important; 
	border-color: transparent !important;
    border-radius:4px !important; 
}

.ns-bs5 .btn-primary:hover {
   background-color: #111 !important;
  }
.ns-bs5 .scLogoutButton .btn-primary:hover {
  color: #fff !important;
  background-color: #111 !important;
}

.sclogin-modal-links .btn-primary, .scLogoutButton .btn-primary{
  border-color: #fff !important; 
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important;
}

#form-sclogin-submitcreate-117{
  background-color: #dd2350 !important;
  text-align:center; 
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important;
}
#form-sclogin-submitcreate-117  a.btn.validate.btn-primary{display:none !important}

#form-sclogin-submitcreate-117 button{
  text-decoration: underline !important;
  letter-spacing:0.03rem !important;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
}

#form-sclogin-submitcreate-117 button:hover{
  color:#000 !important;
  letter-spacing:0.03rem !important;
  background-color: #dd2350 !important;
} 

.sclogin-modal-links a:hover, .scLogoutButton .btn-primary:hover{
  background-color:#663399!important;
  text-align:center !important;
}

#mod-custom126 {
	position: absolute !important;
	text-align: left !important;
	top: 80px;
	left: 20px;
}

.modal-content {
	background-color: #ffffff !important;
	margin: auto;
	padding: 20px;
	border: 1px solid #888;
	/* width: 90%; */
	max-width: 800px;
	position: relative;
}


.container-banner #mod-custom129{background:#736236;padding:0px}
.container-banner #mod-custom129 p{ text-align:left !important;}

.top-a .card-body{padding:0}

.top-b .card-body{background-color:#f4f4f3;padding-bottom:0px !important;color:#02254b}
.container-top-b .card {border:0px solid #ccc !important;padding-bottom:0px !important}

.container-top-a .card {border:0px solid #ccc !important;}

#mod-custom128{padding:1rem}

.subline{
  position:relative;
  z-index:100!important;
  float:left;
  display:block;
  left:20px;
  top:20px;
  color:#fff;
  font-size: .95rem;
}

.breadcrumb {
	margin-bottom: 1rem!important;
  background-color:#e8ecef !important;
}

.container-header .mod-menu.nav > li {
    margin: 0;
}

.mtb_gray{padding:20px !important;background:#e8ecef;border:1px solid #dededf;}


/*---------------------------- Artporträtfelder -------------------*/
/* 1) Bilder wirklich responsiv + saubere Ränder */
.com-content-article__body img,
figure.image img {
  max-width: 100%;
  height: auto;
  display: block;            /* verhindert kleine Lücken unter Bildern */
}

/* 2) Figure-Layout mit “gap” statt Kind-Margins steuern */
figure.image {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;                  /* Abstand zwischen Bild und Caption/Elementen */
  margin: 0 0 12px 0;        /* etwas Abstand nach unten */
}
figure.image > * {
  flex: 1 1 280px;           /* entspricht deinem grow/shrink/basis */
  min-width: 0;              /* verhindert Überlauf bei langen Captions */
}

/* 3) Sigplus-Preview Rahmen dezent halten */
img.sigplus-preview {
  border: 1px solid #ccc !important;
  padding: 2px;
  box-sizing: border-box;     /* Rahmen zählt zur Breite */
}

/* 4) Konsistentes Spacing über die Textblöcke */
.falter_foto_text,
.biologie_foto_text,
.habitat_foto_text,
.praeparate_foto_text {
  margin: 0 0 6px 0;          /* kleine Lücke unter Bild-Text */
}

.falter-text,
.biologie-text,
.habitat-text,
.verbreitung-text,
.praeparate-text {
  margin: 10px 0 20px 0;      /* oben klein, unten etwas mehr */
}

/* 5) Typo in den Absätzen (du hast das schon gut eingestellt) */
.falter-text p,
.biologie-text p,
.habitat-text p,
.verbreitung-text p,
.praeparate-text p {
  margin: 0;
  font-size: 92%;
  line-height: 1.2;
}

/* 6) Optional: Linkblock “Bestimmungshilfe” leicht hervorheben */
.feld_bestimmungshilfe {
  margin-bottom: 20px;
}
.feld_bestimmungshilfe a {
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;     /* falls sehr lange URLs */
}

/* 7) Mini-Fix für sehr schmale Screens (Bilder lieber 1-spaltig) */
@media (max-width: 480px) {
  figure.image > * {
    flex-basis: 100%;
  }
}

dl.article-info{display:none}

.boxsize #mod-custom171 p{font-size:95% !important;line-height:19px !important;}
/*-------------------------------------------------------------------------------------*/

dialog{
    border: none;
    border-radius: 0.6rem;
   -webkit-box-shadow: -1px 1px 23px -1px rgba(0,0,0,0.64);
-moz-box-shadow: -1px 1px 23px -1px rgba(0,0,0,0.64);
box-shadow: -1px 1px 23px -1px rgba(0,0,0,0.64);
}
dialog[open]::backdrop{
    background: rgba(0,0,0,0.6);
}

.ui.input > input::placeholder {
	color: #333 !important;
}

.ui.form ::placeholder {
	color: #333 !important;
}

.flex-container {
  gap: 10px;
  --w:300px;
  --n:5;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(clamp(100%/(var(--n) + 1) + 0.1%,var(--w),100%),1fr));
}

.flex-container > div {flex-grow: 1;}

.flex-item {
  padding: 8px;
  margin-top: 10px;
}

.lnpd_item_wrapper .lnpd_item_with_intro .lnpd_item_introtext {
	font-size: .9em;
	display: block;
	margin-bottom: 1.2em;
	line-height: inherit;
	background: #e8ecef !important;
	padding: .7em .7em .3em .7em;
	box-shadow: inset 0px 0px 0px #eee !important;
	border-radius: 4px;
	color: #1e1f22 !important;
	text-shadow: 0 0px 0 #fff !important;
}

.mod-articleslatest, #navbar120 .mod-menu, .mod-articleslatest, #navbar188 .mod-menu{
	list-style: disc !important; 
    list-style-position: outside !important;
  padding-left: 15px;
}

#Suche, #Suchen, #search, #field_text_search, #search_list_field, #field_search, #search_RL, #suche_feld{border:1px solid #202940}

.ui.table > thead > tr > th {
  background:#e5e8ed !important; 
  line-height:28px
}

.ui.table thead tr th a{color:#111}
.ui.table thead tr th a:hover{color:#333 !important}

.table > :not(:first-child) {
	border-top: 2px solid #333 !important; /*#F0E68C*/
}

/*------------------------- Archive ------------------*/
.filter-search.form-inline > .me-2{margin-bottom:5px;margin-top:30px}
.com-content-archive__items div .page-header h2{font-size: 1.3rem !important;margin-bottom:10px;}
.com-content-archive__items div .page-header,.com-content-archive__info.article-info.text-muted{margin-bottom:0px;padding-bottom:0px}
.com-content-archive__items > div {border:1px solid #ccc;background:#f4f4f3;padding:10px}
.com-content-archive__items div {margin-bottom:12px}
.com-content-archive__info.article-info.text-muted .article-info {font-size:0.9rem !important;line-height:1rem}

/*------------------------Interessante Links -------------*/

.link-container {
  margin-bottom: 30px;
  width: 100%;
}

.link-container h2 {
  background-color: #f4f4f3;
  color: #333;
  font-size: 24px;
  line-height: 38px;
  margin: 0;
  padding-left: 10px;
}

.link-container ul {
  font-size: 16px;
  list-style-type: none;
  padding-left: 10px;
  margin: 0;
}

.link-container ul li{
  background-image: url('/images/url_icon.png');
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: center left;
  border-bottom: #777 1px solid;
  padding-left: 20px;
  line-height: 38px;
}

.link-container ul li a {
  text-decoration: none;
}

h4.newsflash-title{font-size:1.4rem}

.leaflet-attribution-flag{display:none}

.left.anleitungen{border:1px solid #111; margin-right:20px}

.accordion-button {
	align-items: center;
	background-color: #f3f3f3 !important;
	border: 0;
	border-radius: 0;
	color: #202940 !important
  font-weight:bold !important;
	display: flex;
	font-size: 1rem;
	overflow-anchor: none;
	padding: 1rem 1.25rem;
	position: relative;
	text-align: left;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,border-radius .15s ease;
	width: 100%;
}

.ui.blue.button:hover {
	background-color: #2b6cb0;
	color: #fff;
}

.ui.secondary.menu .active.item {
	background-color: #87CEEB !important;
	color: #000;
}
.ui.secondary.menu .active.item #text{
	border: none !important;
}

.faun_note .newsflash-title {
font-size: 0.95rem !important;
margin-bottom:1px !important;
font-weight:600;
color:#008080;
}
.newsflash-item p {font-size: 0.85rem}
.faun_note span.article-separator{display:none !important}
.faun_note .mod-list {list-style:disc; padding-left: 1rem;}


table.dataTable.no-footer {
	 border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important; 
}

div.mtbContent h4 {font-size:98% !important}

.leaflet-control-attribution.leaflet-control a svg {display:none !important}

.faun_note .card-body {
	display: flex;
	overflow-y: scroll;
	max-height: 380px;
	margin: auto;
}

.faun_note .card-body .vertical::-webkit-scrollbar {
  width: 1em;
  background-color: #ddd;
}

.faun_note .card-body .vertical::-webkit-scrollbar-thumb {
  background-color: hsl(0,0%,70%);
}

.faun_note .card-body .vertical {
	height: 28vh;
	scroll-snap-type: y mandatory;
	scroll-snap-type: mandatory;
	overflow-y: scroll;
	scrollbar-color: #90EE90 #008080; /** Firefox **/			
}

.faun_note .card-body .vertical-section {
	scroll-snap-align: start;
}

.faun_note .card-body {
  scrollbar-width: thin;
  scrollbar-color: #008080 #90EE90;
  
}

/* Works on Firefox */
* {

}

/* Works on Chrome, Edge, and Safari */
.faun_note .card-body ::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: #90EE90;
}

*::-webkit-scrollbar-thumb {
  background-color: #008080;
  border-radius: 20px;
  border: 3px solid #90EE90;
}

.teaser-box {
  padding: 20px;
  background: #F0FFF0;
  border: 1px solid #98FB98;
  border-radius: 8px;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #2E8B57;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
 /* box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.2s;*/
  margin-top: 12px;
}

.cta-button:hover {
  background-color: #f2f4f8;
  transform: translateY(0);
  color:#ffffff;
}

.cta-button:active {
  transform: translateY(0);
   color:#ffffff;
}

.cta-button:visited {
   color:#ffffff !important;
} 


/* ====== Butterfly-Guide Artikel (Joomla 5, Light) ====== */

.pflege-list {
  list-style: none;
  margin: 0;
  padding: 25px;
  color: #000;
  background-color:#f3f6f4;
  border:1px solid #adb5bd;
}

.pflege-list li {
  position: relative;
  padding-left: 1.9em;     /* Platz für Symbol */
  margin-bottom: 1.3em;    /* Abstand zwischen den li */
  color: #111;
  font-weight:400;
  line-height: 1.4;        /* sorgt für saubere Ausrichtung */
}

.pflege-list li::before {
  content: "i"; 
  position: absolute; 
  left: 0; 
  top: 0.3em; 
  width: 1.3em; 
  height: 1.3em; 
  border-radius: 50%; 
  border: 2px solid #111; 
  color: #111; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 0.8em; /* Größe des “i” */ 
  font-weight: 500; 
  line-height: 1;         /* verhindert Verschiebung */
}

.Abb_text {
margin-top: 10px; 
font-size: 13px; 
line-height: 19px;	
font-weight:500;
margin-bottom:0px;
}
.abb{font-weight:900}
.ital{font-style: italic;}

/* =========================================================
   GRUNDLAYOUT: Content (3 Spalten) + Sidebar (1 Spalte)
   ========================================================= */

.pflege-layout{
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(320px, 380px);  /* ⬅ breitere TOC-Spalte */
  gap: 16px;
  align-items: start;
  max-width: 100%;
}

/* Content links (3 Spalten) */
.pflege-content{
  grid-column: 1 / span 3;
  min-width: 0;
}

/* Sidebar rechts */
.pflege-sidebar{
  grid-column: 4 / span 1;
  position: sticky;
  align-self: start;
  min-width: 0;
  top: var(--sticky-offset);
}

/* Anker (TOC Sprünge) */
.pflege-content :where(h2[id], h3[id], h4[id], h5[id], h6[id]){
  scroll-margin-top: var(--sticky-offset);
}

.pflege-layout{
  --sticky-offset: 210px; /* Headerhöhe + etwas Luft */
}

/* =========================================================
   INNERES CONTENT-GRID (ersetzt inline display:grid)
   ========================================================= */

.grid-parent{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  justify-content: center;
  margin-bottom:30px;
  margin-top:40px;
}

.grid-parent div h6 {color:#3f4550 !important; font-weight:500;letter-spacing:0px;font-size:1.0em; margin-top:20px;margin-bottom:15px;}
.grid-parent div h4 {color:#3f4550 !important; font-weight:600;letter-spacing:0px;font-size:1.2em; margin-top:30px;margin-bottom:15px;}
.grid-parent div h3 {color:#3f4550 !important; font-weight:600;letter-spacing:0px;font-size:1.5em; margin-top:30px;margin-bottom:15px;}
.grid-parent div h2 {color:#008080 !important; font-weight:600;letter-spacing:0px;font-size:1.6em}

/* Überschriften + Fließtext über volle Breite */
.grid-item1{
  grid-column: 1 / -1;
}

/* Bilder / Spaltenboxen */
.grid-item2,
.grid-item3,
.grid-item4{
  background-color:#f3f6f4;
  padding:20px;
}

.grid-item2.krit, .grid-item3.krit, .grid-item4.krit {
background-color: #008080;
border: 0px solid #98FB98;
color: #fff;
padding:30px;
height:150px;
text-align:center; 
font-weight: 600; 
font-size: 14px;
letter-spacing:0.025em;
line-height:20px;
}

/* Bilder immer responsive */
.grid-parent img{
  max-width: 100%;
  height: auto;
  display: block;
}

.grid-item2 .artliste li,
.grid-item3 .artliste li,
.grid-item4 .artliste li{
font-size:92%;
font-weight:400;
line-height:20px;
margin-bottom:8px;
color:#14213d;
}

.grid-item2 .artliste,
.grid-item3 .artliste,
.grid-item4 .artliste{
margin-bottom:0px;
}

.img-center{ display:flex; justify-content:center; margin-top:30px;}
@media print{ .img-center{ display:block; } }

/* =========================================================
   RESPONSIVE CONTENT-GRID
   ========================================================= */

/* Tablet: 2 Spalten */
@media (max-width: 900px){
  .grid-parent{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-item1{
    grid-column: 1 / -1;
  }
}

/* Handy: 1 Spalte (alles untereinander!) */
@media (max-width: 640px){
  .grid-parent{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .grid-item1,
  .grid-item2,
  .grid-item3,
  .grid-item4{
    grid-column: 1 / -1;
  }

  .grid-item2,
  .grid-item3,
  .grid-item4{
    padding: 12px;
  }
}

/* =========================================================
   RESPONSIVE LAYOUT (Sidebar unter Content)
   ========================================================= */

@media (max-width: 1200px){
  .pflege-layout{
    grid-template-columns: 1fr;
  }
  .pflege-content{
    grid-column: 1 / -1;
  }
  .pflege-sidebar{
    grid-column: 1 / -1;
    position: relative;
    top: auto;
    margin-top: 16px;
  }
}

/* =========================================================
   DRUCK
   ========================================================= */

@media print{
  .pflege-sidebar{ display:none; }
}

/* ===============================
   PDF / Drucken Button
   =============================== */

.pdf-print-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: #f2f2f2; 
  border-radius: 5px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
border:1px solid #ccc;
text-decoration:none !important;
  cursor: pointer;
  transition: 
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.05s ease;
}

/* Icon */
.pdf-print-btn .pdf-icon{
  font-size: 14px;
  line-height: 1;
}

/* Hover */
.pdf-print-btn:hover{
  background: linear-gradient(180deg, #f7f7f7, #eaeaea);
}

/* Active (Klick) */
.pdf-print-btn:active{
  transform: translateY(1px);
}

/* Fokus (Tastatur) */
.pdf-print-btn:focus-visible{
  /*outline: 3px solid rgba(0,128,128,0.4);
  outline-offset: 2px;*/
}

/* -------------------------------------------
   Inhaltsverzeichnis (clean + einklappbar)
   + Einzüge (2. Zeile) + Nummern optisch abgesetzt
------------------------------------------- */

.pflege-toc-box{
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
  padding: 14px 16px;
  margin-top:20px;
}

/* Details / Summary */
.toc__summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 10px;
  border-radius: 5px;
  background: #f7f7f7;
  border: 1px solid #e6e6e6;
}

.toc__summary::-webkit-details-marker{ display:none; }

.toc__title{
  font-weight: 500;
  color: #004899;
  letter-spacing: 0.01em;
}

.toc__hint{
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

/* Pfeil rechts */
.toc__summary::after{
  content: "▾";
  font-size: 14px;
  font-weight:700;
  color: #444;
  margin-left: auto;
  transform-origin: 50% 55%;
  transition: transform .15s ease;
}

.toc[open] .toc__summary::after{
  transform: rotate(180deg);
}

/* Liste: Reset */
.toc-list, .toc-list ol{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hauptliste */
.toc-list{
  margin-top: 10px;
  padding: 6px 4px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* -------------------------------------------------
   Links (Hauptpunkte)
   - hanging indent (2. Zeile eingerückt)
   - linker "Nummern"-Bereich optisch abgesetzt
-------------------------------------------------- */
.toc-list > li > a{
  text-decoration: none;
  color: #004899;
  display: block;

  /* Box-Optik */
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;

  /* Nummern-Spalte optisch absetzen */
  background-image: linear-gradient(90deg, #f3f3f3 0, #f3f3f3 28px, transparent 28px);
  padding: 8px 10px 8px 34px;
  text-indent: -18px; /* hanging indent -> Folgezeilen rücken ein */
  line-height: 1.3;

  font-weight: 500;
  font-size: 14px;

  transition: background .15s ease, border-color .15s ease, transform .05s ease;

  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Hover/Active */
.toc-list > li > a:hover{
  background-color: #f2f2f2;
  border-color: #e5e5e5;
}

.toc-list > li > a:active{
  transform: translateY(1px);
}

/* -------------------------------------------------
   Unterpunkte (ol innerhalb li)
   - extra Einzug + eigene linke Markierung
-------------------------------------------------- */
.toc-list li ol{
  margin-top: 6px;
  margin-left: 14px;
  padding-left: 12px;
  border-left: 2px solid #ededed;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list li ol a{
  text-decoration: none;
  color: #0069b4;
  display: block;

  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;

  /* etwas stärkerer hanging indent */
  background-image: linear-gradient(90deg, #fafafa 0, #fafafa 26px, transparent 26px);
  padding: 7px 10px 7px 40px;
  text-indent: -18px;
  line-height: 1.3;

  font-weight: 400;
  font-size: 13px;

  transition: background .15s ease, border-color .15s ease, transform .05s ease;

  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.toc-list li ol a:hover{
  background-color: #f2f2f2;
  border-color: #e5e5e5;
}

.toc-list li ol a:active{
  transform: translateY(1px);
}

/* kleiner Marker für Unterpunkte */
.toc-list li ol a::before{
  content: "–";
  margin-right: 6px;
  color: #777;
}

/* Mobile: Button/TOC kompakter */
@media (max-width: 640px){
  .toc__hint{ display:none; }

  .toc-list > li > a{
    padding: 8px 10px 8px 32px;
    background-image: linear-gradient(90deg, #f3f3f3 0, #f3f3f3 24px, transparent 24px);
    text-indent: -16px;
  }

  .toc-list li ol a{
    padding: 7px 10px 7px 38px;
    background-image: linear-gradient(90deg, #fafafa 0, #fafafa 22px, transparent 22px);
    text-indent: -16px;
  }
}

/* ===== Responsive Tabelle (stacked on mobile) ===== */
.mtb-table{
  width: 100%;
  border-collapse: collapse; 
  border-spacing: 0;
  background: #fff;
  border: 1px solid #14213d;
  color: #14213d;
  overflow: hidden;
  /*margin: 18px 0;*/
  margin-bottom:40px;
  font-size:90% !important;
}

.mtb-table td, .mtb-table th {border-collapse: collapse;border: 1px solid #adb5bd}

.mtb-table th,
.mtb-table td{
  padding: 14px 16px;
  vertical-align: top;
  /*border-bottom: 1px solid #eee;*/
}

.mtb-table th{
  background: #f3f6f4;
  font-weight: 600;
  color: #222;
  text-align: left;
}

.mtb-table tr:last-child td{
  /*border-bottom: none;*/
}

/* bessere Lesbarkeit für Listen */
.mtb-table ul{
  list-style-type: disc;
}

.mtb-table li::marker{
  color: #000;
}


/* Spaltenbreiten am Desktop */
.mtb-table col.col-problem{ width: 36%; }
.mtb-table col.col-action{ width: 64%; }

/* Mobile: Zeilen stapeln */
@media (max-width: 700px){
  .mtb-table thead{
    display: none;
  }

  .mtb-table,
  .mtb-table tbody,
  .mtb-table tr,
  .mtb-table td{
    display: block;
    width: 100%;
  }

  .mtb-table tr{
    /*border-bottom: 1px solid #eaeaea;*/
    padding: 10px 0;
  }

  .mtb-table td{
    border: none;
    padding: 10px 14px;
  }

  .mtb-table td::before{
    display: block;
    font-weight: 800;
    color: #006666;
    margin-bottom: 6px;
  }

  .mtb-table td[data-label]::before{
    content: attr(data-label);
  }
}

/*--------------------- Kriterien ----------------------------*/

.list-numbered {
  list-style: none;
  margin: 0;
  padding-left: 3.9em; /* Platz für den Kreis */
  counter-reset: line;
}

.list-numbered > li {
  position: relative;
  margin-bottom: 0.6em;
  color: #111;
  font-weight:500;
}

.list-numbered > li::before {
  position: absolute;
  left: -2.75em;          /* Kreis in den freigeräumten Bereich verschieben */
  top: 0.1em;
  width: 22px;
  height: 22px;
  background-color: #14213d;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 22px;       /* Zahl perfekt zentriert */
  counter-increment: line;
  content: counter(line);
}

/*--------------------------------------------------------------------------------*/

.captionplus-outside, .captionplus-always {display:none}


