/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

:root {
  /* Design Tokens */
  --primary-color: #ef5b8c;
  --primary-light: rgb(255, 209, 232);
  --primary-hover: rgb(252, 177, 215);
  --text-dark: #333;
  --text-muted: #888;
  --text-light: #aaa;
  --danger-light: rgb(249, 205, 205);
  --danger-hover: rgb(251, 173, 173);
  --neutral-light: rgb(235, 235, 235);
  --neutral-hover: rgb(213, 213, 213);

  /* Card Tokens */
  --card-padding: 1.5em 1.5em 1em 1.5em;
  --card-border-radius: 12px;
  --card-shadow: 0 2px 12px 0 rgba(233, 30, 99, 0.10), 0 1px 4px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 6px 28px 0 rgba(233, 30, 99, 0.22), 0 2px 8px rgba(0,0,0,0.06);
  --card-gap: 1.5em;

  /* Layout Tokens */
  --navbar-height: 67px;
  --sticky-offset: calc(var(--navbar-height) + 8px);
  --sticky-offset-with-subheader: calc(var(--navbar-height) + 48px);
  --sticky-button-offset: calc(var(--navbar-height) + 38px);

  /* Button Tokens */
  --btn-radius: 6px;
  --btn-transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-left: 20px;
  /* Set the fixed height of the footer here */
  height: 60px;
  line-height: 60px; /* Vertically center the text there */
  background-color: rgb(240, 240, 240);
}

main > .container {
  padding: 60px 15px 0;
}

.container2{
  height: 65px;
  text-align: center;
  background-color: white;
}

.footer {
  font-size: 11pt;
  background-color: #f5f5f5;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

code {
  font-size: 80%;
}

section {
  display: flex;
  flex-flow: column;
  gap: 1rem;
}

h1{
  font-size: 18pt;
  color: hotpink;
  margin-left: 10px;
  margin-right: 10px;
  }

.daheader{
  font-size: 16;
  color: hotpink;
}

.daheader2{
  font-size: 18pt;
  color: hotpink;
}

h2 {
  font-size: 12pt;
}

h3 {
  font-size: 15pt;
  color: hotpink;
}

h4 {
  font-size: 15pt;
  background: white;
}

bh4 {
  font-size: 15pt;
  padding-left: 20px;
}

h5 {
  font-size: 15pt;
  background: white;
  text-align: right;
}

h6 {
  font-size: 11pt;
  padding-top: 8px;
}

h7 {
  font-size: 15pt;
  color: hotpink;
  text-align: start;
}

h8 {
  font-size: 15pt;
  text-align: center;
}

p {
  font-size: 1.15rem;
}

p2 {
  display: inline-block;
  font-size: 1.15rem;
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
  opacity: .85;
}

bb {
  font-size: 12;
  color: hotpink;
}

bb:hover {
  opacity: .85;
}

c {
  font-size: 1.15rem;
}

h22 {
  font-size: 15pt;
  text-align: center;
}

h221 {
  font-size: 11pt;
  text-align: center;
}

small2{
  font-size: 8pt;
  text-align: center;
}

.pmg {
  font-size: 15pt;
  color: green;
}

.pmg2 {
  font-size: 13pt;
  color: green;
}

.pmr {
  font-size: 15pt;
  color: red;
}

smoco {
  font-size: 10pt;
  color: rgb(85, 141, 160);
  margin-right: 8px;
}

.pmr2 {
  font-size: 13pt;
  color: red;
}

aktr {
  font-size: 11pt;
  color: red;
}

aktg {
  font-size: 11pt;
  color: green;
}

dnend {
  color: rgb(85, 141, 160);
  font-size: 11pt;
  text-align: end;
}

.h4end {
  font-size: 15pt;
  padding-right: 15px;
  padding-top: 10px;
  background: white;
  text-align: end;
}

.work-data{
  font-size: 12pt;
  padding-left: 15px;
}

.work-data2{
  font-size: 12pt;
  text-align: center;
}

.rider-name {
  font-size: 15pt;
  color: hotpink;
  text-align: start;
}

.banner {
  display: block;
  width: 100%;
  max-width: 800px;
}

.kom-autor-start{
  font-size: 12pt;
  text-align: start;
}

.kom-autor-start-link{
  font-size: 12pt;
  text-align: start;
  color: pink;
}

.kom-autor-end{
  font-size: 12pt;
  text-align: end;
}

.kom-text-start{
  font-size: 1.15rem;
  text-align: start;
}

.user-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #222;
}
.page-title-small {
    font-size: 1em;
    color: #888;
    font-weight: 400;
}

.dnnr-label{
  color: rgb(85, 141, 160);
  text-align: end;
  font-size: 12pt;
  padding-right: 10px;
}

.at-label{
  padding-left: 10px;
}

.kom-text-end{
  font-size: 1.15rem;
  text-align: end;
}

.kom-date-start{
  font-size: 8pt;
  text-align: start;
}

.kom-date-end{
  font-size: 8pt;
  text-align: end;
}

.post-header{
  font-size: 25pt;
  color: rgb(254, 123, 201);
}

