/* =====================================
   Global / Reset
===================================== */
@import url("https://cdn.mostrobotics.cloud/fonts/MOST%20Montserrat.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: #080808;
  color: #e0e0e0;
  font-family: "MOST Montserrat", "Montserrat", "Segoe UI", Tahoma, sans-serif;
}

.logo {
  width: 200px;
  height: auto;
}

/* Container: max 1440px zentriert */
.container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Helpers */
.hidden {
  display: none !important;
}
.full-width {
  width: 100%;
}

/* =====================================
   Buttons & Inputs
===================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #242424;
  color: #e0e0e0;
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 0.2rem 0;
  font-family: "MOST Montserrat", "Montserrat", "Segoe UI", Tahoma, sans-serif;
}
.btn:hover {
  background-color: #323232 !important;
}
.btn.i {
  height: 40px!important; width: 40px!important;
  padding: .25rem!important;
  font-size: 1rem!important;
  line-height: 1rem!important;
  margin: 0!important;
}
.btn-accent {
  background-color: #F7B500;
  color: #080808;
}
.btn-accent:hover {
  background-color: #FACA30 !important;
  color: #080808;
}
.btn-close {
  /* margin-top: 1rem; */
  padding: 0!important; margin: 0!important;
  background: none!important;
}
.btn-close:hover{
  background: none!important;
}
.btn-close i{
  font-size: 1.5rem!important;
}

.btn-upload {
  /* background-color: #4CAF50; */
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-upload:hover {
  background-color: #45A049;
}

/* Inputs */
input{
  font-size: 1rem;
  color: #e0e0e0;
  background-color: #242424;
  border: none;
  border-radius: 8px;
  padding: 0;
  outline: none;
  font-family: "MOST Montserrat", "Montserrat", "Segoe UI", Tahoma, sans-serif;
  font-weight: 500;
  flex-grow: 1;
}
.form-input {
  font-size: 1rem;
  color: #e0e0e0;
  background-color: #242424;
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  outline: none;
  font-family: "MOST Montserrat", "Montserrat", "Segoe UI", Tahoma, sans-serif;
  font-weight: 500;
}
.form-input:focus {
  outline: 2px solid #404040;
}
select:focus{
  outline: none;
}
select option{
  background: #242424;
  color: #fff;
}
select option:hover{
  background: #faca30;
  color: #000;
}

/* =====================================
   Checkbox-Farbe (gelb)
===================================== */
input[type="checkbox"] {
  accent-color: #FACA30;
  cursor: pointer;
}

/* =====================================
   PIN-Overlay
===================================== */
.pin-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}
.pin-container {
  background-color: #161616;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  width: 320px;
}
.pin-container h2 {
  margin-bottom: 1rem;
}
.pin-container p {
  margin-bottom: 1rem;
}
.pin-error {
  color: red;
  margin-top: 1rem;
}

/* =====================================
   Header (vollbreit)
===================================== */
.header {
  width: 100%;
  background-color: #161616;
  border-bottom: 1px solid #242424;
  padding: 1rem;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =====================================
   Footer (vollbreit)
===================================== */
.footer {
  width: 100%;
  background-color: #161616;
  border-top: 1px solid #242424;
  padding: 1rem;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =====================================
   Main Content
===================================== */
#main-content {
  min-height: 100vh;
}
.main-content {
  padding: 2rem;
}

/* =====================================
   Settings Overlay
===================================== */
.settings-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.settings-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #161616;
  border-radius: 16px;
  padding: 2rem;
  width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}
.settings-content {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
  gap: 1rem;
  margin-top: 24px;
}
.settings-category {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: .5rem;
  background-color: #242424;
  border-radius: 16px;
}
.settings-category label {
  margin-top: 4px;
}

/* =====================================
   Search Section
===================================== */
.search-section {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}
.search-pill {
  display: flex;
  align-items: center;
  background-color: #242424;
  border-radius: 9999px;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
}
.search-pill-select {
  border: none;
  background: none;
  color: #e0e0e0;
  border-radius: 9999px;
  padding: .75rem;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  min-width: 50px;
  font-family: "MOST Montserrat", "Montserrat", "Segoe UI", Tahoma, sans-serif;
}
.search-pill-select::-ms-expand {
  display: none;
}
.search-pill-input {
  flex: 1;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 1rem;
  color: #e0e0e0;
  outline: none;
  font-family: "MOST Montserrat", "Montserrat", "Segoe UI", Tahoma, sans-serif;
  font-weight: 500;
  width: 240px;
  transition: all .5s ease;
}
.search-pill-input:focus {
  outline: none;
}
/* .search-pill-input:focus{
  width: 240px;
  transition: all .5s ease;
} */
.search-pill-btn {
  border-radius: 9999px;
  padding: 1rem 1.25rem;
  display: inline-flex;
  gap: 0.75rem;
}

/* =====================================
   Shortcuts
===================================== */
.shortcuts-section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.shortcut-category-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  /* padding: 1rem; */
}

/* ============== Neue Klassen ============== */

