body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--color-bg-body);
    letter-spacing: 0.045em;
    word-spacing: 0.05em;
}

h1 {
    text-align: center;
}

h1 {
    font-size: 2em;
    color: var(--color-text-heading);                       /* Dunkler Farbton entsprechend der Farbpalette */
    text-shadow:
      1px 1px 1px var(--color-text-soft),                /* Hellerer bläulicher, weicher Schatten */
      2px 2px 1px var(--color-border);                /* Hellster bläulicher, weicher Schatten */
    transition: text-shadow 0.5s;
    opacity: 1;
}

h1:hover {
  text-shadow:
    1px 1px 4px var(--color-text-mid),                
    2px 2px 8px var(--color-text-soft),                
    3px 3px 12px var(--color-border);                
}

h2 {
  font-size: 1.5em;
  color: var(--color-text-dark);                       /* Dunkler Farbton aus dem hover state des Links */
  text-shadow:
    1px 1px 1px var(--color-text-mid),                /* Zweiter Schatten, weich */
    2px 2px 1px var(--color-text-soft);                /* Dritter Schatten, weich */
  transition: text-shadow 0.5s;
  opacity: 0.9;
}

h2:hover {
  text-shadow:
    1px 1px 4px var(--color-nav-primary),                
    2px 2px 8px var(--color-text-mid),                
    3px 3px 12px var(--color-text-soft);                
}

hr {
    height: 2px;
    background-image: repeating-linear-gradient(var(--color-border), var(--color-bg-sidebar) .125rem, var(--color-bg-body) .125rem , var(--color-bg-body) .25rem);
    background-size: 1rem 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 5px var(--shadow-color-hr-lg);
    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: var(--color-accent);
  color: var(--color-button-text, var(--color-white));
  min-width: 200px;
  border: 1px solid var(--color-accent) !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 var(--shadow-color-lg);
  transform: scale(1.025);
}

.header {
  background-color: var(--color-bg-body);
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 4px var(--shadow-color-xs);
}

.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 var(--shadow-color-xs);
}

.footer a {
  margin: 0 10px;
}
        
body.layout-sidebar .sidebar {
  position: fixed;
  width: 235px;
  height: 100%;
  background-color: var(--color-bg-sidebar);
  overflow: auto;
  box-shadow: 2px 0px 5px var(--shadow-color-xs);
  top: 0;
}

body.layout-sidebar .sidebar a {
  display: block;
  padding: 10px;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: 15px;
  margin: 10px;
  transform: translateX(5px);
  transition: background-color 0.5s, color 0.5s, transform 0.5s;
  font-weight: 600;
}

body.layout-sidebar .sidebar a:hover {
  background-color: var(--color-accent-soft);
  color: var(--color-text-dark);
  transform: translateX(0);
}

.active {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 700;
}

body.layout-sidebar .sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: var(--color-sidebar-footer-bg);
  padding: 10px 0;
}

body.layout-sidebar .sidebar-footer a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  transition: 0.5s;
  font-weight:600;
}

body.layout-sidebar .sidebar-footer a:hover {
  background-color: var(--color-sidebar-footer-hover);
}

body.layout-sidebar .sidebar-toggle-button {
  display: none;
  position: fixed;
  top: 0;
  left: 20px;
  z-index: 100;
  background-color: var(--color-bg-sidebar);
  border: none;
  padding: 6px 9px;
  border-radius: 5px;
  box-shadow: 0 2px 5px var(--shadow-color-sm);
  cursor: pointer;
  transition: background-color 0.5s;
}

body.layout-sidebar .sidebar-toggle-button button {
  font-size: 30px;
  color: var(--color-text-muted);
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

body.layout-sidebar .sidebar-toggle-button:hover {
  background-color: var(--color-accent-soft);
}





.main-content {
  padding: 20px;
  color: var(--color-text-muted);
  margin-top: 0;
}

body.layout-sidebar .main-content {
  margin-left: 250px;
  margin-right: 15px;
  transition: margin-left 0.5s;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 4px var(--shadow-color-xs);
}

body.layout-header .main-content,
body.layout-onepage .main-content {
  margin-left: 0;
  margin-right: 0;
}

input, 
select,
textarea {
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid var(--color-text-muted);
  box-shadow: 0px 2px 6px var(--shadow-color-input);
  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: var(--color-accent);
  color: var(--color-button-text, var(--color-white));
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow-color-submit);
  min-width: 100px;
}

