
/*
 * This file is part of ClubCash.
 *
 * ClubCash is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License,
 * or (at your option) any later version.
 *
 * ClubCash is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with ClubCash. If not, see <https://www.gnu.org/licenses/>.
 */

 .warnung {
    background-color: var(--warning-color);
    color: var(--text-color-light);
    padding: 10px;
    border-radius: 5px;
    font-size: 20px;
    text-align: center;
    margin: 10px;
 }

.switch {
    position: relative;
    display: inline-block;
    width: 38.4px;
    height: 21.6px;
}

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

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 21.6px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 16.8px;
    width: 16.8px;
    left: 2.4px;
    bottom: 2.4px;
    background-color: var(--text-color-light);
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--button-color);
}

.switch input:checked + .slider:before {
    transform: translateX(16.8px);
}


@font-face {
    font-family: 'Carlito';
    src: url('grafik/Carlito-Regular.ttf') format('truetype');
}

@font-face {
    font-family: '3-of-9';
    /* Mehrere Quellen für bessere Kompatibilität */
    src: url('grafik/LibreBarcode39-Regular.ttf') format('truetype');
    font-display: swap; /* Verhindert FOIT (Flash of Invisible Text) */
}

.EinstellungsFrm label {
    margin-left: 20px;
}

.EinstellungsFrm input {
    max-height: 24px;
    border: none;
    padding: 0px 10px 0px 10px;
    font-size: 16px;
}

p.beschreibung {
    font-size: .8em;
    color: var(--text-color-dark);
    margin: 0;
    height: 20px;
    overflow: hidden;
}

p.beschreibung:hover {
    height: auto; /* Höhe anpassen, wenn der Text überläuft */
    overflow: visible; /* Sichtbar machen, wenn der Text überläuft */
    color: var(--secondary-color);
}

p.formularunterüberschrift {
    font-family: 'Carlito', sans-serif;
    font-size: 1.2em;
    font-style: italic;
    color: var(--text-color-dark);
    margin: 0;
    grid-column: span 3;
    background-color: var(--border-color);
    padding-left: 10px;
    margin-top: 20px;
    border-radius: 5px;
}

#portalmenu2 {
    padding: 10px 10px 0px 20px;
}

#portalmenu2 h2 {
    margin: 10px;
}

#portalmenu2 input {
    border: solid 1px var(--border-color);
    border-radius: 5px;
    background-color: var(--text-color-light);
}

.barcode {
    font-family: '3-of-9', 'Courier New', monospace;
    font-size: 2em;
}

.preisliste-table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
    margin-left: 0px;
    margin-top: 20px; 
    max-width: none;
    font-size: 30px;
}

.preisliste-table tr {
    vertical-align: top;
    height: 50px;
}

.preisliste-print button {
    position: absolute;
    top: 10px;
    right: 10px;
}

@media print {
    .preisliste-print button {
        display: none;
    }
}

mark {
    color: var(--text-color-light);
    background-color: var(--button-color);
    margin: 5px;
    padding: 0px 5px;
    border-radius: 5px;
}

.portal {
    background-color: var(--background-light);
    color: var(--text-color-dark);
    font-size: 20px;
}

.portal-table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
    margin-left: 0px;
    margin-top: 20px; 
    max-width: none;
}

.portal-table td {
    padding: 2px 5px 2px 5px;
    border: 1px solid var(--border-color);
}

.summenzeile {
    border-top: 1px solid black;
}
    
#portal-inhalt {
    display: block;
    margin: 10px;
    padding: 10px;
    background-color: var(--text-color-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: left;
    overflow: auto;
    max-height: calc(100vh - 320px);
}

/* Für das portal-inhalt den Scrollbalken auf Standard zurücksetzen */
#portal-inhalt::-webkit-scrollbar {
    width: auto;  /* Standardgröße */
}

