body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #fff4ee;
    letter-spacing: 0.045em;
    word-spacing: 0.05em;
}

h1 {
    text-align: center;
}

h1 {
    font-size: 2em;
    color: #810000;                       /* Dunkler Farbton entsprechend der Farbpalette */
    text-shadow:
      1px 1px 1px #E0BEAF,                /* Hellerer bläulicher, weicher Schatten */
      2px 2px 1px #E7D0C8;                /* Hellster bläulicher, weicher Schatten */
    transition: text-shadow 0.5s;
    opacity: 1;
}

h1:hover {
  text-shadow:
    1px 1px 4px #7a8ca0,                
    2px 2px 8px #E0BEAF,                
    3px 3px 12px #E7D0C8;                
}

h2 {
  font-size: 1.5em;
  color: #810000;                       /* Dunkler Farbton aus dem hover state des Links */
  text-shadow:
    1px 1px 1px #7a8ca0,                /* Zweiter Schatten, weich */
    2px 2px 1px #E0BEAF;                /* Dritter Schatten, weich */
  transition: text-shadow 0.5s;
  opacity: 0.9;
}

h2:hover {
  text-shadow:
    1px 1px 4px #ab2828,                
    2px 2px 8px #7a8ca0,                
    3px 3px 12px #E0BEAF;                
}

hr {
    height: 2px;
    background-image: repeating-linear-gradient(#E7D0C8, #F5E3D6 .125rem, #fff4ee .125rem , #fff4ee .25rem);
    background-size: 1rem 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 20, 0.7);
    opacity: 0.5;
    margin-bottom: 25px
}

/* Verstecke die Standard-Checkbox */
input#urgentCheckBox[type="checkbox"] {
  margin-left: 5px;
  margin-right: 15px;
  min-width: 0;
  /* Double-sized Checkboxes */
  -ms-transform: scale(1.5); /* IE */
  -moz-transform: scale(1.5); /* FF */
  -webkit-transform: scale(1.5); /* Safari and Chrome */
  -o-transform: scale(1.5); /* Opera */
  transform: scale(1.5);
  padding: 10px;
}

.button {
  padding: 10px;
  background-color: #4e0000;
  color: #ffffff;
  min-width: 200px;
  border: 1px solid #4e0000 !important;
  border-radius: 10px;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  font-weight: 900 !important;
  margin: 4px;
}

.button:hover {
  box-shadow: 0px 3px 10px rgba(0,0,0,0.45);
  transform: scale(1.025);
}

.header {
  background-color: #fff4ee;
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    position: fixed;
    left: calc(40% + 100px);
    transform: translateX(-50%);
    top: 10px;
    width: calc(70% - 100px); /* Breite auf 70% erhöht */
    height: auto;
    max-height: 100px; /* Maximale Höhe auf 100px erhöht */
    max-width: 957px; 
}

.logo2 {
    position: relative;
    margin-top: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 15px;
}

.logo2 img {
    width: 90%; /* Standardbreite für größere Bildschirme */
    height: auto;
}

.anfahrt {
    position: relative;
    margin-top: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 15px;
}

.anfahrt img {
    width: 90%; /* Standardbreite für größere Bildschirme */
    height: auto;
}

.logo-background {
    left: calc(70% + 100px);
    width: calc(90% - 100px); /* Breite auf 70% erhöht */
    max-width: 850px;
    height: auto;
}