input[type=submit]:hover {
  background-color: var(--color-bg-sidebar);
  box-shadow: 0 4px 12px var(--shadow-color-submit-hover);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0px 3px 10px var(--shadow-color-lg);
  -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: var(--color-accent); /* Farbe an das neue Farbschema angepasst */
  color: var(--color-button-text, var(--color-white));
  /*box-shadow: 0px 2px 6px var(--shadow-color-md);*/
}

th a {
  color: var(--color-button-text, var(--color-white));
  text-decoration: none;
}

td {
	border: 0px solid var(--color-table-border);
	border-style: none solid solid none;
}

tr:nth-child(even){background-color: var(--color-bg-stripe);}
tr:nth-child(odd){background-color: var(--color-white);}

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: var(--color-button-text, var(--color-white));
	transition: transform 0.5s ease, box-shadow 0.5s ease;
	border-radius: 24px; /* Hinzugefügter border-radius */
	box-shadow: 0 2px 5px var(--shadow-color-nav-base);
	background-color: var(--color-nav-primary);
}

.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 var(--shadow-color-nav-hover);
}

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

.topmenu-buttons a.active-link {
    background-color: var(--color-nav-active); /* Hintergrundfarbe für aktive Links */
    color: var(--color-button-text, var(--color-white)); /* 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(var(--color-border), var(--color-bg-sidebar) .125rem, var(--color-bg-body) .125rem , var(--color-bg-body) .25rem);
    background-size: 1rem 1rem;
    border-radius: 5px;
    box-shadow: 0 1px 2px var(--shadow-color-hr-sm);
    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: var(--color-button-text, var(--color-white));
	transition: transform 0.5s ease, box-shadow 0.5s ease;
	border-radius: 20px; /* Etwas geringerer border-radius */
	box-shadow: 0 2px 5px var(--shadow-color-card-md); /* Leicht leichtere Schatten */
	font-size: 0.95em; /* Kleiner Text für das Untermenü */
	background-color: var(--color-text-mid);
}



.middlemenu-buttons a:hover,
.middlemenu-buttons a:focus {
	transform: scale(1.02);
	box-shadow: 0 2px 7px var(--shadow-color-card-hover);
}

.middlemenu-buttons a:active {
	transform: scale(0.98);
	box-shadow: 0 1px 4px var(--shadow-color-card-active);
}

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

.middlemenu-buttons a.active-link {
    background-color: var(--color-nav-active); /* Hintergrundfarbe für aktive Links */
    color: var(--color-button-text, var(--color-white)); /* Textfarbe für aktive Links */
    /* Weitere Stile, falls gewünscht, für aktive Links */
}

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

h3 {
	color: var(--color-accent-success);
	margin-bottom: 0;
	margin-top: 5px;
	margin-left: 250px;
}
.redfamily {
  color: red; 
}
h4 {
  color: red;
	margin-left: 10px;
}
h5 {
	color: var(--color-text-black);
	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: var(--color-tooltip-bg);
  color: var(--color-white);
  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: var(--color-tooltip-bg) 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 var(--shadow-color-card-md); 
	transition: 0.5s;
}

.infobox:hover {
	box-shadow: 0 3px 6px var(--shadow-color-card-hover); 
}

.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: var(--color-text-dark);
    text-shadow:
      1px 1px 1px var(--color-text-mid),
      2px 2px 1px var(--color-text-soft);
    transition: text-shadow 0.5s;
    opacity: 0.9;
    margin-left: 0;
}