.post-thema{
  font-size: 14pt;
}

.rider-entry-banner{
  background-color: rgb(247, 246, 246);
  border-color: rgb(255, 215, 221);
  border-width: 0.2cm;
  border-radius: 15px;
  padding: 17px 17px 17px 17px;
}


.form-with-validation {
  max-width: 600px;
  padding: 1rem;
  display: flex;
  flex-flow: column;
  gap: 1rem;
}

.form-buttons {
  display: flex;
  gap: 1em;
  margin-top: 1.5em;
}

.form-with-validation div {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
}

.form-with-validation input {
  padding: 0.25rem;
  max-width: 300px;
}

.form-with-validation button {
margin: auto;
}


.form-submit {
  padding: 0.5rem;
  width: 125px;
}

.helptext {
  font-size: 1rem;
  margin-left: 1rem;
}

.helptext ul {
  list-style-type: none;
}

.errorlist {
  color: #F00;
  margin-left: 2rem;
}

.logout {
  display: inline-block;
}

.logout-button {
  background-color: rgb(248, 248, 248);
  color: hotpink;
  margin-top: 1.3rem;
  margin-bottom: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
  border: none;
}

.logout-button:hover {
  opacity: .85;
}

.dt_label {
color: rgb(119, 119, 119);
font-size: 1.5rem;
font-weight: 400;
}

.buttons {
margin: auto;
max-height: 28px;
}

.button-container {
display: inline-grid;
grid-template-columns: 1fr 1fr;
grid-gap: 15px;
justify-content: center;
}

.links_unten {
margin-top: 10px;
margin-left: 15px;
font-size: 11pt;
color: hotpink;
}

.body {
border: hotpink;
padding: 3px;
}

.label {
font-size: 12pt;
}

.text { 
font-size: 13pt;
padding: 3px; 
}

.edit-post{
  font-size: 9pt;
  color: hotpink;
  border: none;
  background-color: transparent;
}

.delete-post{
  font-size: 9pt;
  color: red;
  border: none;
  background-color: transparent;
}

.post-header{
  font-size: 14pt;
  color: hotpink;
}

.uname {
color: hotpink;
margin-left: 10px;
margin-right: 10px;
}

.cont1 {
display: flex;
flex-flow: row;
}

.cont2 {
  display: grid;
  grid-template-columns: 1fr 1fr 0.75fr;
  }

.cont2 {
  display: grid;
  grid-template-columns: 1fr 1fr 0.75fr;
  position: sticky;
  top: 0;
  background: white;
  }

.cont3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }

.sticky-date-btn {
  position: sticky;
  top: var(--sticky-offset);
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: white;
  z-index: 101;
  padding: 0.2em 0;
}

.dispo-entry-wrapper {
  padding-top: 4em;   /* Abstand zur Navbar */
  padding-bottom: 4em; /* Abstand zum Footer */
}

.global-sticky-plus {
  position: sticky;
  top: var(--sticky-button-offset);
  float: right;
  margin-right: -80px;
  margin-bottom: -2em;
  z-index: 200;
  background: white;
  border-radius: 1.5em 0 0 1.5em;
  display: flex;
  align-items: center;
}

.cont4 {
  display: inline-block;
  padding-left: 10px;
  }

.comdat {
font-size: 1rem;
margin-left: 10px;
margin-bottom: 10px;
}

.home-container{
  padding-top: 15px;
}

.home-container2{
  display: grid;
  grid-template-columns: 3fr 5fr 2fr;
  padding-top: 15px;
}

.rider-info-container{
  display: grid;
  grid-template-columns: 2fr 3fr 3fr 3fr 2fr;
  padding-top: 15px;
  padding-bottom: 8px;
  padding-left: 22px;
  padding-right: 22px;
  border: none;
  border-radius: 9.5px;
  background-color: rgb(217, 243, 251);
  margin-bottom: 1.25em;
}

.inactive-rider-info-container{
  display: grid;
  grid-template-columns: 2fr 4fr 2fr 3fr; 
  padding-top: 15px;
  padding-bottom: 8px;
  padding-left: 22px;
  padding-right: 22px;
  border: none;
  border-radius: 9.5px;
  background-color: rgb(217, 243, 251);
  margin-bottom: 1.25em;
}

.rider-btn-container{
  display: grid;
  grid-template-columns: 3fr 4fr 4fr 3fr 3fr;
  padding-top: 15px;
  position: sticky;
  top: 0;
  background: white;
}

.rider-container{
  display: grid;
  grid-template-columns: 2fr 4fr 2fr;
  padding-top: 15px;
}

.rider-info{
  font-size: 12pt;
  text-align: center;
}

.info-header{
  font-size: 15pt;
  text-align: center;
  background: white;
}

@media screen and (max-width: 1000px) {
  .home-container{
    display: grid;
    grid-template-columns: 0.25fr 3fr 0.25fr;
  }
 
}

.login-data-container{
  display: grid;
  grid-template-columns: 4fr 3fr 4fr;
}

@media screen and (max-width: 1000px) {
  .login-data-container{
    display: grid;
    grid-template-columns: 0.5fr 3fr 0.5fr;
  }
 
}

