/*
 CineCrowd – Modern Movie Community Platform
 Komplette style.css inkl. aller Inline-Erweiterungen
 Helldesign mit Blau-Violett-Akzenten, keine Unterstreichungen,
 helle DIV-Hintergründe & alle Überschriften in Blau-Violett.
*/

/* ============================= */
/* 1. Imports & Root-Variablen    */
/* ============================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* – Hintergründe – */
  --bg-primary: #ffffff;           /* Weiß für Hauptflächen (Header, Karten, Formulare) */
  --bg-secondary: #FFFFFF;         /* Hellgrau-bläulicher Body-Hintergrund */
  --bg-tertiary: #edf2f7;          /* Sehr helles Grau (Scrollbar-Track, Platzhalter) */
  --bg-elevated: #e2e8f0;          /* Etwas abgehobene Graunuance (z. B. Kommentar-Container) */
  --bg-surface: #ffffff;           /* Weiß für Oberflächen wie Formulare, Karten-Footer etc. */

  /* – Blau-Violette Akzente – */
  --accent-primary: #4F46E5;       /* Indigo-Blau */
  --accent-secondary: #6B46C1;     /* Violett */
  --accent-hover: #4338CA;         /* Etwas dunkleres Indigo fürs Hover */
  --accent-light: rgba(79, 70, 229, 0.1);
  --accent-border: rgba(79, 70, 229, 0.2);

  /* – Verläufe – */
  --gradient-primary: linear-gradient(135deg, #4F46E5, #6B46C1);
  --gradient-hover: linear-gradient(135deg, #4338CA, #5B21B6);

  /* – Textfarben – */
  --text-primary: #1e293b;         /* Dunkles Blau/Schwarz */
  --text-secondary: #334155;       /* Dunkelgrau-Blau */
  --text-tertiary: #64748b;        /* Mittelgrau-Blau */
  --text-quaternary: #94a3b8;      /* Helles Grau-Blau */
  --text-muted: #cbd5e1;           /* Sehr blasses Grau */
  --text-on-accent: #ffffff;       /* Weiß auf farbigen Hintergründen */

  /* – Border & Divider – */
  --border-primary: #e2e8f0;
  --border-secondary: #cbd5e1;
  --border-accent: var(--accent-border);

  /* – Schatten – */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.04), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-accent: 0 4px 20px rgba(79, 70, 229, 0.15);

  /* – Abstand (Spacing) – */
  --space-xs: 0.5rem;    /* 8px  */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */

  /* – Border-Radius – */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* – Übergänge/Transitions – */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================= */
/* 2. Reset & Basis (Global)     */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-secondary); /* Hellgrauer Body */
  color: var(--text-primary);
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar-Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* ============================= */
/* 3. Typografie                  */
/* ============================= */
/* Alle Überschriften in Indigo-Blau */
h1, h2, h3, h4, h5, h6 {
  color: var(--accent-primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p, li, span, label {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Links – grundsätzlich keine Unterstreichung */
a, a:visited {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-hover);
  /* KEINE Unterstreichung */
}

/* ============================= */
/* 4. Logo                        */
/* ============================= */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand img {
  height: 100px;
  width: auto;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

/* ============================= */
/* 5. Hauptcontainer              */
/* ============================= */
.main-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-md);
}

/* ============================= */
/* 6. Header & Navigation         */
/* ============================= */
.app-header {
  background-color: var(--bg-primary);    /* Weißer Header */
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.app-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
}

.app-nav a {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
}
.app-nav a:hover {
  color: var(--accent-primary);
}
.app-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}
.app-nav a:hover::after {
  width: 100%;
}