.infobox img {
    padding: 0;
    box-shadow: 0 9px 27px var(--shadow-color-card-xs); 
    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 var(--shadow-color-card-xs);
    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: var(--color-white);
  --jobs-soft: var(--color-bg-body);
  --jobs-accent: var(--color-accent);
  --jobs-accent-soft: var(--color-bg-sidebar);
  --jobs-muted: var(--color-text-muted);
  --jobs-line: var(--shadow-color-xs);
  --jobs-shadow: 0 14px 28px var(--shadow-color-card-xs);
}

.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 var(--shadow-color-card-md);
}

.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 var(--shadow-color-card-xs);
}

.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) {
  body.layout-sidebar .sidebar-toggle-button {
    display: block;
    top: 10px;
    left: 20px;
    z-index: 100;
  }
  body.layout-sidebar .sidebar {
    position: fixed;
    top: 0;
    left: -235px;
    width: 235px;
    height: 100%;
    overflow-y: auto;
    transition: left 0.5s;
    z-index: 99;
  }
  body.layout-sidebar .sidebar.open {
    left: 0;
    top: 80px;
  }
  body.layout-sidebar .sidebar a {
    margin: 10px;
  }
  body.layout-sidebar .sidebar-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--color-sidebar-footer-bg);
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 -2px 5px var(--shadow-color-xs);
    z-index: 98;
  }
  body.layout-sidebar .sidebar-footer a {
    display: inline;
    padding: 5px 10px;
  }
  body.layout-sidebar .main-content {
    position: relative;
    z-index: 1;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 60px;
    width: calc(100% - 40px);
    padding: 20px;
    overflow-x: auto;
    border-radius: 0 0 0 0;
  }
  .logo {
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-height: 77px;
    max-width: 957px;
  }
  .footer {
    left: 0;
    width: 100%;
  }
  .footer {
    position: static;
    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: var(--color-bg-stripe);
	border: 1px solid var(--color-bg-sidebar);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 8px 24px var(--shadow-color-xs);
}

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

.stock-meta {
	font-weight: 700;
	color: var(--color-text-dark);
}

.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: var(--color-accent);
	color: var(--color-button-text, var(--color-white));
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px var(--shadow-color-sm);
}

.stock-form button:hover {
	background-color: var(--color-text-dark);
}

.stock-hint {
	margin-top: 8px;
	color: var(--color-text-muted);
	font-size: 0.9em;
}

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

.stock-suggest-overlay {
	display: none;
}

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

.stock-suggestion:hover {
	background: var(--color-bg-body);
}

.stock-suggestion-label {
	display: block;
	font-weight: 700;
	color: var(--color-text-dark);
}

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

.stock-suggestion-meta {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: var(--color-text-muted);
}

@media (max-width: 900px) {
	.main-content[data-stock-compact='true'] > .logo2,
	.main-content[data-stock-compact='true'] > hr,
	.main-content[data-stock-compact='true'] > h1 {
		display: none;
	}

	.main-content[data-stock-compact='true'] {
		padding-top: 8px;
	}

	.main-content[data-stock-compact='true'] .stock-head {
		justify-content: center;
	}

	.main-content[data-stock-compact='true'] .stock-meta {
		width: 100%;
		text-align: center;
	}

	[data-stock-sheet-open='true'] .stock-suggest-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.18);
		z-index: 40;
	}

	[data-stock-sheet-open='true'] .stock-suggestions {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		margin: 0;
		padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
		background: #fff;
		border-radius: 16px 16px 0 0;
		max-height: 60vh;
		overflow-y: auto;
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
		z-index: 41;
	}

	.main-content[data-stock-compact='true'] [data-stock-sheet-open='true'] .stock-suggestions {
		max-height: 65vh;
	}

	[data-stock-sheet-open='true'] .stock-suggestions::before {
		content: '';
		display: block;
		width: 42px;
		height: 4px;
		background: #d1d5db;
		border-radius: 999px;
		margin: 0 auto 10px;
	}
}

.stock-suggestion-dosage,
.stock-suggestion-substances {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: var(--color-text-muted);
}