.dispo-date-container{
  display: grid;
  grid-template-columns: 2fr 6fr 1fr 1fr;
  padding-top: 15px;
}

.profile-data-container{
  display: grid;
  grid-template-columns: 3fr 2fr 2fr; 
  gap: 2em;
}

.profile-dispo-frame,
.profile-rider-frame {
    border-style: solid;
    border-width: 1px;
    border-radius: 5pt;
    padding: 10px;
    margin-left: 25px;
    margin-right: 25px;
    min-height: 110px; /* gleiche Mindesthöhe für beide */
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Unterschiedliche Farben kannst du über border-color steuern, falls gewünscht */
.profile-dispo-frame {
    border-color: lightpink;
}
.profile-rider-frame {
    border-color: black;
}

.stick-it {
    position: sticky;
    top: 67px; /* Höhe deiner Navbar */
    z-index: 102;
    background: white;
}

.profile-dispo-frame,
.profile-rider-frame {
    margin-bottom: 1.2em;
}

.dispo-section-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.2em 1.5em 1.2em 1.5em;
    margin-bottom: 2em;
}

.rider-section-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.2em 1.5em 1.2em 1.5em;
    margin-bottom: 2em;
}

.filter-form {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    max-width: 600px; /* optional, für bessere Optik */
}

.stick-it2{
  position: sticky;
  top: 67px;
  padding: 5px;
  height: 45;
}

.navbar{
  overflow: visible;
  height: 67px;           /* gewünschte Höhe */
  min-height: 67px;
}

.bn-entry-button{
  border: none;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  color: var(--text-dark);
  background-color: rgb(255, 209, 232);
  transition: background-color 0.3s ease;
}

.bn-entry-button:hover{
  background-color: rgb(252, 177, 215);
}

.astext {
    display: inline-block;
    background:none;
    border:none;
    margin:0;
    padding:0;
    cursor: pointer;
    color: hotpink;
    font-size: 15pt;
}

.entry-button {
    background: var(--primary-light);
    color: var(--text-dark);
    border: none;
    border-radius: var(--btn-radius);
    padding: 0.35em 0.9em;
    font-size: 0.95em;
    cursor: pointer;
    transition: var(--btn-transition);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.entry-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.entry-button:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.entry-button-exp{
  position: relative;
  right: -1100px;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  outline: none;
  background-color: rgb(255, 209, 232);
  transition: background-color 0.3s ease;
}

.date-entry-button{
  border: none;
  cursor: pointer;
  color: pink;
  margin-right: 50px;
  height: max-content;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.grey-button{
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--btn-radius);
  padding: 0.35em 0.9em;
  cursor: pointer;
  outline: none;
  color: var(--text-dark);
  text-decoration: none;
  background-color: var(--neutral-light);
  transition: var(--btn-transition);
  font-size: 0.95em;
}

.alert-banner{
  background-color: rgb(251, 222, 222);
  border: none;
  text-align: left;
  color: rgb(254, 105, 105);
  border-radius: 3px;
  padding-left: 20px;
  padding-top: 8px;
  padding-bottom: 0.5px;
  vertical-align: middle;
}

.alert-banner2{
  background-color: rgb(250, 250, 250);
  border: none;
  text-align: center;
  color: rgb(144, 144, 144);
  border-radius: 8px;
  padding-left: 20px;
  padding-top: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  vertical-align: middle;
}

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

.grey-button:hover{
  background-color: var(--neutral-hover);
  transform: translateY(-1px);
}
.grey-button:active{
  transform: translateY(0);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.red-button{
  border: none;
  border-radius: var(--btn-radius);
  padding: 0.35em 0.9em;
  cursor: pointer;
  outline: none;
  color: var(--text-dark);
  text-decoration: none;
  background-color: var(--danger-light);
  transition: var(--btn-transition);
  font-size: 0.95em;
}

.red-button:hover{
  background-color: var(--danger-hover);
  transform: translateY(-1px);
}
.red-button:active{
  transform: translateY(0);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2em;
    text-align: center;
    color: #888;
    margin-top: 2em;
}
.data-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    max-width: 1200px;
    margin: 2em auto 0 auto;
    justify-content: flex-start;
}
.data-card {
    flex: 1 1 320px;
    background: #fff;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: var(--card-padding);
    max-width: 340px;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.data-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}
.data-card:active {
    transform: translateY(0);
}
.data-card-title {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.2em;
    color: #333;
}

.date-data-card {
    flex: 1 1 320px;
    background: #fff;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: var(--card-padding);
    max-width: 700px;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.date-data-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}
.date-data-card:active {
    transform: translateY(0);
}
.weekday {
    color: #aaa;
    font-size: 1em;
}
.data-list-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}
.status-badge {
    display: inline-block;
    padding: 0.1em 0.7em;
    border-radius: 4px;
    font-size: 0.95em;
    margin-right: 0.5em;
}
.status-badge-danger {
    background: #a2a2a2;
    color: #fff;
}
.status-badge-success {
  background: #e6f7ea;
  color: #2f7a45;
  border: 1px solid #b9dfc3;
}
.status-badge-info {
    background: #2f6fb5;
    color: #fff;
}
.muted {
    color: #bbb;
    margin: 1em 0;
}
.card-footer {
    font-size: 0.85em;
    color: var(--text-light);
    text-align: right;
    margin-top: auto;
    padding-top: 0.5em;
}