.user-info {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================= */
/* 7. Page-Header (Neu)           */
/* ============================= */
.page-header {
  margin-bottom: var(--space-xl);   /* 32px */
  width: 100%;
}
.page-header h1 {
  /* Farbe übernommen von genereller Überschrift-Regel */
  margin-bottom: 0;
  text-align: center;
  width: 100%;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

/* ============================= */
/* 8. Welcome-Section             */
/* ============================= */
.welcome-section {
  text-align: center;                              /* Zentriert */
  padding: var(--space-2xl) var(--space-lg);       /* 48px 24px */
  background-color: var(--bg-primary);             /* Weiß */
  border-radius: var(--radius-md);                 /* 12px */
  margin-bottom: var(--space-xl);                  /* 32px */
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.welcome-section h1 {
  /* Farbe übernommen von genereller Überschrift-Regel */
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.welcome-section .lead {
  font-size: clamp(2rem, 2.5vw, 1.3rem);
  color: var(--text-primary);
  max-width: 50rem;                                 /* ~800px */
  margin: 0 auto var(--space-lg);                   /* 24px */
  line-height: 1.6;
}

.welcome-section p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-primary);
  max-width: 43.75rem;                              /* ~700px */
  margin: var(--space-sm) auto;                     /* 12px */
  line-height: 1.5;
}

.welcome-section strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.welcome-section .cta-buttons {
  margin-top: var(--space-xl);
}

.welcome-section .cta-buttons .custom-button {
  margin: 0 var(--space-sm);                       /* 12px */
  padding: var(--space-sm) var(--space-lg);         /* 12px 24px */
  font-size: 1.1rem;
}

/* ============================= */
/*   Welcome-Section als Hero    */
/* ============================= */

.hero-background {
  position: relative;
  background-image: url("/static/img/community_cinema.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;  /* Weißer Fallback */
  overflow: hidden;
}

.hero-background .welcome-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* 40% Schwarz über dem Bild */
  z-index: 1;
}

/* ============================= */
/* Vollbreite 2-Spalten-Layout   */
/* ============================= */
.hero-background .welcome-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 70% 30%;
  align-items: center;                  /* vertikale Zentrierung */
  gap: var(--space-2xl);                /* Abstand zwischen den Spalten */
  width: 100%;                          /* Vollbreite des hero-background */
  padding: var(--space-2xl) var(--space-lg);
}

/* ============================= */
/* Linke Spalte: Welcome‐Text    */
/* ============================= */
.hero-background .welcome-content {
  text-align: left;
}

/* Überschriften im Hero weiß */
.hero-background .welcome-content h1,
.hero-background .welcome-content h2,
.hero-background .welcome-content h3,
.hero-background .welcome-content h4,
.hero-background .welcome-content h5,
.hero-background .welcome-content h6 {
  color: #ffffff;
  margin-bottom: var(--space-md);
}

/* Lead‐Text und normale Absätze weiß */
.hero-background .welcome-content .lead,
.hero-background .welcome-content p {
  color: #ffffff;
  margin-bottom: var(--space-lg);
}

/* Hervorhebungen (strong) ebenfalls weiß/fett */
.hero-background .welcome-content strong {
  color: #ffffff;
  font-weight: 700;
}

/* CTA‐Buttons in der linken Spalte */
.hero-background .welcome-content .cta-buttons {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
}

/* Gradient‐Button (Einloggen) immer weiße Schrift */
.hero-background .custom-button.gradient {
  color: #ffffff !important;
}

/* Outline‐Button (Registrieren) im Hero weißer Hintergrund + Indigo-Text */
.hero-background .custom-button.outline {
  background-color: #ffffff;
  color: var(--accent-primary);
  border: none;
}
.hero-background .custom-button.outline:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ============================= */
/* Rechte Spalte: Formulare       */
/* ============================= */
.hero-background .forms-in-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  justify-content: center;
  align-items: center;
}

/* Überschrift der Formulare (h3) weiß im Hero */
.hero-background .forms-in-hero .form-header {
  color: #ffffff;
  text-align: center;
  margin-bottom: var(--space-md);
}

