@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
    font-family: Jost, sans-serif;
    background-color: #f4f4f4;
    justify-content: center;
    align-items: center;
    margin: 0;
    color: #222;
    font-size: 12px;
}

.gruen { color: #06D6A0; }
.rot { color: #FF6666; }
.gelb { color: #FFD166; }
.blau { color: #3399FF; }
.grau { color: #888; }
.hellgrau { color: #f0f0f0; }
.weiss { color: #ffffff; }


.gruen_bg { background-color: #06D6A0; }
.rot_bg { background-color: #FF6666; }
.gelb_bg { background-color: #FFD166; }
.blau_bg { background-color: #3399FF; }
.grau_bg { background-color: #888; }
.schwarz_bg { background-color: #222; }

.hellgruen_bg { background-color: #cefde8; }
.hellrot_bg { background-color: #ffe1e1; }
.hellgelb_bg { background-color: #fff0c6; }
.hellblau_bg { background-color: #eef8ff; }
.hellgrau_bg { background-color: #f0f0f0; }

header {
    position: fixed;
    justify-content: center; /* Zentriert den Inhalt horizontal */
    align-items: center;     /* Zentriert den Inhalt vertikal */ 
    height: 100%;
    width: 200px;
    top: 0;
    left: 0;
    color: #ffffff;
    padding: 20px 0; 
    background: rgb(249,114,0);
    background: #222;
}

.content {
    margin-left: 200px;
    padding: 0 20px;
}

header tr{
    border: 0;
    background: none;
}

header tr:nth-child(even) {
    background: none;
}

header th { 
    border-bottom: 0;
    font-size: 10px;
    padding: 15px 20px;
    background: none;
}

header td { 
    padding: 10px 20px;
    font-size: 14px;
    background: none;
}

header td:hover { 
    background: #f4f4f4;
    color: #222;
}

header td:hover a { 
    color: #222;
    font-weight: 700;
}

header img { 
    width: 160px;
    margin: 10px 20px;
    text-align: center;
}

header img:hover { border: none; }

header a {
    color: #ffffff;
}

header a:hover {
    color: #ffffff;
}

header a i { 
    width: 24px;
}

header #logout {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 20px;
}

header #logout table {
    width: 160px;
}

.code {
    font-family: "Share Tech Mono", monospace;
    font-weight: 400;
    font-size: 16px;
}

.count {
    font-weight: 900;
    font-size: 14px;
    color: #ffffff;
    padding: 6px;
    border-radius: 40px;
    width: 14px;
    height: 14px;
    text-align: center;
    line-height: 14px;
}

.logo { width: 60px; }

.container {
    background-color: #ffffff;
    padding: 10px 20px 25px 20px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.notification {
    opacity: 1;
    transition: opacity 1s ease-out;
    padding: 30px 20px;
    top: 80px;
    left: 80px;
    right: 80px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);    
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    position: fixed;
}

.notification.fade-out {
    opacity: 0;
}

.bemerkung {
    background-color: #f9f9f9;
    margin-top: 10px;
    padding: 20px; 
    border-radius: 8px; 
    border: solid 1px #ff6666;
}

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

td {
    padding: 8px 10px 4px 10px;
    height: 30px;
}

th {
    padding: 10px;
    height: 20px;
    font-size: 10px;
    text-transform: uppercase;
    text-align: left;
    border-bottom: solid 1px #c0c0c0;
}

th p {
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    margin: 5px 0 0 0;
}

th a {
    color: #222;
}

tr {
    border-bottom: solid 1px #d0d0d0;
}

.headline {
    margin-left: 200px;
    display: flex;
    align-items: center; /* Vertikal zentrieren */
    height: 60px;
    background-color: #ffffff;
    padding: 0 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.headline tr{
    background-color: #f4f4f4;
    border: 0;
}

.headline td {
    padding: 20px 20px 10px 0;
}

.zero-value {
    color: #ff6666;
    font-weight: 700;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.einloesen {
    font-family: "Share Tech Mono", monospace;
    border: 0;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 400;
    padding: 3px 10px;
    display: inline;
}

.btn {
    border: 0;
    border-radius: 20px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
    margin: 0 6px;
    padding: 5px 10px;
    display: inline;
}

.btn:hover {
    color: #888;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.btn i {
    margin-right: 2px;
}

.boxes {
    display: flex;
    margin-bottom: 20px;
}

.box {
    background-color: #ffffff;
    padding: 10px 20px 20px 20px;
    height: 80px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 16px;
}

h3 {
    font-size: 16px;
    margin: 5px 0 0 0;
}

h4 {
    font-size: 10px;
    margin: 0;
    display: inline;
}

h5 {
    font-size: 10px;
}

label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

input {
    font-family: Jost, sans-serif;
    font-size: 12px;
    border-radius: 20px;
    margin: 0;
    padding: 2px 8px;
    background-color: #ffffff;
    border: 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

select {
    font-family: Jost, sans-serif;
    font-size: 12px;
    border-radius: 20px;
    margin: 0 10px 0 0;
    padding: 2px 8px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    background-color: #ffffff;
    border: 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

textarea {
    font-family: Jost, sans-serif;
    font-size: 12px;
    border-radius: 8px;
    padding: 10px;
    background-color: #ffffff;
    border: solid 1px #dddddd;
}

.search-box {
    width: 100%;
    margin: 0px;
}

.fine_line {
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px 0 0 0;
    float: left;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.outline {
    border: solid 1px #ccc;
}

.fine_line p {
    margin: 5px 30px 0 0;
    display: inline-block;
}

.close {
    color: #222;
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #888;
    text-decoration: none;
    cursor: pointer;
}

/* Zusätzliche CSS für den Status-Punkt */
.status-dot {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: inline-block;
}

/* Stil für Erfolgsnachrichten */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
}
        
/* Stil für Fehlermeldungen */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Stil für das Benachrichtigungsmodal */
#notificationModal {
    position: fixed;
    left: 0;
    top: -200px; /* Start außerhalb des Bildschirms */
    background-color: #06D6A0; /* Grüner Hintergrund */
    color: #ffffff; /* Weiße Schriftfarbe */
    padding:  40px;
    z-index: 2000;
    transition: top 0.5s ease-in-out;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 24px;
}

#notificationModal.show {
    top: 0; /* Position nach oben sichtbar */
}

.search-container {
    position: relative;
    display: inline-block;
}

input#search {
    padding-right: 24px; /* Platz für das "X"-Icon einfügen */
}

.clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #aaa;
}

.clear-icon:hover {
    color: #333;
}

#backToTop {
    position: fixed;
    bottom: 0;
    right: 20px;
    background-color: #222;
    padding: 6px 6px 8px 6px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    opacity: 0.5;
    z-index: 3000;
    text-align: center;
}

#backToTop:hover {
    opacity: 1;
    padding-bottom: 16px;
}

#backToTop a {
    color: #FFFFFF;
    text-decoration: none;
    opacity: 1;
    text-align: center;
}

#backToTop h5 {
    color: #FFFFFF;
    text-decoration: none;
    opacity: 1;
    margin: 0;
    font-size: 8px;
}

#backToTop i {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 20px;
    line-height: 16px;
}

#backToTop span {
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    padding: 0 4px 0 0; 
    line-height: 16px;
}

/* Stil für Markenliste */

.brand-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-item {
    margin  : 0 10px;   
}

a.brand-name  {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;   /* Gleiche Breite wie die Logos */
    height: 50px;  /* Gleiche Höhe wie die Logos */
    text-align: center;
}

.brand-item img {
    max-width: 50px; /* Passen Sie die Größe nach Bedarf an */
    height: auto;
}

/* Kalenderstil */
.calendar {
    width: 100%;
    border-collapse: collapse;
}

.calendar th, .calendar td {
    width: 14.28%;
    border: 2px solid #ffffff;
    padding: 5px;
}

.calendar th {
    background-color: #222;
    color: #ffffff;
    height: 20px;
    text-align: center;
}

.calendar td {
    vertical-align: top;
    position: relative;
    height: 80px;
    padding-top: 37px;
    background-color: #f4f4f4;
}

.calendar .date-number {
    position: absolute;
    top: 8px;
    right: 10px;
    font-weight: bold;
    font-size: 16px;
}

.event {
    margin-bottom: 3px;
    padding: 1px 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    z-index: 2000;
}

.event i { margin-right: 4px; }

        .week-number {
            font-size: 14px;
            color: #bbb;
            position: absolute;
            top: 8px;
            left: 10px;
        }

        .date-number {
            position: absolute;
            top: 2px;
            right: 2px;
            font-weight: bold;
            width: 24px;
            height: 24px;
            text-align: center;
            line-height: 24px;
        }

        .current-day {
            background-color: #ff6666;
            color: #ffffff;
            border-radius: 50%;
            width: 26px;
            height: 26px;
            display: inline-block;
            text-align: center;
            line-height: 26px;
        }

        /* Tooltip-Stile */
        .tooltip {
            visibility: hidden;
            width: 250px;
            background-color: #222;
            color: #fff;
            text-align: center;
            border-radius: 4px;
            padding: 5px 0 10px 0;
            position: absolute;
            z-index: 1000;
            bottom: 80%; /* Positioniert den Tooltip oberhalb des Events */
            left: 50%;
            margin-left: -125px; /* Zentriert den Tooltip */
            opacity: 0;
            transition: opacity 0.8s;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
        }

        .tooltip h5 {
            font-size: 12px;
            font-weight: 700;
            margin: 10px 0 10px 0;
        }

        .tooltip .icon {
            font-size: 20px;
            margin: 12px 0 3px 0;
        }

        .tooltip p, .icon_small {
            font-size: 11px;
            text-transform: none;
            padding: 0;
            margin: 3px 0;
        }

        .tooltip::after {
            content: "";
            position: absolute;
            top: 100%; /* Pfeil an der Unterseite des Tooltips */
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #222 transparent transparent transparent;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
        }

        .event:hover .tooltip {
            visibility: visible;
            opacity: 1;
        }

        .lieferanten-table {
            width: 100%;
            border-collapse: collapse;
        }
        .lieferanten-table td {
            width: 20%; /* 5 Lieferanten pro Zeile */
            text-align: center;
            padding-bottom: 15px;
            vertical-align: top;
        }
        .lieferant-logo {
            width: 60px;
            height: 60px;
            object-fit: contain;
        }
        .lieferant-name {
            font-size: 10px;
            font-weight: bold;
            text-decoration: none;
            text-transform: uppercase;
        }
        .lieferant-name:hover {
            color: #007BFF; /* Farbe beim Hover */
        }

/* Hervorhebung der ausgewählten Tage */
.selected {
    background-color: #ebfef6 !important; /* Beispiel: Hellblau */
    cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 14px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 24px;

}

.slider:before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(10px);
  -ms-transform: translateX(10px);
  transform: translateX(10px);
}

/* Stil für den Drag-Selektionsmodus */
.selecting {
    background-color: #ebfef6 !important; /* Etwas dunkleres Blau */
}


        @media (max-width: 1200px) {
            .lieferanten-table td {
                width: 25%; /* 4 Lieferanten pro Zeile */
            }
        }
        @media (max-width: 992px) {
            .lieferanten-table td {
                width: 33.33%; /* 3 Lieferanten pro Zeile */
            }
        }
        @media (max-width: 768px) {
            .lieferanten-table td {
                width: 50%; /* 2 Lieferanten pro Zeile */
                margin-bottom: 20px;
            }
        }
        @media (max-width: 576px) {
            .lieferanten-table td {
                width: 100%; /* 1 Lieferant pro Zeile */
                margin-bottom: 20px;
            }
        }

.cal_date {
    margin: 0 20px 20px 20px;
    display: inline-block;
    vertical-align: middle;
}

.wday {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
}

.day {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    line-height: 46px;
}

.times {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
}

/* News-Ticker Styles */
.news-ticker {
    position: fixed;
    top: 0;
    left: 200px;
    width: 100%;
    height: 50px;
    background-color: #FF6666; /* Blaues Hintergrund */
    color: #ffffff; /* Weißer Text */
    overflow: hidden;
    white-space: nowrap;
    z-index: 2000; /* Sicherstellen, dass der Ticker über anderen Elementen liegt */
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 14px;
}

strong {
   text-transform: uppercase;
}

.ticker-content {
    display: flex;
    /* Animation: scroll the content from right to left */
    animation: ticker-scroll 60s linear infinite;
}

.ticker-content + .ticker-content {
    animation-delay: -30s; /* Halbzeit der Animation, um die zweite Kopie nahtlos zu starten */
}

.ticker-item {
    display: inline-block;
    margin-right: 30px; /* Abstand zwischen den Nachrichten */
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ticker-item {
        font-size: 14px;
        margin-right: 30px;
    }
}

@media (max-width: 480px) {
    .ticker-item {
        font-size: 12px;
        margin-right: 20px;
    }
}
