
/***********************HAUPTGERUEST************************/
/* Redesign 2026: Modernes, aufgefrischtes Design */

/* Hausschrift: ScalaSansLF
   Regular + Bold unter EINER Family registrieren mit korrekten font-weights,
   damit Browser bei <h1>/<strong>/font-weight:bold die echte Bold-Datei nutzen
   und KEIN Fake-Bold synthetisieren (Firefox synthetisiert deutlich kräftiger
   als Chrome/Edge — sonst erscheint Schrift im Firefox zu fett). */
@font-face { font-family: ScalaSansLF; src: url("fonts/ScalaSansLFRegular.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: ScalaSansLF; src: url("fonts/ScalaSansLFBold.woff2") format("woff2"); font-weight: bold; font-style: normal; font-display: swap; }
/* Alias-Families für evtl. externe Verwendung (TinyMCE Editor Content etc.) */
@font-face { font-family: ScalaSansLFRegular; src: url("fonts/ScalaSansLFRegular.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: ScalaSansLFBold; src: url("fonts/ScalaSansLFBold.woff2") format("woff2"); font-weight: bold; font-style: normal; font-display: swap; }
/* FiraSans: nicht mehr aktiv genutzt, aber als Fallback-Option vorgehalten */
@font-face { font-family: FiraSans-Regular; src: url("fonts/FiraSans-Regular.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: FiraSans-Light; src: url("fonts/FiraSans-Light.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: FiraSans-Thin; src: url("fonts/FiraSans-Thin.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: FiraSans-Medium; src: url("fonts/FiraSans-Medium.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: FiraSans-MediumItalic; src: url("fonts/FiraSans-MediumItalic.woff2") format("woff2"); font-weight: normal; font-style: italic; font-display: swap; }
@font-face { font-family: FiraSans-SemiBold; src: url("fonts/FiraSans-SemiBold.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: FiraSans-Bold; src: url("fonts/FiraSans-Bold.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: Rubik-Bold; src: url("fonts/Rubik-Bold.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: swap; }

:root {
  --primary: #4A3D8F;        /* Lindenhof Lila (aus Logo) */
  --primary-light: #6B5FAE;
  --primary-dark: #352D6A;
  --accent: #E8841A;         /* Orange Akzent */
  --accent-hover: #D0730F;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --bg: #F4F5F7;
  --white: #FFFFFF;
  --border: #DDE0E4;
  --border-light: #ECEDF0;
  --success: #1B8A3E;
  --error: #D32F2F;
  --warning: #D4A017;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --font: ScalaSansLF, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-bold: ScalaSansLF, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-height: 52px;
}

/* box-sizing: border-box global AUSSER auf der Login-Seite
   und den Layout-Containern (deren Padding-Maße auf content-box basieren) */
*, *::before, *::after {
  box-sizing: border-box;
}
.header_start,
.header_start ~ .content,
.header_start ~ .content * {
  box-sizing: content-box;
}
/* Layout-Container: Original-Maße basieren auf content-box */
.inhalt_center_ganz,
.inhalt_center,
.inhalt_right,
.center_ganz,
.center_breit,
.left_neu,
.right {
  box-sizing: content-box;
}

body {
  background-color: var(--bg);
  padding: 20px;
  margin: 0px;
  text-align: center;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  /* Browser-übergreifend identische Schrift-Stärke:
     - font-synthesis: none → kein Fake-Bold/Italic, wenn Schnitt fehlt
     - Smoothing-Hints für gleichmäßige Anti-Aliasierung (Webkit/macOS) */
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Hausschrift Bold für fette Elemente */
strong, b, h1, h2, h3, h4, h5, h6, th {
  font-family: var(--font-bold);
}

#inhalt {
  text-align: left;
  vertical-align: middle;
  margin: 0px auto;
  padding: 0px;
  width: 1200px;
  background-color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.navigation {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  min-height: var(--nav-height);
  position: relative;
  z-index: 1000;
}

.content {
  clear: left;
  color: var(--text);
  font-size: 0.85em;
  line-height: 1.5em;
  padding-top: 0;
}

.content a, a:link, a:visited {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.2s;
}

.content a:hover {
  color: var(--accent);
}

.text_rot {
  color: var(--error);
}

.text_orange {
  color: var(--warning);
}

.text_gruen {
  color: var(--success);
}

#option_postfach {
  display: none;
}
#option_strasse {
  display: none;
}
.option_strasse_postfach {
  margin-left: 100px;
  margin-bottom: 4px;
  margin-top: -4px;
}

.neuer_eintrag_spalten_organisation {
  width: 260px;
  float: left;
}

.such_button {
  float: left;
  padding: 10px 16px;
  text-decoration: none;
  background: var(--bg);
  transition: all 0.2s;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  border: 1px solid var(--border);
  margin: 2px;
}

.such_button:hover {
  background: var(--border);
  color: var(--primary);
}

.such_button_aktiv {
  margin: 2px;
  float: left;
  padding: 10px 16px;
  background: var(--white);
  transition: all 0.2s;
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid var(--primary);
}

.such_button_aktiv:hover {
  background: var(--bg);
  color: var(--accent);
  cursor: default;
}

.such_form input[type="text"] {
  border: 1px solid var(--border);
  padding: 8px 12px;
  margin-top: -10px;
  vertical-align: middle;
  transition: all 0.2s;
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.9em;
}

#such_form input[type="text"] {
  margin-top: -8px !important;
}

.such_form input[type="text"]:focus {
  border-color: var(--primary);
  color: var(--text);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 61, 143, 0.12);
}

.such_funktion {
  margin-top: 10px;
  height: 38px;
}



/***********************LAYOUT-SPALTEN************************/
.left {
  width: 280px;
  float: left;
  margin-top: 20px;
  overflow: hidden;
}

.left_neu {
  width: 280px;
  float: left;
  margin-top: 0px;
  overflow: hidden;
}

.left_neu ul {
  margin-left: 20px;
  padding: 0px;
}

.inhalt_left {
  padding-left: 85px;
  padding-top: 10px;
}

.inhalt_left_start_neu {
  padding-left: 3px;
  padding-top: 0px;
}

.inhalt_left a:hover {
  background: white;
}

.center {
  width: 400px;
  float: left;
  font-size: 0.85em;
  line-height: 1.5em;
}

.center_breit {
  width: 650px;
  min-height: 400px;
  float: left;
  overflow: hidden;
  margin-top: 20px;
}

.center_ganz {
  width: 920px;
  min-height: 400px;
  float: left;
  overflow: hidden;
  margin-top: 20px;
}

.inhalt_center {
  padding: 30px 0px 20px 0px;
}

.inhalt_center_ganz {
  padding: 30px 0px 20px 0px;
}

/* Tabellen im Content-Bereich: volle Breite (nur 3-Spalten-Layout) */
.inhalt_center table {
  width: 100%;
}

.right {
  float: left;
  width: 240px;
  overflow: hidden;
  margin-top: 20px;
  margin-left: 30px;
}

.inhalt_right {
  padding-top: 0px;
}

.login_anzeige {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-light);
  padding: 6px 16px;
  line-height: 1.4;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.login_anzeige_links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login_anzeige_links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.login_anzeige_links a:hover {
  color: var(--text);
}

.footer {
  width: 1200px;
  margin: 0px;
  margin-top: 30px;
  padding: 0px;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
}

.inhalt_footer {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  font-weight: normal;
  color: var(--text-light);
}

.footer .inhalt_footer a {
  text-decoration: none !important;
  color: var(--primary);
}

.footer .inhalt_footer a:hover {
  color: var(--accent);
}

.search_image {
  position: absolute;
  left: 848px;
  top: 35px;
}

.menu_left_spacer {
  width: 240px;
  padding-left: 20px;
  padding-top: 20px;
}

/*********************************SONDERELEMENTE********************************/
.nodisplay {
  display: none;
}

.ohne {
  text-decoration: none !important;
}

fieldset {
  min-height: 30px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

legend {
  font-weight: 600;
  padding-bottom: 5px;
  color: var(--primary);
  font-size: 0.95em;
}

form {
  display: inline;
}

.red {
  color: var(--error);
}

.green {
  color: var(--success);
}

img {
  border: 0px;
}

.form {
  width: 350px;
  overflow: hidden;
}

.form_row {
  clear: left;
  min-height: 32px;
  margin-bottom: 4px;
}

.form_row_2 {
  clear: left;
  margin-bottom: 15px;
  min-height: 12px;
}

.spalte1 {
  float: left;
  width: 120px;
  font-weight: 500;
  color: var(--text-light);
  padding-top: 4px;
}

.fat {
  font-weight: bold;
  width: 120px !important;
}

.spalte2 {
  float: left;
  width: 400px;
}

.spalte3 {
  float: left;
  width: 276px;
}

.spalte3 #plz {
  float: left;
  width: 75px;
}

.spalte3 #ort {
  margin-left: 3px;
  width: 184px;
}

.spalte1d {
  float: left;
  width: 160px;
}

.spalte2d {
  float: left;
  width: 400px;
}

.text_in_navi {
  font-size: 0.8em;
  color: white;
  padding-left: 5px;
  font-weight: bold;
}

.submit_navi {
  margin: 2px 0px 2px 5px;
  border: 1px solid white;
  padding: 0px;
  font-size: 10px;
  background: white;
}

.navi_input {
  width: 85px;
  font-size: 10px;
  margin-left: 5px;
}

.submit {
  padding-top: 8px;
}

.select {
  width: 275px;
  overflow: hidden;
}

.input {
  width: 268px;
}

.input_strasse {
  width: 208px;
}

.input_strasse_nummer {
  width: 50px;
}

.input_ort {
  width: 50px;
}

.input_plz {
  width: 204px;
}

.input_postfach {
  float: left;
  width: 75px;
}

.input_postfachnummer {
  margin-left: 3px;
  width: 184px;
}

.area {
  width: 265px;
  height: 70px;
}

.right .input {
  width: 142px;
}

.right .select {
  width: 147px;
  overflow: hidden;
}

.content h1 {
  color: var(--primary);
  font-size: 1.4em;
  display: inline;
  font-weight: 700;
  line-height: 1.4em;
}

.content h2 {
  color: var(--primary);
  font-size: 1.2em;
  display: inline;
  font-weight: 600;
}

.center p {
  margin-top: 0px;
}

.right h2 {
  color: var(--primary);
  font-size: 1.0em;
  display: inline;
  font-weight: 600;
}

.right form {
  padding: 0px;
  margin: 0px;
}

.ueber {
  color: var(--primary);
  font-size: 0.9em;
  font-weight: 600;
}

.right p {
  margin-top: 0px;
}

.cleaner {
  clear: left;
  height: 1px;
  overflow: hidden;
}

/* Globale Tabellen-Styles */
table {
  border: 1px solid var(--border);
  padding: 3px;
  border-collapse: collapse;
  border-radius: var(--radius);
}

td {
  padding: 4px 10px 4px 4px;
}

.titel {
  float: left;
  width: 300px;
}

.bearbeiten {
  float: left;
  width: 100px;
}

/***********************NAVIGATION – Mega-Dropdown ************************************/

/* Nav-Container */
#nav {
  display: flex;
  align-items: stretch;
  padding: 0;
  padding-right: 0;
  flex-wrap: nowrap;
  margin: 0;
  list-style: none;
}

#nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Haupt-Items */
#nav > li {
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.12);
}

#nav > li > a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78em;
  padding: 0 10px;
  height: var(--nav-height);
  transition: all 0.2s;
  line-height: 1.25;
}

#nav > li > a:hover,
#nav > li:hover > a {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Aktiver Zustand */
#nav > li > a.active {
  background: rgba(255,255,255,0.18);
  border-bottom: 2px solid var(--accent);
}

