/* 
 * MatheCollect - Optimiertes CSS mit Themes
 * Reorganisiert und optimiert
 * Zwei Themes: Light (Standard) und Dark
 */

/* ---------------------------------------------------- */
/* CSS-Variablen und Themes                             */
/* ---------------------------------------------------- */

:root {
  /* Farbschema - Helles Theme (Standard) */
  --primary-color: #89ba17;
  --primary-color-dark: #7a9b2a;
  --primary-color-light: #f0f4e6;
  --primary-gradient: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  --primary-gradient-hover: linear-gradient(135deg, #7a9b2a 0%, #6c8825 100%);

  /* Neutrale Farben */
  --text-color: #000000;
  --text-color-secondary: #666;
  --text-color-light: #999;
  --background-color: #fff;
  --background-color-alt: #f8f9fa;
  --background-color-accent: #e9ecef;

  /* Rahmen und Schatten */
  --border-color: #ddd;
  --border-color-light: #eee;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* Utility-Farben */
  --success-color: #28a745;
  --danger-color: #dc3545;
  --danger-color-dark: #c82333;
  --warning-color: #ffc107;
  --info-color: #17a2b8;

  /* Abstände und Radien */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  --border-radius-round: 50%;

  /* Transparenzen */
  --transparency-light: rgba(255, 255, 255, 0.85);
  --transparency-medium: rgba(255, 255, 255, 0.5);
  --transparency-dark: rgba(0, 0, 0, 0.1);
}

/* Dunkles Theme - wird durch body.dark-theme aktiviert */
body.dark-theme {
  --primary-color: #89ba17;
  --primary-color-dark: #7a9b2a;
  --primary-color-light: #2c3a0e;
  --primary-gradient: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  --primary-gradient-hover: linear-gradient(135deg, #7a9b2a 0%, #6c8825 100%);

  /* Neutrale Farben für dunkles Theme */
  --text-color: #f0f0f0;
  --text-color-secondary: #cccccc;
  --text-color-light: #999999;
  --background-color: #222222;
  --background-color-alt: #333333;
  --background-color-accent: #444444;

  /* Rahmen und Schatten für dunkles Theme */
  --border-color: #555555;
  --border-color-light: #444444;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Hochkontrast-Modus bleibt erhalten für Barrierefreiheit */
body.high-contrast {
  --primary-color: #000;
  --primary-color-dark: #000;
  --primary-color-light: #fff;
  --primary-gradient: #000;
  --primary-gradient-hover: #333;

  --text-color: #fff;
  --text-color-secondary: #fff;
  --text-color-light: #fff;
  --background-color: #000;
  --background-color-alt: #000;
  --background-color-accent: #222;

  --border-color: #fff;
  --border-color-light: #ccc;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  --success-color: #fff;
  --danger-color: #fff;
  --danger-color-dark: #fff;
  --warning-color: #fff;
  --info-color: #fff;
}

/* ---------------------------------------------------- */
/* Basis- und Layout-Stile                              */
/* ---------------------------------------------------- */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  font-family: sans-serif;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 5px;
  position: relative;
  z-index: 1;
  background-color: var(--transparency-light);
}

main {
  flex: 1;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Text-Formatierung */
h1,
h2 {
  font-family: sans-serif !important;
  color: black;
}

h2 {
  font-weight: bold !important;
}

p {
  color: var(--text-color-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Sidebar Grundelemente */
.sidebar {
  border-radius: 5px;
  margin-bottom: 1rem;
}

.sidebar details {
  margin-bottom: 10px;
}

.sidebar summary {
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--background-color-alt);
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.filter-items {
  margin: 10px;
}

.filter-clear {
  margin-top: 10px;
}

/* Navbar */
.navbar-custom img {
  height: 90px;
  width: 240px;
  margin-right: 10px;
}

/* Gray Banner */
.gray-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--background-color-accent);
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
}

.gray-banner h1 {
  font-size: 1rem;
  color: var(--text-color);
  margin: 0;
  padding-left: 20px;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
}

.gray-banner .logo {
  height: 35px;
  width: auto;
  cursor: pointer;
  margin-left: 15px;
  flex-shrink: 0;
}

.gray-banner .logo:hover {
  transform: scale(1.02);
}

/* Buttons */
.btn,
.submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 7px 15px;
  border-radius: 5px;
}

.btn:hover,
.submit:hover {
  background-color: var(--primary-color-dark);
  color: white;
}

/* App und Card-Elemente */
.app-icon {
  max-height: 140px;
  max-width: 140px;
  padding-right: 20px;
  border-radius: 5px;
}

.card-title {
  font-size: 1rem;
  font-weight: bolder;
  color: var(--text-color);
  white-space: wrap;
}

.card {
  border-radius: 20px;
  padding: 5px;
  margin-bottom: 20px;
  background-color: var(--background-color);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color-light);
}

/* Footer */
footer {
  background-color: var(--primary-color-dark);
  color: white;
  padding: 20px 0;
}

footer a {
  color: white;
  transition: color 0.2s ease;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer .list-inline-item:not(:last-child) {
  margin-right: 15px;
}

footer hr {
  background-color: white;
  width: 60%;
  margin: 10px auto;
}

footer p {
  color: white;
  margin-bottom: 0;
}

/* Navbar */
.navbar-custom {
  background-image: linear-gradient(
    90deg,
    var(--primary-color) 100%,
    transparent 0
  );
  cursor: pointer;
}

/* Filter Section */
.filter-section {
  background-color: var(--background-color-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-section .filter-heading a {
  display: block;
  font-size: 1rem;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 10px;
  position: relative;
  padding-right: 20px;
}

.filter-section .filter-heading a:after {
  content: "\25BC";
  position: absolute;
  right: 0;
  font-size: 1rem;
  transition: transform 0.3s;
}

.filter-section .collapse.show ~ .filter-heading a:after {
  transform: rotate(180deg);
}

.filter-section .form-check {
  margin-bottom: 8px;
}

/* Settings Button */
.settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  fill: none;
  height: 40px;
  border-radius: var(--border-radius-round);
  transition: background-color 0.3s;
}

.settings-btn:hover {
  background-color: var(--transparency-medium);
}

.settings-btn svg {
  height: 20px;
  width: 20px;
  stroke: #fff;
  stroke-width: 2;
}

/* Forms */
.form-inline {
  justify-content: center;
}

/* Dropdowns */
.dropdown-menu .form-check:hover {
  background-color: #9197a2;
  cursor: pointer;
}

.dropdown-menu {
  max-height: 300px;
  width: 12rem;
  overflow-y: auto;
  background-color: var(--background-color-alt);
}

.selected-items {
  font-size: 0.8rem;
  color: var(--text-color-light);
  margin-top: 0.25rem;
}

.selected-item {
  background-color: var(--primary-color-dark);
  color: #fff;
  padding: 2px 6px;
  margin: 2px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  display: inline-block;
}

/* Filter Container */
.filter-container {
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
}

.search-filter-container {
  background-color: #f0f0f0;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Font Size Banner */
.font-size-banner {
  background-color: var(--background-color-alt);
  padding: 8px 5px;
  border-bottom: 1px solid var(--border-color);
  text-align: right;
  font-size: 0.7rem;
}

.font-size-banner a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 1px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: var(--border-radius-sm);
}

.font-size-banner a:hover {
  border-color: var(--primary-color);
  background-color: var(--background-color-accent);
}

/* Pagination */
.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-link {
  color: var(--primary-color);
}

.page-link:hover {
  background-color: var(--primary-color-dark);
  color: white;
}

/* Filter Items */
.filter-items .form-check {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  display: block;
}

.filter-items .form-check-input {
  position: absolute;
  left: 0;
  top: 4px;
  margin-top: 0;
  margin-left: 0;
}

.filter-items .form-check-label {
  white-space: normal;
  line-height: 1.4;
  margin-left: 0;
  color: black !important;
  display: inline-block;
  cursor: pointer;
}

/* Topic summaries in filter section - completely remove all styling, no box, no shadow */
.filter-items details summary {
  /* Reset all inherited styling to plain text */
  display: inline !important;
  align-items: unset !important;
  flex-wrap: unset !important;
  white-space: normal;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--text-color) !important;
  cursor: pointer;
  border-radius: 0 !important;
  background-color: transparent !important;
  background: none !important;
  transition: none !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

/* Override sidebar summary styling specifically for filter topic summaries */
.sidebar .filter-items details summary {
  display: inline !important;
  align-items: unset !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  background: none !important;
  border-radius: 0 !important;
  transition: none !important;
  border: none !important;
  border-left: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Remove all hover and focus effects for filter topic summaries */
.sidebar .filter-items details summary:hover,
.sidebar .filter-items details summary:focus,
.filter-items details summary:hover,
.filter-items details summary:focus {
  background-color: transparent !important;
  background: none !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  text-decoration: underline !important;
  color: var(--primary-color) !important;
}

/* Remove box styling from topic details containers in filter */
.filter-items details {
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background: none !important;
  box-shadow: none !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
}

/* Banners */
.under-construction {
  font-size: 1rem;
  background-color: #fff3cd;
  color: #856404;
  text-align: center;
  border: 1px solid #ffeeba;
  border-radius: var(--border-radius-sm);
  padding: 15px;
  margin-top: 20px;
}

.description {
  text-align: start;
}
/* Search Field */
.search-field {
  width: 40%;
  max-width: 500px;
  margin: 1px auto;
}

@media (max-width: 992px) {
  .search-field {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .search-field {
    width: 80%;
  }
}

@media (max-width: 576px) {
  .search-field {
    width: 95%;
  }
}

/* High Contrast Mode Overrides (umgewandelt in CSS-Variablen) */
body.high-contrast .navbar-custom {
  background-color: var(--background-color) !important;
  background-image: linear-gradient(
    90deg,
    var(--background-color) 100%,
    transparent 0
  ) !important;
}

body.high-contrast footer {
  background-color: var(--background-color) !important;
}

body.high-contrast .selected-item {
  background-color: var(--background-color) !important;
}

body.high-contrast .btn:hover,
body.high-contrast .submit:hover {
  color: white !important;
}

body.high-contrast .btn,
body.high-contrast .submit {
  background-color: var(--background-color) !important;
}

body.high-contrast input[type="text"] {
  border-color: var(--background-color) !important;
}

body.high-contrast .font-size-banner a:hover {
  border-color: var(--background-color) !important;
}

body.high-contrast .page-link {
  color: var(--background-color) !important;
}

body.high-contrast .page-item.active .page-link,
body.high-contrast .page-link:hover {
  background-color: var(--background-color) !important;
  color: white !important;
}

/* Preserving black text color in high contrast mode */
body.high-contrast .text-black,
body.high-contrast [style*="color: #000"],
body.high-contrast [style*="color: black"],
body.high-contrast [style*="color: rgb(0, 0, 0)"],
body.high-contrast [style*="color: rgba(0, 0, 0,"] {
  color: var(--background-color) !important;
}

/* Making icons black in high contrast mode */
body.high-contrast
  .material-icons:not([style*="color: #000"]):not([style*="color: black"]),
body.high-contrast .bi:not([style*="color: #000"]):not([style*="color: black"]),
body.high-contrast svg:not([style*="fill: #000"]):not([style*="fill: black"]) {
  fill: var(--text-color) !important;
}

body.high-contrast .login-form .form-title {
  color: white !important;
}

body.high-contrast .sidebar summary .material-icons {
  color: var(--background-color) !important;
}

body.high-contrast
  .login-form
  i:not([style*="color: #000"]):not([style*="color: black"]) {
  color: var(--background-color) !important;
}

body.high-contrast sidebar .material-icons {
  color: var(--background-color) !important;
}

/* Keep topic summary text black in high contrast mode */
body.high-contrast .filter-items details summary,
body.high-contrast .sidebar .filter-items details summary {
  color: #000 !important;
}

/* Ensure icon backgrounds have proper contrast */
body.high-contrast .settings-card-icon,
body.high-contrast .info-card .card-icon {
  background: var(--text-color) !important;
  border: 2px solid var(--background-color) !important;
}

/* Fix for white text on black background in icons */
body.high-contrast .settings-card-icon i,
body.high-contrast .info-card .card-icon i {
  color: var(--background-color) !important;
}

/* Checkbox styling */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--border-color);
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  margin-right: 8px;
  position: relative;
  flex-shrink: 0;
  background-color: var(--background-color);
}

input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M4 8L7 11L12 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* Labels and Details */
.topic-label {
  font-weight: bold;
  font-size: 18px;
}

/* Details Element Styling */
details summary {
  padding: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

details {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--background-color);
  box-shadow: var(--shadow-sm);
}

/* Sidebar Styles */
.sidebar summary .material-icons {
  vertical-align: middle;
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.sidebar details[open] summary {
  border-left: 4px solid var(--primary-color);
  background-color: var(--primary-color-light);
}

.sidebar summary:hover {
  background-color: var(--background-color-accent);
  transform: translateX(5px);
}

.sidebar .filter-actions .material-icons {
  font-size: 18px;
  margin-right: 5px;
}

.sidebar details[open] .filter-items {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------- */
/* Responsive Anpassungen                               */
/* ---------------------------------------------------- */

/* 4K+ Displays */
@media (min-width: 2560px) {
  html,
  body {
    font-size: 1.3rem;
  }
  .navbar-custom img {
    height: 120px;
    width: 300px;
  }
  .app-icon {
    max-height: 200px;
    max-width: 200px;
  }
  .filter-section,
  .sidebar {
    padding: 20px;
  }
  .btn,
  .submit {
    padding: 12px 20px;
    border-radius: 8px;
  }
  .search-field {
    width: 30%;
    max-width: 800px;
  }
  /* Improved search field and button for high resolution */
  .search-field .form-control {
    height: 70px;
    font-size: 1.3rem;
    line-height: 70px;
    padding: 0 25px;
    box-sizing: border-box;
  }

  .search-field .input-group-append .btn {
    height: 70px;
    font-size: 1.3rem;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .search-field .input-group-append .btn .material-icons {
    font-size: 28px;
  }

  .wrapper {
    padding: 0 20px;
  }
  .container-fluid {
    max-width: 2400px;
    margin: 0 auto;
  }
  .card {
    padding: 20px;
  }
  .card-title {
    font-size: 1.25rem;
  }
  .font-size-banner {
    font-size: 1.1rem;
    padding: 10px 5px;
  }

  /* Improved alignment for accessibility icons and text */
  .font-size-banner a {
    padding: 6px 10px;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
  }

  .font-size-banner a img,
  .font-size-banner a svg {
    height: 22px !important;
    width: auto !important;
    vertical-align: middle !important;
    margin-right: 6px !important;
  }

  .selected-item {
    font-size: 0.9rem;
    padding: 4px 8px;
  }
  .fixed-pagination .page-link {
    padding: 10px 20px;
  }
  .gray-banner {
    padding: 20px;
  }
  .gray-banner h1 {
    font-size: 2rem;
    margin-left: 6%;
  }
  .gray-banner .logo {
    margin-right: 14%;
    height: 35px;
    width: auto;
  }
  input[type="text"] {
    padding: 0 25px;
    font-size: 1.2rem;
    height: 70px;
    line-height: 70px;
  }
}
.nav-link {
  color: #fff;
  font-size: 1.1rem;
}

.navbar-brand {
  margin-right: 0;
}

.gray-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0076af;
  padding: 5px;
}

.gray-banner h1 {
  font-size: 1rem;
  color: white;
}

.gray-banner .logo {
  margin-right: 9%;
  height: 35px;
  width: auto;
  cursor: pointer;
}
.gray-banner .logo:hover {
  transform: scale(1.02);
}

.back-btn {
  margin: 10px;
  color: #353434 !important;
}
.back-btn:hover {
  color: #353434 !important;
}
.content {
  padding: 17px 5px;
}

.btn .bi {
  font-size: 1.1rem;
  font-weight: bolder;
  transition: transform 0.15s ease;
  margin-right: 0.35rem; /* Abstand zwischen Icon und Text */
}

.btn:hover .bi {
  transform: scale(1.1);
}

.search-field {
  width: 50%;
  max-width: 600px;
  margin: 2px auto;
  transition: all 0.3s ease;
  position: relative;
}

.search-field .input-group {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: stretch;
}

.search-field .form-control {
  border: 2px solid #89ba17;
  border-right: none;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  padding-left: 25px;
  height: 55px;
  background-color: #f9f9f9;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.search-field .form-control:focus {
  box-shadow: none;
  border-color: #89ba17;
  background-color: #fff;
}

.search-field .input-group-append .btn {
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  color: white;
  padding: 0 30px;
  height: 55px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.search-field .input-group-append .btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
}

.search-field .input-group-append .btn:hover:before {
  width: 100%;
}

.search-field .input-group-append .btn:hover {
  background: linear-gradient(135deg, #7a9b2a 0%, #6c8825 100%);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-field .input-group-append .btn:active {
  transform: scale(0.98);
}

.search-field .input-group-append .btn .material-icons {
  font-size: 24px;
  vertical-align: middle;
  margin-right: 8px;
}

.search-field .input-group-append .btn span {
  vertical-align: middle;
}

.search-field .input-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .search-field {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .search-field {
    width: 85%;
  }
}

@media (max-width: 576px) {
  .search-field {
    width: 95%;
  }

  .search-field .input-group-append .btn {
    padding: 0 18px;
  }

  .search-field .form-control {
    height: 50px;
    padding-left: 20px;
  }

  .search-field .input-group-append .btn {
    height: 50px;
  }
}

body.high-contrast .search-field .form-control {
  border-color: #000;
  background-color: #fff;
  color: #000;
}

body.high-contrast .search-field .input-group-append .btn {
  background: #000;
}

.app-list-container {
  margin: 30px 0;
}

.app-list-container .card {
  border-radius: 15px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 25px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-list-container .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.app-list-container .card-body {
  padding: 25px;
}

.app-list-container .card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.app-list-container .card:hover .card-title {
  color: #89ba17;
}

.app-list-container .card-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.app-list-container .card-text strong {
  color: #444;
  font-weight: 600;
}

.app-list-container .app-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  padding: 0;
  margin-right: 20px;
  background-color: #f8f9fa;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.app-list-container .card:hover .app-icon {
  transform: scale(1.05);
}

.app-list-container .description {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.app-list-container .btn {
  background: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  color: white;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.app-list-container .btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
}

.app-list-container .btn:hover:before {
  width: 100%;
}

.app-list-container .btn:hover {
  background: linear-gradient(135deg, #7a9b2a 0%, #6c8825 100%);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.app-list-container hr {
  margin: 15px 0;
  border-color: #eee;
}

.app-list-container .no-results {
  text-align: center;
  padding: 50px 0;
  color: #666;
}

.app-list-container .no-results i {
  font-size: 48px;
  color: #89ba17;
  margin-bottom: 15px;
  display: block;
}

@media (max-width: 768px) {
  .app-list-container .card-body {
    padding: 20px;
  }

  .app-list-container .app-icon {
    width: 80px;
    height: 80px;
    margin-right: 15px;
  }

  .app-list-container .card-title {
    font-size: 1.2rem;
  }
}

body.high-contrast .app-list-container .card {
  border: 1px solid #000;
  box-shadow: none;
}

body.high-contrast .app-list-container .card-title {
  color: #000;
}

body.high-contrast .app-list-container .btn {
  background: #000;
}

#clear-filters {
  border: 1px solid #6c757d;
  border-radius: 25px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  background-color: white;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: normal;
}

#clear-filters:hover {
  background-color: #f8f9fa;
  border-color: #6c757d;
  color: #5a6268;
}

#clear-filters .material-icons {
  font-size: 18px;
  margin-right: 6px;
}

#clear-filters:hover .material-icons {
  animation: spin 1s ease-in-out 1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.app-details-container {
  margin: 40px auto;
  max-width: 1200px;
}

.app-details-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.app-details-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #89ba17 0%, #7a9b2a 100%);
  border-radius: 2px;
}

.app-icon-container {
  text-align: center;
  padding: 20px;
}

.app-details-icon {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 0;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-details-icon:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.app-details-info {
  background-color: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.app-details-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.app-details-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.app-details-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.app-details-section strong {
  color: #444;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.app-details-section p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 10px;
}

.app-details-section ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.app-details-section ul li {
  margin-bottom: 8px;
  position: relative;
  list-style-type: none;
  padding-left: 22px;
  line-height: 1.5;
}

.app-details-section ul li:before {
  content: "•";
  color: #89ba17;
  font-weight: bold;
  font-size: 1.3rem;
  position: absolute;
  left: 0;
  top: -3px;
}

.app-download-link {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  color: white;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(137, 186, 23, 0.2);
}

.app-download-link:hover {
  background: linear-gradient(135deg, #7a9b2a 0%, #6c8825 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(137, 186, 23, 0.3);
  color: white;
  text-decoration: none;
}

.app-download-link .bi {
  font-size: 1.2rem;
  margin-right: 10px;
}

.app-topic-tags {
  margin: 15px 0;
}

.app-topic-tag {
  display: inline-block;
  background-color: #f0f4e6;
  color: #7a9b2a;
  padding: 4px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: 50px;
  font-size: 1.1rem;
  border: 1px solid rgba(137, 186, 23, 0.2);
  transition: all 0.2s ease;
}

.app-topic-tag:hover {
  background-color: #e6eed6;
  transform: translateY(-2px);
}

.back-button {
  display: inline-flex;
  align-items: center;
  color: #333;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
  background-color: #f8f9fa;
  border: 1px solid #eee;
  margin-bottom: 20px;
}

.back-button:hover {
  background-color: #f0f0f0;
  transform: translateX(-3px);
  color: #333;
  text-decoration: none;
}

.back-button svg {
  margin-right: 8px;
}

.back-button i {
  margin-right: 10px;
  font-size: 1.1rem;
}

body.high-contrast .app-details-info {
  border: 1px solid #444;
}

body.high-contrast .app-details-title {
  color: #000;
}

body.high-contrast .app-details-section ul li:before {
  color: #000;
}

body.high-contrast .app-topic-tag {
  background-color: #444;
  color: #fff;
  border-color: #555;
}

body.high-contrast .back-button {
  background-color: #444;
  color: #fff;
  border-color: #555;
}

body.high-contrast .app-details-section {
  border-bottom-color: #555;
}

body.high-contrast .app-download-link {
  background: #000;
}

body.high-contrast .app-details-title:after {
  background: #000;
}

@media (max-width: 992px) {
  .app-details-title {
    font-size: 2rem;
  }

  .app-details-info {
    padding: 25px;
  }

  .app-details-icon {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .app-details-title {
    font-size: 1.8rem;
  }

  .app-details-icon {
    width: 130px;
    height: 130px;
  }

  .app-details-info {
    padding: 20px;
  }

  .app-details-section strong {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .app-details-title {
    font-size: 1.5rem;
  }

  .app-icon-container {
    padding: 10px;
  }

  .app-details-icon {
    width: 120px;
    height: 120px;
  }

  .app-details-info {
    padding: 15px;
  }

  .app-topic-tags {
    text-align: center;
  }
}

@media print {
  header,
  footer,
  .font-size-banner,
  .gray-banner,
  .back-button,
  .navbar,
  .navbar-custom {
    display: none !important;
  }

  .app-details-container {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  @page {
    size: A4;
    margin: 1cm;
    title: "App Details";
  }

  body {
    font-size: 12pt;
    background-color: white;
    color: black;
  }

  .app-details-title {
    font-size: 24pt;
    margin-bottom: 1cm;
    padding-bottom: 0.5cm;
    text-align: center;
  }

  .app-details-info {
    box-shadow: none;
    border: 1px solid #ddd;
    padding: 0.5cm;
  }

  .app-details-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 0.5cm;
    box-shadow: none;
  }

  .app-details-section {
    page-break-inside: avoid;
    margin-bottom: 15pt;
  }

  .app-details-title:after {
    display: none;
  }

  a {
    text-decoration: none !important;
    color: black !important;
  }

  .app-details-section ul li {
    margin-bottom: 5pt;
  }

  .app-details-container::after {
    content: "Generiert aus MatheCollect: " attr(data-generation-date);
    display: block;
    margin-top: 1cm;
    font-size: 9pt;
    text-align: right;
    color: #777;
  }
}

.settings-dashboard {
  padding: 20px 0 40px;
}

.settings-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.settings-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.settings-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  color: #333;
  text-decoration: none;
  height: 100%;
}

.settings-card-link:hover {
  text-decoration: none;
  color: #333;
}

.settings-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.settings-card-icon:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: all 0.5s ease;
}

.settings-card:hover .settings-card-icon:before {
  transform: scale(1.5);
}

.settings-card-icon i {
  font-size: 32px;
  color: #fff;
  transition: all 0.3s ease;
}

.settings-card:hover .settings-card-icon i {
  transform: scale(1.15);
}

.settings-card-content {
  text-align: center;
}

.settings-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  transition: all 0.3s ease;
}

.settings-card-text {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.settings-card:hover .settings-card-title {
  color: #89ba17;
}

.logout-btn {
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: #dc3545;
  border: none;
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
}

.logout-btn:hover {
  background-color: #c82333;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

.logout-btn:active {
  transform: scale(0.98);
}

.logout-btn i {
  margin-right: 8px;
  transition: all 0.3s ease;
}

.logout-btn:hover i {
  transform: translateX(3px);
}

body.high-contrast .settings-card {
  border: 2px solid #000;
  box-shadow: none;
}

body.high-contrast .settings-card-icon {
  background: #000;
}

body.high-contrast .settings-card-title {
  color: #000;
}

body.high-contrast .settings-card:hover .settings-card-title {
  color: #000;
  text-decoration: underline;
}

body.high-contrast .logout-btn {
  background: #000;
  color: #fff;
  border: 2px solid #fff;
}

@media (max-width: 768px) {
  .settings-card-icon {
    width: 60px;
    height: 60px;
  }

  .settings-card-icon i {
    font-size: 24px;
  }

  .settings-card-title {
    font-size: 1.2rem;
  }

  .settings-card-link {
    padding: 20px 15px;
  }
}

@media (min-width: 2560px) {
  .settings-card-icon {
    width: 120px;
    height: 120px;
  }

  .settings-card-icon i {
    font-size: 48px;
  }

  .settings-dashboard {
    padding: 40px 0 60px;
  }

  .settings-card-title {
    font-size: 1.8rem;
  }

  .settings-card-text {
    font-size: 1.2rem;
  }

  .logout-btn {
    padding: 15px 35px;
    font-size: 1.2rem;
  }
}

main details {
  margin-bottom: 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

main details:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

main details summary {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 600;
  font-size: 1.15rem;
  color: #444;
  border-left: 4px solid transparent;
}

main details summary:focus {
  outline: none;
}

main details summary::before {
  font-family: "Material Icons";
  margin-right: 15px;
  font-size: 24px;
  color: #89ba17;
  transition: all 0.3s ease;
}

main details#detailsTopic summary::before {
  content: "menu_book";
}

main details#detailSupTopic summary::before {
  content: "bookmarks";
}

main details#detailsOS summary::before {
  content: "desktop_windows";
}

main details#detailsGradeLevel summary::before {
  content: "groups";
}

main details#detailsAppType summary::before {
  content: "grid_view";
}

main details#detailsApp summary::before {
  content: "app_registration";
}

main details[open] summary {
  background: linear-gradient(to right, #f0f4e6, #ffffff);
  border-left: 4px solid #89ba17;
  border-bottom: 1px solid #eaeaea;
  border-radius: 12px 12px 0 0;
}

main details summary::after {
  content: "";
  font-family: "Material Icons";
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
  font-size: 24px;
  color: #89ba17;
}

main details summary:hover::before,
main details summary:hover::after {
  transform: scale(1.1);
}

main details > div,
main details > form {
  /* padding: 20px; */
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main details form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

main details form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

main details ul {
  list-style: none;
  padding-left: 5px;
}

main details ul li {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

main details ul li:last-child {
  border-bottom: none;
}

main details ul li:hover {
  background-color: #f9f9f9;
}

main details ul li span {
  flex-grow: 1;
}

main details ul li form button {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

main details ul li form button:hover {
  background-color: #d32f2f;
  transform: scale(1.05);
}

main details#detailSupTopic ul {
  margin-top: 15px;
}

main details#detailSupTopic ul li {
  padding: 0;
  margin-bottom: 20px;
}

main details#detailSupTopic ul li strong {
  display: block;
  color: #333;
  font-size: 1.1rem;
  padding: 10px 15px;
  background-color: #f6f9f0;
  border-radius: 8px 8px 0 0;
  border-left: 3px solid #89ba17;
  margin-bottom: 0;
}

main details#detailSupTopic ul li ul {
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 0;
  margin-left: 0;
  margin-bottom: 20px;
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eaeaea;
}

main details#detailSupTopic ul li ul li {
  display: table-row;
  transition: all 0.2s ease;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
}

main details#detailSupTopic ul li ul li:last-child {
  border-bottom: none;
}

main details#detailSupTopic ul li ul li:hover {
  background-color: #f0f4e6;
}