.stock-suggestion-abda {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: var(--color-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.stock-suggestion-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85em;
	font-weight: 600;
	color: var(--color-text-muted);
	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: var(--color-text-heading);
}

.stock-status[data-state='empty'] {
	color: var(--color-text-muted);
}

.stock-status[data-state='loading'] {
	color: var(--color-text-dark);
}

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

.stock-msv3 {
	display: grid;
	gap: 6px;
}

.stock-msv3[hidden] {
	display: none;
}

.stock-msv3-row {
	align-items: center;
}

.stock-msv3-action {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.stock-msv3-prompt-row {
	gap: 4px;
	justify-self: start;
}

.stock-msv3-prompt-row .stock-ampel-question {
	width: 14px;
	height: 14px;
}

.stock-msv3-btn {
	border: none;
	border-radius: 8px;
	padding: 4px 10px;
	background-color: var(--color-accent);
	color: var(--color-button-text, var(--color-white));
	font-weight: 700;
	font-size: 0.85em;
	cursor: pointer;
	box-shadow: 0 4px 12px var(--shadow-color-sm);
}

.stock-msv3-btn:hover {
	background-color: var(--color-text-dark);
}

.stock-msv3-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.stock-msv3-status {
	font-size: 0.85em;
	color: var(--color-nav-primary);
}

.stock-msv3-status:empty {
	display: none;
}

.stock-msv3-status[data-state='loading'] {
	color: var(--color-text-dark);
}

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

.stock-msv3-results {
	display: grid;
	gap: 6px;
}

.stock-msv3-item {
	display: block;
}

[data-msv3-done='true'] [data-msv3-prompt] {
	display: none;
}

.stock-msv3-state-available {
	color: var(--color-accent-success);
}

.stock-msv3-state-none {
	color: #dc2626;
}

.stock-msv3-state-error {
	color: #dc2626;
}

.stock-result {
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 14px 16px;
	background: #fff;
	box-shadow: 0 4px 12px var(--shadow-color-xs);
}

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

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

.stock-result-name {
	font-weight: 700;
	color: var(--color-text-dark);
}

.stock-result-locations {
	margin-top: 16px;
	display: grid;
	gap: 10px;
}

.stock-result-location-item {
	display: grid;
	gap: 6px;
}

.stock-result-location-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
	column-gap: 18px;
	align-items: center;
	padding-right: 8px;
}

.stock-result-location-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.95em;
	color: var(--color-text-muted);
}

.stock-result-location-name {
	font-weight: 700;
	color: var(--color-accent);
}

.stock-result-location-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--color-bg-body);
	color: var(--color-accent);
	font-size: 0.75em;
	font-weight: 700;
	width: max-content;
}

.stock-result-location-status-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9em;
	font-weight: 700;
	color: var(--color-text-muted);
	justify-self: start;
	white-space: nowrap;
	padding-top: 2px;
}

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

.stock-result-location-message {
	color: var(--color-nav-primary);
}

.stock-result-pzn {
	font-size: 0.85em;
	color: var(--color-text-muted);
}

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

.stock-result-dosage,
.stock-result-substances {
	font-size: 0.85em;
	color: var(--color-text-muted);
}

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

.stock-abda-field {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 0.85em;
	color: var(--color-text-muted);
}

.stock-abda-label {
	font-weight: 600;
	color: var(--color-text-dark);
}

.stock-abda-sep {
	color: var(--color-text-muted);
}

.stock-abda-value {
	word-break: break-word;
}

.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-question {
	background: #e5e7eb;
	position: relative;
}

.stock-ampel-question::after {
	content: '?';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	font-size: 10px;
	font-weight: 700;
	color: #4b5563;
}

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

.stock-status-available {
	color: var(--color-accent-success);
}

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

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

.stock-status-unknown {
	color: var(--color-text-muted);
}

.stock-status-blocked {
	color: var(--color-text-dark);
}

.stock-result-message {
	margin-top: 6px;
	color: var(--color-nav-primary);
}

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

.notdienst-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.9em;
	color: var(--color-text-muted);
}

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

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

.notdienst-day-title {
	margin: 0;
	color: var(--color-accent);
	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 var(--color-border);
	border-left: 6px solid var(--color-accent);
	background: var(--color-bg-body);
	box-shadow: 0 4px 12px var(--shadow-color-xs);
	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: var(--color-text-dark);
}