/* Dropdown-Pfeil für Items mit Untermenü */
#nav > li.has-sub > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255,255,255,0.6);
  margin-left: 6px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

#nav > li.has-sub:hover > a::after {
  border-top-color: #fff;
  transform: rotate(180deg);
}

/* --- Standard-Dropdown (schmale Listen) --- */
#nav > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
  padding: 6px 0;
  list-style: none;
}

#nav > li:hover > ul,
#nav > li.sfhover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown-Items */
#nav li ul li {
  border-bottom: none;
}

#nav li ul li a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.82em;
  padding: 8px 18px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

#nav li ul li a:hover {
  background: var(--bg);
  color: var(--primary);
}

/* --- Mega-Dropdown (breite Panels) --- */
#nav > li.mega {
  position: static;
}

#nav > li.mega > ul {
  left: 0;
  right: 0;
  min-width: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 12px;
  gap: 4px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

#nav > li.mega > ul > li > a {
  border-radius: var(--radius);
  padding: 10px 14px;
  white-space: normal;
}

#nav > li.mega > ul > li > a:hover {
  padding-left: 14px;
}

/* Nav-Icons (SVG inline) */
.nav-icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 4px;
  flex-shrink: 0;
}

/* Rechtsbündige Nav-Items (Benutzeransicht, Logout) */
#nav > li.nav-right {
  margin-left: auto;
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.12);
}
#nav > li.nav-right + li.nav-right {
  margin-left: 0;
}