main details#detailSupTopic ul li ul li::before {
  content: "label";
  font-family: "Material Icons";
  font-size: 16px;
  color: #89ba17;
  display: table-cell;
  padding: 10px 5px 10px 15px;
  vertical-align: middle;
}

main details#detailSupTopic ul li ul li span {
  display: table-cell;
  font-size: 0.95rem;
  padding: 10px 5px;
  vertical-align: middle;
  width: 100%;
}

main details#detailSupTopic ul li ul li form {
  display: table-cell;
  padding: 10px 15px 10px 5px;
  vertical-align: middle;
  white-space: nowrap;
}

main details#detailSupTopic ul li ul li button {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

main details#detailSupTopic ul li ul li button:hover {
  background-color: #d32f2f;
  transform: scale(1.05);
}

main details#detailSupTopic ul li ul li:nth-child(even) {
  background-color: #f9f9f9;
}

main details#detailSupTopic ul li ul li:nth-child(even):hover {
  background-color: #f0f4e6;
}

main details#detailsTopic ul {
  margin-top: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 0;
  margin-left: 0;
  margin-bottom: 20px;
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eaeaea;
}

main details#detailsTopic ul li {
  display: table-row;
  transition: all 0.2s ease;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  padding: 0;
}

main details#detailsTopic ul li:last-child {
  border-bottom: none;
}