/* ---- Dispo List Wrapper ---- */

.dispo-list-wrapper {
  position: relative;
}

/* ---- Dispo Layout Classes (replacing inline styles) ---- */

.dispo-date-row {
  display: grid;
  grid-template-columns: min-content 1fr;
  align-items: start;
  gap: 2em;
  margin-bottom: 2.5em;
  position: relative;
  scroll-margin-top: calc(var(--navbar-height) + 60px);
}

.dispo-date-row--detail {
  grid-template-columns: min-content 1fr min-content;
}

.dispo-header-sticky {
  display: grid;
  grid-template-columns: min-content 1fr auto;
  align-items: center;
  gap: 1em;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  padding: 0.5em 0;
  position: sticky;
  top: var(--navbar-height);
  z-index: 103;
}

.dispo-header-sticky--fullwidth {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1.5em;
  margin: 0 calc(-0.75 * var(--bs-gutter-x, 1.5rem));
  width: auto;
}

.sticky-date-info {
  display: flex;
  align-items: center;
  gap: 0.5em;
  min-height: 1.8em;
  white-space: nowrap;
}

.sticky-date-info .calendar-week-badge {
  margin-top: 3px;
}

.sticky-date-info.pop-in {
  animation: stickyPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stickyPopIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sticky-date-link {
  font-weight: bold;
  font-size: 1.25em;
  color: inherit;
  text-decoration: none;
}

.back-to-month-link {
  display: inline-block;
  margin-top: 1em;
  color: inherit;
  text-decoration: none;
  font-size: 0.95em;
  opacity: 0.7;
}

.back-to-month-link:hover {
  opacity: 1;
}

.dispo-header-title {
  display: flex;
  align-items: center;
  gap: 1em;
  background: transparent;
}

.dispo-header-controls {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.dispo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--card-gap);
}

/* Card internal structure */
.card-header-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.3em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.card-name-link {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  transition: color 0.2s;
}

.card-role {
  font-size: 0.9em;
  color: var(--text-muted);
}

.card-date-sub {
  font-size: 0.9em;
  color: var(--text-muted);
  margin: 0.3em 0 0.5em 0;
  letter-spacing: 0.3px;
}

.card-overlay-link {
  position: absolute;
  inset: 0;
}

/* Date column in dispo_list */
.date-col-inner {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.list-date {
  font-weight: bold;
  font-size: 0.95em;
  white-space: nowrap;
  padding-top: 1.5em;
}

.date-row {
  display: grid;
  grid-template-columns: 2fr 6fr 2fr;
  align-items: flex-start;
  gap: 1em;
  margin-bottom: 2em;
}

.dispo-table {
  width: 100%;
  border-collapse: collapse;
}

.dispo-table tr {
  height: 2.5em; 
}

.plus-col {
  position: sticky; 
  top: 0px; /* Höhe deiner Navbar anpassen! */
  width: 15%;
  vertical-align: top;
}
.data-col {
  width: 70%;
  vertical-align: top;
}

.data-col .entry-card {
  margin-bottom: 1.5em;
}

@media (max-width: 1000px) {
  .date-row {
    grid-template-columns: 0.25fr 3fr 0.25fr;
  }
}

.main-wrapper {
    max-width: 1200px;
    margin: 0;
    padding-top: 40px;
}

.main-wrapper-date {
    max-width: 1200px;
    margin: 0;
    padding-top: 40px;
    padding-left: 170px;
    padding-bottom: 3em;
}

.calendar-week-badge {
    display: inline-block;
    background: rgb(192, 234, 247);
    color: darkblue;
    border-radius: var(--card-border-radius);
    padding: 0.2em 0.8em;
    margin-bottom: 8px;
    font-size: 0.9em;
    margin-left: 0.5em;
}

.date-col {
    position: sticky;
    top: var(--sticky-offset);
    z-index: 102;
    background: white;
    padding-left: 0.5em;
}

.dispo-month-content .date-col {
    top: var(--sticky-offset-with-subheader);
}

.dispo-date-row.date-in-header .date-col {
    visibility: hidden;
}

.settings-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}
.settings-title {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
  color: #222;
}
.settings-buttons {
  display: flex;
  flex-direction: row;
  gap: 1em;
  flex-wrap: wrap;
  align-items: center;
}

/* Für alle Input-Felder */
input::placeholder,
textarea::placeholder {
    color: #fafafa; /* Heller Grauton */
    opacity: 1;     /* Optional: volle Deckkraft */
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin-top: 2em;
    gap: 2em;
}
.page-title {
    margin: 0;
    font-size: 1.3em;      /* kleiner als vorher */
    font-weight: 600;
    color: #222;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-container {
  width: 100%;
  max-width: 700px;      /* Weniger breit */
  margin: 0 auto;
  padding: 2.5em 1.5em 1.5em 1.5em; /* Mehr Abstand oben und seitlich */
  box-sizing: border-box;
}