/* Formular‐Wrapper –leicht abgedunkelt, damit es auf dem Bild heraussticht */
.hero-background .forms-in-hero .auth-form-wrapper {
  background-color: rgba(0, 0, 0, 0.6);  /* 60% Schwarz */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Input‐Felder im Hero etwas dunkler, Text weiß */
.hero-background .forms-in-hero .auth-input {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Placeholder‐Text ggf. heller Grauton */
.hero-background .forms-in-hero .auth-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Auth‐Button (Login + Register) im Hero: weißer Hintergrund + Indigo-Text */
.hero-background .forms-in-hero .auth-button {
  background-color: #ffffff;
  color: var(--accent-primary);
  border: none;
  margin-top: var(--space-sm);
}
.hero-background .forms-in-hero .auth-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Auth‐Message (Fehlermeldungen etc.) weiß */
.hero-background .forms-in-hero .auth-message {
  color: #ffffff;
  margin-top: var(--space-sm);
}

/* ============================= */
/* Responsive: unter 768px → 1 Spalte */
/* ============================= */
@media (max-width: 768px) {
  .hero-background .welcome-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-md);
  }
  .hero-background .welcome-content {
    margin-bottom: var(--space-xl);
  }
  .hero-background .forms-in-hero {
    width: 100%;
    align-items: center;
  }
  .hero-background .forms-in-hero .auth-form-wrapper {
    width: 100%;
    max-width: 400px;
  }
  .hero-background .welcome-content .cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ============================= */
/* Responsive: unter 480px → Buttons untereinander */
/* ============================= */
@media (max-width: 480px) {
  .hero-background .welcome-inner {
    padding: var(--space-xl) var(--space-sm);
  }
  .hero-background .welcome-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  .hero-background .welcome-content .cta-buttons {
    flex-direction: column;
    gap: var(--space-md);
  }
  .hero-background .custom-button {
    width: 100%;
    max-width: 300px;
  }
}

/* ============================= */
/* 9. Top-Movies-Header            */
/* ============================= */
.top-movies-header {
  /* Farbe übernommen von genereller Überschrift-Regel */
  text-align: center;
  margin-bottom: var(--space-xl);                   /* 32px */
  font-size: clamp(2rem, 4vw, 2.5rem);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.top-movies-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* ============================= */
/* 10. Movie-Grid & Movie-Cards    */
/* ============================= */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Feste 320px, sonst flexibel */
  gap: var(--space-lg);                                        /* 24px */
  justify-content: center;                                     /* Zentriert */
  justify-items: center;
  padding: var(--space-md);                                    /* 16px */
}

/* Padding-Adjustments nach Breakpoints */
@media (min-width: 576px) {
  .movie-grid {
    padding: var(--space-lg); /* 24px */
  }
}
@media (min-width: 992px) {
  .movie-grid {
    padding: var(--space-lg); /* 24px explizit für 992px+ */
  }
}

.movie-card {
  display: flex;
  flex-direction: column;
  max-width: 320px;                                    /* Feste Breite */
  background-color: var(--bg-primary);                  /* Weiß */
  border: 1px solid var(--border-secondary);            /* Hellgrauer Rand */
  border-radius: var(--radius-md);                       /* 12px */
  overflow: hidden;
  text-decoration: none;                                 /* Keine Unterstreichung */
  color: var(--text-primary);
  transition: var(--transition-slow);
  height: 100%;
  box-shadow: var(--shadow-md);
}

.movie-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.movie-poster {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-top-left-radius: var(--radius-sm);              /* 6px */
  border-top-right-radius: var(--radius-sm);
}

.placeholder-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 15.625rem;                                 /* 250px */
  background: var(--bg-tertiary);                        /* Sehr helles Grau */
  color: var(--text-quaternary);                         /* Helles Grau */
  text-align: center;
  font-size: 1rem;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-secondary);
}

.movie-card-content {
  padding: var(--space-sm);                              /* 12px */
  margin-top: auto;                                      /* Schiebt Inhaltsblock nach unten */
  background-color: var(--bg-primary);                   /* Weiß */
  border-top: 1px solid var(--border-secondary);         /* Hellgrau */
}

.movie-card-title {
  font-size: 1.1rem;
  font-weight: 600;                                      /* Halbfett */
  color: var(--text-primary);                            /* Dunkel */
  margin-bottom: var(--space-xs);                        /* 8px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-info {
  font-size: 0.85rem;
  color: var(--text-tertiary);                            /* Mittelgrau */
  margin-bottom: var(--space-md);                         /* 16px */
}

.star-rating {
  color: var(--accent-primary);                           /* Indigo */
  margin-bottom: var(--space-md);
  font-size: 0.9em;
}

/* Neue Sektion: movie-card-actions */
.movie-card-actions {
  display: flex;
  flex-wrap: wrap;                                        /* Buttons umbrechen, falls nötig */
  gap: var(--space-xs);                                   /* 8px */
  margin-top: var(--space-sm);                            /* 12px */
  padding-top: var(--space-sm);                           /* 12px */
  border-top: 1px solid var(--border-secondary);          /* Hellgrau */
}

/* ============================= */
/* 11. Auth-Formulare               */
/* ============================= */
.login-register-forms-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin: 0 auto var(--space-3xl);
  max-width: 800px;
}

.auth-form-wrapper {
  background-color: var(--bg-surface);                   /* Weiß */
  padding: var(--space-lg);                              /* 24px */
  border-radius: var(--radius-md);                        /* 12px */
  border: 1px solid var(--border-primary);                /* Hellgrau */
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);                                  /* 24px */
}

.auth-input {
  padding: var(--space-sm);                              /* 12px */
  border-radius: var(--radius-sm);                        /* 6px */
  border: 1px solid var(--border-secondary);              /* Hellgrau */
  background-color: var(--bg-primary);                     /* Weiß */
  color: var(--text-primary);                              /* Dunkel */
  font-size: 1rem;
}

