:root {
  --blue: #1a1aff;
  --purple: #8000ff;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray: #333;
  --gray-light: #444;
  --gray-bg: #1c1c1c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.4;
}

/* Header */
header {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 20px;
}

.language-switch {
  display: flex;
  gap: 10px;
}

.language-switch button {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 10px;
}

.language-switch button:hover {
  background-color: var(--white);
  color: var(--black);
}


/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: #111;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--white);
}

.hero p {
  color: #ccc;
}

/* Main */
main {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 0 15px #000;
}

.container h2 {
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"] {
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
}

/* Type-Auswahl */
.type-select {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.type-box {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.type-box input[type="checkbox"] {
  display: none;
}

.type-box span {
  background-color: var(--gray);
  padding: 10px 20px;
  border-radius: 6px;
  color: var(--white);
  transition: background-color 0.3s;
}

.type-box input[type="checkbox"]:checked + span {
  background-color: var(--blue);
}

/* Genre Auswahl Bereich */
.genre-section {
  background-color: var(--gray-bg);
  padding: 20px;
  border-radius: 10px;
  margin-top: 10px;
}

.genre-section h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #ddd;
}

.genre-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.genre {
  background-color: var(--gray-light);
  color: var(--white);
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}

.genre.selected {
  background-color: var(--blue);
}

/* Button */
button {
  background-color: var(--black);
  color: var(--white);
  border: none;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
}

button:hover {
  background-color: #222;
}

button:disabled {
  background-color: #555;
  color: #aaa;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Für Response Seite */
.response-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--black);
  color: var(--white);
}

.response-container {
  max-width: 1100px;
  width: 100%;
}

.response-container h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: var(--white);
}

.recommendations {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.rec-card {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 500px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.rec-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #c8a2ff;
}

.rec-card h3 a {
  color: #c8a2ff;
  text-decoration: none;
}

.rec-card h3 a:hover {
  text-decoration: underline;
}

.rec-card p {
  line-height: 1.6;
  margin: 10px 0;
  font-size: 1rem;
}

.back-link {
  display: block;
  margin: 40px auto 0;
  width: fit-content;
  background-color: var(--blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}

.back-link:hover {
  background-color: #0033cc;
}


/* Progress Bar Styles */
.progress-bar {
  width: 100%;
  background-color: var(--gray-light);
  border-radius: 6px;
  overflow: hidden;
  margin: 20px 0;
  height: 20px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background-color: var(--blue);
  transition: width 0.1s linear;
}

#loadingText {
  text-align: center;
  font-size: 1rem;
  margin-top: 5px;
}

/* Optional: Responsive Layout für größere Bildschirme */
@media (min-width: 600px) {
  .recommendations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .recommendations {
    grid-template-columns: repeat(3, 1fr);
  }
}