/* Stil für den Footer in der Sidebar für größere Bildschirme entfernen,
da er nun auf allen Bildschirmen als Teil der Sidebar bleibt */
.footer {
  display: none; /* Verdeckt den Footer auf allen Ansichten */
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer a {
  margin: 0 10px;
}
        
.sidebar {
  position: fixed;
  width: 235px;
  height: 100%;
  background-color: #F5E3D6;
  overflow: auto;
  /*border-top-right-radius: 25px;*/
  /*border-bottom-right-radius: 25px;*/
  box-shadow: 2px 0px 5px rgba(0,0,0,0.1);
  top: 0;
}

.sidebar a {
  display: block;
  padding: 10px;
  color: #630000;
  text-decoration: none;
  border-radius: 15px;
  margin: 10px;
  transform: translateX(5px); /* Gibt das Gefühl, gedrückt zu werden */
  transition: background-color 0.5s, color 0.5s, transform 0.5s;
  font-weight: 600;
}

.sidebar a:hover {
  background-color: #E0BEAF;
  color: #810000;
  transform: translateX(0); /* Kehrt zurück in die ursprüngliche Position beim Überfahren */
}

.active {
  background-color: #E0BEAF;
  color: #4e0000;
  font-weight: 700;
}

.sidebar-footer {
  position: absolute; /* Positionieren Sie den Footer-Bereich am unteren Rand der Sidebar */
  bottom: 0;
  width: 100%;
  background-color: #8f3131; /* Etwas dunkler als der Hintergrund der Sidebar für Kontrast */
  padding: 10px 0; /* Fügen Sie vertikales Padding für optische Trennung hinzu */
}

.sidebar-footer a {
  display: block;
  padding: 10px;
  color: white; /* Kontrastfarbe für bessere Lesbarkeit */
  text-decoration: none;
  transition: 0.5s;
  font-weight:600;
}

.sidebar-footer a:hover {
  background-color: #F5E3D6; /* Farbe beim Hover etwas heller als Footer-Hintergrund */
}

/* Button-Stil anpassen, damit er zum Design passt */
.sidebar-toggle-button {
  display: none; /* Standardmäßig ausgeblendet */
  position: fixed;
  top: 0;
  left: 20px;
  z-index: 100;
  background-color: #F5E3D6; /* Farbe an die Sidebar anpassen */
  border: none;
  padding: 6px 9px;
  border-radius: 5px; /* Runde Ecken für den Button */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Leichter Schlagschatten für mehr Tiefe */
  cursor: pointer; /* Ändert den Mauszeiger zu einem Klickzeiger */
  transition: background-color 0.5s; /* Sanfte Änderung der Hintergrundfarbe beim Hover */
}

.sidebar-toggle-button button {
  font-size: 30px;
  color: #630000; /* Farbe auf die Seitenleistenlinks-Typografie anpassen */
  background: none;
  border: none;
  margin: 0; /* Entfernt den Standard-Button-Rand */
  padding: 0; /* Entfernt das Standard-Button-Padding */
  cursor: pointer;
}

.sidebar-toggle-button:hover {
  background-color: #E0BEAF; /* Farbänderung beim Überfahren des Buttons */
}





.main-content {
  margin-left: 250px;
  margin-right: 15px;
  padding: 20px;
  transition: margin-left 0.5s;
  color: #630000;
  margin-top: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input, 
select,
textarea {
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #630000;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.4);
  font-weight: 900;
  min-width: 380px;
  cursor: pointer;
}

textarea {
  width: 98%;
}

select {
  min-width: 440px;
}

input {
  min-width: 418px;
}

input:hover {
  color: black;
}

input[type=button],
input[type=submit] {
  background-color: #4e0000;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.6);
  min-width: 100px;
}

input[type=submit]:hover {
  background-color: #F5E3D6;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.8);
}

label {
  padding: 12px 12px 0 0;
  display: inline-block;
}

table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.45);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  transition: all 0.5s ease-in-out;
}

table,
th,
td {
  padding: 9px;
  text-align: left;
}

td {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Abgerundete Ecken für die Kopf- und Fußzeile der Tabelle */
table thead th:first-child {
  border-top-left-radius: 8px;
  border: 0px !important;
}

table thead th:last-child {
  border-top-right-radius: 8px;
  border: 0px !important;
}

table thead tr {
    position: sticky;
    top: -1px;
}

/* Diese CSS-Selektoren richten sich an die erste und letzte Zelle der letzten Zeile */
table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px !important;
}

table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px !important;
}

th {
  background-color: #4e0000; /* Farbe an das neue Farbschema angepasst */
  color: white;
  /*box-shadow: 0px 2px 6px rgba(0,0,0,0.3);*/
}

th a {
  color: white;
  text-decoration: none;
}

td {
	border: 0px solid #9daabc;
	border-style: none solid solid none;
}

