/* Selbst gehostete Schrift (offline-fähig, OFL-lizenziert) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('montserrat-latin-400.woff2') format('woff2');
}

body{

    font-family: 'Montserrat', sans-serif;
    color: rgb(255, 253, 253) ;
    margin: 0;

}

/* Gradido-Coin oben links, harmonische Groesse + Abstaende */
#logo{
    position: absolute;
    top: 18px;
    left: 20px;
    width: clamp(72px, 12vh, 108px);
    height: auto;
    z-index: 10;
    pointer-events: none;   /* faengt keine Klicks ab */
}
table{
 width: 100%;  
 height: 64vh;
 background-color: rgb(30, 30, 30); 
 
 color:rgb(198, 190, 190) ;
 font-family: 'Montserrat', sans-serif;
}
td{
    width: 25%;
    text-align: center;
    font-size: 36px;
    background-color: rgb(20, 22, 18); 
}
td:hover{
    background-color: rgb(30, 30, 30);
    color: rgb(255, 253, 253) ;
    cursor: pointer;
} 


.resultArea{
    background-color: rgb(40, 40, 40);
    color: rgb(255, 253, 253);
    display:flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 24px;
    box-sizing: border-box;
}

#resultArea{
    height: 13vh;  
    font-size: 64px; 
    padding-top: 2px;
    align-items: flex-start;
    padding-bottom: 12px;
}

#resultArea2{
    height: 12vh;
    line-height: 1.2;
    white-space: nowrap;
    font-size: 18px;
    text-align: right; 
    padding-top: 0px;
    padding-bottom: 12px;
}

#discountTable {
    height: 5vh;
    padding-bottom: 0px;  
}
.discountTable {
height: 10px;
font-size: 16px;
color: rgb(132, 174, 116);
text-align: right;
background-color: rgb(40, 40, 40);

}

#percent{
    width: 10%;
}

#discount {
    width: 95%;  
}


.result{
    background-color: rgb(9, 5, 64); 

}
.result:hover{
    background-color: rgb(10, 5, 76); 
}

#dankBarButton {
    font-size: 22px;   
}

.highlight{
    background-color: rgb(27, 80, 7); 

}


.highlight:hover{
    background-color: rgb(33, 98, 10);  
}


.delete{
    background-color: rgb(12, 1, 2); 
}


.delete:hover{
    background-color: rgb(30, 4, 8);
}

/* --- Einstellungen: Zahnrad oben rechts (dezent, stoert die grosse Zahl nicht) --- */
/* Kopf-Streifen: eigener Platz fuer das Zahnrad oben rechts, damit es nicht mit der grossen Zahl kollidiert */
#topbar{
    height: 6vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    box-sizing: border-box;
    background-color: rgb(40, 40, 40);
}
#gearBtn{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    color: rgb(150, 150, 150);
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#gearBtn:hover{ color: rgb(210, 210, 210); }

/* --- Einstellungs-Overlay + Panel --- */
#settingsOverlay{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
#settingsOverlay.open{ display: flex; }

#settingsPanel{
    background: rgb(40, 40, 40);
    color: rgb(255, 253, 253);
    width: min(86vw, 340px);
    border-radius: 10px;
    padding: 22px 22px 18px;
    box-sizing: border-box;
    font-size: 16px;
}
#settingsPanel h2{
    margin: 0 0 16px;
    font-size: 19px;
    font-weight: 400;
}
.setRow{ margin-bottom: 16px; }
.setRow label{ display: block; margin-bottom: 6px; color: rgb(198, 190, 190); }
.setRow input[type="number"],
.setRow input[type="text"]{
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid rgb(90, 90, 90);
    border-radius: 6px;
    background: rgb(28, 28, 28);
    color: rgb(255, 253, 253);
}
.setRow.check{ display: flex; align-items: center; gap: 10px; }
.setRow.check label{ margin: 0; }
.setRow.check input{ width: 20px; height: 20px; }
#settingsClose{
    width: 100%;
    padding: 11px;
    font-size: 17px;
    font-family: inherit;
    margin-top: 6px;
    border: none;
    border-radius: 6px;
    background: rgb(9, 5, 64);
    color: rgb(255, 253, 253);
    cursor: pointer;
}
#settingsClose:hover{ background: rgb(10, 5, 76); }

/* Leere Platzhalter-Taste (wenn DankBar ausgeblendet): Ziffern-Anthrazit, inaktiv */
.blankKey{
    background-color: rgb(20, 22, 18) !important;
    pointer-events: none;
}

/* Gradido-%-Overlay (gleiche Optik wie die Einstellungen) */
#percentOverlay{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
#percentOverlay.open{ display: flex; }
#percentPanel{
    background: rgb(40, 40, 40);
    color: rgb(255, 253, 253);
    width: min(86vw, 340px);
    border-radius: 10px;
    padding: 22px 22px 18px;
    box-sizing: border-box;
    font-size: 16px;
}
#percentPanel h2{ margin: 0 0 16px; font-size: 19px; font-weight: 400; }
#percentClose{
    width: 100%;
    padding: 11px;
    font-size: 17px;
    font-family: inherit;
    margin-top: 6px;
    border: none;
    border-radius: 6px;
    background: rgb(9, 5, 64);
    color: rgb(255, 253, 253);
    cursor: pointer;
}
#percentClose:hover{ background: rgb(10, 5, 76); }

/* Versionsnummer unten links im Einstellungs-Panel (klein, dezent) */
#versionInfo{ margin-top: 14px; font-size: 12px; color: rgb(120, 120, 120); text-align: left; }