.auth-button {
  padding: var(--space-sm) var(--space-lg);                 /* 12px 24px */
  font-size: 1.1rem;                                        /* 1.1em */
  border: none;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.auth-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.auth-button:active {
  transform: translateY(0);
}

.auth-message {
  margin-top: var(--space-lg);                             /* 24px */
  color: var(--accent-secondary);                          /* Violett */
  text-align: center;
  min-height: var(--space-md);                              /* 16px */
}

/* ============================= */
/* 12. Buttons allgemeiner Stil    */
/* ============================= */
.custom-button {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  color: var(--text-on-accent);
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  text-decoration: none;      /* Keine Unterstreichung */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}
.custom-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.custom-button:active {
  transform: translateY(0);
}
.custom-button.gradient {
  background: var(--gradient-primary);
}
.custom-button.gradient:hover {
  background: var(--gradient-hover);
}
.custom-button.outline {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}
.custom-button.outline:hover {
  background: var(--accent-light);
}

/* ============================= */
/* 13. Kleinere Buttons & Alerts  */
/* ============================= */
.custom-button-small {
  padding: var(--space-xs) var(--space-sm);               /* 8px 12px */
  font-size: 0.8rem;                                       /* 0.8em */
}

.custom-button-warning {
  background-color: #ffc107;                               /* Gelb */
  border-color: #ffc107;
  color: #000;
}
.custom-button-danger {
  background-color: #dc3545;                               /* Rot */
  border-color: #dc3545;
  color: #fff;
}
.custom-button:hover {
  opacity: 0.8;
}

/* Custom Alert */
.custom-alert {
  padding: var(--space-md);                                 /* 16px */
  margin-bottom: var(--space-lg);                           /* 24px */
  border: 1px solid transparent;
  border-radius: var(--radius-sm);                          /* 6px */
  background-color: #2a2a2a;                                /* Dunkler Hintergrund für Alert */
  border-color: #333;
  color: #fff;
}

/* ============================= */
/* 14. Flash-Messages              */
/* ============================= */
.flash-messages .message {
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border-left: 4px solid var(--accent-primary);
}

/* ============================= */
/* 15. Footer                      */
/* ============================= */
.custom-footer {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  padding: var(--space-xl) 0;
  margin-top: var(--space-3xl);
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-primary);
}
.custom-footer a,
.custom-footer a:visited {
  color: var(--accent-primary);
  text-decoration: none;     /* Keine Unterstreichung */
}
.custom-footer a:hover {
  color: var(--accent-hover);
  /* Keine Unterstreichung */
}

/* ============================= */
/* 16. Detail-Seite               */
/* ============================= */
.detail-container {
  max-width: 1200px;
  margin: var(--space-lg) auto;                   /* 24px */
  padding: var(--space-lg);                       /* 24px */
  background-color: var(--bg-primary);             /* Weiß */
  border-radius: var(--radius-md);                 /* 12px */
  box-shadow: var(--shadow-md);
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;               /* 300px Poster, Rest flexibel */
  gap: var(--space-xl);                           /* 32px */
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;                    /* Einspaltig auf kleinen Bildschirmen */
  }
  .movie-poster-large {
    max-width: 80%;
    margin-bottom: var(--space-lg);                /* 24px */
  }
}

.movie-poster-large img,
.movie-poster-large .placeholder-poster-large {
  width: 100%;
  height: auto;
  max-height: 600px;                                /* Max-Höhe */
  object-fit: contain;
  border-radius: var(--radius-md);                  /* 12px */
  border: 1px solid var(--border-secondary);        /* Hellgrau */
}