#portal-inhalt::-webkit-scrollbar-track {
    background: auto; /* Standard Hintergrund */
    border-radius: 0;  /* Standard-Rundung */
}

#portal-inhalt::-webkit-scrollbar-thumb {
    background: auto;  /* Standard-Farbe */
    border-radius: 0;   /* Standard-Rundung */
}

#portal-inhalt::-webkit-scrollbar-thumb:hover {
    background: auto;  /* Standard Hover-Farbe */
}


/* Navigation Container */
.navbar {
background-color: var(--background-dark);
}

/* Hauptmenü */
.navbar > ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
background-color: var(--background-dark);
}

.navbar > ul > li {
position: relative;
z-index: 2;
}

/* Hauptmenü Links */
.navbar > ul > li > a {
display: block;
padding: 14px 20px;
color: var(--text-color-light);
text-decoration: none;
}

.navbar > ul > li > a:hover {
background-color: var(--text-color-dark);
}

/* Dropdown-Menü */
.navbar li ul {
display: none;
position: absolute;
background-color: var(--background-dark);
list-style-type: none;
margin: 0;
padding: 0;
top: 100%;
left: 0;
min-width: 160px;
}

.navbar li:hover ul {
display: block;
}

.navbar li ul li a {
display: block;
padding: 12px 16px;
color: var(--text-color-light);
text-decoration: none;
}

.navbar li ul li a:hover {
background-color: var(--text-color-dark);
}

.navbar li ul li a.disabled {
pointer-events: none;
color: var(--error-color) !important;
cursor: not-allowed;
background-color: transparent !important;
}


.preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999; /* Preloader wird oben angezeigt */
        }

        .spinner {
            border: 8px solid rgba(255, 255, 255, 0.3);
            border-top: 8px solid #fff;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

        /* Animation für die Sanduhr */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

#login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;    
    align-items: center;
}

body {
    color: var(--text-color-dark);
    margin: 0px;

}

.preiseingabe {
    font-size: 30px;
    text-align: center;
    margin: 10px 0px 10px 0px ;
}

.button {
    background-color: var(--button-color);
    color: var(--text-color-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    width: 200px;
    height: 40px;
    font-size: 15px;
}

.kleinerBt {
    height: 38px;
}

.box_zentrieren {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.inputfeld {
    background-color: var(--background-light);
}

input[type="date"] {
    font-family: 'Carlito', sans-serif;
    font-size: 20px;
    background-color: var(--background-light);
    border: none
}

.edited {
    background-color: yellow;
    }
.new {
    background-color: lightgreen;
    }
.deleted td {
    background-color: #fdd;
    }
.deleted .text {
    text-decoration: line-through;
    }
 .icon {
    font-size: 16px; /* Beispiel für die Icons */
    }
a {
    text-decoration: none;
    cursor: pointer;
    }

select {
    font-family: 'Carlito', sans-serif;
    font-size: 20px;
    border: none;
    background-color: var(--background-light);
    color: var(--text-color-dark);
 
    border-radius: 5px;
}

.button:hover {
    background-color: var(--button-hover);
}

/* Allgemeine Stile */
body {
    font-family: 'Carlito', sans-serif;
    font-size: 20px;
}

/* Menüleiste */
#navbar {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color-dark);
    position: absolute;
}

/* Hamburger-Icon */
.menu-icon {
    display: block;
    cursor: pointer;
    font-size: 24px;
}

/* Menü-Container */
.menu {
    flex-direction: column;
    background: var(--background-light);
    position: absolute;
    top: 50px;
    left: 0;
    width: 300px;
    text-align: center;
    padding: 10px 0;
    border: solid 1px var(--border-color);
    border-top: none;
    border-left: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 10;
    transform-origin: top;
    transition: transform 0.3s ease-out;
    transform: scaleY(0);
}

/* Buttons im Menü */
.menu button {
    background: var(--secondary-color);
    color: var(--text-color-light);
    border: none;
    padding: 10px;
    margin: 5px;
    width: 96%;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
}

.menu button:hover {
    background: var(--tertiary-color);
}

button:hover {
    background: var(--button-hover);
}

button:disabled {
    background-color: var(--border-color);
    color: var(--text-color-dark);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Menü aktivieren */
.menu.active {
    transform: scaleY(1);
}

p {
    margin-block-start: 0em;
}

h1 {
    margin: 0px;
    text-align: center;
}

h2 {
    text-align: left;
    font-size: 25px;
    font-weight: bold;
    margin: 20px 0px 0px 0px;
}

button {
    height: 70px;
    width: 180px;
    margin: 5px 5px 0px 5px;
    font-weight: bold;
    font-size: 20px;
    background-color: var(--button-color);
    border: none;
    border-radius: 5px;
    color: var(--text-color-dark)
}

#vereinsnamen {
    font-size: 1em;
    text-align: left;
    margin: 0px;
    padding: 0px;
}

button:hover {
    background: var(--button-hover);
}

#abbruch {
    background-color: var(--warning-color);
}