main details#detailsTopic ul li:hover {
  background-color: #f0f4e6;
}

main details#detailsTopic ul li::before {
  content: "menu_book";
  font-family: "Material Icons";
  font-size: 16px;
  color: #89ba17;
  display: table-cell;
  padding: 10px 5px 10px 15px;
  vertical-align: middle;
}

main details#detailsTopic ul li span {
  display: table-cell;
  font-size: 0.95rem;
  padding: 10px 5px;
  vertical-align: middle;
  width: 100%;
  font-weight: 500;
}

main details#detailsTopic ul li form {
  display: table-cell;
  padding: 10px 15px 10px 5px;
  vertical-align: middle;
  white-space: nowrap;
}

main details#detailsTopic ul li button {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

main details#detailsTopic ul li button:hover {
  background-color: #d32f2f;
  transform: scale(1.05);
}

main details#detailsTopic ul li:nth-child(even) {
  background-color: #f9f9f9;
}

main details#detailsTopic ul li:nth-child(even):hover {
  background-color: #f0f4e6;
}

main details#detailsTopic > div:last-child {
  padding-top: 0;
}

main details#detailsTopic .theme-header {
  display: table;
  width: 100%;
  background-color: #f6f9f0;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
  border-bottom: 2px solid #89ba17;
}