/* Für Schnellstart / Allg. Ressourcen (wenn du willst):
   .special-category-container
*/
.special-category-container {
  background-color: #161616;
  border-radius: 24px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

/* Für Normale Kategorien */
.normal-category-container {
  background-color: #161616;
  border-radius: 24px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  width: 17.5%;
  align-self: stretch;
  max-width: calc((1440px - 4rem) / 5)!important;
}
@media (max-width: 1280px){
  .normal-category-container {
    width: 22.5%!important;
    max-width: calc((100% - 3rem) / 4)!important;
  }
}
@media (max-width: 1024px){
  .normal-category-container {
    width: 30%!important;
    max-width: 50%;
    max-width: calc((100% - 2rem) / 3)!important;
  }
}
@media (max-width: 768px){
  .normal-category-container {
    width: 45%!important;
    max-width: calc((100% - 1rem) / 2)!important;
  }
}
@media (max-width: 480px){
  .normal-category-container {
    width: 100%!important;
    max-width: 100%!important;
  }
}
.normal-category-container .shortcut-item{
  width: 100%!important;
  height: 100%;
}

/* Titel in jeder Row */
.shortcut-category-row h2 {
  width: 100%;
  font-weight: 600;
  font-size: 1.2rem;
  /* flex: 1; */
}
#schnellstart-row h2 {
  margin-bottom: 12px;
}
.shortcut-category-container{
  width: 100%;
}
/* Container für die Shortcuts */
.shortcuts-container {
  display: flex;
  /* flex-wrap: wrap; */ /* so dass ggf. wrap */
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  flex: 1;
}
.normal-category-container .shortcuts-container{
  flex: 0!important
}
/* Horizontal => row */
.horizontal {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  flex: 1;
  margin-bottom: 16px;
}

/* Shortcut-Kachel */
.shortcut-item {
  background-color: #242424;
  text-align: center;
  border-radius: 16px;
  cursor: pointer;
  padding: 1rem;
  transition: background-color 0.2s, transform 0.2s;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 221px; /* default */
  flex-grow: 1!important;
}
.shortcut-item:hover {
  background-color: #323232;
  transform: translateY(-2px);
}
.shortcut-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.shortcut-title {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.shortcut-subtitle {
  font-size: 0.75rem;
  color: #b0b0b0;
  margin-bottom: 0.25rem;
}

/* In horizontal => 160px */
/* .horizontal .shortcut-item {
  width: 160px !important;
} */

/* =====================================
   Responsive
===================================== */
@media (max-width:700px) {
  .search-section {
    margin: 1rem 0;
  }
}
@media (max-width:600px) {
  /* .horizontal {
    flex-direction: column !important;
  } */
  .shortcut-item {
    width: 100% !important;
  }
}

/* Admin-spezifisch => im #admin-content */
#admin-content .btn {
  background-color: #242424;
  color: #e0e0e0;
  transition: all .25s ease;
}
#admin-content .btn:hover{
  background-color: #323232;
  color: #e0e0e0;
  transition: all .25s ease;
}
#admin-content .btn.btn-accent {
  background-color: #F7B500 !important;
  color: #080808;
}
#admin-content .btn.btn-accent:hover {
  background-color: #FACA30 !important;
  color: #080808;
}
.category-section{
  padding: 1rem;
  background: #161616;
  border-radius: 24px;
}
#shortcut-list div{
  background-color: #242424!important;
}
#admin-content .btn-delete:hover{
  background-color:#dc143c!important;
}
#image-list > div{
  background-color: #24242400;
  transition: all .25s ease;
  border-radius: .75rem;
}
#image-list > div:hover{
  background-color: #242424!important;
}
#image-list .btn-delete {
  background-color: transparent;
  color: #AAAAAA;
  font-size: 0.75rem; line-height: .75rem;
  padding: 0.5rem;
  height: 32px; width: 32px;
  border-radius: 8px;
  transition: all .25s ease;
  margin: 0!important;
}
#image-list .btn-delete:hover {
  background-color: #dc143c!important;
  color: #fff !important;
}

#upload-input + .btn-upload {
  display: inline-block;
  width: 100%;
  text-align: center;
  cursor: pointer;
  /* background-color: #4CAF50; */
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  transition: background-color 0.2s;
}
#upload-input + .btn-upload:hover {
  background-color: #45A049;
}

#file-preview {
  /* margin-top: 1rem; */
  font-size: 0.875rem;
  color: #e0e0e0;
}

@media (max-width: 600px) {
  #file-preview,
  #upload-input + .btn-upload,
  .btn-accent {
    width: 100%;
    margin-top: 0.5rem;
  }
  #file-preview + .btn-delete {
    width: 100%;
  }
}

#upload-container {
  margin-top: 1rem;
  width: 100%;
}
#upload-input + .btn-upload {
  display: inline-block;
  text-align: center;
  cursor: pointer;
  /* background-color: #4CAF50; */
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  transition: background-color 0.2s;
  flex: 1;
  gap: 1rem;
}
/* #upload-input + .btn-upload:hover {
  background-color: #45A049;
} */
#file-preview {
  flex: 1;
  font-size: 0.9rem;
  color: #e0e0e0;
}
#clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: transparent;
  color: #e0e0e0;
  border: none;
  font-size: .75rem;
  line-height: .75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: .5rem;
  height: 32px; width: 32px;
  margin: 0!important;
}
#clear-button:hover {
  background-color: #dc143c!important;
}

.fa-pencil {
  font-size: 0.75rem;
  color: #fff;
  background-color: #000;
  border-radius: 50%;
  padding: 2px;
  position: absolute;
  top: 0;
  right: 0;
}