#direktwahl button {
    height: 50px;
    width: 230px;
    margin: 5px 5px 0px 5px;
    font-weight: bold;
    font-size: 18px;
    background-color: var(--button-color);
    border: none;
    border-radius: 5px;
    color: var(--text-color-dark)
}

#direktwahl button:hover {
    background: var(--button-hover);
}

.zentriert {
    text-align: center;
}

/* Admin Fenster */
#adminfenster {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

#adminfenster button {
    width: 280px;
}

/* Preisfenster */
#preisfenster {
    display: none;
    position: absolute;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: var(--background-light);
    margin: 0;
    padding: 0;
    height: 480px;
    width: 800px;
    z-index: 3;
}

#preisfenster_inhalt {
    background-color: var(--text-color-light);
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: solid 1px var(--border-color);
    height: 100%;
    margin: 15px;
    padding: 10px;
}

#preisliste_schließen {
    background-color: var(--success-color);
    position: absolute;
    top: 2px;
    right: 20px;
    border: 1px solid;
    height: 50px;
    width: 50px;
    font-size: 30px;
}

#preislistentabelle thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Display */
#display {
    background-color: var(--background-light);
    margin: 0;
    padding: 0;
    height: 480px;
    width: 800px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

#direktwahl {
    height: 340px;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}

#linkeSpalte {
    width: 600px;
}

/* Removed empty ruleset for #rechteSpalte */

/* Tastatur */
#tastatur {
    display: none;
    width: 195px;
    position: fixed;
    background: var(--text-color-light);
    left: 600px;
    top: 120px;
    border: solid 1px;
    height: 300px;
}

#tastatur button {
    width: 50px;
    height: 50px;
    margin: 5px;
    font-size: 30px;
}

/* Warenkorb Tabelle */
#warenkorbtabelle {
    width: 100%;
}

#bt-abrechnungExport {
    background-color: var(--warning-color);
}

#bt-Kontoausgleich {
    background-color: var(--success-color);
}

#datenfeld {
    height: 400px;
    overflow: auto;
    border: 1px solid var(--border-color);
    padding: 5px;
    margin: 10px 10px 0px 10px;
    background-color: var(--text-color-light);
    border-radius: 5px;
}

#copyright {
    font-size: .8em;
}

#summenkasten {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    font-size: 35px;
    font-weight: bold;
}

.leerspalte {
    width: 50px;
}

.preisspalte {
    width: 80px;
}

.preisspalteWarenkorb {
    width: 120px;
}

.datumspalte {
    width: 100px;
}

.kundenspalte {
    min-width: 200px;
    text-align: left;
    vertical-align: top;
}

.top {
    vertical-align: top;
}

.preispalte {
    width: 100px;
    text-align: right;
}

/* Statusfeld */
#statusfeld {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    font-weight: bold;
    color: var(--text-color-dark);
}