/* .navi_intra / .navi_intra_ohnehand – Breite nicht mehr fix */
.navi_intra {
  cursor: pointer;
}

.navi_intra_ohnehand {
  cursor: default;
}

/****************************NAVIGATION ENDE*****************************************/
#search {
  z-index: 10;
  position: absolute;
  left: 740px;
  top: 40px;
}

#search .suchfeld {
  width: 70px;
  height: 13px;
  font-size: 10px;
  background-color: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 3px;
}

#search .image {
  border: 0px;
  position: absolute;
  top: 0px;
  left: 71px;
}

/****************************Dokumentenmanager*****************************************/
.cleaner2 {
  clear: left;
  height: 5px;
  overflow: hidden;
}

.doku_row {
  clear: left;
}

.doku_left {
  width: 45px;
  float: left;
}

doku_right {
  float: left;
  width: 370px;
}

.inner_left {
  float: left;
  width: 190px;
  overflow: hidden;
}

.inner_right {
  float: left;
  width: 145px;
  overflow: hidden;
}

.inhalt_inner_left {
  padding-right: 20px;
}

.abstand5 {
  height: 5px;
  overflow: hidden;
}

.winzig {
  font-size: 10px;
}


/************************* Fehlermeldungen *************************/
.error {
  color: var(--error);
  font-weight: 500;
}