.forum-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 2em 1.5em 2em 1.5em; /* Mehr Innenabstand */
  margin: 2em auto;
}

/* Abstand zur Navbar */
@media (min-width: 601px) {
  .forum-container {
    margin-top: 2.5em;
  }
}

.forum-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin-bottom: 1em;
}
.forum-empty {
  text-align: center;
  color: #888;
  margin: 1.5em 0;
}
.forum-list {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.forum-post {
  pointer-events: none;
}

.forum-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: box-shadow 0.2s, background 0.2s;
}

/* Chat-Thread-Design */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  margin-bottom: 2em;
  margin-top: 1em;
}

.chat-bubble {
  align-self: flex-start;
  background: #f7f7f9;
  border-radius: 18px 18px 18px 6px;
  padding: 0.8em 1.2em;
  max-width: 75%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: relative;
  word-break: break-word;
}

.forum-post-title, .forum-post-title:hover, .forum-post-title:focus {
  text-decoration: none !important;
}
.forum-post:hover, .forum-post:focus {
  background: #f6f6f6;
}

.forum-post.no-flash-hover {
  background: none;
}
.forum-post.no-flash-hover:hover, .forum-post.no-flash-hover:focus {
  background: #f6f6f6;
}
.forum-post-header, .forum-post-meta {
  pointer-events: none;
}
.forum-post-title, .forum-post-topic, .forum-post-date {
  pointer-events: none;
}

.forum-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 50%;
  padding: 0.15em 0.6em;
  margin-left: 0.3em;
  vertical-align: middle;
  min-width: 1.2em;
  text-align: center;
}

.chat-bubble-own {
  align-self: flex-end;
  background: #e6f7ff;
  border-radius: 18px 18px 6px 18px;
  color: darkblue;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.93em;
  color: darkblue;
  margin-bottom: 0.2em;
}

.chat-author {
  font-weight: 500;
  color: darkblue;
}

.chat-date {
  font-size: 0.9em;
  color: #bbb;
}

.chat-text {
  font-size: 1.08em;
  color: #222;
  margin-top: 0.1em;
  white-space: pre-line;
}

.chat-meta-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.93em;
  color: #888;
  margin-top: 0.4em;
  margin-bottom: 0;
}
.chat-bubble {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.chat-meta-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 0.93em;
  color: #888;
  margin-bottom: 0.3em;
}
.chat-author {
  font-weight: 500;
  color: #444;
}
.chat-date {
  font-size: 0.9em;
  color: #bbb;
  margin-left: 1.5em;
}
.forum-post-hover:hover, .forum-post-link:focus .forum-post-hover {
  box-shadow: 0 4px 24px 0 rgba(233, 30, 99, 0.13);
  background: #f3f3f7;
  cursor: pointer;
}

.forum-post * {
  pointer-events: auto;
}

