:root {
  /* Light Mode */
  --bg: #f8fafc;
  --fg: #1e293b;
  --muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(255, 255, 255, 0.6);
  --dropzone-bg: #f1f5f9;
  --dropzone-border: #cbd5e1;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  --blob-1: #bfdbfe;
  --blob-2: #e9d5ff;
}

[data-theme="dark"] {
  /* Dark Mode Anpassungen */
  --bg: #0f172a;
  --fg: #e2e8f0;
  --muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --dropzone-bg: rgba(0, 0, 0, 0.2);
  --dropzone-border: #334155;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --blob-1: #1e3a8a;
  --blob-2: #581c87;
}

/* --- Global Reset --- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Hintergrund Blobs --- */
.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  transition: background 0.3s ease;
}
.circle-1 {
  width: 400px; height: 400px;
  background: var(--blob-1);
  top: -100px; left: -100px;
}
.circle-2 {
  width: 350px; height: 350px;
  background: var(--blob-2);
  bottom: -50px; right: -50px;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.logo i { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- Buttons --- */
.icon-btn {
  background: transparent;
  border: 1px solid var(--dropzone-border);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

.styled-instruction-btn {
  background-color: var(--card-bg);
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  font-weight: bold;
  color: var(--muted);
  border: 1px solid var(--dropzone-border);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex; align-items: center; gap: 8px;
}
.styled-instruction-btn:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding-top: 60px;
}

.hero-content {
  width: min(820px, 92vw);
  padding: 20px;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 15px;
  font-weight: 800;
}

.highlight {
    background: linear-gradient(90deg, #3b82f6, #7C4DFF);
    background-clip: text; 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* --- Upload Card --- */
.upload-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease;
}
.upload-card:hover { transform: translateY(-5px); }

/* --- Dropzone --- */
.dropzone {
  width: 100%;
  min-height: 230px;
  border: 2px dashed var(--dropzone-border);
  border-radius: 12px;
  background: var(--dropzone-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.file-input {
  position: absolute; width: 100%; height: 100%;
  top: 0; left: 0; opacity: 0; cursor: pointer;
}

.upload-icon {
  font-size: 3rem; color: var(--muted); margin-bottom: 15px;
  transition: color 0.3s;
}
.dropzone:hover .upload-icon { color: var(--accent); }

.hint { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
code { background: rgba(0,0,0,0.1); padding: 2px 4px; border-radius: 4px; }

/* --- File List  --- */
.filelist {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-top: 1.5rem; justify-content: center;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--dropzone-border);
  padding: .5rem 2.5rem .5rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--fg);
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.remove-btn {
  background: none; border: none;
  color: #e11d48;
  font-size: 1.2rem; cursor: pointer;
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  padding: 0; line-height: 1;
}
.remove-btn:hover { color: #be123c; }

/* --- CTA Button --- */
.cta-button {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.cta-button:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}
.cta-button:disabled {
  opacity: 0.6; cursor: not-allowed; background: var(--muted); box-shadow: none;
}

/* --- Features --- */
.features {
  display: flex; justify-content: center; gap: 30px;
  margin-top: 40px; color: var(--muted);
  font-weight: 600; font-size: 0.9rem;
}
.feature-item { display: flex; align-items: center; gap: 8px; }
.feature-item i { color: var(--accent); }