.fatalerror {
  border: 1px solid var(--error);
  margin: 4px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: #FFF5F5;
  color: var(--error);
}

/****BEGLEITPLAN********/
.longinput {
  width: 400px !important;
}

.longselect {
  width: 405px !important;
}

.sttextarea {
  width: 400px;
  height: 150px;
}

.spalte2_begleitplan {
  width: 360px;
  float: left;
}


/*******BEGLEITPLAN ENDE****/
/****************** Nachrichten Startseite***************************/
.nachricht {
  width: 550px;
  margin-top: 5px;
}

.margin10 {
  margin-bottom: 10px;
}

.nachrbild {
  float: left;
  width: 140px;
  overflow: hidden;
}

.nachrabstand {
  float: left;
  width: 400px;
}

.line {
  height: 10px;
  clear: left;
  border-bottom: 1px solid var(--border);
}

.links_start_bild {
  float: left;
  width: 650px;
  min-height: 30px;
}
.links_start_bild table {
  width: 100%;
}

.rechts_start_bild {
  float: left;
  width: 240px;
  min-height: 30px;
  margin-left: 30px;
}

.rechts_start_bild .start_te {
  padding-top: 10px;
  font-style: italic;
}

.unter_logo {
  padding: 20px 30px 0px 18px;
}

.unter_logo a {
  color: var(--text-light);
  transition: color 0.2s;
}

.unter_logo a:hover {
  color: var(--primary);
}

/****************** Nachrichten ***************************/
.startseite_foto {
  float: left;
  width: 100px;
}

.startseite_text {
  width: 280px;
  float: left;
  padding-left: 10px;
  font-size: 12px;
  color: var(--text-light);
}

.startseite_text h2 {
  margin: 0px;
  padding: 0px;
  font-size: 15px;
  color: var(--text);
  display: block !important;
}

.startseite_text a {
  color: var(--text-light);
  display: inline;
}

.startseite_text a:hover {
  color: var(--primary);
}

.startseite_nachricht_inhalt {
  padding-bottom: 10px;
}

.startseite_schrift {
  width: 400px;
  float: left;
  padding-left: 50px;
  color: var(--text-light);
  font-size: 24px;
}

.meldungen_container {
  margin: 0px;
  padding: 0px;
  width: 570px;
}

.meldungen_container h3 {
  margin: 0px;
  padding: 0px;
  color: var(--text);
}

.meldungen_teaser {
  font-weight: 600;
  color: var(--text-light);
}

.meldungen_kurztext {
  padding-bottom: 20px;
  font-style: italic;
}

.meldungen_foto {
  clear: left;
  float: left;
  padding-bottom: 20px;
  margin-top: 20px;
  margin-right: 20px;
}

.meldungen_langtext {
  float: left;
  padding-bottom: 20px;
  margin-top: 20px;
  width: 295px;
}

.padding_left_20 {
  padding-left: 20px;
}

/********** Tagesessen*******/
.inhalt_tagesessen {
  width: 620px;
  float: left;
  margin: 10px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
}

.inhalt_tagesessen .formtabelle {
  width: 520px;
  margin: 20px 0px 0px 0px;
}

.inhalt_tagesessen .zeile {
  clear: both;
  padding-top: 3px;
  padding-bottom: 3px;
}

.inhalt_tagesessen .zeile2 {
  width: 600px;
  clear: both;
  padding-top: 6px;
  padding-bottom: 4px;
  border-top: 1px solid var(--border);
}

.inhalt_tagesessen label.spalte1 {
  width: 285px;
  float: left;
}

.inhalt_tagesessen .spalte1 {
  width: 295px;
  float: left;
}

.inhalt_tagesessen .spalte2 {
  width: 295px;
  float: right;
}

.inhalt_tagesessen .spalte3 {
  width: 60px;
  float: left;
}

.inhalt_tagesessen .spalte4 {
  width: 220px;
  padding-right: 10px;
  float: left;
}

.inhalt_tagesessen .spalte5 {
  width: 60px;
  float: left;
}

.inhalt_tagesessen .spalte6 {
  width: 215px;
  float: left;
}

.inhalt_tagesessen fieldset {
  width: 605px;
  overflow: hidden;
  margin: 5px 5px 5px 0px;
  padding: 5px 5px 5px 5px;
}