main details#detailsTopic .theme-header div {
  display: table-cell;
  padding: 10px 15px;
  font-weight: 600;
  color: #333;
}

main details#detailsOS ul {
  margin-top: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 0;
  margin-left: 0;
  margin-bottom: 20px;
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eaeaea;
}

main details#detailsOS ul li {
  display: table-row;
  transition: all 0.2s ease;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  padding: 0;
}

main details#detailsOS ul li:last-child {
  border-bottom: none;
}

main details#detailsOS ul li:hover {
  background-color: #f0f4e6;
}

main details#detailsOS ul li::before {
  content: "desktop_windows";
  font-family: "Material Icons";
  font-size: 16px;
  color: #89ba17;
  display: table-cell;
  padding: 10px 5px 10px 15px;
  vertical-align: middle;
}

main details#detailsOS ul li span {
  display: table-cell;
  font-size: 0.95rem;
  padding: 10px 5px;
  vertical-align: middle;
  width: 100%;
  font-weight: 500;
}

main details#detailsOS ul li form {
  display: table-cell;
  padding: 10px 15px 10px 5px;
  vertical-align: middle;
  white-space: nowrap;
}

main details#detailsOS ul li button {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

main details#detailsOS ul li button:hover {
  background-color: #d32f2f;
  transform: scale(1.05);
}

main details#detailsOS ul li:nth-child(even) {
  background-color: #f9f9f9;
}

main details#detailsOS ul li:nth-child(even):hover {
  background-color: #f0f4e6;
}

main details#detailsGradeLevel ul {
  margin-top: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 0;
  margin-left: 0;
  margin-bottom: 20px;
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eaeaea;
}

main details#detailsGradeLevel ul li {
  display: table-row;
  transition: all 0.2s ease;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  padding: 0;
}

main details#detailsGradeLevel ul li:last-child {
  border-bottom: none;
}

main details#detailsGradeLevel ul li:hover {
  background-color: #f0f4e6;
}

main details#detailsGradeLevel ul li::before {
  content: "groups";
  font-family: "Material Icons";
  font-size: 16px;
  color: #89ba17;
  display: table-cell;
  padding: 10px 5px 10px 15px;
  vertical-align: middle;
}

main details#detailsGradeLevel ul li span {
  display: table-cell;
  font-size: 0.95rem;
  padding: 10px 5px;
  vertical-align: middle;
  width: 100%;
  font-weight: 500;
}

main details#detailsGradeLevel ul li form {
  display: table-cell;
  padding: 10px 15px 10px 5px;
  vertical-align: middle;
  white-space: nowrap;
}

main details#detailsGradeLevel ul li button {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

main details#detailsGradeLevel ul li button:hover {
  background-color: #d32f2f;
  transform: scale(1.05);
}

main details#detailsGradeLevel ul li:nth-child(even) {
  background-color: #f9f9f9;
}

main details#detailsGradeLevel ul li:nth-child(even):hover {
  background-color: #f0f4e6;
}

main details#detailsAppType ul {
  margin-top: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 0;
  margin-left: 0;
  margin-bottom: 20px;
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eaeaea;
}

main details#detailsAppType ul li {
  display: table-row;
  transition: all 0.2s ease;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  padding: 0;
}

main details#detailsAppType ul li:last-child {
  border-bottom: none;
}

main details#detailsAppType ul li:hover {
  background-color: #f0f4e6;
}

main details#detailsAppType ul li::before {
  content: "grid_view";
  font-family: "Material Icons";
  font-size: 16px;
  color: #89ba17;
  display: table-cell;
  padding: 10px 5px 10px 15px;
  vertical-align: middle;
}

main details#detailsAppType ul li span {
  display: table-cell;
  font-size: 0.95rem;
  padding: 10px 5px;
  vertical-align: middle;
  width: 100%;
  font-weight: 500;
}

main details#detailsAppType ul li form {
  display: table-cell;
  padding: 10px 15px 10px 5px;
  vertical-align: middle;
  white-space: nowrap;
}

main details#detailsAppType ul li button {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

main details#detailsAppType ul li button:hover {
  background-color: #d32f2f;
  transform: scale(1.05);
}

main details#detailsAppType ul li:nth-child(even) {
  background-color: #f9f9f9;
}

main details#detailsAppType ul li:nth-child(even):hover {
  background-color: #f0f4e6;
}

main details#detailsApp ul {
  display: table;
  width: 100%;
}

main details#detailsApp ul li {
  display: table-row;
  transition: all 0.2s ease;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  padding: 0;
}

main details#detailsApp ul li:last-child {
  border-bottom: none;
}

main details#detailsApp ul li:hover {
  background-color: #f0f4e6;
}

main details#detailsApp ul li form {
  display: table-cell;
  padding: 10px 15px 10px 5px;
  vertical-align: middle;
  white-space: nowrap;
}

main details#detailsApp ul li:nth-child(even) {
  background-color: #f9f9f9;
}

main details#detailsApp ul li:nth-child(even):hover {
  background-color: #f0f4e6;
}

@media (max-width: 768px) {
  main details#detailsTopic ul li span,
  main details#detailSupTopic ul li ul li span,
  main details#detailsOS ul li span,
  main details#detailsGradeLevel ul li span,
  main details#detailsAppType ul li span,
  main details#detailsApp ul li span {
    font-size: 0.9rem;
  }

  main details#detailsTopic ul li button,
  main details#detailSupTopic ul li ul li button,
  main details#detailsOS ul li button,
  main details#detailsGradeLevel ul li button,
  main details#detailsAppType ul li button,
  main details#detailsApp ul li button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  main details summary {
    padding: 12px 15px;
    font-size: 1.01rem;
  }

  main details summary::before {
    font-size: 20px;
    margin-right: 10px;
  }

  main details summary::after {
    font-size: 20px;
    right: 15px;
  }
}

.content-page {
  padding: 2rem 0 4rem;
}

.content-page .container {
  max-width: 900px;
  margin: 0 auto;
}

.page-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(137, 186, 23, 0.2) 0%,
    rgba(137, 186, 23, 0) 70%
  );
  border-radius: 50%;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  position: relative;
}

.page-header h1:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: #89ba17;
  border-radius: 2px;
}

.page-header .subtitle {
  color: #666;
  font-size: 1.1rem;
  max-width: 80%;
}

.content-box {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.content-box h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
}

.content-box h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #444;
  margin: 1.5rem 0 1rem;
}

.content-box p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.content-box ul,
.content-box ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-box li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
  position: relative;
}

.content-box ul li::before {
  content: "•";
  color: #89ba17;
  font-weight: bold;
  font-size: 1.3rem;
  margin-right: 10px;
}

.content-accordion {
  margin-bottom: 1.5rem;
}

