:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --success: #28a745;
  --danger: #dc3545;
  --bg: #f5f5f5;
  --card: #fff;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Grundlayout */
body {
  margin: 0;
  padding: 20px;
  font-family: system-ui, Arial, sans-serif;
  background: var(--bg);
}
h1 { margin-bottom: 1rem; }

/* Zurück-Button */
.back-button {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 24px;
  padding: 14px 0;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow);
  transition: background 0.18s, box-shadow 0.18s;
}
.back-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Grid & Karten */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.card {
  background: var(--card);
  padding: 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 0;
}

/* Labels & Dropdowns */
label {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 600;
}
select {
  width: 100%;
  padding: 11px;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 5px;
  background: #fcfcfc;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
select:focus {
  border-color: var(--primary);
  outline: none;
}
.info-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.1em;
  cursor: pointer;
  margin-left: 6px;
  padding: 0 3px;
}

/* Aktionsbuttons */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.actions button {
  flex: 1 1 120px;
  padding: 13px 0;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.16s, transform 0.16s;
}
.actions button:hover { transform: translateY(-2px); }
#createBtn { background: var(--primary); color: #fff; }
#videoBtn { background: #d63384; color: #fff; }
#resetBtn { background: var(--danger); color: #fff; }

.copy {
  background: var(--success);
  margin-bottom: 10px;
  font-size: 1rem;
  padding: 12px 0;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.16s;
}
.copy:disabled { opacity: 0.6; cursor: not-allowed; }

/* Code-Ausgabe */
pre {
  background: #272822;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 8px;
  font-size: 1em;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: "Fira Mono", "Consolas", monospace;
  margin-bottom: 10px;
}

@media (max-width:600px){
  .grid{grid-template-columns:1fr;}
  .back-button{font-size:1rem;padding:12px 0;}
}
