:root {
    --primary-color: var(--bs-primary);
    --secondary-color: var(--bs-secondary);
    --font-family-base: var(--bs-body-font-family);
    --body-bg-color: var(--bs-body-bg);
    --font-size-base: 0.9rem;
}

html {
    /* Stelle eine gut lesbare Basisgröße sicher */
    font-size: 100%;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--body-bg-color);
    font-size: var(--font-size-base);
}

.h1, h1 {
    font-size: clamp(1.75rem, 3vw, 2.15rem);
}

@media (min-width: 1200px) {
    .h1, h1 {
        font-size: 2.15rem;
    }
}

.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Minimal custom styles extending Bootstrap */
.weekend { background-color: #f8d7da; color: #721c24; }
.early-shift { background-color: #d4edda; color: #155724; }
.mid-shift { background-color: #fff3cd; color: #856404; }
.late-shift { background-color: #d1ecf1; color: #0c5460; }
.night-shift { background-color: #d6d8db; color: #343a40; }

/* Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    background-color: #333;
    padding: 0.5rem 1rem;
    margin: 0;
}

.nav-links li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.nav-links li a:hover {
    background-color: #444;
}

/* Hamburger menu */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: -100%;
        width: 200px;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .burger-menu {
        display: flex;
    }
}

/* Card enhancements */
.card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 1rem;
}
/*********************************************
 * ROOT VARIABLES
 *********************************************/
:root {
  --color-primary: #FFD600;        /* Primärfarbe (Gold) */
  --color-primary-dark: #CC9B00;   /* Dunklere Goldnuance */
  --color-black: #000000;          /* Reines Schwarz */
  --color-background: #f5f5f5;     /* Hellgrauer Seitenhintergrund */
  --color-text: #333;             /* Dunkles Grau für den Fließtext */
  --color-nav-bg: #212121;        /* Für die Navigation (dunkles Grau/Schwarz) */
  --transition-speed: 0.3s;
  --font-family-main: 'Inter', sans-serif;
}

/*********************************************
 * GENERELLE GRUNDEINSTELLUNGEN
 *********************************************/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
  font-family: var(--font-family-main);
  background-color: var(--color-background);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  /* EYE CANDY: dezentes Fade-In beim Laden */
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/*********************************************
 * NAVIGATION
 *********************************************/

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: var(--color-nav-bg);
    padding: 10px 20px;
    color: #ffffff;
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/*********************************************
 * DROPDOWN MENÜS
 *********************************************/

/* Basis Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Direkt unter dem Hauptmenüpunkt */
    left: 0;
    background-color: #ffffff;
    color: var(--color-text);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: max-content;
    min-width: 0;
    white-space: nowrap;
}

.dropdown-menu a {
        color: var(--color-black) !important;
}
.dropdown-menu a:hover {
        color: var(--color-primary) !important;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

/* Verschachtelte Dropdowns */
.dropdown-menu .dropdown {
    position: relative;
}

.dropdown-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%; /* Seitlich vom übergeordneten Menü */
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-menu .dropdown:hover > .dropdown-menu {
    display: block;
}

/*********************************************
 * NAVIGATION LINKS IN EIGENER ZEILE
 *********************************************/

.nav-primary-links {
    display: flex;
    justify-content: center;
    background-color: var(--color-nav-bg);
    padding: 10px 0;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.nav-primary-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.nav-primary-links a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/*********************************************
 * RESPONSIVE DESIGN
 *********************************************/

/* Burger-Menü-Icon für mobile Geräte */
.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.25em;
    color: #ffffff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--color-nav-bg);
        color: #ffffff;
        list-style: none;
        margin: 0;
        padding: 20px;
        transition: right var(--transition-speed) ease-in-out;
        z-index: 2000;
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links a {
        margin: 15px 0;
    }
}

/*********************************************
 * BADGES
 *********************************************/

.nav-links .badge {
    display: inline-block;
    background-color: red;
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/*********************************************
 * HAUPTINHALT
 *********************************************/

main {
  margin: 0 auto;
  padding: 20px;
  max-width: calc(100% - 40px);
  overflow-x: auto;
}

section ul {
  list-style-type: none;
  padding: 0;
}

section ul li {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  /* EYE CANDY: leichter Schatten */
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
section ul li:hover {
  /* EYE CANDY: leichter Schatten */
  transform: scale(1.03);
}

section ul li button {
  margin-top: 5px;
  padding: 5px 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

section ul li button:hover {
  background-color: #218838;
  /* EYE CANDY: minimaler Zoom-Effekt */
  transform: scale(1.03);
}

/*********************************************
 * TABELLEN
 *********************************************/
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  /* EYE CANDY: 
     Damit der Tabelle-Schatten/die abgerundeten Ecken 
     nicht „abgeschnitten“ werden */
  padding: 0.5rem 0;
  max-width: 100%;
  /* Für iOS/Android flüssigeres Scrollen */
  -webkit-overflow-scrolling: touch;
}

/* Die eigentliche Tabelle */
table {
  width: auto;
  display: table;
  white-space: nowrap;

  /* EYE CANDY: abgerundete Ecken + dezenter Schatten */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #fff;
  margin-bottom: 1rem;
}

th, td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: center;
  transition: background-color var(--transition-speed) ease;
}

th {
  background-color: var(--color-primary);
  color: var(--color-text);
  font-weight: 600;
  /* EYE CANDY (optional): 
     - Etwas mehr Tracking (Buchstabenabstand)
     - Großschreibung für Header */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:nth-child(even) {
  /* Leichtes Grau für wechselnde Zeilen */
  background-color: #f9f9f9;
}

tr:hover {
  /* Dezenter Gelbton beim Hover */
  background-color: #fff9d9;
}

/* EYE CANDY: Für die ersten/letzten Zellen 
   kleine Rundung, falls du sie oben UND unten willst, 
   kannst du es erweitern.  */

/* Erster Row, linke obere Ecke */
table tr:first-child th:first-child {
  border-top-left-radius: 8px;
}
/* Erster Row, rechte obere Ecke */
table tr:first-child th:last-child {
  border-top-right-radius: 8px;
}

/* Wenn du abgerundete Ecken 
   an der letzten Zeile möchtest, füg folgendes hinzu: */
table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

/*********************************************
 * BUTTONS
 *********************************************/

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-group > * {
  margin: 0;
}

button {
  background-color: var(--color-primary);
  color: var(--color-text);
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
  margin-bottom: 15px;
  /* EYE CANDY: dezenter Schatten */
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/*********************************************
 * FORMULARE
 *********************************************/

input, select {
  border: 1px solid #cccccc;
  border-radius: 5px;
  padding: 8px;
  width: 100%;
  margin: 10px 0;
  font-family: var(--font-family-main);
  transition: border-color var(--transition-speed);
}

input:focus, select:focus {
  border-color: var(--color-primary);
  outline: none;
  /* EYE CANDY: leichter Glow */
  box-shadow: 0 0 4px rgba(255, 214, 0, 0.4);
}

/*********************************************
 * MODAL
 *********************************************/


.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.5);
}

/* Abwesenheitstypen */
.absent-yellow {
  background-color: #fff3cd;
  color: #856404;
  font-weight: bold;
}

.absent-orange {
  background-color: #ffe5b4;
  color: #7a3e00;
  font-weight: bold;
}

.absent-purple {
  background-color: #e2d6f5;
  color: #4b0082;
  font-weight: bold;
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #cccccc;
  border-radius: 15px; /* EYE CANDY: rundere Ecken */
  width: 95%;
  color: var(--color-text);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform var(--transition-speed);
}

.modal-content:hover {
  /* EYE CANDY: leichter „anheben“-Effekt */
  transform: scale(1.01);
}

.modal .close {
  color: var(--color-primary);
  float: right;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
}

.modal .close:hover,
.modal .close:focus {
  color: var(--color-primary-dark);
}

.dashboard-table tbody tr.mitarbeiter-row {
  cursor: pointer;
  transition: background-color var(--transition-speed, 0.2s) ease-in-out;
}

.dashboard-table tbody tr.mitarbeiter-row:hover {
  background-color: rgba(13, 110, 253, 0.08);
}

/*********************************************
 * SIDEBAR
 *********************************************/

.sidebar {
  width: 100%;
  /* background-color: #fafafa; */
  color: var(--color-text);
  border-top: 1px solid #e0e0e0;
  padding: 20px;
  overflow-y: auto;
  /* EYE CANDY: dezenter Verlauf im Hintergrund */
  /* background: linear-gradient(#fafafa, #ffffff 80%); */
}

.sidebar h3 {
  color: var(--color-text);
  margin-top: 0;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 5px;
}

.sidebar section {
  margin-bottom: 20px;
  /* EYE CANDY: leichter Schatten */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
}

.sidebar a {
  color: var(--color-text);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-size: 0.95em;
  transition: color 0.2s;
}

.sidebar a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.sidebar p {
  font-size: 0.9em;
  line-height: 1.5;
}

/*********************************************
 * KRITERIEN IN DER MODAL
 *********************************************/

.criteria-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.criteria-container fieldset {
  flex: 1 1 100%;
  min-width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.criteria-container fieldset legend {
  font-weight: 600;
  margin-bottom: 10px;
}

.criteria-container label {
  display: inline-block;
  margin-right: 10px;
}

.criteria-container input[type="radio"] {
  margin: 5px;
}

/* Gruppierung der Radio-Buttons */
.radio-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  width: 100%;
}

.radio-group label input {
  margin-right: -15px !important;
}

/*********************************************
 * MEDIA QUERIES
 *********************************************/

@media (min-width: 768px) {
  .with_sidebar {
    margin-right: 350px;
  }

  .sidebar {
    position: fixed;
    width: 300px;
    right: 0;
    top: 70px;
    height: calc(100% - 60px);
    border-top: none;
    /* border-left: 1px solid #e0e0e0; */
  }

  .criteria-container fieldset {
    flex: 1 1 calc(50% - 20px);
    min-width: 300px;
    max-width: 46%;
  }

  .radio-group label {
    width: calc(25%);
  }

  .modal-content {
    width: 70%;
  }
}

/* EYE CANDY: Custom Scrollbar (optional, nur WebKit-Browser) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
  transition: background var(--transition-speed);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}
/*********************************************
 * ROOT VARIABLES (bestehend)
 *********************************************/
:root {
  --color-primary: #FFD600;        /* Primärfarbe (Gold) */
  --color-primary-dark: #CC9B00;   /* Dunklere Goldnuance */
  --color-black: #000000;          /* Reines Schwarz */
  --color-background: #f5f5f5;     /* Hellgrauer Seitenhintergrund */
  --color-text: #333;              /* Dunkles Grau für den Fließtext */
  --color-nav-bg: #212121;         /* Für die Navigation (dunkles Grau/Schwarz) */
  --transition-speed: 0.3s;
  --font-family-main: 'Inter', sans-serif;

  /* NEUE VARIABLEN FÜR EYECANDY */
  --gradient-nav: linear-gradient(90deg, #212121 0%, #2B2B2B 100%); /* dezenter Gradient für die Navigation */
  --gradient-highlight: linear-gradient(45deg, #FFD600 0%, #FFC107 100%); /* Goldgelber Gradient */
}

/*********************************************
 * ALLGEMEINES STYLING (bestehend)
 *********************************************/
body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: left;
    margin-bottom: 20px;
}

/* Animation für das H1 (neu hinzugefügt) */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
    color: #333;
    min-height: 3rem; /* Platz für den Tipp-Effekt */
    animation: fadeInDown 0.8s ease forwards; /* Wendet die Animation an */
}

header p#subtitle {
    font-size: 1.2em;
    font-weight: 300;
    color: #555;
    margin-top: 10px;
}

/* Flexbox Layout für Widgets */
main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/*********************************************
 * NAVIGATION (bestehend + kleine Anpassungen)
 *********************************************/

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Neuer dezenter Farbverlauf */
    background: var(--gradient-nav);
    padding: 10px 20px;
    color: #ffffff;
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/*********************************************
 * DROPDOWN MENÜS (bestehendes)
 *********************************************/

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    color: var(--color-text);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: max-content;
    min-width: 0;
    white-space: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

/*********************************************
 * NAVIGATION LINKS IN EIGENER ZEILE (bestehend)
 *********************************************/

.nav-primary-links {
    display: flex;
    justify-content: center;
    background-color: var(--color-nav-bg);
    padding: 10px 0;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.nav-primary-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.nav-primary-links a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/*********************************************
 * RESPONSIVE DESIGN (bestehendes)
 *********************************************/

.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.25em;
    color: #ffffff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--color-nav-bg);
        color: #ffffff;
        padding: 20px;
        transition: right var(--transition-speed) ease-in-out;
        z-index: 2000;
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links a {
        margin: 15px 0;
    }
}

/*********************************************
 * BADGES (bestehend)
 *********************************************/

.nav-links .badge {
    display: inline-block;
    background-color: red;
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/*********************************************
 * WIDGETS (bestehend + neue Hover-Effekte)
 *********************************************/

.widget {
    background-color: white;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    border-radius: 10px;
    border: 2px solid #FFD700; /* Gelber Rand */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Schlagschatten */
    position: relative;
    width: 100%;
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Für Hover-Animation */
}

/* Hover-State für Widgets */
.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.widget h2 {
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: #FFD700; /* Gelber Hintergrund */
    color: #333; /* Dunkle Schriftfarbe */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.department h3 {
    font-size: 1.05em;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

.department ul {
    padding-left: 20px;
}

#zentraler-dienstplan h3 {
    margin-top: 20px;
    font-size: 1.4em;
}

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

#zentraler-dienstplan ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

#zentraler-dienstplan table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#zentraler-dienstplan table th, #zentraler-dienstplan table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#zentraler-dienstplan table th {
    background-color: #f7f7f7;
    font-weight: bold;
}


/*********************************************
 * BUTTONS ODER INTERAKTIVE ELEMENTE (bestehend + neues Hover)
 *********************************************/

button {
    background: var(--gradient-highlight);
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

button:hover {
    /* Farbverlauf etwas verschieben für kleinen „Lichtreflex“-Effekt */
    background: linear-gradient(45deg, #FFC107 0%, #FFD600 100%);
}

/*********************************************
 * RESPONSIVE DESIGN (bestehend)
 *********************************************/

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    main {
        flex-direction: column;
    }

    .widget {
        flex: 1 1 100%;
    }
}

/*********************************************
 * ZUSÄTZLICHE ANIMATIONEN & KEYFRAMES
 *********************************************/

/* Beispiel: Dezenter „Pulse“-Effekt auf Hover für Buttons (optional) */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

button:hover {
    animation: pulse 0.5s ease-in-out;
    animation-iteration-count: 1;
}

/* Falls du noch weitere Texte o. Ä. animieren möchtest, könntest du solche Keyframes
   einsetzen oder eigene erstellen (z.B. Slide-In, Fade-In, Shake, etc.). */

/*********************************************
 * DASHBOARD REDESIGN
 *********************************************/
.dashboard-container {
    max-width: 100%;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.dashboard-hero {
    border: none;
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.35), rgba(255, 214, 0, 0.05));
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 214, 0, 0.55), transparent 55%);
    opacity: 0.85;
}

.dashboard-hero .card-body {
    position: relative;
    z-index: 1;
    padding: 2.75rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75em;
    font-weight: 600;
    color: #a07c00;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2.2em, 2.4vw + 1.2em, 3.4em);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f1f1f;
}

.hero-subtitle {
    font-size: 1.05em;
    color: #4d4d4d;
    margin: 0;
    max-width: 36rem;
}

.hero-meta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #343a40;
    font-weight: 600;
}