tr:nth-child(even){background-color: #f3f3f3;}
tr:nth-child(odd){background-color: #ffffff;}

section {
  margin: 1em 1%;
  text-align: left;
}

.intro-text {
  margin-bottom: 2em;
  text-align: justify;
}
ul {
  list-style: none;
  padding: 0;
}
li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.topmenu-buttons,
.topmenu-buttons li {
	display: flex;
	padding: 0;
	margin: 10px;
	transition: all 0.5s ease-in-out;
}

.topmenu-buttons {
    /*width: calc(99% - 5px);  Breite auf 70% erhöht */
    max-width: auto;
	list-style: none;
	flex-wrap: wrap;
	margin-top: 0px !important;
	margin-left: 0px !important;
    /*position: relative;  'relative' oder 'absolute', abhängig vom Layout */
    z-index: 10; /* höher als .middlemenu-container */
}

.topmenu-buttons li {
	flex-basis: 17%;
	flex-shrink: 1;
	flex-grow: 6;
}

.topmenu-buttons a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: .2em 0.75em;
	font-weight: 900;
	text-decoration: none;
	color: #FFF;
	transition: transform 0.5s ease, box-shadow 0.5s ease;
	border-radius: 24px; /* Hinzugefügter border-radius */
	box-shadow: 0 2px 5px rgba(0, 0, 19, 0.55);
	background-color: #ab2828;
}

.topmenu-buttons i {
	margin-right: .5em;
}

/* Alle Buttons erhalten einen sanften Übergang für Hover-Effekte */
.topmenu-buttons a:hover,
.topmenu-buttons a:focus {
	transform: scale(1.02);
	box-shadow: 0 3px 8px rgba(0, 0, 19, 0.7);
}

/* Optional: Füge ein Aktivzustand für die Links hinzu */
.topmenu-buttons a:active {
	transform: scale(0.98);
	box-shadow: 0 2px 5px rgba(0, 0, 19, 0.5);
}

.topmenu-buttons a.active-link {
    background-color: #630000; /* Hintergrundfarbe für aktive Links */
    color: #fff; /* Textfarbe für aktive Links */
}

.middlemenu-container {
    position: relative; /* oder 'absolute' je nach Layout-Struktur */
    z-index: 5; /* sicherstellen, dass dieser Wert niedriger als der des Topmenüs ist, falls dort z-Index verwendet wird */
    /* Weitere Stilisierung nach Bedarf, um es auf der Seite zu platzieren */
}

.middlemenu-container hr {
    height: 1px;
    background-image: repeating-linear-gradient(#E7D0C8, #F5E3D6 .125rem, #fff4ee .125rem , #fff4ee .25rem);
    background-size: 1rem 1rem;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 20, 0.6);
    opacity: 0.4;
    margin-bottom: 5px
}

.middlemenu-buttons,
.middlemenu-buttons li {
	display: flex;
	padding: 0;
	margin-right: 6px; /* Etwas geringerer Abstand als das Top-Menü */
	margin-left: 6px; /* Etwas geringerer Abstand als das Top-Menü */
	margin-top: 2px; 
	margin-bottom: 1px; 
	transition: all 0.5s ease-in-out;
}

.middlemenu-buttons {
	list-style: none;
	flex-wrap: wrap;
	margin-top: 0 !important; /* Entferne margin oben */
	margin-left: 0 !important; /* Entferne margin links */
}

.middlemenu-buttons li {
	flex-basis: 6%; /* Vergrößere die Basis um die Menüpunkte kleiner erscheinen zu lassen */
	flex-shrink: 4;
	flex-grow: 20; /* Reduziere das Wachstum für kleineres Layout */
}

.middlemenu-buttons a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: .1em .2em; /* Etwas geringere Polsterung */
	font-weight: 700; /* Etwas weniger Gewicht als das Top-Menü */
	text-decoration: none;
	color: #FFF;
	transition: transform 0.5s ease, box-shadow 0.5s ease;
	border-radius: 20px; /* Etwas geringerer border-radius */
	box-shadow: 0 2px 5px rgba(0, 0, 19, 0.45); /* Leicht leichtere Schatten */
	font-size: 0.95em; /* Kleiner Text für das Untermenü */
	background-color: #7a8ca0;
}



.middlemenu-buttons a:hover,
.middlemenu-buttons a:focus {
	transform: scale(1.02);
	box-shadow: 0 2px 7px rgba(0, 0, 19, 0.65);
}

.middlemenu-buttons a:active {
	transform: scale(0.98);
	box-shadow: 0 1px 4px rgba(0, 0, 19, 0.5);
}

.middlemenu-buttons i {
	margin-right: .4em; /* Geringerer Abstand für das Icon */
}