.notdienst-address {
	color: var(--color-text-muted);
	font-size: 0.95em;
}

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

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

.notdienst-map:hover {
	background: var(--color-bg-stripe);
}

.notdienst-map--primary {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-button-text, var(--color-white));
}

.notdienst-map--primary:hover {
	background: var(--color-text-dark);
}

.notdienst-phone {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--color-accent);
	color: var(--color-button-text, var(--color-white));
	text-decoration: none;
	font-weight: 700;
	font-size: 0.85em;
	width: max-content;
	justify-self: start;
}

.notdienst-phone:hover {
	background: var(--color-text-dark);
}

.notdienst-distance {
	font-weight: 700;
	color: var(--color-accent);
	justify-self: end;
}

.notdienst-empty-inline {
	color: var(--color-text-muted);
	font-weight: 600;
}

.notdienst-empty {
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px dashed var(--color-border);
	background: var(--color-bg-stripe);
	display: grid;
	gap: 8px;
}

.notdienst-empty p {
	margin: 0;
}

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

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

@media screen and (min-width: 1700px) {
	body.layout-sidebar .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;
	}
	.stock-result-location-row {
		grid-template-columns: minmax(0, 1fr) minmax(110px, 140px);
		column-gap: 10px;
	}
	.stock-result-location-main {
		min-width: 0;
	}
	.stock-result-location-name {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.stock-result-location-status-row {
		padding-top: 3px;
	}
	.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;
}

/* ==========================================================================
   Header + OnePage Layout
   ========================================================================== */

body.layout-header .site-header,
body.layout-onepage .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: var(--color-bg-sidebar);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px var(--shadow-color-xs);
}

body.layout-header .brand,
body.layout-onepage .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.layout-header .logo,
body.layout-onepage .logo {
  max-height: 50px;
}

body.layout-header .brand-title,
body.layout-onepage .brand-title {
  color: var(--color-text-muted);
  font-size: 1.2em;
  font-weight: 700;
}

body.layout-header .brand-title:empty,
body.layout-onepage .brand-title:empty {
  display: none;
}

body.layout-header .nav-horizontal,
body.layout-onepage .nav-anchor {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

body.layout-header .nav-horizontal a,
body.layout-onepage .nav-anchor a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
  font-weight: 600;
  font-size: 0.95em;
}

body.layout-header .nav-horizontal a:hover,
body.layout-onepage .nav-anchor a:hover {
  background-color: var(--color-accent-soft);
  color: var(--color-text-dark);
}

body.layout-header .nav-horizontal a.active,
body.layout-onepage .nav-anchor a.active {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 700;
}

body.layout-header .nav-toggle,
body.layout-onepage .nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

body.layout-header .footer-legal,
body.layout-onepage .footer-legal {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background-color: var(--color-bg-body);
}

body.layout-header .footer-legal a,
body.layout-onepage .footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s;
}

body.layout-header .footer-legal a:hover,
body.layout-onepage .footer-legal a:hover {
  color: var(--color-text-dark);
}

/* OnePage section spacing */
body.layout-onepage .section {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

body.layout-onepage .section:last-child {
  border-bottom: none;
}

/* Responsive: Header/OnePage mobile */
@media screen and (max-width: 768px) {
  body.layout-header .nav-toggle,
  body.layout-onepage .nav-toggle {
    display: block;
  }

  body.layout-header .nav-horizontal,
  body.layout-onepage .nav-anchor {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-sidebar);
    box-shadow: 0 4px 8px var(--shadow-color-xs);
    padding: 8px 0;
    z-index: 99;
  }

  body.layout-header .nav-horizontal[open],
  body.layout-onepage .nav-anchor[open] {
    display: flex;
  }

  body.layout-header .nav-horizontal a,
  body.layout-onepage .nav-anchor a {
    padding: 12px 20px;
    border-radius: 0;
  }

  body.layout-header .site-header,
  body.layout-onepage .site-header {
    position: relative;
  }
}

.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;
}
