body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}

h1 {
    text-align: center;
    padding: 20px;
    color: #016699;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.folder-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.folder-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: background 0.2s;
}
.admin-user-card {
    position: relative;
    padding-bottom: 2em; /* etwas Platz für Button unten */
}

.small-save-button {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: #016699;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 0.9em;
    cursor: pointer;
}

.folder-card:hover {
  background: #eef6fa;
}

.folder-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.folder-icon {
  font-size: 1.3rem;
}

.folder-name {
  text-decoration: none;
  font-weight: 600;
  color: #016699;
}

.folder-name:hover {
  text-decoration: underline;
}
.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #dbe5f1;
    padding: 20px 24px;
    text-align: center;
    font-weight: bold;
    border-radius: 15px;
    text-decoration: none;
    color: #016699;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: normal;
    min-height: 120px;
}

.tile:hover {
    background-color: #016699;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.logo {
    max-width: 100%;
    width: 380px; /* ⬅️ hier kannst du die Größe anpassen */
    height: auto;
    border-radius: 12px; /* optional: leicht abgerundet */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* optional: Schatten */
}


.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.upload-input {
    padding: 10px;
    border: 2px dashed #1e5896;
    background-color: #f5f9fc;
    width: 60%;
    text-align: center;
}

.upload-button {
    background-color: #1e5896;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
}

.upload-button:hover {
    background-color: #14416a;
}

.file-list {
    margin-top: 30px;
    padding: 0 20px;
}

.file-list ul {
    list-style: none;
    padding: 0;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    background-color: #f8fbff;
    border-radius: 6px;
    font-size: 0.95em;
}

.file-list a {
    color: #1e5896;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-name a::before {
    content: "📄";
    font-size: 1.1em;
}

.folder-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    background-color: #eef5fb;
    border-radius: 6px;
    font-size: 0.95em;
}

.folder-list a {
    color: #0a497f;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.folder-list a::before {
    content: "📁";
    font-size: 1.1em;
}

.folder-list a:hover,
.file-list a:hover {
    text-decoration: underline;
    color: #063358;
}

.delete-form {
    display: inline;
    margin-left: 10px;
}

.delete-button {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
}

.delete-button:hover {
    background-color: #c0392b;
}

.back-link {
    display: inline-block;
    margin-top: 10px;
    margin-left: 20px;
    font-size: 0.9em;
    color: #1e5896;
}

.back-link:hover {
    text-decoration: underline;
    color: #063358;
}

/* 🔍 Suchfeld */
.search-input {
    width: 60%;
    padding: 8px;
    margin: 20px auto;
    display: block;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.move-form select {
    margin-left: 10px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.85em;
    background-color: #fff;
    cursor: pointer;
}
.breadcrumb {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #555;
}

.breadcrumb a {
    color: #1e5896;
    text-decoration: none;
    font-weight: bold;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #063358;
}
/* === Loginbereich === */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f4f8;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    max-width: 250px;
    margin-bottom: 20px;
}