.forum-post-header {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.forum-post-title {
  font-size: 1.1em;
  font-weight: 500;
  color: #222;
  text-decoration: none;
}
.forum-post-title:hover {
  text-decoration: underline;
}
.forum-post-topic {
  color: #666;
  font-size: 0.95em;
}
.forum-post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5em;
  font-size: 0.95em;
  color: #888;
}
.forum-post-actions button {
  z-index: 2;
  position: relative;
}
.forum-post-actions button:focus {
  outline: 2px solid #e91e63;
}
.forum-actions {
  display: flex;
  justify-content: center;
  margin-top: 2em;
}
.forum-post-body {
  font-size: 1.1em;
  margin-bottom: 1.5em;
  color: #222;
}
.forum-comments {
  margin: 2em 0 1em 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.forum-comment {
  background: #f7f7f9;
  border-radius: 8px;
  padding: 0.7em 1em;
  font-size: 1em;
}
.forum-comment-own {
  background: #e6f7ff;
  text-align: right;
}
.forum-comment-author {
  font-weight: 500;
  color: #444;
}
.forum-comment-text {
  margin: 0.2em 0 0.2em 0;
}
.forum-comment-date {
  font-size: 0.9em;
  color: #888;
}
.forum-delete-warning {
  text-align: center;
  color: #d9534f;
  font-size: 1.1em;
  margin-bottom: 1.5em;
}
@media (max-width: 600px) {
  .forum-card { padding: 1em 0.3em 1.5em 0.3em; }
  .forum-title { font-size: 1.1em; }
  .forum-post-title { font-size: 1em; }
  .forum-post-body { font-size: 1em; }
}

.nav-date-pick{
  margin: auto;
  position: sticky;
  right: auto;
  margin-top: 5px;
  border-radius: 5px;
}

.list-date{
  font-size: 15pt;
  margin-right: 25px;
  text-align: end;
  background: white;
}

.new-rider-btn{
  text-align: end;
  padding-bottom: 8px;
}

.date-list-counter{
  font-size: 12pt;
  color:lightpink;
  padding-left: 10px;
}

.profile-dispo-frame{
  border-style: solid;
  border-color: lightpink;
  border-width: 1px;
  padding: 10px;
  border-radius: 5pt;
  margin-left: 25px;
  margin-right: 25px;
}

.profile-rider-frame{
  border-style: solid;
  border-color: black;
  border-width: 1px;
  padding: 10px;
  border-radius: 5pt;
  margin-left: 25px;
  margin-right: 25px;
}

.profile-rider-frame2{
  border-style: solid;
  border-color: black;
  border-width: 1px;
  padding: 10px;
  border-radius: 5pt;
  margin-right: 25px;
}

.dispo-label1{
  padding-left: 25px;
}

.rider-label1{
  padding-left: 25px;
}

.data-label1{
  padding-bottom: 16px;
  font-size: 15pt;
}

.stunden-label{
  color: hotpink;
  font-size: 1.15rem;
}

.pr-header1{
  display: inline-block;
  padding-top: 4px;
  padding-left: 20px;
  padding-right: 60px;
  font-size: 13pt;
}

.pr-header2{
  display: inline-block;
  font-size: 12pt;
  color: red;
}

.pr-header3{
  display: inline-block;
  font-size: 12pt;
  color: green;
}

.pr-header4{
  display: inline-block;
  font-size: 13pt;
  color: green;
}

.pr-header5{
  display: inline-block;
  font-size: 13pt;
  color: red;
}

.pr-header6{ 
  display: inline-block;
  border: none;
  background-color: transparent;
  color: pink;
  font-size: 13pt;
  font-weight: 40pt;
}

.profile-header1{
  display: inline-block;
  padding-top: 4px;
  padding-left: 20px;
  padding-right: 60px;
  font-size: 13pt;
}

.profile-header2{
  display: inline-block;
  padding-top: 4px;
  padding-left: 20px;
  font-size: 12pt;
  color: red;
}

.profile-header3{
  display: inline-block;
  padding-top: 4px;
  padding-left: 20px;
  font-size: 12pt;
  color: green;
}

.profile-header4{
  display: inline-block;
  padding-top: 4px;
  padding-left: 20px;
  padding-right: 60px;
  font-size: 13pt;
  color: green;
}

.profile-header5{
  display: inline-block;
  padding-top: 4px;
  padding-left: 20px;
  padding-right: 60px;
  font-size: 13pt;
  color: red;
}

.profile-header6{ 
  display: inline-block;
  border: none;
  background-color: transparent;
  color: pink;
  font-size: 13pt;
  font-weight: 40pt;
}

.settings-section {
  margin-top: 2em;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em 2em;
  margin-top: 0.5em;
  margin-left: 0.5em;
}
.plus-minus-value {
  font-weight: bold;
  color: #e67e22;
}
.urlaub-null {
  color: #e74c3c;
  font-weight: bold;
}
.urlaub-rest {
  color: #27ae60;
  font-weight: bold;
}

.dispo-header-sticky {
    position: sticky;
    top: 67px; /* Höhe deiner Navbar anpassen */
    padding-top: 15px;
    padding-bottom: 15px;
    z-index: 105;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 25px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
}

.set-header1{
  padding-top: 4px;
  padding-right: 60px;
  font-size: 13pt;
}

.set-header2{
  padding-top: 4px;
  font-size: 12pt;
  color: red;
}

.set-header3{
  padding-top: 4px;
  font-size: 12pt;
  color: green;
}

.set-header4{
  padding-top: 4px;
  padding-right: 60px;
  font-size: 13pt;
  color: green;
}

.set-header5{
  padding-top: 4px;
  padding-right: 60px;
  font-size: 13pt;
  color: red;
}

.set-header6{ 
  display: inline-block;
  border: none;
  background-color: transparent;
  color: pink;
  font-size: 13pt;
  font-weight: 40pt;
}

.date-nav-btn {
    background: #fff;
    border: none;
    color: hotpink;
    width: 2em;
    height: 2em;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.date-picker {
    border: 1px solid #bbb;
    color: black;
    border-radius: 4px;
    font-size: 1em;
    outline: none;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.2s;
    padding: 0.35em 0.9em;
}

.date-picker:focus {
    border: 1px solid #999;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.15);
}

.ui-datepicker {
    margin-top: 13px !important;
    margin-left: -10px !important;
    min-width: 220px !important;
    max-width: 260px !important;
    font-size: 0.97em !important;
    padding: 0.2em 0.5em 0.7em 0.5em !important;
    z-index: 500 !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px !important;
    background: #fff !important;
}
.ui-datepicker-calendar th,
.ui-datepicker-calendar td {
    font-size: 0.85em !important;
    padding: 0.1em 0.3em !important;
}

.ui-datepicker-header {
    background: none;
    border: none;
    color: #e91e63;
    font-weight: 600;
    padding: 0.5em 0;
}

.ui-datepicker-title {
    color: #e91e63;
    font-size: 1.1em;
    cursor: pointer;
}

.ui-datepicker-title:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.ui-datepicker-prev, .ui-datepicker-next {
    background: none !important;
    border: none !important;
    color: #e91e63 !important;
    font-size: 1.1em !important;
    width: 1.8em !important;
    height: 1.8em !important;
    line-height: 1.8em !important;
    border-radius: 50% !important;
    transition: background 0.2s;
    box-shadow: none !important;
    opacity: 0.7;
}

.ui-state-default {
    background: none;
    border: none;
    color: #222;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

a.ui-state-active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 4px;
}

a.ui-state-highlight {
    background: none !important;
    color: var(--primary-color) !important;
    border-radius: 4px;
    font-weight: 600;
}

a.ui-state-hover {
    background: #f0f0f0 !important;
    color: #222 !important;
    border-radius: 4px;
}

.ui-state-disabled {
    color: #ccc !important;
    background: none !important;
}

/* ========== Month Picker ========== */

.month-picker-wrapper {
    position: relative;
    display: inline-block;
}

.month-picker-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.8rem;
    min-width: 250px;
}

.month-picker-dropdown.open {
    display: block;
}

.entry-date-picker-wrapper {
  display: block;
  width: 100%;
}

.entry-date-picker-wrapper .js-entry-date-picker {
  width: 100%;
  cursor: pointer;
  background: #fff;
}

.entry-date-picker-wrapper .entry-date-picker-dropdown {
  left: 0;
  transform: none;
  margin-top: 0.35rem;
  min-width: min(320px, calc(100vw - 2.5rem));
  width: min(320px, calc(100vw - 2.5rem));
  max-width: 100%;
  z-index: 1200;
}

.month-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.month-picker-header-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.month-picker-header-title[data-action] {
    cursor: pointer;
}

.month-picker-header-title[data-action]:hover {
    color: var(--primary-color);
}

.month-picker-nav {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    transition: background 0.15s;
}

.month-picker-nav:hover {
    background: #f0f0f0;
}

.month-picker-footer {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid #eee;
}

.month-picker-footer a {
    font-size: 0.82rem;
    color: var(--primary-color);
    text-decoration: none;
}

.month-picker-footer a:hover {
    text-decoration: underline;
}

/* Day Picker Grid */
.day-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
    margin-bottom: 0.2rem;
}