.placeholder-poster-large {
  height: 28.125rem;                                /* 450px */
  background: linear-gradient(45deg, var(--bg-tertiary), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-quaternary);                     /* Helles Grau */
  font-size: 1.5rem;
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.movie-info h1 {
  /* Farbe übernommen von genereller Überschrift-Regel */
  margin-top: 0;
  margin-bottom: var(--space-md);                   /* 16px */
  font-size: 2.5rem;                                /* 2.5em */
}

.movie-info .tagline {
  font-style: italic;
  color: var(--text-tertiary);                      /* Mittelgrau */
  margin-bottom: var(--space-xl);                   /* 32px */
}

.movie-info p,
.movie-info .info-item {
  margin-bottom: var(--space-sm);                   /* 12px */
  color: var(--text-secondary);                      /* Dunkelgrau */
  line-height: 1.6;
}

.movie-info .info-item strong {
  color: var(--text-primary);                        /* Dunkel */
  min-width: 7.5rem;                                  /* 120px */
  display: inline-block;
}

.user-rating-display {
  font-size: 1.2rem;                                 /* 1.2em */
  margin: var(--space-md) 0;                         /* 16px oben/unten */
}
.user-rating-display .stars {
  color: var(--accent-primary);                      /* Indigo */
}

.section {
  margin-top: var(--space-xl);                       /* 32px */
  padding-top: var(--space-lg);                      /* 24px */
  border-top: 1px solid var(--border-secondary);     /* Hellgrau */
}

.section h2 {
  /* Farbe übernommen von genereller Überschrift-Regel */
  margin-bottom: var(--space-md);                     /* 16px */
}

/* ============================= */
/* 17. Kommentare (Neu)             */
/* ============================= */
.comment-item {
  background: var(--bg-elevated);                     /* Leicht abgehoben */
  padding: var(--space-md);                            /* 16px */
  border-radius: var(--radius-sm);                     /* 6px */
  margin-bottom: var(--space-sm);                      /* 12px */
  border: 1px solid var(--border-secondary);           /* Hellgrau */
}

.comment-item p {
  margin-bottom: var(--space-xs);                      /* 8px */
  color: var(--text-secondary);
}

.comment-item small {
  color: var(--text-quaternary);                       /* Helles Grau */
}

/* ============================= */
/* 18. Einfaches Formular (Neu)     */
/* ============================= */
.simple-form textarea {
  width: 100%;
  padding: var(--space-sm);                            /* 12px */
  margin-bottom: var(--space-sm);
  background-color: var(--bg-primary);                 /* Weiß */
  border: 1px solid var(--border-secondary);           /* Hellgrau */
  color: var(--text-primary);                          /* Dunkel */
  border-radius: var(--radius-sm);                     /* 6px */
  box-sizing: border-box;
  min-height: 5rem;                                    /* 80px */
}

/* ============================= */
/* 19. Movie-Formular & AI-Abschnitte (Neu) */
/* ============================= */
.movie-form-container,
.movie-form,
.ai-suggestion-section,
.omdb-details-preview {
  max-width: 700px;
  margin: var(--space-xl) auto;                         /* 32px, zentriert */
  padding: var(--space-lg);                             /* 24px */
  background-color: var(--bg-surface);                  /* Weiß */
  border-radius: var(--radius-md);                       /* 12px */
  border: 1px solid var(--border-secondary);             /* Hellgrau */
  box-shadow: var(--shadow-md);
}

.form-input,
.form-button,
.form-display-field {
  width: 100%;
  padding: var(--space-sm);                              /* 12px */
  margin-bottom: var(--space-lg);                         /* 24px */
  border-radius: var(--radius-sm);                         /* 6px */
  border: 1px solid var(--border-secondary);               /* Hellgrau */
  background-color: var(--bg-primary);                     /* Weiß */
  color: var(--text-primary);                              /* Dunkel */
  box-sizing: border-box;
}

.form-display-field {
  background-color: var(--bg-elevated);                     /* Leicht abgehoben */
  min-height: 2.375rem;                                      /* 38px */
  line-height: 1.5;
}

.form-button {
  background-color: var(--accent-primary);                   /* Indigo */
  color: var(--text-on-accent);                              /* Weiß */
  cursor: pointer;
  text-align: center;
  display: inline-block;                                      /* Für <a>-Tags als Buttons nötig */
  text-decoration: none;
  transition: var(--transition);
}

.form-button:hover {
  background-color: var(--accent-hover);                      /* Dunkleres Indigo */
}

.form-button-secondary {
  background-color: var(--border-secondary);                  /* Hellgrau */
  color: var(--text-primary);
}

.form-button-secondary:hover {
  background-color: var(--border-primary);                    /* Etwas dunkleres Grau */
}

.omdb-details-preview h3 {
  /* Farbe übernommen von genereller Überschrift-Regel */
  margin-top: 0;
}

.omdb-details-preview p {
  margin-bottom: var(--space-xs);                              /* 8px */
  color: var(--text-secondary);                                /* Dunkelgrau */
  font-size: 0.9rem;
}

.omdb-details-preview img {
  max-width: 200px;
  height: auto;
  border-radius: var(--radius-sm);                             /* 6px */
  margin-top: var(--space-sm);                                  /* 12px */
  margin-bottom: var(--space-sm);                               /* 12px */
  border: 1px solid var(--border-secondary);                    /* Hellgrau */
}

.rating-input-group {
  margin-top: var(--space-lg);                                  /* 24px */
  padding-top: var(--space-lg);                                 /* 24px */
  border-top: 1px solid var(--border-secondary);                /* Hellgrau */
}

.rating-input-group label {
  display: block;
  margin-bottom: var(--space-sm);                                /* 12px */
  font-weight: bold;
  color: var(--text-secondary);
}

.star-rating {
  font-size: 1.8rem;                                             /* 1.8em */
  margin-bottom: var(--space-md);                                /* 16px */
}
.star-rating .star {
  cursor: pointer;
  color: var(--border-secondary);                                 /* Hellgrau */
  padding: 0 0.125rem;                                            /* 2px */
  transition: color 0.2s;
}
.star-rating .star:hover,
.star-rating .star.filled {
  color: #f5c518;                                               /* Gold */
}

.ai-message {
  padding: var(--space-sm);                                      /* 12px */
  margin-top: var(--space-md);                                   /* 16px */
  margin-bottom: var(--space-md);                                /* 16px */
  border-radius: var(--radius-sm);                               /* 6px */
  background-color: var(--bg-elevated);                          /* Leicht abgehoben */
  border: 1px solid var(--border-secondary);                     /* Hellgrau */
  color: var(--text-primary);                                     /* Dunkel */
}

.ai-message.error {
  background-color: #ffeded;                                     /* Helles Rot */
  border-color: #ffbebe;                                         /* Helleres Rot */
  color: #b00000;                                                /* Dunkles Rot */
}

.form-buttons-row {
  display: flex;
  gap: var(--space-sm);                                           /* 12px */
  margin-top: var(--space-lg);                                    /* 24px */
}

.form-buttons-row .form-button {
  flex-grow: 1;                                                   /* Buttons teilen sich die Breite */
  width: 0;                                                       /* Ermöglicht flex-grow korrekt */
}

/* ============================= */
/* 20. Kleinere Buttons & Alerts    */
/* ============================= */
.custom-button-small {
  padding: var(--space-xs) var(--space-sm);                       /* 8px 12px */
  font-size: 0.8rem;                                             /* 0.8em */
}

/* AI-Empfehlungslinks */
#ai-recommendations-result ul li a,
#ai-recommendations-result .recommendation-title a {
  color: var(--accent-primary) !important;                         /* Indigo */
  text-decoration: none !important;
}
#ai-recommendations-result ul li a:hover,
#ai-recommendations-result .recommendation-title a:hover {
  color: var(--accent-hover) !important;                           /* Dunkleres Indigo beim Hover */
  text-decoration: underline;                                      /* Unterstreichung nur beim Hover */
}

