/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter&family=Lexend:wght@600&display=swap');

:root {
  --color-primary-bg: #4F1010;
  --color-primary-bg2: #D6001A;
  --color-primary-text: #FAFAFA;
  --color-dark-text: #222;
  --color-link-text: #a0ace6;
  --color-link-text-hover: #a0ace6;

  --color-green: #559560;
  --color-blue: #4762EA;
  --color-red: #EA4747;

  --font-heading: 'Lexend', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html, body {
  height: 100%;
}

body {
  background-color: var(--color-primary-bg);
  background-image: url('/0_media/bilder/Vorhang%20Theater%20-%20Foto%20von%20DJ%20Paine%20auf%20Unsplash.jpg');
  background-size: cover;
  background-position: center;
  font-family: var(--font-body);
  color: var(--color-primary-text);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-link-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

/* App Container */
.app-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Footer */
.app-header,
.app-footer {
  width: 100%;
  background-color: #000;
  color: var(--color-primary-text);
  padding: 0.2rem 1rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.app-footer {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

.logo {
  width: 50px;
  height: auto;
  fill: fff;
}

/* Main */
.main-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.main-content-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Sections */
.top-section,
.middle-section,
.bottom-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

/* Titel & Beschreibung */
.title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  padding: 0.8rem 0.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background-color: #222222dd;
}

.description {
  text-align: center;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #290b0bac;
}

.description-list,
.info-article {
  text-align: left;
  margin: 0.2rem auto;
  max-width: 600px;
  list-style-position: inside;
  padding: 0.5rem;
  background-color: #3a3a3a71;
}

.description-list li {
  padding-top: 0.5rem; /* Abstand zwischen den Listeneinträgen */
}

.autor-text {
  text-align: right;
  font-size: 0.85rem;
  color: #666;
  margin-top: 1rem;
}


/* Slot */
.slot {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-link,
.btn-confirm,
.btn-cancel,
.btn-dropdown,
.input-field {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: #222 solid 2px;
  border-radius: 6px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-link {
  background-color: var(--color-dark-text);
  color: white;
}

.btn-confirm {
  background-color: var(--color-green);
  color: white;
}

.btn-cancel {
  background-color: var(--color-primary-bg);
  color: white;
}

/* Button Drop-Down Menü */
.dropdown-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0.5rem;
  z-index: 10;
}

.btn-dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: white;
  padding: 1rem;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.btn-dropdown:active {
  filter: brightness(0.9);
}

.dropdown-icon {
  margin-left: 0.5rem;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.dropdown-menu {
  position: absolute;
  bottom: 100%;                  /* Statt top: 100% -> nach oben öffnen */
  left: 0;
  right: 0;
  background-color: #000;
  color: white;
  border: 1px solid #333;
  border-radius: 6px 6px 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;

  max-height: 200px;             /* Maximale Höhe */
  overflow-y: auto;              /* Scrollbar bei Überlauf */
}

.dropdown-menu label {
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.dropdown-menu label:hover {
  background-color: #222;
}

.dropdown-menu input[type="checkbox"] {
  margin-right: 0.5rem;
}

.success {
  color: green;
  font-weight: bold;
  margin-bottom: 1rem;
}

.error {
  color: red;
  font-weight: bold;
  margin-bottom: 1rem;
}
/* Toggle visibility */
.hidden {
  display: none;
}

.input-field {
  background-color: #fff;
  color: var(--color-dark-text);
}

/* Button aktiv */
.btn-link:active,
.btn-confirm:active,
.btn-dropdown:active {
  filter: brightness(0.9);
}

/* Button cooldown */
.btn-cooldown {
  background-color: #aaa !important; /* dünklerer Farbton */
  cursor: not-allowed;
  opacity: 0.6;
}


/* Login / Logout Buttons in Header */
.login-btn,
.logout-btn {
  color: var(--color-primary-text);
  padding: 0.3rem 1rem;
  margin: 0.3rem 0rem;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-btn {
  background-color: var(--color-green);
}
.logout-btn {
  background-color: var(--color-primary-bg);
}

.login-btn:hover,
.logout-btn:hover {
  background-color: var(--color-blue);
}
.login-btn:active,
.logout-btn:active {
  filter: brightness(0.9);
}