.middlemenu-buttons a.active-link {
    background-color: #630000; /* Hintergrundfarbe für aktive Links */
    color: #fff; /* Textfarbe für aktive Links */
    /* Weitere Stile, falls gewünscht, für aktive Links */
}

.middlemenu-button.middlemenu-buttons-active-link {
    background: #630000; /* Farbe für den aktiven Link */
    /* Weitere Stile für den aktiven Link, falls nötig */
}

h3 {
	color: #009879;
	margin-bottom: 0;
	margin-top: 5px;
	margin-left: 250px;
}
.redfamily {
  color: red; 
}
h4 {
  color: red;
	margin-left: 10px;
}
h5 {
	color: #000000;
	margin-bottom: 0;
	margin-top: 5px;
	margin-left: 250px;
}

.main {
  margin-left: 10px; /* Same as the width of the sidenav */
  font-size: 20px; /* Increased text to enable scrolling */
  padding: 0px 10px;
}

 /* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  /**width: 180px;**/
  min-width: 210px;
  max-width: 750px;
  background-color: #555;
  color: #fff;
  text-align: left;
  padding: 5px 5px;
  border-radius: 6px;
  white-space: nowrap;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.5s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
} 

.infobox {
	padding: 15px;
	border-radius: 6px;
	box-shadow: 0 3px 6px rgba(0, 0, 19, 0.45); 
	transition: 0.5s;
}

.infobox:hover {
	box-shadow: 0 3px 6px rgba(0, 0, 19, 0.65); 
}

.infobox ul {
    list-style-type: square;
    list-style-position: inside;
    padding: 20px;
}

.infobox li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.infobox h3 {
    font-size: 1.25em;
    color: #810000;
    text-shadow:
      1px 1px 1px #7a8ca0,
      2px 2px 1px #E0BEAF;
    transition: text-shadow 0.5s;
    opacity: 0.9;
    margin-left: 0;
}

.infobox img {
    padding: 0;
    box-shadow: 0 9px 27px rgba(0, 0, 19, 0.25); 
    opacity: 1;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 25px;
	border-radius: 6px;
    max-width: 95%;
    height: auto;
}

.infobox img:not([width]),
.infobox img[width]:not([width="280"]):not([width="420"]):not([width="560"]) {
    width: 95%;
}

.infobox video {
    padding: 0;
    box-shadow: 0 9px 27px rgba(0, 0, 19, 0.25);
    opacity: 1;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 25px;
	border-radius: 6px;
    max-width: 95%;
    height: auto;
}

.infobox video:not([width]),
.infobox video[width]:not([width="280"]):not([width="420"]):not([width="560"]) {
    width: 95%;
}

.jobs-page {
  --jobs-surface: #ffffff;
  --jobs-soft: #fff4ee;
  --jobs-accent: #4e0000;
  --jobs-accent-soft: #F5E3D6;
  --jobs-muted: #630000;
  --jobs-line: rgba(0, 0, 0, 0.1);
  --jobs-shadow: 0 14px 28px rgba(0, 0, 19, 0.25);
}

.jobs-page h1 {
  text-align: center;
  margin: 10px 0 18px;
}

.jobs-page section {
  margin: 0 0 22px;
}

.jobs-page .infobox {
  background: var(--jobs-surface);
  border: 1px solid var(--jobs-line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--jobs-shadow);
}

.jobs-page .infobox:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 19, 0.45);
}

.jobs-page .infobox h2,
.jobs-page .infobox h3 {
  text-shadow: none;
  color: var(--jobs-accent);
  margin-left: 0;
}

.jobs-page .infobox h2 {
  font-size: 1.2em;
  text-align: left;
}

.jobs-page .infobox ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.jobs-page .infobox li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.jobs-page .infobox li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--jobs-accent);
  font-weight: 700;
}

.jobs-hero-box {
  border-left: 6px solid var(--jobs-accent);
  display: grid;
  gap: 16px;
}

.jobs-hero-box.has-media {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 260px);
  align-items: center;
}

.jobs-subtitle {
  color: var(--jobs-muted);
  font-size: 1.05em;
  line-height: 1.5;
}

.jobs-hero-media img {
  width: 100%;
  margin: 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 19, 0.25);
}

.jobs-intro-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.jobs-list-box {
  background: var(--jobs-soft);
}

.jobs-list {
  display: grid;
  gap: 16px;
}