a.custom-button.custom-button-ai,
a.custom-button.custom-button-ai:link,
a.custom-button.custom-button-ai:visited {
  text-decoration: none !important;
  color: var(--text-on-accent) !important;                          /* Weiß */
  display: inline-block !important;                                 /* Damit Padding/Größe korrekt wirkt */
  /* Hintergrund, Padding etc. kommen von .custom-button und .custom-button-ai */
}
a.custom-button.custom-button-ai:hover,
a.custom-button.custom-button-ai:active {
  text-decoration: none !important;
  /* Hover/Active-Effekte übernimmt .custom-button-Stil (Akzentfarben, Schatten) */
}

/* ============================= */
/* 21. Responsive Design (Erweitert) */
/* ============================= */
@media (max-width: 992px) {
  .welcome-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
  }
  .welcome-content {
    max-width: 100%;
  }
  .welcome-image {
    order: -1;
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .app-header .header-container {
    flex-direction: column;
    gap: var(--space-md);
  }
  .app-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }
  .login-register-forms-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  /* Anpassung Movie-Grid für kleinere Displays */
  .movie-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
  }
  /* Detail-Grid: einspaltig */
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: var(--space-md);
  }
  .movie-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .welcome-section {
    padding: var(--space-xl) var(--space-md);
  }
  .auth-form-wrapper {
    padding: var(--space-lg);
  }
  /* Detail-Container schmaler */
  .detail-container {
    margin: var(--space-md) auto; /* 16px */
    padding: var(--space-md);     /* 16px */
  }
}

/* ============================= */
/*  Hero-Überschrift noch größer */
/* ============================= */
.welcome-section.hero-background .welcome-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem); /* Eyecatcher-Größe: min 3rem, max 6rem */
}

