/* ------------------------------
   Global Styles (Dark Mode Base)
------------------------------ */
body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

h1, h2 {
  text-align: center;
  color: #ffffff;
}

/* ------------------------------
   Inputs & Textareas
------------------------------ */
input, textarea {
  margin: 5px 0;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  background-color: #1e1e1e;
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px;
}

/* ------------------------------
   Buttons
------------------------------ */
button {
  padding: 10px 18px;
  margin-top: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #333;
  color: #fff;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  transition: background 0.3s;
}

button:hover {
  background-color: #555;
}

#buttonRow {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
  flex-wrap: nowrap;
}

.round-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #444;
  color: #fff;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.round-button:hover {
  background-color: #666;
}

#toggleFormBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e63946;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------
   Navigation A–Z
------------------------------ */
#alphabetNav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 10px 0;
}

.az-button {
  padding: 4px 8px;
  font-size: 0.9rem;
  border: 1px solid #444;
  background-color: #222;
  color: #eee;
  border-radius: 4px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 22px;
  margin: 2px;
  transition: background 0.2s;
}

.az-button:hover {
  background-color: #444;
}

/* ------------------------------
   Search Field Animation
------------------------------ */
.search-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

.search-wrapper input {
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 10px;
  font-size: 1rem;
  border-radius: 20px;
  border: 1px solid #444;
  background-color: #1e1e1e;
  color: #fff;
}

.search-wrapper input.active {
  width: 90%;
  max-width: 300px;
  opacity: 1;
}

/* ------------------------------
   Cards
------------------------------ */
.cocktail-toggle {
  border: 1px solid #333;
  border-radius: 8px;
  margin: 8px 12px;
  background-color: #1e1e1e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cocktail-header {
  background-color: #2a2a2a;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #eee;
  cursor: pointer;
}

.cocktail-header em {
  font-style: normal;
  font-weight: normal;
  font-size: 0.9rem;
  color: #aaa;
}

.cocktail-content {
  padding: 0 12px;
  transition: padding 0.3s ease, max-height 0.3s ease;
  color: #ddd;
  max-height: 0;
  overflow: hidden;
}

.cocktail-content.expanded {
  padding: 12px;
  max-height: 1000px;
}

.cocktail-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cocktail-grid .left,
.cocktail-grid .right {
  flex: 1 1 0;
  min-width: 200px;
}

/* ------------------------------
   Cocktail Image
------------------------------ */
.cocktail-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #444;
  background: #222;
  display: block;
}

/* ------------------------------
   Filter Section: Kategorien
------------------------------ */
#categoryFilters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

#categoryFilters fieldset {
  border: 1px solid #444;
  padding: 10px;
  border-radius: 8px;
  background-color: #222;
}

#categoryFilters legend {
  padding: 0 6px;
  font-weight: bold;
  color: #ccc;
}

#categoryFilters label {
  display: inline-block;
  margin: 6px 10px 0 0;
  font-size: 0.95rem;
  color: #ddd;
}

@media (min-width: 480px) {
  #categoryFilters {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  #categoryFilters fieldset {
    flex: 1;
    min-width: 30%;
  }
}
