/* /public/app/style.css */
:root {
  --bg: #0d0c1d;
  --fg: #f9fafb;
  --muted: #a0a0c0;
  --accentA: #be93fd;
  --accentB: #f9a8d4;
  --accentC: #fbbf24;
  --card: rgba(24, 24, 38, 0.6);
  --border: rgba(255, 255, 255, 0.12);
  --radius-lg: 14px;
  --maxw: 800px;
}

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/inter-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/inter-v19-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/inter-v19-latin-800.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  width: 100%;
}

main.container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-container { width: 100%; }
.quiz-header { margin-bottom: 2rem; }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 0.75rem; color: var(--muted); }
.step-counter { font-weight: 700; }
.progress-bar-container { width: 100%; background-color: var(--border); border-radius: 99px; height: 8px; }
.progress-bar {
  height: 100%;
  border-radius: 99px;
  background-image: linear-gradient(90deg, var(--accentA), var(--accentB));
  transition: width 0.3s ease-in-out;
}

.question-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.question-card h2 { margin: 0 0 1.5rem 0; font-size: 1.75rem; font-weight: 800; }

.subquestion { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.subquestion:last-of-type { border-bottom: none; }
.subquestion p { margin: 0 0 0.75rem; color: var(--muted); }
.scorer { display: flex; align-items: center; gap: 1rem; }
.scorer input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.scorer input[type="range"]::-webkit-slider-runnable-track { background-color: var(--border); height: 6px; border-radius: 3px; }
.scorer input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; margin-top: -5px; height: 16px; width: 16px; border-radius: 50%; background-color: var(--accentA); }
.scorer .score-display { font-weight: 700; color: var(--accentA); font-size: 1.25rem; width: 32px; text-align: center; }

#text-input-container { margin-top: 2rem; }
#text-input-container label { display: block; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
#text-input-container textarea { width: 100%; padding: 1rem; background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--fg); font-family: inherit; font-size: 1rem; min-height: 120px; resize: none; }
#text-input-container textarea:focus { outline: none; border-color: var(--accentA); box-shadow: 0 0 0 2px var(--accentA); }

.nav-buttons { display: flex; justify-content: space-between; margin-top: 2rem; }
.nav-button { border: none; padding: 0.8rem 2rem; font-family: inherit; font-weight: 700; font-size: 1rem; border-radius: 999px; cursor: pointer; transition: all 0.2s ease-in-out; }
.nav-button.primary { background-image: linear-gradient(90deg, var(--accentA), var(--accentB)); color: var(--bg); }
.nav-button.primary:hover { transform: scale(1.05); }
.nav-button.secondary { background-color: var(--card); border: 1px solid var(--border); color: var(--muted); }
.nav-button.secondary:hover { border-color: var(--accentA); color: var(--fg); }
.nav-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.cosmos-layer{ position: fixed; inset: 0; z-index: -10; background-repeat: repeat; }
#stars-far{ background-image: radial-gradient(circle at 20% 80%, var(--accentA), transparent 40%), radial-gradient(circle at 80% 30%, var(--accentC), transparent 40%); opacity: .10; }
#stars-mid{ background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 80% 60%, #fff, transparent); background-size: 300px 300px; opacity: .35; }
#stars-near{ background-image: radial-gradient(2px 2px at 10% 80%, #fff, transparent), radial-gradient(2px 2px at 90% 10%, #fff, transparent); background-size: 500px 500px; opacity: .75; }

.checklist { list-style: none; padding-left: 10px; }
.checklist li { padding-left: 25px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: '☐'; position: absolute; left: 0; top: 2px; font-size: 18px; color: var(--accentA); }

.site-footer { width: 100%; padding: 2rem 0; color: var(--muted); font-size: 0.9rem; text-align: center; border-top: 1px solid var(--border); }
.footer-nav a { color: var(--muted); text-decoration: none; margin: 0 0.75rem; }
.footer-nav a:hover { color: var(--fg); text-decoration: underline; }

.legal-consent { margin-top: 2rem; padding: 1.5rem; background-color: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; align-items: flex-start; gap: 1rem; }
.legal-consent input[type="checkbox"] { flex-shrink: 0; margin-top: 5px; width: 20px; height: 20px; cursor: pointer; }
.legal-consent label { font-size: 0.9rem; color: var(--muted); text-align: left; line-height: 1.6; }
.legal-consent a { color: var(--accentA); text-decoration: underline; }
.legal-consent a:hover { color: var(--fg); }

/* Wichtig für die Ergebnisseite, nicht löschen */
.modal-overlay {
    position: fixed; inset: 0; background-color: rgba(13, 12, 29, 0.8);
    backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center;
    z-index: 100; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal-overlay.visible { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.modal-content {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem; width: 90%; max-width: 500px; text-align: center;
    transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-content h3 { margin: 0 0 1rem 0; font-size: 1.5rem; font-weight: 700; color: var(--fg); }
.modal-content p { margin: 0 0 2rem 0; color: var(--muted); line-height: 1.6; }
.modal-actions { display: flex; justify-content: center; gap: 1rem; }

/* ========== COOKIE BANNER STYLES (FINAL V2.0) ========== */

/* Haupt-Banner */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background-color: rgba(13, 12, 29, 0.9);
    color: var(--fg); padding: 1rem 1.5rem; z-index: 1000;
    backdrop-filter: blur(10px); border-top: 1px solid var(--border);
    transform: translateY(100%); transition: transform 0.5s ease-in-out;
    display: none;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-content {
    max-width: var(--maxw); margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; gap: 1.5rem;
}
.cookie-banner-text { margin: 0; color: var(--muted); font-size: 0.9rem; }
.cookie-banner-link { color: var(--accentA); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.6rem 1.2rem; border: none; border-radius: 999px;
    font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease;
}
.cookie-btn.primary {
    background-image: linear-gradient(90deg, var(--accentA), var(--accentB));
    color: #0a0615;
}
.cookie-btn.secondary { background-color: rgba(255, 255, 255, 0.1); color: var(--fg); }
.cookie-btn:hover { transform: scale(1.05); }

/* Permanenter Einstellungs-Button */
.cookie-trigger {
    position: fixed; bottom: 20px; left: 20px;
    width: 50px; height: 50px;
    background-color: transparent; border: 2px solid var(--accentB);
    border-radius: 50%; display: none; align-items: center; justify-content: center;
    font-size: 24px; cursor: pointer; z-index: 999;
    transition: all 0.2s ease;
}
.cookie-trigger:hover { transform: scale(1.1); border-color: var(--accentA); }
.cookie-trigger.visible { display: flex; }

/* Einstellungs-Fenster (Modal) */
.modal-overlay {
    position: fixed; inset: 0; background-color: rgba(13, 12, 29, 0.8);
    backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center;
    z-index: 1001; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal-overlay.visible { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.modal-content {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem; width: 90%; max-width: 500px; text-align: center;
    transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-content h3 { margin: 0 0 1rem 0; font-size: 1.5rem; }
.modal-content p { color: var(--muted); line-height: 1.6; }
.modal-content a { color: var(--accentA); }
.modal-actions { margin-top: 2rem; }
.cookie-category {
    margin-top: 1.5rem; padding: 1rem; text-align: left;
    background-color: rgba(0,0,0,0.2); border-radius: 8px;
}
.cookie-category-header { display: flex; align-items: center; gap: 0.75rem; }
.cookie-category-header label { font-size: 1.1rem; }
.cookie-category-header input { width: 18px; height: 18px; }
.cookie-category-description { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; padding-left: 37px; }

/* Mobile Anpassungen */
@media (max-width: 767px) {
    .cookie-banner-content { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}