.day-picker-weekday {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.15rem 0;
}

.day-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
}

.day-tile {
    padding: 0.3rem 0.1rem;
    text-align: center;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--text-dark);
    background: #f7f7f9;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8em;
}

.day-tile:hover {
    background: #eee;
    color: var(--text-dark);
}

.day-tile--empty {
    background: transparent;
    cursor: default;
}

.day-tile--today {
    background: var(--primary-light);
    font-weight: 600;
}

.day-tile--today:hover {
    background: var(--primary-hover);
}

.day-tile--active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.day-tile--active:hover {
    background: var(--primary-color);
    color: #fff;
}

.month-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
}

.month-tile {
    padding: 0.4rem 0.2rem;
    text-align: center;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-dark);
    background: #f7f7f9;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.month-tile:hover {
    background: #eee;
    color: var(--text-dark);
}

.month-tile--active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.month-tile--active:hover {
    background: var(--primary-color);
    color: #fff;
}

.corplabel {
  font-size: 9pt;
  vertical-align: text-top;
  text-align: end;
}

.mobile-form-section {
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 1em;
    padding-right: 1em;
    max-width: 500px;
    margin: 0 auto;
    min-height: 80vh; /* sorgt dafür, dass die Section mindestens 80% der Höhe einnimmt */
    box-sizing: border-box;
}

.toggle-arrow {
    color: hotpink;
    font-size: 1em;
    vertical-align: middle;
    transition: transform 0.2s;
}

.loginheader{
  font-size: 22pt;
  color: black;
  text-align: center;
  padding-top: 0px;
}

.loginheader2{
  text-align: center;
  margin-bottom: 10px;
}

.loginheader3{
  font-size: 13pt;
  text-align: center;
  margin-bottom: 10px;
}

.login-logo{
  padding-top: 10px;
  text-align: center;
  padding-bottom: 1px;
}

.home-header{
  display: flex;
  flex-direction: row;
}

.home-header2{
  display: flex;
  flex-direction: row;
  text-align: center;
}

.dispo-entry form {
  max-width: 640px;   /* oder z.B. 400px */
  margin: 0 auto;
}

.dispo-entry{
  max-width: 640px;
  margin: 0 auto;
}

@media screen and (max-width: 1000px) {
  .dispo-entry{
    display: grid;
    grid-template-columns: 0.25fr 3fr 0.25fr;
  }
 
}

.home-header3{
  display: inline-block;
}

/* ---- Rider Sticky Header (zeiterfassung) ---- */