.content-accordion .card {
  border: none;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.content-accordion .card-header {
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  padding: 0;
  border-bottom: none;
}

.content-accordion .card-header button {
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: #444;
  position: relative;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.content-accordion .card-header button:hover {
  background-color: #f0f4e6;
  text-decoration: none;
}

.content-accordion .card-header button:not(.collapsed) {
  background-color: #f0f4e6;
  border-left: 4px solid #89ba17;
  color: #333;
}

.content-accordion .card-header button:after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.content-accordion .card-header button:not(.collapsed):after {
  transform: translateY(-50%) rotate(180deg);
}

.content-accordion .card-body {
  padding: 1.5rem;
  background-color: #fff;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #444;
}

.contact-form .form-control {
  height: auto;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: #89ba17;
  box-shadow: 0 0 0 0.2rem rgba(137, 186, 23, 0.15);
}

.contact-form textarea.form-control {
  min-height: 150px;
}

.contact-form .btn-primary {
  background: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 500;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
  background: linear-gradient(135deg, #7a9b2a 0%, #689022 100%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-form-container {
  max-width: 450px;
  margin: 0 auto;
}

.login-form {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.login-form .form-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
}

.login-form .form-control {
  height: auto;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.login-form .form-control:focus {
  border-color: #89ba17;
  box-shadow: 0 0 0 0.2rem rgba(137, 186, 23, 0.15);
}

.login-form .btn-login {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  border: none;
  color: white;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.login-form .btn-login:hover {
  background: linear-gradient(135deg, #7a9b2a 0%, #689022 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-card .card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.info-card:hover .card-icon {
  transform: rotate(15deg) scale(1.1);
}

.info-card .card-icon i {
  font-size: 24px;
  color: #fff;
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.info-card p {
  color: #555;
  line-height: 1.6;
}

.team-member {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member .member-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.team-member .member-info {
  padding: 1.5rem;
}

.team-member .member-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.team-member .member-position {
  color: #89ba17;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-member .member-bio {
  color: #555;
  line-height: 1.6;
}

.team-member .social-links {
  margin-top: 1rem;
}

.team-member .social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: #f0f0f0;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.team-member .social-links a:hover {
  background-color: #89ba17;
  color: #fff;
  transform: translateY(-3px);
}

/* High-contrast Anpassungen für Content-Seiten */
body.high-contrast .page-header {
  background: #000;
  border: 1px solid #444;
}

body.high-contrast .page-header h1,
body.high-contrast .content-box h2,
body.high-contrast .content-box h3 {
  color: #fff;
}

body.high-contrast .page-header h1:after {
  background: #fff;
}

body.high-contrast .page-header .subtitle,
body.high-contrast .content-box p,
body.high-contrast .content-box li {
  color: #ddd;
}

body.high-contrast .content-box,
body.high-contrast .info-card,
body.high-contrast .team-member,
body.high-contrast .login-form {
  background-color: #222;
  border: 1px solid #444;
}

body.high-contrast .content-accordion .card {
  background-color: #222;
  border: 1px solid #444;
}

body.high-contrast .content-accordion .card-header {
  background: #333;
}

body.high-contrast .content-accordion .card-header button {
  color: #fff;
}

body.high-contrast .content-accordion .card-header button:not(.collapsed) {
  background-color: #444;
  border-left: 4px solid #fff;
}

body.high-contrast .content-form .form-control {
  background-color: #333;
  border-color: #555;
  color: #fff;
}

body.high-contrast .content-form .btn-primary,
body.high-contrast .login-form .btn-login {
  background: #000;
  color: #fff;
  border: 2px solid #fff;
}

body.high-contrast .content-form .btn-primary:hover,
body.high-contrast .login-form .btn-login:hover {
  background: #333;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .page-header {
    padding: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-header .subtitle {
    max-width: 100%;
  }

  .content-box {
    padding: 1.5rem;
  }

  .login-form {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 1.5rem;
  }

  .content-box h2 {
    font-size: 1.4rem;
  }

  .content-box h3 {
    font-size: 1.2rem;
  }

  .filter-items .form-check {
    padding-right: 5px;
  }

  .filter-items .form-check-label {
    font-size: 0.9rem;
  }

  input[type="checkbox"] {
    min-width: 18px;
    min-height: 18px;
    margin-right: 6px;
    align-self: flex-start;
    margin-top: 3px;
  }

  .sidebar summary {
    padding: 10px 8px;
    font-size: 0.95rem;
  }

  .sidebar summary .material-icons {
    font-size: 20px;
    margin-right: 8px;
    flex-shrink: 0;
  }

  /* Fix for Betriebssystem text specifically */
  .sidebar details summary span {
    max-width: calc(100% - 30px);
    display: inline-block;
    word-break: break-word;
  }
}

/* Spezielle Regeln für iPad Mini und kleinere Tablets */
@media only screen and (max-width: 768px) {
  /* Fix für alle Filter-Überschriften (os-text Klasse) */
  .os-text {
    font-size: 0.9rem !important;
    letter-spacing: -0.01em;
    display: inline-block;
    word-break: break-word;
    line-height: 1.2;
    max-width: calc(100% - 25px);
    padding-left: 0;
  }

  /* iPad Mini UND iPad Air spezifisch */
  @media only screen and (device-width: 768px) and (device-height: 1024px),
    only screen and (device-width: 810px) and (device-height: 1080px),
    only screen and (device-width: 834px) and (device-height: 1112px),
    only screen and (device-width: 820px) and (device-height: 1180px),
    only screen and (device-width: 834px) and (device-height: 1194px),
    /* iPad Air 4. Gen */ only screen and (device-width: 1024px) and (device-height: 1366px),
    /* iPad Air in Querformat */ only screen and (max-width: 540px) {
    .os-text {
      font-size: 0.75rem !important;
      letter-spacing: -0.03em;
      padding-left: 0;
      margin-left: 0;
    }

    .sidebar summary {
      padding-right: 3px;
      padding-left: 5px;
      padding-top: 6px;
      padding-bottom: 6px;
    }

    .sidebar summary .material-icons {
      font-size: 16px;
      margin-right: 4px;
    }
  }
}

/* Extra kleine Geräte wie iPad Mini im Portrait-Modus */
@media only screen and (max-width: 540px) {
  .sidebar summary {
    padding: 6px 4px;
    font-size: 0.85rem;
  }

  .sidebar summary .material-icons {
    font-size: 16px;
    margin-right: 4px;
  }

  .sidebar summary span {
    display: inline-block;
    max-width: calc(100% - 22px);
    font-size: 0.85rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
}

/* Optimierte Darstellung für Filter-Überschriften */
.os-text {
  font-size: 1rem;
  display: inline-block;
  word-break: break-word;
  line-height: 1.2;
  max-width: calc(100% - 30px);
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Tablet-Größen optimiert (unabhängig vom Gerät) */
@media (max-width: 1024px) {
  .sidebar summary {
    padding: 8px 10px;
  }

  .sidebar summary .material-icons {
    font-size: 18px;
    margin-right: 6px;
  }

  .os-text {
    font-size: 0.9rem !important;
  }
}

/* Kleinere Tablets (iPad Mini, kleine iPad Air Ausrichtungen) */
@media (max-width: 834px) {
  .sidebar summary {
    padding: 6px 8px;
  }

  .sidebar summary .material-icons {
    font-size: 16px;
    margin-right: 4px;
  }

  .os-text {
    font-size: 0.9rem !important;
    letter-spacing: -0.02em;
  }
}

/* Sehr schmale Viewports oder Mobile */
@media (max-width: 576px) {
  .sidebar summary {
    padding: 5px 5px;
  }

  .sidebar summary .material-icons {
    font-size: 14px;
    margin-right: 3px;
  }

  .os-text {
    font-size: 0.7rem !important;
    letter-spacing: -0.03em;
  }
}

/* Extra small devices (width <= 345px) */
@media (max-width: 347px) {
  .font-size-banner {
    font-size: 0.6rem;
  }
}

/* Responsive Anpassungen für gray-banner */
@media (max-width: 1200px) {
  .gray-banner .logo {
    height: 32px;
  }
}

@media (max-width: 992px) {
  .gray-banner {
    padding: 8px 15px;
  }

  .gray-banner h1 {
    font-size: 0.95rem;
    padding-left: 15px;
  }

  .gray-banner .logo {
    height: 30px;
  }
}

@media (max-width: 768px) {
  .gray-banner {
    padding: 7px 10px;
  }

  .gray-banner h1 {
    font-size: 0.9rem;
    padding-left: 10px;
  }

  .gray-banner .logo {
    height: 28px;
  }
}

@media (max-width: 576px) {
  .gray-banner {
    padding: 6px;
  }

  .gray-banner h1 {
    font-size: 0.85rem;
  }

  .gray-banner .logo {
    margin-right: 2%;
    height: 25px;
  }
}

@media (max-width: 400px) {
  .gray-banner {
    padding: 5px;
  }

  .gray-banner h1 {
    font-size: 0.8rem;
  }

  .gray-banner .logo {
    height: 22px;
  }
}

/* Responsive font sizes for sidebar themes and subthemes */
@media (max-width: 768px) {
  .sidebar summary {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .filter-items .form-check-label {
    font-size: 0.85rem;
  }

  .sidebar summary .material-icons {
    font-size: 20px;
    margin-right: 8px;
  }
}

@media (max-width: 576px) {
  .sidebar summary {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .filter-items .form-check-label {
    font-size: 0.75rem;
  }

  .sidebar summary .material-icons {
    font-size: 18px;
    margin-right: 6px;
  }

  .os-text {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 400px) {
  .sidebar summary {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  .filter-items .form-check-label {
    font-size: 0.7rem;
  }

  .sidebar summary .material-icons {
    font-size: 30px;
    margin-right: 5px;
  }

  .os-text {
    font-size: 0.7rem !important;
  }
}

/* Math Background Styles */
#math-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important; /* Erhöht von -1, aber immer noch unter dem Hauptinhalt */
  overflow: hidden !important;
  pointer-events: none !important;
  display: block !important;
}

/* Die mathematischen Symbole selbst */
#math-bg div {
  display: block !important;
  position: absolute !important;
  font-size: 2rem !important;
  font-weight: bold !important;
}

/* Footer halbdurchsichtig machen, damit der Mathematik-Hintergrund durchscheint */
footer {
  background-color: rgba(137, 186, 23, 0.9); /* Uni-Grün mit Transparenz */
  position: relative;
}

/* Media Query für höhere Auflösungen (2560px) */
@media (min-width: 1921px) {
  .gray-banner {
    padding: 15px 30px;
  }

  .gray-banner h1 {
    font-size: 1.3rem;
    padding-left: 30px;
  }

  .gray-banner .logo {
    height: 45px;
  }
}

/* Im Kontrastmodus den mathematischen Hintergrund ausblenden */
body.high-contrast #math-bg {
  display: none !important;
}

/* ---------------------------------------------------- */
/* App-Liste Erweiterter Stil                            */
/* ---------------------------------------------------- */

.app-list-container {
  margin-top: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.app-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: #555555;
  color: #ffffff;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.app-list-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-list-header .badge {
  background-color: #ffffff;
  color: #555555;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.app-list-body {
  padding: 0.5rem;
}

.app-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  margin: 0.5rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  border-left: 4px solid #888888;
  position: relative;
  overflow: hidden;
}

.app-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-left-color: #555555;
}

.app-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  transition: opacity 1.5s, transform 1.5s;
  transform: translateX(-100%);
  pointer-events: none;
}

.app-item:hover::after {
  opacity: 0.6;
  transform: translateX(100%);
}

.app-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-right: 1rem;
  color: #555555;
  flex-shrink: 0;
}

.app-item-content {
  flex-grow: 1;
}

.app-item-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  margin: 0;
  margin-bottom: 0.25rem;
}

.app-item-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: #777;
}

.app-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.app-meta-item i {
  font-size: 0.9rem;
}

.app-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;
}

.app-item-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: #f5f5f5;
  color: #555;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-item-btn:hover {
  transform: translateY(-2px);
}

.app-item-btn.edit {
  background-color: #f0f4ff;
  color: #4a6ee0;
}

.app-item-btn.edit:hover {
  background-color: #4a6ee0;
  color: white;
}

.app-item-btn.delete {
  background-color: #fff0f0;
  color: #e25c5c;
}

.app-item-btn.delete:hover {
  background-color: #e25c5c;
  color: white;
}

.app-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #888;
}

.app-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.app-empty-text {
  margin: 0;
  font-size: 1.1rem;
}

/* Animationen für App-List */
@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.app-item {
  animation: slideInUp 0.3s ease-out forwards;
  opacity: 0;
}

/* Verzögerte Animation für jedes Element */
.app-item:nth-child(1) {
  animation-delay: 0.1s;
}
.app-item:nth-child(2) {
  animation-delay: 0.15s;
}
.app-item:nth-child(3) {
  animation-delay: 0.2s;
}
.app-item:nth-child(4) {
  animation-delay: 0.25s;
}
.app-item:nth-child(5) {
  animation-delay: 0.3s;
}
.app-item:nth-child(6) {
  animation-delay: 0.35s;
}
.app-item:nth-child(7) {
  animation-delay: 0.4s;
}
.app-item:nth-child(8) {
  animation-delay: 0.45s;
}
.app-item:nth-child(9) {
  animation-delay: 0.5s;
}
.app-item:nth-child(10) {
  animation-delay: 0.55s;
}

/* Responsives Design */
@media (max-width: 768px) {
  .app-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .app-item-content {
    margin-bottom: 1rem;
    width: 100%;
  }

  .app-item-actions {
    margin-left: 0;
    align-self: flex-end;
  }
}

/* Suchfeld für App-Liste */
.app-search {
  position: relative;
}

.search-input {
  position: relative;
  width: 220px;
}

.search-input input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-input i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.search-input input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-input input:focus + i {
  color: white;
}

.search-input input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Animation für Suchergebnisse */
.app-item.hidden {
  display: none;
}

.app-item.highlight {
  border-left-color: #89ba17;
  background-color: #fafafa;
}

.app-item-name .highlight {
  background-color: rgba(74, 110, 224, 0.2);
  padding: 0 2px;
  border-radius: 3px;
}

/* Keine Suchergebnisse Meldung */
.no-results {
  display: none;
  padding: 2rem;
  text-align: center;
  color: #888;
}

.no-results.visible {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Responsiveness für die Suchleiste */
@media (max-width: 576px) {
  .app-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .search-input {
    width: 100%;
  }
}

/* ---------------------------------------------------- */
/* Unterthema Erweiterter Stil                            */
/* ---------------------------------------------------- */

.topic-list-container {
  margin-top: 2.5rem;
  background-color: #f7f7f7;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.topic-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: #555555;
  color: #ffffff;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.topic-list-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topic-list-header .badge {
  background-color: #ffffff;
  color: #555555;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.topic-list-body {
  padding: 1rem;
}

.topic-group {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: #ffffff;
  animation: slideInUp 0.4s ease-out forwards;
  opacity: 0;
}

.topic-group:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.topic-group-header {
  background-color: #555555;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.topic-group-header .topic-count {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.topic-group-body {
  padding: 0.5rem;
}

.subtopic-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  border-left: 4px solid #e7e7e7;
  animation: fadeIn 0.3s ease-out forwards;
  opacity: 0;
}

.subtopic-item:hover {
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-left-color: #888888;
  background-color: #f9f9f9;
}

.subtopic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #f0f0f0;
  border-radius: 6px;
  margin-right: 1rem;
  color: #666666;
  flex-shrink: 0;
}