.hero-meta-badge {
    background: rgba(33, 33, 33, 0.12);
}

.dashboard-quickstats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 2.5rem;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid #f1f3f5;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.1);
}

.stat-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.78em;
    letter-spacing: 0.16em;
    color: #6c757d;
    font-weight: 600;
}

.stat-value {
    font-size: 1.85em;
    font-weight: 700;
    color: #212529;
}

.dashboard-main {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
    grid-auto-rows: 12px;
    grid-auto-flow: dense;
}

@media (min-width: 992px) {
    .grid-span-2 {
        grid-column: span 2;
    }
}

@media (min-width: 1200px) {
    .grid-span-full {
        grid-column: 1 / -1;
    }
}

.widget.card {
    border: none;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.05);
}

.widget.card .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.section-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #c29c00;
}

.section-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 0.95em;
}

.company-card {
    background: #fdfdfd;
    border: 1px solid #eef1f4;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.company-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #1f1f1f;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-title {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f1f1f;
}

.stacked-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.stacked-list-item {
    background: #f9fafb;
    border: 1px solid #edf0f3;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stacked-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.list-primary {
    font-weight: 600;
    color: #1f1f1f;
}

.list-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9em;
    color: #495057;
}

.list-secondary span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.list-meta {
    font-size: 0.82em;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dashboard-table thead th {
    text-transform: uppercase;
    font-size: 0.78em;
    letter-spacing: 0.08em;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-table tbody th {
    font-weight: 600;
    color: #1f1f1f;
}

.dashboard-table td,
.dashboard-table th {
    white-space: nowrap;
}

.dashboard-table .weekend {
    background: rgba(220, 53, 69, 0.12);
    color: #a11a2b;
}

.dashboard-table .early-shift {
    background: rgba(25, 135, 84, 0.18);
    color: #0f5132;
}

.dashboard-table .mid-shift {
    background: rgba(255, 193, 7, 0.18);
    color: #664d03;
}

.dashboard-table .late-shift {
    background: rgba(13, 110, 253, 0.12);
    color: #0a58ca;
}

.dashboard-table .night-shift {
    background: rgba(108, 117, 125, 0.16);
    color: #495057;
}

@media (max-width: 768px) {
    .dashboard-hero .card-body {
        padding: 2rem;
    }

    .dashboard-quickstats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-meta span {
        width: 100%;
        justify-content: center;
    }

    .dashboard-quickstats {
        grid-template-columns: 1fr;
    }
}