.rider-sticky-header {
  z-index: 110;
  position: sticky;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.5em 0;
}
.rider-sticky-header--top {
  top: var(--navbar-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rider-sticky-header--filter-toggle {
  top: 125px;
}
.rider-sticky-header--filter {
  top: 152px;
  display: none;
}

/* ---- Zeiterfassung Mobile / Rider ---- */

.mobile-data-wrapper {
  display: block;
}

.mobile-data-card {
  display: block;
}

.data-card-body {
  display: block;
}

.pm-value {
  font-weight: 600;
}
.pm-value.red {
  color: #e74c3c;
}
.pm-value.green {
  color: #27ae60;
}

.settings-divider {
    width: 100%;
    border: none;
    border-top: 1.5px solid #b8b7b7;
    margin: 0.5em 0;
}

.navbar-toggler {
    padding: 0.15rem 0.4rem;
    font-size: 1.05rem;
    line-height: 1;
    border-radius: 0.2rem;
    width: 2em;
    height: 2em;
    margin-right: 1em;
}

@media (max-width: 600px) {
    .main-wrapper, .main-wrapper-date, .data-list {
        max-width: 100%;
        margin: 0 0 1.5em 0;
        padding: 0 0.5em;
    }
    .main-wrapper-date {
        padding-left: 0.5em;
    }
    .navbar {
    min-height: 44px;
    height: auto;
    }
    .navbar .navbar-brand,
    .navbar .nav-link {
      padding-top: 0.25rem;
      padding-bottom: 0.25rem;
      font-size: 0.95em;
    }
    
    .data-card, .date-data-card {
        max-width: 100%;
    }
    .dispo-cards-grid {
      grid-template-columns: 1fr;
    }
    .dispo-date-row, .dispo-date-row--detail {
      grid-template-columns: 1fr;
      gap: 0.5em;
    }
    .dispo-header-sticky {
      grid-template-columns: 1fr;
      gap: 0.5em;
    }
    .global-sticky-plus {
      margin-right: 0;
      float: right;
    }
    .settings-buttons {
    display: flex;
    flex-direction: row;
    gap: 1em;
    flex-wrap: wrap;
    align-items: center;
    }
    .settings-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
    margin-top: 2em;
    }
    .settings-grid {
      grid-template-columns: 1fr;
    }
    .date-row {
      grid-template-columns: 1fr;
      gap: 0.5em;
    }
    .date-col, .plus-col {
      justify-content: flex-start;
    }
    .calendar-week-badge {
        font-size: 0.8em;
        padding: 0.1em 0.4em;
        border-radius: 0.8em;
        margin-left: 0.5em;
    }
}

@media (max-width: 768px) {
    .dispo-cards-grid {
      grid-template-columns: repeat(2, 1fr);
    }
}

.btn-cont {
  display: inline;
}

.form-buttons button,
.form-buttons a {
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border: 0.5px solid hotpink !important;
    box-shadow: 0 0 6px 0.5px hotpink !important;
}

/* ========== Dashboard ========== */

.dashboard-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    margin: 1.8rem 0 0.8rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
}

.highlight-card {
    background: #fff;
    border-radius: var(--btn-radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 1.1rem 1rem;
    text-align: center;
    border-top: 3px solid #e8e8e8;
}

.highlight-card.highlight-primary {
    border-top-color: #f48fb1;
}

.highlight-card.highlight-secondary {
    border-top-color: #90caf9;
}

.highlight-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.highlight-label {
    font-size: 0.82rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Dashboard Compare */

.dashboard-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.compare-col {
    background: #fff;
    border-radius: var(--btn-radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 1rem 1.2rem;
    border-top: 3px solid #e8e8e8;
}

.compare-col.compare-dispo {
    border-top-color: #f48fb1;
}

.compare-col.compare-zeit {
    border-top-color: #90caf9;
}

.compare-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-label {
    font-size: 0.85rem;
    color: #888;
}

.compare-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.compare-value.kpi-negative {
    color: var(--danger-color, #dc3545);
}

/* Dashboard Charts */

.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.chart-card {
    background: #fff;
    border-radius: var(--btn-radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 1rem;
    position: relative;
    height: 260px;
}

.chart-card--wide {
    background: #fff;
    border-radius: var(--btn-radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 1rem;
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 0.5rem;
}

/* Dashboard KPIs (general) */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
}

.dashboard-kpi {
    background: #fff;
    border-radius: var(--btn-radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 1rem;
    text-align: center;
}

.kpi-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.kpi-label {
    font-size: 0.82rem;
    color: #888;
    margin-top: 0.25rem;
}

.kpi-negative .kpi-value {
    color: var(--danger-color, #dc3545);
}

@media (max-width: 640px) {
    .dashboard-compare,
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    .dashboard-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Dispo Monatstabelle ========== */

.dispo-month-table-wrapper {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.dispo-month-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.dispo-month-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 0.7rem;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
}

.dispo-month-table td {
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.dispo-month-table tbody tr:hover {
    background: #f8f0f4;
}

.month-table-date {
    font-weight: 600;
    white-space: nowrap;
}

.month-table-date a {
    color: var(--primary-color);
    text-decoration: none;
}

.month-table-date a:hover {
    text-decoration: underline;
}

.month-table-kw {
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge-danger {
    background: #f8d7da;
    color: #842029;
}

.status-badge-info {
    background: #cfe2ff;
    color: #084298;
}

@media (max-width: 600px) {
    .dispo-month-table {
        font-size: 0.82rem;
    }
    .dispo-month-table th,
    .dispo-month-table td {
        padding: 0.35rem 0.4rem;
    }
}