.subtopic-content {
  flex-grow: 1;
  font-weight: 500;
  color: #444;
}

.subtopic-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.subtopic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-color: #f5f5f5;
  color: #555;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subtopic-btn:hover {
  transform: translateY(-2px);
}

.subtopic-btn.edit {
  background-color: #f0f4ff;
  color: #4a6ee0;
}

.subtopic-btn.edit:hover {
  background-color: #4a6ee0;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(74, 110, 224, 0.2);
}

.subtopic-btn.delete {
  background-color: #fff0f0;
  color: #e25c5c;
}

.subtopic-btn.delete:hover {
  background-color: #e25c5c;
  color: white;
}

.topic-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #888;
}

.topic-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.topic-empty-text {
  margin: 0;
  font-size: 1.1rem;
}

.topic-form {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.topic-form .form-title {
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topic-form .form-title i {
  color: #666;
}

.topic-form .form-group {
  margin-bottom: 1.25rem;
}

.topic-form .form-control {
  border-radius: 6px;
  padding: 0.6rem 1rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.topic-form .form-control:focus {
  border-color: #aaaaaa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.topic-form .btn {
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.topic-form .btn-success {
  background-color: #4caf50;
  border-color: #4caf50;
}

.topic-form .btn-success:hover {
  background-color: #43a047;
  border-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

/* Animationen für Unterthema-Liste */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Verzögerte Animation für Unterthemen */
.subtopic-item:nth-child(1) {
  animation-delay: 0.05s;
}
.subtopic-item:nth-child(2) {
  animation-delay: 0.1s;
}
.subtopic-item:nth-child(3) {
  animation-delay: 0.15s;
}
.subtopic-item:nth-child(4) {
  animation-delay: 0.2s;
}
.subtopic-item:nth-child(5) {
  animation-delay: 0.25s;
}
.subtopic-item:nth-child(6) {
  animation-delay: 0.3s;
}
.subtopic-item:nth-child(7) {
  animation-delay: 0.35s;
}
.subtopic-item:nth-child(8) {
  animation-delay: 0.4s;
}
.subtopic-item:nth-child(9) {
  animation-delay: 0.45s;
}
.subtopic-item:nth-child(10) {
  animation-delay: 0.5s;
}

/* Verzögerte Animation für Topic-Gruppen */
.topic-group:nth-child(1) {
  animation-delay: 0.1s;
}
.topic-group:nth-child(2) {
  animation-delay: 0.2s;
}
.topic-group:nth-child(3) {
  animation-delay: 0.3s;
}
.topic-group:nth-child(4) {
  animation-delay: 0.4s;
}
.topic-group:nth-child(5) {
  animation-delay: 0.5s;
}
.topic-group:nth-child(6) {
  animation-delay: 0.6s;
}

/* Responsives Design */
@media (max-width: 768px) {
  .topic-form {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .topic-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .subtopic-item {
    flex-wrap: wrap;
  }

  .subtopic-actions {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: flex-end;
  }
}

/* ---------------------------------------------------- */
/* Oberthema Erweiterter Stil                             */
/* ---------------------------------------------------- */

.main-topic-container {
  margin-top: 2.5rem;
  background-color: #f7f7f7;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.main-topic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: #555555;
  color: #ffffff;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.main-topic-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.main-topic-header .badge {
  background-color: #ffffff;
  color: #555555;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.main-topic-body {
  padding: 1rem;
}

.main-topic-form {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.main-topic-form .form-title {
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-topic-form .form-title i {
  color: #666;
}

.main-topic-form .form-group {
  margin-bottom: 1.25rem;
}

.main-topic-form .form-control {
  border-radius: 6px;
  padding: 0.6rem 1rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.main-topic-form .form-control:focus {
  border-color: #aaaaaa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.main-topic-form .btn {
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-topic-form .btn-success {
  background-color: #89ba17;
  border-color: #89ba17;
}

.main-topic-form .btn-success:hover {
  background-color: #7a9e15;
  border-color: #7a9e15;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(137, 186, 23, 0.2);
}

.topic-list {
  display: grid;
  grid-gap: 1rem;
}

.topic-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease-out forwards;
  opacity: 0;
  --topic-card-line-color: #89ba17; /* Standard-Farbe, wird durch JavaScript überschrieben */
  min-height: 100px;
  display: flex;
  flex-direction: column;
}

.topic-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--topic-card-line-color);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.topic-card:hover::after {
  transform: scaleX(1);
}

.topic-card-inner {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-info {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.topic-icon {
  width: 38px;
  height: 38px;
  background-color: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #666666;
  flex-shrink: 0;
  min-width: 38px;
}

.topic-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  margin: 0;
  transition: color 0.2s ease;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.topic-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.topic-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #555;
}

.topic-btn.edit {
  background-color: #f0f4ff;
  color: #4a6ee0;
}

.topic-btn.edit:hover {
  background-color: #4a6ee0;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(74, 110, 224, 0.2);
}

.topic-btn.delete {
  background-color: #fff0f0;
  color: #e25c5c;
}

.topic-btn.delete:hover {
  background-color: #e25c5c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(226, 92, 92, 0.2);
}

.topic-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.25rem;
  margin-left: 0;
  background-color: #e0e0e0;
  color: #666;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.topic-badge i {
  font-size: 0.75rem;
  margin-right: 0.3rem;
}

.topic-card:hover .topic-badge {
  background-color: #d0d0d0;
}

.topic-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #888;
  grid-column: 1 / -1;
}

.topic-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.topic-empty-text {
  margin: 0;
  font-size: 1.1rem;
}

/* Verzögerte Animation für Topic-Cards */
.topic-card:nth-child(1) {
  animation-delay: 0.05s;
}
.topic-card:nth-child(2) {
  animation-delay: 0.1s;
}
.topic-card:nth-child(3) {
  animation-delay: 0.15s;
}
.topic-card:nth-child(4) {
  animation-delay: 0.2s;
}
.topic-card:nth-child(5) {
  animation-delay: 0.25s;
}
.topic-card:nth-child(6) {
  animation-delay: 0.3s;
}
.topic-card:nth-child(7) {
  animation-delay: 0.35s;
}
.topic-card:nth-child(8) {
  animation-delay: 0.4s;
}
.topic-card:nth-child(9) {
  animation-delay: 0.45s;
}
.topic-card:nth-child(10) {
  animation-delay: 0.5s;
}

/* Responsives Design */
@media (max-width: 768px) {

  .main-topic-form {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .topic-list {
    grid-template-columns: 1fr;
  }

  .main-topic-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .topic-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .topic-info {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .topic-actions {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: flex-end;
  }
}

/* ---------------------------------------------------- */
/* Einheitlicher Stil für Plattform, Klassenstufe, App-Typ */
/* ---------------------------------------------------- */

.category-container {
  margin-top: 2.5rem;
  background-color: #f7f7f7;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: #555555;
  color: #ffffff;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.category-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-header .badge {
  background-color: #ffffff;
  color: #555555;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.category-body {
  padding: 1rem;
}

.category-form {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.category-form .form-title {
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-form .form-title i {
  color: #666;
}

.category-form .form-group {
  margin-bottom: 1.25rem;
}

.category-form .form-control {
  border-radius: 6px;
  padding: 0.6rem 1rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.category-form .form-control:focus {
  border-color: #aaaaaa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.category-form .btn {
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-form .btn-success {
  background-color: #4caf50;
  border-color: #4caf50;
}

.category-form .btn-success:hover {
  background-color: #43a047;
  border-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

/* Grid für die Kategorien-Karten */
.category-grid {
  display: grid;
  grid-gap: 1rem;
}

.category-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease-out forwards;
  opacity: 0;
  border-left: 4px solid transparent;
}

/* Farben für die verschiedenen Kategorien */
.platform-item .category-icon {
  color: #89ba17;
}
.platform-item:hover {
  border-left-color: #89ba17;
}
.grade-item .category-icon {
  color: #89ba17;
}
.grade-item:hover {
  border-left-color: #89ba17;
}

.app-type-item .category-icon {
  color: #89ba17;
}
.app-type-item:hover {
  border-left-color: #89ba17;
}

.category-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.category-item-inner {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-info {
  flex: 1;
  display: flex;
  align-items: center;
}

.category-icon {
  width: 36px;
  height: 36px;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.category-name {
  font-weight: 500;
  font-size: 1rem;
  color: #333;
  margin: 0;
  transition: color 0.2s ease;
}

.category-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #555;
}

.category-btn.edit {
  background-color: #f0f4ff;
  color: #4a6ee0;
}

.category-btn.edit:hover {
  background-color: #4a6ee0;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(74, 110, 224, 0.2);
}

.category-btn.delete {
  background-color: #fff0f0;
  color: #e25c5c;
}

.category-btn.delete:hover {
  background-color: #e25c5c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(226, 92, 92, 0.2);
}

.category-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #888;
  grid-column: 1 / -1;
}

.category-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.category-empty-text {
  margin: 0;
  font-size: 1.1rem;
}

/* Verzögerte Animation für Karten */
.category-item:nth-child(1) {
  animation-delay: 0.05s;
}
.category-item:nth-child(2) {
  animation-delay: 0.1s;
}
.category-item:nth-child(3) {
  animation-delay: 0.15s;
}
.category-item:nth-child(4) {
  animation-delay: 0.2s;
}
.category-item:nth-child(5) {
  animation-delay: 0.25s;
}
.category-item:nth-child(6) {
  animation-delay: 0.3s;
}
.category-item:nth-child(7) {
  animation-delay: 0.35s;
}
.category-item:nth-child(8) {
  animation-delay: 0.4s;
}
.category-item:nth-child(9) {
  animation-delay: 0.45s;
}
.category-item:nth-child(10) {
  animation-delay: 0.5s;
}
.category-item:nth-child(11) {
  animation-delay: 0.55s;
}
.category-item:nth-child(12) {
  animation-delay: 0.6s;
}

/* Responsives Design */
@media (max-width: 768px) {

  .category-form {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 400px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}
.category-form .btn-success {
  background-color: #89ba17;
}
.category-form .btn-success:hover {
  background-color: #7a9e15;
  border-color: #7a9e15;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}
.category-item platform-item {
  border-left-color: #89ba17;
}

.topic-form .btn-success {
  background-color: #89ba17;
  border-color: #89ba17;
}

.topic-form .btn-success:hover {
  background-color: #89ba17;
}

/* ---------------------------------------------------- */
/* Content Editor Page Styles                           */
/* ---------------------------------------------------- */

.content-editor-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-title {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.page-title i {
  font-size: 2rem;
  margin-right: 15px;
  color: var(--primary-color);
}

.content-section {
  margin-bottom: 20px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--transparency-dark);
}

.content-section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.content-section summary {
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: black;
  background-color: var(--background-color-alt);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  outline: none;
}

.content-section summary:hover {
  background-color: var(--primary-color-light);
}

.content-section[open] summary {
  background-color: var(--primary-color-light);
  border-bottom: 2px solid var(--primary-color);
}

.content-section summary i {
  margin-right: 12px;
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.content-section .form-group {
  padding: 20px;
  margin: 0 !important;
  background-color: var(--background-color);
}

.save-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 30px auto 10px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(137, 186, 23, 0.2);
}

.save-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(137, 186, 23, 0.3);
  background: var(--primary-gradient-hover);
}

.save-button:active {
  transform: scale(0.98);
}

.save-button i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* High Contrast mode for content sections */

body.high-contrast .content-section {
  border: 1px solid var(--border-color);
}

body.high-contrast .save-button {
  background: var(--primary-color);
}

/* Footer Styles */
footer hr {
  background-color: white;
  width: 60%;
}

footer p {
  color: white;
}

/* Accessibility icon styles */
#easy-language img {
  height: 16px;
  vertical-align: top;
  margin-right: 3px;
}

#high-contrast svg {
  vertical-align: top;
  width: 16px;
  height: 16px;
}

/* Back button style */
.back-button {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-button:hover {
  color: var(--primary-color-dark);
  text-decoration: none;
}

.back-button i {
  margin-right: 8px;
  font-size: 1.1em;
}

/* ---------------------------------------------------- */
/* Accessibility Styles                                 */
/* ---------------------------------------------------- */

/* Accessibility icons and controls */
.font-size-banner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5px 15px;
  background-color: var(--background-color);
  font-size: 0.9rem;
}

.font-size-banner a {
  margin-left: 10px;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.font-size-banner span {
  margin: 0 5px;
  color: var(--text-color-light);
}

#easy-language img {
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}

#high-contrast svg {
  vertical-align: middle;
  margin-right: 5px;
  width: 18px;
  height: 18px;
}

/* High contrast mode & font size adjustments */
body.high-contrast .font-size-banner {
  background-color: var(--background-color);
  border-bottom: 1px solid var(--border-color);
}

body.large-font {
  font-size: 1.2rem;
}

body.small-font {
  font-size: 0.9rem;
}

/* ---------------------------------------------------- */
/* Topic Display Styles                                  */
/* ---------------------------------------------------- */

/* Hidden topics are hidden by default */
.topics-hidden {
  display: none;
}

/* ---------------------------------------------------- */
/* Utility Classes                                      */
/* ---------------------------------------------------- */

/* Display utilities */
.d-inline {
  display: inline;
}

.d-none {
  display: none;
}

/* Feedback indicators */
.success-indicator {
  color: var(--success-color);
  font-weight: bold;
  margin-right: 8px;
}

/* Text styles */
.text-white {
  color: white;
}

/* Layout utilities */
.footer-divider {
  background-color: white;
  width: 60%;
}

/* ---------------------------------------------------- */
/* CSS Code Organization                                */
/* ---------------------------------------------------- */
/*
 * This stylesheet is organized into logical sections:
 *
 * 1. CSS Variables & Themes
 * 2. Base & Layout Styles
 * 3. Typography
 * 4. Components (Buttons, Cards, etc.)
 * 5. Navigation & Header
 * 6. Forms & Inputs
 * 7. Content Areas
 * 8. Modifiers & States
 * 9. Media Queries
 * 10. Utility Classes
 * 11. Accessibility Styles
 *
 * Each section has its own comment header for easy navigation
 */

/* ---------------------------------------------------- */
/* Buttons & Controls                                   */
/* ---------------------------------------------------- */

/* Base button styles */
.btn {
  border-radius: var(--border-radius-md);
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

/* Primary button */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
}

/* Secondary button */
.btn-secondary {
  background-color: var(--background-color-alt);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--background-color-accent);
}

/* Button sizes */
.btn-lg {
  padding: 12px 24px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.85rem;
}

/* Form controls */
.form-control {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(137, 186, 23, 0.15);
  outline: none;
}

/* Form group spacing */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* Form check items */
.form-check {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
}

.form-check input[type="checkbox"] {
  /* position: absolute; */
  left: 0;
  top: 3px;
}

/* ---------------------------------------------------- */
/* Cards & Containers                                   */
/* ---------------------------------------------------- */

/* Card base */
.card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color-light);
  box-shadow: var(--shadow-sm);
  background-color: var(--background-color);
  margin-bottom: 20px;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-header {
  background-color: var(--background-color-alt);
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color-light);
}

.card-body {
  padding: 20px;
}

.card-footer {
  background-color: var(--background-color-alt);
  padding: 15px 20px;
  border-top: 1px solid var(--border-color-light);
}

/* App cards */
.app-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-card .card-body {
  flex: 1;
}

.app-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

.app-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.app-card .card-text {
  color: var(--text-color-secondary);
}

/* Tags and badges */
.tag {
  display: inline-block;
  padding: 4px 8px;
  background-color: var(--background-color-alt);
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  margin-right: 5px;
  margin-bottom: 5px;
  color: var(--text-color-secondary);
}

/* Containers and sections */
.section {
  margin-bottom: 40px;
}

.section-title {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 20px;
}

/* High contrast adaptations */
body.high-contrast .card {
  border: 2px solid var(--border-color);
}

body.high-contrast .app-card .card-title {
  color: var(--text-color);
}

/* ---------------------------------------------------- */
/* Media Queries for Responsiveness                     */
/* ---------------------------------------------------- */

/* Small devices (landscape phones) */
@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .font-size-banner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-custom img {
    height: 70px;
    width: 180px;
  }

  .gray-banner {
    flex-direction: column;
    padding: 15px;
    text-align: center;
  }

  .gray-banner h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .save-button {
    width: 100%;
  }
}

/* Medium devices (tablets) */
@media (max-width: 768px) {
  .content-editor-container {
    padding: 10px;
  }

  .sidebar {
    margin-bottom: 20px;
  }
}

/* Large devices (desktops) */
@media (max-width: 992px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 10px;
    border-radius: var(--border-radius-md);
    margin-top: 10px;
  }

  .dropdown-menu {
    border: none;
    background-color: transparent;
    padding-top: 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .font-size-banner,
  .sidebar,
  footer {
    display: none !important;
  }

  body {
    background-color: white;
    color: black;
  }

  .wrapper {
    background: none;
    padding: 0;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ---------------------------------------------------- */
/* Optimization Information                             */
/* ---------------------------------------------------- */
/*
 * CSS Optimization completed:
 * 1. Extracted inline styles from HTML files
 * 2. Organized styles into logical sections
 * 3. Used CSS variables for consistency
 * 4. Added responsive media queries
 * 5. Created utility classes for common patterns
 * 6. Optimized selectors for better specificity
 * 7. Added proper documentation and comments
 *
 * Last updated: May 19, 2025
 */

/* ---------------------------------------------------- */
/* Custom Link Buttons                                  */
/* ---------------------------------------------------- */

.btn-link-custom {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-link-custom:hover {
  color: var(--primary-color-dark);
  text-decoration: none;
}

.btn-link-custom:focus {
  outline: none;
}

.btn-link-custom .material-icons {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.btn-link-custom:hover .material-icons {
  transform: translateY(2px);
}

/* ---------------------------------------------------- */
/* Themen-Hierarchie und Einrückung                      */
/* ---------------------------------------------------- */

/* Stil für Oberthemen */
.filter-items .topic-label {
  font-weight: 600;
  color: black;
}

/* Stil für Unterthemen-Container */
.subtopic-container {
  margin-left: 20px;
  margin-bottom: 5px;
  margin-top: 2px;
  border-left: 1px solid var(--border-color-light);
  padding-left: 8px;
}

/* Stil für Unterthemen-Checkboxen */
.subtopic-check {
  margin-bottom: 4px;
}

/* Stil für Unterthemen-Labels */
.subtopic-label {
  font-weight: 400;
  color: black;
  font-size: 0.95em;
}

/* Hover-Effekte für bessere UX */
.filter-items .form-check:hover .form-check-label {
  color: var(--primary-color);
}

/* Trennlinie zwischen Themengruppen */
.filter-items hr {
  margin-top: 8px;
  border-color: var(--border-color-light);
  opacity: 0.5;
}

/* Anpassung für Hochkontrast-Modus */
body.high-contrast .subtopic-container {
  border-left: 1px solid var(--border-color);
}

/* body.high-contrast .topic-label,
body.high-contrast .subtopic-label {
  color: var(--text-color);
} */

/* ---------------------------------------------------- */
/* Themen-Hierarchie und Einrückung                      */
/* ---------------------------------------------------- */

/* Stil für Oberthemen */
.filter-items .form-check .topic-label {
  font-weight: 600;
}

/* Stil für Unterthemen-Container (das div, das die Unterthemen enthält) */
.filter-items div[th\:each*="subtopic"] {
  margin-left: 20px;
  margin-bottom: 5px;
  margin-top: 2px;
  border-left: 1px solid var(--border-color-light);
  padding-left: 8px;
}

/* Stil für Unterthemen-Checkboxen */
.filter-items div[th\:each*="subtopic"] .form-check {
  margin-bottom: 4px;
}

/* Stil für Unterthemen-Labels */
.filter-items div[th\:each*="subtopic"] .form-check-label {
  font-weight: 400;
  color: var(--text-color-secondary);
  font-size: 0.95em;
}

/* Hover-Effekte für bessere UX */
.filter-items .form-check:hover .form-check-label {
  color: var(--primary-color);
}

/* Trennlinie zwischen Themengruppen */
.filter-items hr {
  margin-top: 8px;
  border-color: var(--border-color-light);
  opacity: 0.5;
}


.user-management-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-title {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.page-title i {
  font-size: 2rem;
  margin-right: 15px;
  color: #89ba17;
}

.user-section {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-section:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.user-section summary {
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  outline: none;
}

.user-section summary:hover {
  background-color: #f0f4e6;
}

.user-section[open] summary {
  background-color: #e6eed6;
  border-bottom: 2px solid #89ba17;
}

.user-section summary i {
  margin-right: 12px;
  font-size: 1.3rem;
  color: #89ba17;
  transition: transform 0.3s ease;
}

.user-section .section-content {
  padding: 20px;
  background-color: #fff;
}

.user-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #000;
}

.user-table th {
  background-color: #f0f4e6;
  color: #333;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 2px solid #89ba17;
  font-weight: 600;
}

.user-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.user-table tr:hover td {
  background-color: #f9f9f9;
}

.action-buttons .btn {
  margin-bottom: 5px;
  padding: 5px 10px;
  display: block; /* Ändert die Darstellung, damit Buttons untereinander stehen */
  width: 100%;
  text-align: left;
  align-items: center;
}

.action-buttons .btn i {
  margin-right: 5px;
}

.form-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.form-card h4 {
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.form-card h4 i {
  margin-right: 10px;
  color: #89ba17;
}

.save-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #89ba17 0%, #7a9b2a 100%);
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  margin: 10px auto;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(137, 186, 23, 0.2);
}

.save-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(137, 186, 23, 0.3);
  background: linear-gradient(135deg, #7a9b2a 0%, #6c8825 100%);
}

.save-button:active {
  transform: scale(0.98);
}

.save-button i {
  margin-right: 10px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  color: #333;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
  background-color: #f8f9fa;
  border: 1px solid #eee;
  margin-bottom: 20px;
}

.back-button:hover {
  background-color: #f0f0f0;
  transform: translateX(-3px);
  color: #333;
  text-decoration: none;
}

.back-button i {
  margin-right: 8px;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.status-active {
  background-color: #e0f5e9;
  color: #198754;
}

.status-pending {
  background-color: #fff4e0;
  color: #fd7e14;
}

.status-inactive {
  background-color: #f8d7da;
  color: #dc3545;
}
body.high-contrast .user-section summary,
body.high-contrast {
  background-color: #222;
}

body.high-contrast .user-section {
  border: 1px solid #555;
}

body.high-contrast .save-button {
  background: #000;
  color: #fff;
}

body.high-contrast .user-table th {
  background-color: #333;
  color: #fff;
  border-bottom: 2px solid #fff;
}

body.high-contrast .user-table td {
  border-bottom: 1px solid #555;
}

body.high-contrast .back-button {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

body.high-contrast .form-card h4 {
  border-bottom: 1px solid #555;
}

.userForm {
 color: #000;
}

/* Motto heading green color */
.motto-heading {
  color: var(--primary-color);
}