/* 20250701145818 */

@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v18-latin-regular.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v18-latin-700.woff2') format('woff2'); 
}

/* Global Styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #121212;
  font-family: 'Inter', sans-serif;
  color: #e0e0e0;
}

/* Header */
#topBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #222; /* Endgueltiger Wert laut unten */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px; /* Endgueltiger Wert laut unten */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 10;
  color: #fff;
}
#topBar h2 {
  margin: 0;
  font-size: 1.5em;
}
#topBar h2 sup {
  font-weight: 300;
  font-size: 15px;
  padding-left: 0;
}

/* Main */
main {
  margin-top: 60px;
  margin-bottom: 80px;
  height: calc(100% - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #333; /* Endgueltiger Wert laut unten */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 10px; /* Endgueltiger Wert laut unten */
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
  z-index: 10;
}
footer .toolbar-item i {
  color: #fff;
  cursor: pointer;
  margin-right: 5px;
}
footer .toolbar-item select {
  background-color: #333;
  color: #fff;
  padding: 5px;
  border: 1px solid #555;
  border-radius: 4px;
}
.footer--hidden {
  display: none !important;
}

/* Cropper Container */
#cropperContainer {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 20px;
}

/* Bild */
#image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Upload Box */
#uploadBox {
  border: 2px dashed #ccc;
  padding: 20px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  color: #aaa;
  margin: 20px;
}

/* Crop-Info */
#cropInfo {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10;
  display: none;
}

/* Upscale Warning */
#upscaleWarning {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
  z-index: 20;
  color: red;       /* Endgueltiger Wert laut unten */
  font-weight: bold;/* Endgueltiger Wert laut unten */
}

/* Floating Error */
#floatingError {
  position: absolute;
  width: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Versteckt */
.hidden {
  display: none;
}

/* Error Message */
#errorMessage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: red;
  font-weight: bold;
  display: none;
}

/* Toolbar Items */
.toolbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px;
  margin-right: 30px;
  position: relative;
}

.toolbar-button {
border: 1px solid #555;
padding: 5px 20px;
border-radius: 5px;
}

.toolbar-button:hover{
background-color: #555;}

.toolbar-item select:hover{
background-color: #555;
}


.toolbar-item--hidden {
  display: none;
}

.toolbar-item select{
background-color: #555;
padding:8px 15px !important;

}

/* Buttons */
#resetButton {
  display: none;
  background-color: #444;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
#cropButton {
  margin: 5px;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  display: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cropper-Plugin */
.cropper-view-box {
  outline: 3px solid magenta !important;
}
.cropper-line {
  background-color: magenta !important;
  width: 4px !important;
}
.cropper-dashed {
  border-color: magenta !important;
}
.cropper-point {
  width: 20px !important;
  height: 20px !important;
  background-color: rgba(255, 0, 255, 0.2) !important;
  border: 3px solid magenta !important;
  xborder-radius: 50% !important;
}
.cropper-face {
  background-color: rgba(255, 0, 255, 0.2) !important;
}

.input-error {
  border-color: red !important;
  box-shadow: 0 0 0 1px red !important;
}

/* Tooltip Styles */
.tooltip {
  visibility: hidden;
  opacity: 0;
  background: #222;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 6px 12px;
  position: absolute;
  z-index: 20;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
  font-size: 0.95em;
}

.toolbar-item:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