/* Menubar */
#menubar {
    height: 300px;
}

/* Logo */
#logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

/* Tabellen */
th {
    background-color: var(--border-color);
    color: var(--text-color-dark);
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 3px;
    border: 2px white solid;
}

.BT_Eingabe {
    background-color: var(--sucess-color);
}

#BT_EingabeBestätigt {
    background-color: var(--success-color);
}

#BT_EingabeBestätigt:hover {
    background: var(--button-hover);
}

#BT_Abbruch {
    background-color: var(--error-color);
}

.bt_produkt {
    height: 50px;
    width: 240px;
    margin: 5px 5px 0px 5px;
    font-weight: normal;
    font-size: 15px;
    border: 1px solid;
}

/* Verschiedene Klassen */
.rechts {
    text-align: right;
}

.links {
    text-align: left;
}

.rechts_groß {
    text-align: right;
    font-size: 30px;
    padding-right: 10px;
}

.preisliste_rechts_groß {
    text-align: right;
    font-size: 30px;
    padding-right: 10px;
}

.zeit {
    text-align: center;
    width: 90px;
    font-size: 15px;
}

.währung {
    text-align: right;
    vertical-align: bottom;
    width: 100px;
}

.zentriertTop {
    text-align: center;
    vertical-align: top;
}

/* Weitere spezifische IDs */
#bt_x {
    background-color: var(--warning-color);
    position: absolute;
    top: 2px;
    right: 20px;
    border: 1px solid;
    height: 50px;
    width: 50px;
    font-size: 30px;
}

#Namenfeld {
    background-color: var(--border-color);
    font-weight: bold;
    text-align: left;
    padding: 5px;
}

.plus-button {
    width: 50px;
    height: 40px;
    font-size: 20px;
    padding: 0px;
    margin: 5px;
}

/* Breite des Scrollbalkens */
::-webkit-scrollbar {
    width: 40px;
}

/* Hintergrund des Scrollbalkens */
::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 10px;
}

/* Farbe des Scrollbalkens */
::-webkit-scrollbar-thumb {
    background: var(--tertiary-color);
    border-radius: 10px;
}

/* Scrollbalken beim Hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--tertiary-color);
}


#bildschirmschoner {
    display: none;
    width: 800px;
    height: 480px;
    border: none;
    overflow: hidden;
    position: absolute;
    top: 0px;
    background-color: black;
    z-index: 20;
    
}

.input-button {
    display: none;
}


#Wartungsfenster {
    display: block;
    background-color: var(--background-dark);
    color: var(--text-color-light);
    text-align: center;
    font-size: 20px;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

@keyframes scale-image {
    0% { width: 0px; opacity: 0; }
    40% { width: 400px; opacity: 1; } /* Wächst und wird sichtbar */
    50% { width: 400px; opacity: 1; } /* 5 Sek. sichtbar bleiben */
    90% { width: 0px; opacity: 0; } /* Schrumpft und wird unsichtbar */
    100% { width: 0px; opacity: 0; }
  }
  
  .scaling-img {
    width: 0px;
    height: auto; /* Höhe bleibt proportional */
    animation: scale-image 30s linear infinite;
  }

  .menuspalte {
    /*background-color: rgb(212, 212, 212);*/
    width: 300px
  }

  .menuspalte button {
    font-size: 15px;
    height: 45px;
  }

  #mittelteil {
    display: flex;
  }

  #inhaltsspalte {
    width: 1200px;
    height: 100%;
    /*background-color: rgb(222, 222, 240);*/
  }

  #checkmark-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
    color: #4CAF50;
    margin-top: 40px;
    }

    #checkmark {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 2s ease;
    }

    .DatumInput {
        font-family: 'Carlito', sans-serif;
        font-size: 25px;
        font-weight: bold;
        width: 150px;
        margin: 0px 20px;
    }