.jobs-item {
  border-radius: 16px;
  border: 1px solid var(--jobs-line);
  background: var(--jobs-surface);
  box-shadow: var(--jobs-shadow);
  overflow: hidden;
}

.jobs-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.jobs-item summary::-webkit-details-marker {
  display: none;
}

.jobs-item summary::after {
  content: "+";
  color: var(--jobs-accent);
  font-weight: 700;
  font-size: 18px;
  justify-self: end;
}

.jobs-item[open] summary::after {
  content: "-";
}

.jobs-summary strong {
  font-size: 1.05em;
}

.jobs-meta {
  color: var(--jobs-muted);
  font-size: 0.9em;
}

.jobs-body {
  border-top: 1px dashed var(--jobs-line);
  background: var(--jobs-soft);
  padding: 16px 18px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.jobs-section h3 {
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.jobs-apply {
  grid-column: 1 / -1;
  background: var(--jobs-surface);
  border: 1px solid var(--jobs-line);
  border-radius: 12px;
  padding: 12px 14px;
}

.jobs-apply a {
  color: var(--jobs-accent);
  font-weight: 700;
  text-decoration: none;
}

.jobs-apply a:hover {
  text-decoration: underline;
}

.jobs-empty-box {
  background: var(--jobs-soft);
  border-style: dashed;
}

.jobs-initiative-box {
  border-left: 6px solid var(--jobs-accent-soft);
}

.jobs-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

@media screen and (max-width: 900px) {
  .jobs-hero-box.has-media {
    grid-template-columns: 1fr;
  }

  .jobs-intro-box {
    grid-template-columns: 1fr;
  }

  .jobs-item summary {
    grid-template-columns: 1fr;
  }

  .jobs-body {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 1050px) {
  .sidebar-toggle-button {
    display: block;
    top: 10px;
    left: 20px;
    z-index: 100;
  }
  .sidebar {
        position: fixed; /* Änderung von 'static' zu 'fixed' */
        top: 0;
        left: -235px; /* Startposition außerhalb des Bildschirms (Sidebar Breite) */
        width: 235px;
        height: 100%;
        overflow-y: auto; /* Erlaubt vertikales Scrollen innerhalb der Sidebar */
        transition: left 0.5s; /* Animation für das Ein- und Ausgleiten der Sidebar */
        z-index: 99; /* Stellen Sie sicher, dass die Sidebar über dem Hauptinhalt liegt */
  }
  .sidebar.open {
    left: 0; /* Position der Sidebar, wenn sie geöffnet ist */
    top: 80px;
  }
  .sidebar a {
    margin: 10px; /* Behält den Abstand für Sidebar-Links bei */
  }
  /* Stil für den Footer in der Smartphone-Ansicht */
  .sidebar-footer {
    position: fixed; /* Behält den Footer am unteren Ende der Ansicht */
    left: 0; /* Streckt den Footer von der linken Seite des Bildschirms aus */
    bottom: 0; /* Setzt den Footer an den unteren Rand des Bildschirms */
    width: 100%; /* Streckt den Footer über die volle Breite */
    background-color: #8f3131; /* Hintergrundfarbe (anpassbar) */
    padding: 10px 0; /* Vertikales Padding für Auffälligkeit */
    text-align: center; /* Zentriert die enthaltenen Links */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Schatten für den Footer */
    z-index: 98; /* Stellt sicher, dass der Footer unter der Sidebar angezeigt wird */
  }

  .sidebar-footer a {
    display: inline; /* Stellt Links nebeneinander statt untereinander dar */
    padding: 5px 10px; /* Angepasstes Padding für Links */
  }
  .main-content {
    position: relative;
    z-index: 1; /* Hauptinhalt hat einen niedrigeren z-index als die Sidebar */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 60px; /* Fügen Sie unten einen Abstand hinzu, um den überlappenden Inhalt zu verhindern */
    width: calc(100% - 40px); /* updated this */
    padding: 20px;
    overflow-x: auto; /* Erlaubt horizontales Scrollen für kleine Geräte */
    border-radius: 0 0 0 0;
  }
  .logo {
    left: 50%;
    transform: translateX(-50%);
    width: 85%;  /* Logo-Breite auf 80% festlegen, damit es etwas kleiner ist als die Bildschirmbreite */
    max-height: 77px;
    max-width: 957px;
  }
  .footer {
    left: 0; /* Positionieren Sie den Fußbereich auf vollen Bildschirmen ohne Sidebar */
    width: 100%;
  }
  .footer {
    position: static; /* Entfernen der festen Position, damit sich Elemente normal stapeln */
    width: 100%; 
  }
	.logo2 img {
		width: 95%; 
	}
	.logo2 {
		margin-left: 10px; 
	}
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.stock-search,
.stock-disabled {
	background: #f3f3f3;
	border: 1px solid #F5E3D6;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stock-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.stock-meta {
	font-weight: 700;
	color: #810000;
}

.stock-form {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.stock-form input[type='text'] {
	flex: 1 1 240px;
	min-width: 0;
	width: auto;
	font-weight: 600;
	cursor: text;
}

.stock-form button {
	border: none;
	border-radius: 10px;
	padding: 10px 18px;
	background-color: #4e0000;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stock-form button:hover {
	background-color: #810000;
}

.stock-hint {
	margin-top: 8px;
	color: #630000;
	font-size: 0.9em;
}

.stock-suggestions {
	margin-top: 12px;
	display: grid;
	gap: 8px;
}

.stock-suggestion {
	border: 1px solid #E7D0C8;
	border-radius: 10px;
	padding: 10px 12px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
}

.stock-suggestion:hover {
	background: #fff4ee;
}

.stock-suggestion-label {
	display: block;
	font-weight: 700;
	color: #810000;
}

.stock-suggestion-main {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.stock-suggestion-meta {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: #630000;
}

.stock-suggestion-dosage,
.stock-suggestion-substances {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: #630000;
}

.stock-suggestion-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85em;
	font-weight: 600;
	color: #630000;
	white-space: nowrap;
}

.stock-suggestion-status-text {
	line-height: 1.2;
}

.stock-status {
	margin-top: 12px;
	font-weight: 600;
}

.stock-status[data-state='error'] {
	color: #810000;
}

.stock-status[data-state='empty'] {
	color: #630000;
}

.stock-status[data-state='loading'] {
	color: #810000;
}

.stock-results {
	margin-top: 16px;
	display: grid;
	gap: 12px;
}

.stock-result {
	border: 1px solid #E7D0C8;
	border-radius: 12px;
	padding: 14px 16px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stock-result-head {
	display: grid;
	gap: 4px;
}

.stock-result-name {
	font-weight: 700;
	color: #810000;
}

.stock-result-location {
	font-size: 0.85em;
	color: #630000;
}

.stock-result-pzn {
	font-size: 0.85em;
	color: #630000;
}

.stock-result-details {
	margin-top: 6px;
	display: grid;
	gap: 4px;
}

.stock-result-dosage,
.stock-result-substances {
	font-size: 0.85em;
	color: #630000;
}

.stock-result-status-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.stock-result-status {
	font-weight: 700;
}

.stock-ampel {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: #9ca3af;
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
	flex: 0 0 auto;
}

.stock-ampel-available {
	background: #009879;
}

.stock-ampel-low {
	background: #f59e0b;
}

.stock-ampel-none {
	background: #dc2626;
}

.stock-ampel-unknown {
	background: #9ca3af;
}

.stock-ampel-blocked {
	background: #9ca3af;
}

.stock-status-available {
	color: #009879;
}

.stock-status-low {
	color: #f59e0b;
}

.stock-status-none {
	color: #dc2626;
}

.stock-status-unknown {
	color: #630000;
}

.stock-status-blocked {
	color: #810000;
}

.stock-result-message {
	margin-top: 6px;
	color: #ab2828;
}

.notdienst {
	display: grid;
	gap: 16px;
}

.notdienst-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.9em;
	color: #630000;
}

.notdienst-tag {
	border: 1px solid #E7D0C8;
	border-radius: 999px;
	padding: 6px 12px;
	background: #fff;
	font-weight: 600;
}

.notdienst-day {
	display: grid;
	gap: 12px;
}

.notdienst-day-title {
	margin: 0;
	color: #4e0000;
	font-size: 1.1em;
	font-weight: 700;
}

.notdienst-rows {
	display: grid;
	gap: 12px;
}

.notdienst-row {
	display: grid;
	grid-template-columns: 1.4fr 1.4fr 0.8fr 0.8fr;
	gap: 16px;
	padding: 18px;
	border-radius: 14px;
	border: 1px solid #E7D0C8;
	border-left: 6px solid #4e0000;
	background: #fff4ee;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	align-items: center;
}

.notdienst-cell {
	display: grid;
	gap: 6px;
	align-content: start;
}

.notdienst-cell--phone {
	justify-items: start;
}

.notdienst-cell--distance {
	justify-items: end;
	text-align: right;
}

.notdienst-name {
	font-weight: 700;
	color: #810000;
}

.notdienst-address {
	color: #630000;
	font-size: 0.95em;
}

.notdienst-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.notdienst-map {
	padding: 6px 10px;
	border-radius: 10px;
	border: 1px solid #E7D0C8;
	background: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.8em;
	color: #810000;
}

.notdienst-map:hover {
	background: #f3f3f3;
}

.notdienst-map--primary {
	background: #4e0000;
	border-color: #4e0000;
	color: #fff;
}

.notdienst-map--primary:hover {
	background: #810000;
}

.notdienst-phone {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: #4e0000;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.85em;
	width: max-content;
	justify-self: start;
}

.notdienst-phone:hover {
	background: #810000;
}

.notdienst-distance {
	font-weight: 700;
	color: #4e0000;
	justify-self: end;
}

.notdienst-empty-inline {
	color: #630000;
	font-weight: 600;
}

.notdienst-empty {
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px dashed #E7D0C8;
	background: #f3f3f3;
	display: grid;
	gap: 8px;
}

.notdienst-empty p {
	margin: 0;
}

@media screen and (min-width: 1400px) {
	.main-content {
	  margin-left: 268px;
	  margin-right: 65px;
	  transition: 0.5s;
	}
}

@media screen and (min-width: 1550px) {
	.main-content {
	  margin-left: 288px;
	  margin-right: 85px;
	  transition: 0.5s;
	}
}

@media screen and (min-width: 1700px) {
	.main-content {
	  margin-left: 308px;
	  margin-right: 105px;
	  transition: 0.5s;
	}
}

@media screen and (max-width: 850px) {
	.logo2 {
		margin-left: 20px; 
	}
	.anfahrt img {
		width: 100%; 
	}
	.stock-form {
		flex-direction: column;
		align-items: stretch;
	}
	.stock-form input[type='text'] {
		flex: 0 0 auto;
		width: 100%;
	}
	.stock-form button {
		width: 100%;
	}
	.stock-suggestion {
		grid-template-columns: 1fr;
		align-items: start;
	}
	.stock-suggestion-status {
		justify-self: start;
	}
	.stock-search,
	.stock-disabled {
		padding: 16px;
	}
	.notdienst-row {
		grid-template-columns: 1fr;
	}
	.notdienst-cell--distance {
		justify-items: start;
		text-align: left;
	}
	.notdienst-distance {
		justify-self: start;
	}
}

@media screen and (max-width: 650px) {
	.logo2 img {
		width: 100%; 
	}
	.logo2 {
		margin-left: 30px; 
	}
	.anfahrt img {
		width: 100%; 
	}
}

/* Quill WYSIWYG helpers for published content */
.ql-align-left {
  text-align: left;
}

.ql-align-center {
  text-align: center;
}

.ql-align-right {
  text-align: right;
}

.ql-align-justify {
  text-align: justify;
}

img.ql-align-left,
video.ql-align-left {
  display: block;
  margin-left: 0;
  margin-right: auto;
}

img.ql-align-center,
video.ql-align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.ql-align-right,
video.ql-align-right {
  display: block;
  margin-left: auto;
  margin-right: 0;
}

.ql-bg-black {
  background-color: #000;
}

.ql-bg-red {
  background-color: #e60000;
}

.ql-bg-orange {
  background-color: #ff9900;
}

.ql-bg-yellow {
  background-color: #ffff00;
}

.ql-bg-green {
  background-color: #008a00;
}

.ql-bg-blue {
  background-color: #0066cc;
}

.ql-bg-purple {
  background-color: #9933ff;
}

.ql-color-white {
  color: #ffffff;
}

.ql-color-red {
  color: #e60000;
}

.ql-color-orange {
  color: #ff9900;
}

.ql-color-yellow {
  color: #ffff00;
}

.ql-color-green {
  color: #008a00;
}

.ql-color-blue {
  color: #0066cc;
}

.ql-color-purple {
  color: #9933ff;
}