.login-title {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.login-error {
    color: red;
    margin-bottom: 10px;
}

.login-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.login-button {
    width: 100%;
    padding: 10px 12px;
    background-color: #0077cc;
    border: none;
    color: white;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #005fa3;
}
.login-form input[type="text"],
.login-form input[type="password"],
.login-form button {
    width: 100%;
    max-width: 300px;   /* einheitliche Maximalbreite */
    padding: 10px;
    margin: 10px auto;
    display: block;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.flash-messages {
    padding: 0;
    list-style: none;
    margin: 1rem 0;
}

.flash-success {
    background-color: #e0ffe0;
    border: 1px solid #00aa00;
    padding: 10px;
    border-radius: 6px;
    color: #006600;
}

.flash-info {
    background-color: #e8f1ff;
    border: 1px solid #3399ff;
    padding: 10px;
    border-radius: 6px;
    color: #003366;
}

.flash-error {
    background-color: #ffe0e0;
    border: 1px solid #cc0000;
    padding: 10px;
    border-radius: 6px;
    color: #990000;
}
.tile-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto auto;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.tile-item input,
.tile-item select {
    padding: 6px 8px;
    font-size: 0.9em;
}

.tile-item input[name="name"] {
    font-weight: bold;
}

.tile-item button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.tile-item button:hover {
    background-color: #c0392b;
}
.tile-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.tile-item label {
    font-weight: bold;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #333;
}

.tile-item input,
.tile-item select {
    width: 100%;
    max-width: 480px;
    padding: 6px 8px;
    margin-top: 4px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.tile-item .tile-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.tile-item button {
    padding: 4px 8px;
    font-size: 0.85em;
    border-radius: 5px;
    border: none;
    background-color: #e74c3c;
    color: white;
    cursor: pointer;
}

.tile-item button:hover {
    background-color: #c0392b;
}

.emoji-picker {
    font-size: 1.1rem;
    padding: 4px;
    max-width: 220px;
}
.file-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #dbe5f1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 12px 16px;
    font-size: 0.95em;
    flex-wrap: wrap;
}

.file-info {
    flex-grow: 1;
    min-width: 220px;
}

.file-name a {
    font-weight: bold;
    color: #1e5896;
    text-decoration: none;
}

.file-name a:hover {
    text-decoration: underline;
}

.file-meta {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    flex-wrap: wrap;
}

.file-actions a,
.file-actions button {
    background: none;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
}

.file-actions button:hover,
.file-actions a:hover {
    color: #e74c3c;
}

.inline-form select {
    padding: 4px 6px;
    font-size: 0.85em;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.file-card:hover {
    background-color: #f5faff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
@media (max-width: 600px) {
    .file-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .file-actions {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        justify-content: flex-start;
    }
}
/* Nur bei Dateinamen das Datei-Icon anzeigen */
.file-name a::before {
    content: "📄";
    font-size: 1.1em;
    margin-right: 6px;
}

/* Nur bei Ordnernamen das Ordner-Icon anzeigen */
.folder-name::before {
    content: "📁";
    font-size: 1.1em;
    margin-right: 6px;
}

/* Falls fälschlich geerbt: Überschreibe ggf. Standard-Icon von .file-list */
.file-list .folder-name::before {
    content: "📁";  /* explizit sicherstellen */
}
.flash-messages {
    margin: 1rem auto;
    max-width: 600px;
    padding: 0;
    list-style: none;
}

.flash-success {
    background-color: #e0ffe0;
    border: 1px solid #00aa00;
    padding: 10px;
    border-radius: 6px;
    color: #006600;
    font-weight: bold;
    text-align: center;
}

.flash-error {
    background-color: #ffe0e0;
    border: 1px solid #cc0000;
    padding: 10px;
    border-radius: 6px;
    color: #990000;
    font-weight: bold;
    text-align: center;
}
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.styled-table th, .styled-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.styled-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.value-cell {
  font-weight: bold;
}

.value-cell[data-value^=\"0\"],
.value-cell[data-value^=\"1\"],
.value-cell[data-value^=\"2\"],
.value-cell[data-value^=\"3\"] {
  color: #e74c3c;
}

.value-cell[data-value^=\"7\"],
.value-cell[data-value^=\"8\"],
.value-cell[data-value^=\"9\"] {
  color: #2ecc71;
}
.auslastung-rot {
  color: #e74c3c;
  font-weight: bold;
}
.auslastung-gelb {
  color: #f39c12;
  font-weight: bold;
}
.auslastung-gruen {
  color: #2ecc71;
  font-weight: bold;
}
.admin-user-card {
    background-color: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.admin-user-card strong {
    color: #016699;
    font-size: 1.1em;
}

.admin-user-card em {
    color: #888;
    margin-left: 8px;
}

.admin-user-card label {
    display: block;
    margin: 8px 0 4px;
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.admin-user-card input[type="text"],
.admin-user-card input[type="password"],
.admin-user-card select {
    width: 100%;
    max-width: 420px;
    padding: 8px;
    margin-top: 2px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fdfdfd;
}

.admin-user-card fieldset {
    border: none;
    margin-top: 10px;
    padding: 0;
}

.admin-user-card fieldset label {
    display: inline-block;
    margin-right: 12px;
    font-weight: normal;
    font-size: 0.9em;
}

.admin-user-card input[type="checkbox"] {
    margin-right: 5px;
}

.admin-user-card .delete-button {
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 16px;
  margin-top: 10px;
  padding: 10px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  font-size: 0.95em;
}
.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 12px;
}

.toggle-icon {
  font-size: 1.2em;
  color: #016699;
  font-weight: bold;
  margin-left: 10px;
}
input[type="checkbox"]:checked {
    accent-color: #28a745; /* schönes Grün */
}
.folder-box {
    border: 1px dashed #ccc;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
}
.flash.error {
  background-color: #f8d7da;
  color: #842029;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #f5c2c7;
  font-size: 0.95em;
}
.lock-icon {
  margin-left: 6px;
  font-size: 0.9em;
  color: #888;
}
.tile .lock-icon {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-size: 1.1em;
    color: #555;
    text-decoration: none;
}
.tile .lock-icon:hover {
    color: #016699;
}
.info-box {
  background-color: #f8f9fa;
  padding: 16px;
  margin-top: 24px;
  border-left: 4px solid #007BFF;
  border-radius: 4px;
}
.info-box strong {
  display: block;
  margin-bottom: 8px;
  color: #333;
}
.tile-lern {
    display: block;
    background: #fefefe;
    padding: 16px 20px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #111;
    position: relative;
    transition: background 0.2s;
    grid-column: 1 / -1;
}
.tile-lern:hover {
    background: #f5faff;
}
.tile-lern .lern-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    margin-bottom: 6px;
}
.tile-lern .lern-description {
    font-size: 0.95em;
    color: #444;
    padding-left: 34px;
}

/* =========================
   Praktikum – Track-Layout
   ========================= */

.tracks-mount { margin-top: .5rem; }

/* Sektion je Track */
.track-section {
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(18,38,63,.06);
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.section-head .title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.section-head .subline {
  font-size: .9rem;
  color: #6c757d;
}

.section-body {
  padding: .75rem;
}

.section-body .task-card + .task-card {
  margin-top: .5rem;
}

/* Task-Karte im Listenlayout (volle Zeile) */
.task-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem .75rem;
  align-items: start;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .65rem;
  background: #fff;
  padding: .75rem .9rem;
  position: relative;
}

.task-card .title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 .15rem 0;
}

.task-card .meta {
  font-size: .9rem;
  color: #6c757d;
  margin: 0;
}

.task-card .badge-pill {
  border-radius: 2rem;
  padding: .25rem .6rem;
  font-weight: 600;
}

.task-card .right {
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* Verschleierung für Folgeaufgaben */
.task-card.veil .title,
.task-card.veil .meta {
  filter: blur(3px);
  opacity: .55;
  transition: filter .2s ease, opacity .2s ease;
  pointer-events: none;
  user-select: none;
}

/* "Aktuell" – erste unerledigte Aufgabe im Track */
.task-card.current-card {
  box-shadow: 0 0 0 .15rem rgba(25, 135, 84, .15), 0 2px 12px rgba(18,38,63,.08);
  border-color: rgba(25, 135, 84, .25);
}



/* Track-Farbbalken */
.track-section::before {
  content: "";
  display: block;
  height: .3rem;
  width: 100%;
}

.track-fachpraxis::before        { background: #e7065d; } /* rot – Fachpraxis & Methodik */
.track-medizin_wissen::before    { background: #6366f1; } /* Indigo – Medizinisches Wissen */
.track-praxismanagement::before  { background: #f59e0b; } /* Amber – Praxismanagement & Organisation */
.track-kommunikation::before     { background: #db2777; } /* Pink – Kommunikation & Teamarbeit */
.track-selbstmanagement::before  { background: #10b981; } /* Smaragdgrün – Selbstmanagement & Reflexion */
.track-ethik_recht::before       { background: #7c3aed; } /* Violett – Ethik & Recht */
.track-paedagogik::before        { background: #06b6d4; } /* Türkis – Pädagogik & Anleitung */
.track-kreativ::before           { background: #d946ef; } /* Fuchsia – Kreative Methoden */
.track-digital::before           { background: #2563eb; } /* Blau – Digitale Kompetenzen */
.track-softskills::before        { background: #84cc16; } /* Limette – Soft Skills */
.track-allgemein::before         { background: #465d7e; } /* Graublau – Allgemeine Aufgaben */
.track-rezeption::before         { background: #0d6efd; } /* Blau – Rezeption & Praxisablauf */
.track-interdisziplinar::before  { background: #d9ff00; } /* Hellblau – Interdisziplinäre Zusammenarbeit */
/* Utility: kompaktere Badges */
.task-card .badge { font-size: .75rem; }

/* Responsiv */
@media (max-width: 640px) {
  .task-card { grid-template-columns: 1fr; }
  .task-card.current-card::after { top: .5rem; right: .5rem; }
}
/* Veiled Tasks: Buttons passiv darstellen */
.task-card.veil .right { opacity: .45; pointer-events: none; }

/* Motion-Respect */
@media (prefers-reduced-motion: reduce) {
  .task-card.veil .title, .task-card.veil .meta { transition: none; }
}

/* lange URLs umbrechen zuverlässig */
.text-break {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* optional: Link-Optik etwas dezenter, passt zu Buttons */
.link-short {
  color: #0d6efd;
  text-decoration: none;
}
.link-short:hover {
  text-decoration: underline;
}



/* Aging-Badges */
.badge.age-0 { background: #6c757d !important; }         /* <15 grau */
.badge.age-1 { background: #ffc107 !important; color:#212529 !important; }  /* ≥15 gelb */
.badge.age-2 { background: #fd7e14 !important; }         /* ≥30 orange */
.badge.age-3 { background: #dc3545 !important; }         /* ≥45 rot */
.badge.age-4 { background: #8b0000 !important; }         /* ≥60 dunkelrot */

.login-password-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.login-password-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 42px;
  margin: 0;
}

.login-password-wrap .login-password-toggle {
  all: unset;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
  color: #666;
  z-index: 2;
}

.login-password-wrap .login-password-toggle:hover {
  color: #222;
}

.login-password-wrap .login-password-toggle:focus {
  outline: none;
  color: #222;
}