/* ------------------------------------------------------------------
   style.css – Modernes Glassmorphism-Design, mobiloptimiert
   ------------------------------------------------------------------ */

/* 1. Google Font importieren */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --gradient-start: #a8edea;
  --gradient-end:   #fed6e3;
  --card-bg:        rgba(255,255,255,0.6);
  --text-dark:      #2c3e50;
  --text-light:     #34495e;
  --accent:         #6c5ce7;
  --accent-hover:   #341f97;
  --border-light:   rgba(255,255,255,0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-dark);
}

/* Grund-Container */
.container {
  max-width: 720px;
  margin: auto;
  padding: 2rem 1rem;
}

/* Überschriften */
h1, h2, h3 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Glass-Card */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid var(--border-light);
}
.card-body {
  padding: 1.5rem;
}

/* Einheitliche Bild-Box */
.img-container {
  width: 100%;
  height: 400px;
  background: var(--card-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}
.img-container img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Form Controls */
label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
}
.form-control,
.form-select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: rgba(255,255,255,0.8);
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.form-control:focus,
.form-select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline-secondary {
  color: var(--accent);
  border-color: var(--accent);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.btn-outline-secondary:hover {
  background: rgba(108,92,231,0.1);
  color: var(--accent-hover);
}

/* Rating-List */
.rating-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
}
.rating-list .label {
  color: var(--text-light);
  font-weight: 600;
}
.rating-list .value {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

/* Alerts */
.alert {
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* ------------------------------------------------------------------
   Mobile-Optimierungen
   ------------------------------------------------------------------ */
@media (max-width: 576px) {
  .container {
    padding: 1rem;
  }
  /* Bilder auf Mobil kleiner */
  .img-container {
    height: 200px;
  }
  /* Weniger Padding in Cards */
  .card-body {
    padding: 1rem;
  }
  /* Größere Textabstände */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  /* Rating-Liste enger zusammen */
  .rating-list {
    gap: 0.4rem 0.5rem;
  }
/* 1. Aktiven Nav-Link deutlich hervorheben */
.navbar .nav-link.active {
  color: var(--accent-hover);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-hover);
}

/* 2. Zeilen-Hover für Tabellen */
.table-striped tbody tr:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* 3. Einheitlicher Card-Abstand */
.card {
  margin-bottom: 1.5rem;
}

/* 4. Button-Gruppen: Abstand zwischen Buttons */
.btn + .btn {
  margin-left: 0.5rem;
}

/* 5. Sticky Admin-Nav */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 6. Deutlicheres Kontrast-Overlay hinter Tabellen */
.table-responsive-custom {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 0.5rem;
}

/* 7. Leichte Schriftvergrößerung in Cards */
.card-body {
  font-size: 1.05rem;
  line-height: 1.4;
}

}