.inhalt_tagesessen .textfeld {
  width: 290px;
  height: 130px;
}

.menue {
  font-style: italic;
  font-weight: bold;
}

.tag {
  font-weight: bold;
  font-size: 12px;
  padding-bottom: 6px;
}

.te_ueberschrift {
  color: var(--primary);
  font-size: 1.2em;
  font-weight: 600;
  padding-right: 200px;
}


.pager {
  display: block;
  font-size: .8em;
  border: 1px solid var(--border);
  text-align: center;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: var(--radius);
  padding: 4px 8px;
}

/*******************ORGANIGRAMM*************************************/
.fieldset_organigramm {
  margin-left: 15px;
  border: 1px solid var(--border);
  padding: 8px 15px;
  margin-bottom: 10px;
  margin-top: 5px;
  border-radius: var(--radius);
}

.suche {
  margin-left: 0px;
}

.organigramm_links {
  float: left;
  width: 300px;
}

.organigramm_rechts {
  float: left;
  width: 252px;
  text-align: right;
}

/*******************ORGANIGRAMM Ende************************************/

/*******************Arbeitssysteme*************************************/
.ul_rechts {
  margin: 0px;
  list-style-type: none;
}

.ul_ul_rechts {
  margin-left: 30px;
}

.breit {
  width: 450px;
}

.active_rechts {
  text-decoration: none;
  color: var(--success);
}

.table_as td {
  border: 1px solid var(--border);
  padding: 2px;
}

/*******************Arbeitssysteme ENDE********************************/
/*******************Speiseplan********************************/
.speiseplan_table {
  border-collapse: collapse;
}

.speiseplan_table td {
  padding: 6px 8px;
  border: 1px solid var(--border);
}

.submit_in {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  cursor: pointer;
  color: white;
  border-radius: var(--radius);
  padding: 4px 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.submit_in:hover {
  background: var(--primary-dark);
}

/*******************Speiseplan ENDE********************************/
.readonly {
  border: 0px;
  background: var(--bg);
}

.ulohne {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
}

.ulohne li {
  margin: 0px;
  padding: 0px;
}

.sttexarea {
  height: 160px;
  width: 400px;
}

.input_standard {
  width: 300px;
}

.select_standard {
  width: 306px;
}

.breiter {
  width: 400px;
}

/*******************Login Erneuern********************************/

.clear {
  clear: both;
}

.login_erneuern_inhalt {
  padding: 40px;
  color: var(--text);
  font-size: 0.85em;
  line-height: 1.5em;
}

.login_erneuern_inhalt h1 {
  font-size: 32px;
  line-height: 60px;
  display: inline;
  color: var(--primary);
}

.login_erneuern_inhalt form {
  float: left;
  display: inline;
}

.login_erneuern_inhalt #login_erneuern_meldung {
  font-size: 15px;
  color: var(--error);
}

.filter-box-left {
  height: 100px;
}

/************ Sonstiges ************************/
table.adressdatenbank_fixed {
  table-layout: fixed;
  width: 622px;
}

table.adressdatenbank_fixed td, table.adressdatenbank_fixed th {
  word-wrap: break-word;
  overflow: hidden;
}

table.adressdatenbank_fixed td:last-child {
  width: 60px;
}

/* Entwicklungsbericht */
div.entwicklungsbericht_person_data {
  margin-top: 10px;
}

div.entwicklungsbericht_person_data h3 {
  background: var(--bg);
  padding: 10px 8px 14px;
  margin: 0;
  border-radius: var(--radius);
}

div.entwicklungsbericht_master {
  background: var(--border-light);
  max-height: 33px;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(.77,0,.18,1);
}

div.entwicklungsbericht_person_data div.punkte_counter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3em;
  background: var(--bg);
  font-size: 13px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

div.entwicklungsbericht_person_data div.punkte_counter div.punkte {
  width: 575px;
  text-align: center;
  margin: 0 auto;
}

div.entwicklungsbericht_person_data div.punkte_counter h3 {
  background: unset;
  display: inline-block;
}

div.entwicklungsbericht_person_data div.punkte_counter h3 i {
  font-style: normal;
  color: #fff;
  padding: 11px;
  margin: 0 12px 0 8px;
  background: var(--primary-light);
  border-radius: 4px;
}

div.entwicklungsbericht_person_data div.punkte_counter h3 {
  padding: 0;
}

div.entwicklungsbericht_person_data div.punkte_counter h3.punkte i {
  display: inline-block;
  width: 35px;
  text-align: center;
  padding: 12px 11px;
}

div.entwicklungsbericht_person_data div.punkte_counter button {
  border: none;
  background: var(--border);
  padding: 10px 16px;
  transition: all 0.3s cubic-bezier(.77,0,.18,1);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  top: 0;
  position: relative;
  border-radius: var(--radius);
}

div.entwicklungsbericht_person_data div.punkte_counter button:hover {
  background: var(--border-light);
}

div.entwicklungsbericht_person_data div.punkte_counter button[disabled] {
  cursor: no-drop;
  opacity: 0.5;
}

div.entwicklungsbericht {
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--bg);
  max-height: 33px;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(.77,0,.18,1);
}

div.entwicklungsbericht.entwicklungsbericht_small {
  transition: max-height 0.4s cubic-bezier(.77,0,.18,1);
}

div.entwicklungsbericht_master h3 {
  margin: 0;
  background: var(--border);
  padding: 8px;
  height: 17px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

div.entwicklungsbericht_master h3:hover {
  background: #C8C8C8;
}

div.entwicklungsbericht_master div.entwicklungsbericht h3 {
  background: var(--border-light);
  padding-left: 1.5em;
}

div.entwicklungsbericht_master h3 i {
  float: right;
}

div.entwicklungsbericht_master h3 i.fa-times-circle {
  position: absolute;
  float: none;
  right: 0;
  font-size: 17px;
  margin-top: -8px;
  padding: 8px 6px;
}

div.entwicklungsbericht h3 i.fa-times-circle {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(.77,0,.18,1);
}

div.entwicklungsbericht.entwicklungsbericht_err h3 i.fa-times-circle {
  background: var(--error) !important;
  color: #fff;
  opacity: 1;
  visibility: visible;
  border-radius: 50%;
}

div.entwicklungsbericht_master h3 i.root_nummr {
  float: none;
  position: absolute;
  font-size: 18px;
  font-style: normal;
  display: inline-block;
  margin: -8px 0 0 -57px;
  padding: 8px 12px;
  background: var(--primary-light);
  color: #fff;
  height: 17px;
  width: 25px;
}

div.entwicklungsbericht_master h3 i.under_object {
  float: none;
  font-size: 17px;
  font-style: normal;
  display: inline-block;
  margin: -8px 10px 0 -23px;
  padding: 8px 12px;
  background: var(--primary-dark);
  color: #fff;
  height: 17px;
}

div.entwicklungsbericht table td:first-child {
  width: 120px;
}

div.entwicklungsbericht table, div.entwicklungsbericht table td:last-child, div.entwicklungsbericht table textarea {
  max-width: 470px;
  min-width: 470px;
  width: 100%;
  border: 0;
}

div.entwicklungsbericht table.full_width {
  padding-right: 5px;
}

div.entwicklungsbericht table.full_width td {
  padding: 2px;
}

div.entwicklungsbericht table.full_width, div.entwicklungsbericht table.full_width td, div.entwicklungsbericht table.full_width td textarea, div.anfragenmanagement_zus td {
  max-width: 100%;
  min-width: 100%;
  width: 100%;
}

div.entwicklungsbericht table.full_width td textarea {
  max-width: 580px;
}

div.entwicklungsbericht table textarea {
  min-height: 150px;
  height: 200px;
  max-height: 750px;
}

div.entwicklungsbericht p {
  text-align: center;
}

div.entwicklungsbericht table p {
  text-align: left;
}

div.entwicklungsbericht.entwicklungsbericht_open {
  max-height: 3000px;
}

div.entwicklungsbericht_master.entwicklungsbericht_master_open {
  max-height: 7500px;
}

div.entwicklungsbericht_master.entwicklungsbericht_master_close div.entwicklungsbericht {
  animation: slide_up 0.5s cubic-bezier(.77,0,.18,1);
  opacity: 0;
  visibility: hidden;
}

div.entwicklungsbericht_master.entwicklungsbericht_master_open div.entwicklungsbericht {
  animation: slide_down 0.5s cubic-bezier(.77,0,.18,1);
  opacity: 1;
  visibility: visible;
}

div.entwicklungsbericht_master.entwicklungsbericht_master_close, div.entwicklungsbericht.entwicklungsbericht_close {
  max-height: 33px;
  border-bottom: 0;
}

div.entwicklungsbericht.entwicklungsbericht_small.entwicklungsbericht_open {
  max-height: 200px;
}

@keyframes slide_down {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes slide_up {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

div.entwicklungsbericht div.profil, div.entwicklungsbericht div.hilfe {
  margin: 15px auto 7px;
  width: 194px;
}

div.entwicklungsbericht div.hilfe {
  width: 130px;
}

div.entwicklungsbericht err {
  text-align: center;
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

div.entwicklungsbericht table input,
div.anfragenmanagement_zus input {
  margin: 0 auto 5px;
  display: block;
  padding: 10px;
  font-size: 15px;
  text-align: center;
  width: 20px;
}

div.entwicklungsbericht table input[type="radio"],
div.entwicklungsbericht table input[type="checkbox"] {
  text-align: left !important;
  width: 20px !important;
  margin: 0 10px;
  display: inline;
}

div.entwicklungsbericht table input[type="checkbox"] {
  margin: 0;
}

div.anfragenmanagement_zus {
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--bg);
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(.77,0,.18,1);
}

div.entwicklungsbericht div.profil p, div.entwicklungsbericht div.hilfe p {
  display: inline-block;
  margin: 5px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  background: var(--border);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.77,0,.18,1);
  border-radius: var(--radius);
}

div.entwicklungsbericht div.profil p.active, div.entwicklungsbericht div.hilfe p.active {
  border: 1px solid var(--success);
  background: var(--success);
  color: #fff;
  cursor: default;
}

div.entwicklungsbericht div.profil p:hover, div.entwicklungsbericht div.hilfe p:hover {
  background: #B4B4B4;
  border: 1px solid var(--success);
}

div.entwicklungsbericht div.profil p.active:hover, div.entwicklungsbericht div.hilfe p.active:hover {
  border: 1px solid var(--border);
  background: #148228;
}

div.entwicklungsbericht_master div.entwicklungsbericht span.refresh {
  background: var(--success);
  position: absolute;
  margin-left: -35px;
  width: 15px;
  height: 17px;
  font-size: 17px;
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 0 0 var(--radius) 0;
}

div.entwicklungsbericht span.refresh i {
  transition: all 0.8s;
}

div.entwicklungsbericht_master div.entwicklungsbericht span.refresh:hover i {
  transform: rotate(360deg);
}

div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_5 tr.punkt_5_title p {
  text-align: center;
  margin-bottom: 0;
}

div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_5 div.profil {
  width: 148px;
}

div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_5 tr.vorundzuname td, div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_3 tr.vorundzuname td, div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_0 tr.vorundzuname td {
  max-width: auto;
  min-width: auto;
  width: 230px;
}

div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_5 tr.vorundzuname td:first-child,
div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_3 tr.vorundzuname td:first-child,
div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_0 tr.vorundzuname td:first-child,
div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_0 tr.select td:first-child,
div.anfragenmanagement_zus tr td:first-child {
  padding-left: 15px;
}

div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_5 tr.vorundzuname td input,
div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_3 tr.vorundzuname td input,
div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_0 tr.vorundzuname td input,
div.entwicklungsbericht_master div.entwicklungsbericht table.full_width.punkt_0 tr.select td select,
div.anfragenmanagement_zus select,
div.anfragenmanagement_zus input {
  width: 280px;
  padding: 5px;
  text-align: left;
  font-size: 12px;
}

div.anfragenmanagement_zus input {
  width: 260px;
  margin: 0;
}

.extra_input {
  width: 280px !important;
  padding: 5px !important;
  text-align: left !important;
  font-size: 12px !important;
  margin-top: 20px !important;
}

div.entwicklungsbericht_master p.profilTitle {
  text-align: center;
}

.downWindow {
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  overflow: hidden;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  backdrop-filter: blur(3px);
}

.downWindow .window {
  left: 50%;
  top: 50%;
  background: var(--white);
  display: inline-block;
  padding: 24px 28px;
  position: relative;
  text-align: center;
  transform: translateY(-50%) translateX(-50%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.downWindow .window p {
  margin-top: 0;
}

.downWindow .window a {
  background: var(--primary);
  padding: 8px 16px;
  margin: 0 5px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s;
  border-radius: var(--radius);
  font-weight: 500;
}

.downWindow .window a:hover {
  background: var(--primary-dark);
}

fieldset.compulsoryField.fail {
  border: 2px solid var(--error);
}

fieldset.compulsoryField.fail legend, li.compulsoryField.fail input {
  color: var(--error);
}

li.compulsoryField.fail {
  color: white;
  font-weight: bold;
  background: var(--error);
  border-radius: var(--radius);
}

.wartungsBlock .spalte1 {
  width: 150px;
}

.gerateWartung {
  padding-top: 20px;
  max-width: 700px;
}

.gerateWartung h3 {
  margin: 0;
  font-weight: bold;
}

.gerateWartung h5 {
  font-weight: 100;
  margin: 0;
}

.gerateWartung hr {
  margin: 3px 0 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.gerateWartung table {
  width: 100%;
  position: relative;
  border: 1px solid var(--border);
  padding: 0;
  margin: 2px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.gerateWartung table thead {
  padding: 4px 2px;
  background: var(--bg);
}

.gerateWartung table td {
  border: 0;
  padding: 4px;
  text-align: left;
}

.gerateWartung table tr {
  border: 0;
  padding: 0;
}

.gerateWartung table tbody td {
  padding: 6px 4px;
}

.gerateWartung table tbody tr {
  transition: opacity 0.3s;
}

.gerateWartung table tbody tr.myItem {
  background: #B8E6B8;
}

.gerateWartung table tbody tr.myItem.expired {
  background: #F5B0B6;
}

.gerateWartung table tbody tr:nth-child(2n+0) {
  background: var(--bg);
}

.gerateWartung table tbody tr:nth-child(2n+0).myItem {
  background: #A5D9A5;
}

.gerateWartung table tbody tr:nth-child(2n+0).myItem.expired {
  background: #F09EA8;
}

.gerateWartung table tbody tr:hover {
  opacity: 0.85;
}

.gerateWartung table tr td:nth-child(1) {
  width: 50px;
  text-align: center;
}

.gerateWartung table tr td:nth-child(2) {
  /* Bezeichnung: nimmt den verbleibenden Platz */
}

.gerateWartung table tr td:nth-child(3) {
  width: 100px;
}

.gerateWartung table tr td:nth-child(4) {
  width: 100px;
  text-align: center;
}

.gerateWartung table tr td:nth-child(5) {
  width: 80px;
  text-align: center;
}

.gerateWartung table a {
  height: 20px;
  width: 20px;
  margin: 0 1px;
  position: relative;
  display: inline-block;
  float: left;
}

.gerateWartung table a:first-child {
  margin: 0 1px 0 0;
}

.gerateWartung table a:last-child {
  margin: 0 0 0 1px;
}

#search-form {
  position: relative;
}

/* Suchfeld */
#dokumenten_suche {
  box-sizing: border-box;
  width: 100%;
  max-width: 300px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#dokumenten_suche:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 61, 143, 0.12);
}

/* Vorschlagsliste */
#dokument_suggestions {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-top: none;
  background: var(--white);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
}

/* Eintraege */
#dokument_suggestions li {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

/* Hover-Effekt */
#dokument_suggestions li:hover {
  background-color: var(--bg);
}

/* Such-Button (das Bild-Input) */
input[name="dokumente_list"][type="image"] {
  margin-top: 8px;
  cursor: pointer;
}

/***********************GLOBALE INPUT-STYLES************************/
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
  font-family: var(--font);
  font-size: 0.9em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text);
  background: var(--white);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 61, 143, 0.10);
}

input[type="submit"],
input[type="button"],
button:not(.entwicklungsbericht_person_data button) {
  font-family: var(--font);
  cursor: pointer;
}

/* Print styles */
@media print {
  body {
    background: white;
    padding: 0;
  }
  #inhalt {
    box-shadow: none;
    border: none;
    width: 100%;
  }
  .navigation, .left_neu, .footer {
    display: none;
  }
  .center_breit, .center_ganz {
    width: 100%;
    margin: 0;
  }
}


/***********************LOGIN-SEITE – Modernes Design ************************************/
#inhalt:has(.login-page) {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: auto;
  overflow: visible;
}

#inhalt:has(.login-page) .login_anzeige {
  display: none;
}

.login-page {
  display: flex;
  height: 600px;
  max-width: 1100px;
  margin: 40px auto;
  background: var(--white);
  font-family: var(--font);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.login-hero {
  flex: 1 1 55%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.login-hero img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.login-panel {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px;
  background: var(--white);
}

.login-logo {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo img {
  max-width: 150px;
  height: auto;
}

.login-card h1 {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.login-card .subtitle {
  font-size: 0.85em;
  color: var(--text-light);
  margin: 0 0 20px;
}

.login-card .login-message {
  background: var(--bg);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9em;
  color: var(--text);
}

.login-card .login-message.success {
  border-left-color: var(--success);
}

.login-field {
  margin-bottom: 14px;
}

.login-field label {
  display: block;
  font-size: 0.82em;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.login-field input[type="text"],
.login-field input[type="password"],
.login-field input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95em;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.login-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,61,143,0.12);
}

.login-actions {
  margin-top: 8px;
}

.login-btn {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 0.95em;
  font-weight: 600;
  font-family: var(--font);
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.02em;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.login-btn:active {
  transform: translateY(0);
}

.login-forgot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.login-forgot label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  color: var(--text-light);
  cursor: pointer;
}

.login-forgot label input[type="checkbox"] {
  accent-color: var(--primary);
}

.login-forgot .forgot-hint {
  font-size: 0.8em;
  color: var(--text-light);
  margin-top: 6px;
  padding-left: 24px;
}

.login-footer {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 0.78em;
  color: var(--text-light);
}

/* Responsiv für kleinere Bildschirme */
@media (max-width: 900px) {
  .login-hero {
    display: none;
  }
  .login-panel {
    flex: 1;
    max-width: 100%;
  }
  .login-page {
    justify-content: center;
  }
}
