/* Ensure image preview in project create/edit never overflows screen */
.preview-image {
  max-width: 96vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30,34,40,0.07);
  background: #f2f3f5;
  display: block;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .hero {
    padding: 1.2rem 2vw 1.1rem 2vw !important;
    margin-bottom: 1.2rem !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px 0 rgba(180,185,200,0.07) !important;
  }
  .hero-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.4rem !important;
  }
  .hero-subtitle {
    font-size: 0.98rem !important;
    max-width: 98vw !important;
  }
}
/* Admin Dashboard Modernisierung */
.admin-dashboard-header {
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid #ececec;
}
.dashboard-icon {
  font-size: 2.2rem;
  color: #fbbf24;
  background: #fffbe6;
  border-radius: 12px;
  padding: 10px 16px 10px 10px;
  box-shadow: 0 2px 8px rgba(251,191,36,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #23272f;
}
.dashboard-subtitle {
  color: #b0b4bb;
  font-size: 1.05rem;
  margin-top: 2px;
}
.admin-dashboard-stats .stat-card {
  position: relative;
  overflow: visible;
}
.stat-icon {
  font-size: 1.5rem;
  color: #b0b4bb;
  margin-bottom: 0.3rem;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #23272f;
}
.stat-label {
  color: #b0b4bb;
  font-size: 1.01rem;
}
.dashboard-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.tab-button {
  background: #f2f3f5;
  color: #23272f;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.tab-button.active, .tab-button:hover {
  background: #fff;
  color: #23272f;
  box-shadow: 0 2px 8px rgba(30,34,40,0.04);
}
.sticky-header thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafbfc;
  box-shadow: 0 2px 8px rgba(30,34,40,0.04);
}
.empty-state {
  text-align: center;
  padding: 2.5rem 0;
}
.empty-icon {
  font-size: 2.5rem;
  color: #b0b4bb;
  margin-bottom: 0.7rem;
}
.empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
}
.empty-desc {
  color: #b0b4bb;
  margin-bottom: 1.5rem;
}
.section-header {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #23272f;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.user-section-header {
  justify-content: space-between;
}
@media (max-width: 700px) {
  .admin-dashboard-header { margin-bottom: 1.2rem; padding-bottom: 0.2rem; }
  .dashboard-title { font-size: 1.15rem; }
  .dashboard-icon { font-size: 1.3rem; padding: 7px 10px 7px 7px; }
  .dashboard-tabs { gap: 0.3rem; margin-bottom: 1rem; }
  .tab-button { padding: 10px 8px; font-size: 0.98em; }
  .stat-value { font-size: 1.3rem; }
  .stat-icon { font-size: 1.1rem; }
  .section-header { gap: 0.5rem; }
}
.project-title-cell {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}
.project-title-cell > div {
  min-width: 0;
}
.project-thumb, .project-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 1.3rem;
}
.project-title-cell .project-thumb, .project-title-cell .project-thumb-placeholder {
  flex-shrink: 0;
}
.project-title-cell div:first-of-type {
  font-weight: 700;
  font-size: 1.08em;
  color: #23272f;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-title-cell div:last-of-type {
  color: #b0b4bb;
  font-size: 0.97em;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.projects-table tr {
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(30,34,40,0.04);
  background: #fff;
  margin-bottom: 0.7rem;
}
@media (max-width: 700px) {
  .project-title-cell { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
  .project-title-cell .project-thumb, .project-title-cell .project-thumb-placeholder { width: 44px; height: 44px; }
  .project-title-cell div:last-of-type { max-width: 120px; }
}
/* Dashboard Mobile Optimizations */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1.2rem;
}
.dashboard-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(30,34,40,0.04);
  padding: 22px 18px;
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-content {
  text-align: center;
}
.projects-section {
  margin-bottom: 2.5rem;
}
.empty-state {
  text-align: center;
  padding: 2.5rem 0;
}
@media (max-width: 900px) {
  .dashboard-header { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .dashboard-stats { flex-direction: column; gap: 1.2rem; }
  .stat-card { width: 100%; min-width: 0; }
}
@media (max-width: 700px) {
  .dashboard-header { flex-direction: column; align-items: flex-start; gap: 0.7rem; margin-bottom: 1.2rem; }
  .dashboard-stats { flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; }
  .stat-card { padding: 16px 8px; font-size: 1.01em; }
  .projects-section { margin-bottom: 1.2rem; }
  .empty-state { padding: 1.2rem 0; }
  .btn, .btn-primary, .btn-secondary, .btn-sm { width: 100%; box-sizing: border-box; margin-bottom: 0.5rem; }
  .action-buttons { flex-direction: column; gap: 0.2rem; }
}
/* Responsive Hamburger Menu */
.menu-toggle { display: none; }
@media (max-width: 700px) {
  .header-content { flex-wrap: wrap; }
  .main-nav { display: flex !important; flex-direction: row; position: static; background: none; box-shadow: none; min-width: 0; }
  .main-nav .nav-link { padding: 0 10px; border: none; font-size: 1.6rem; background: none; }
  .main-nav .nav-link.nav-icon { display: flex; align-items: center; justify-content: center; height: 44px; width: 44px; border-radius: 50%; color: #23272f; background: #f5f7fa; margin: 0 0.2em; }
  .main-nav .nav-link.nav-icon:hover { background: #e3e6ee; color: #2980b9; }
}
/* Dashboard Project Table Styles */
.projects-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(30,34,40,0.04);
  overflow: hidden;
  font-size: 1.01rem;
}
.projects-table th, .projects-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #f2f3f5;
  vertical-align: middle;
}
.projects-table th {
  background: #fafbfc;
  color: #6b7280;
  font-weight: 600;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
}
.projects-table tr:last-child td {
  border-bottom: none;
}
.project-thumb, .project-thumb-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.98em;
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: 500;
}
.status-published {
  background: #e6fffa;
  color: #2f855a;
}
.status-draft {
  background: #ffeaea;
  color: #c53030;
}
.btn-sm {
  padding: 7px 13px;
  font-size: 0.98em;
  border-radius: 7px;
}
.action-buttons a {
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .dashboard-stats { flex-direction: column; gap: 1.2rem; }
  .projects-table th, .projects-table td { padding: 10px 6px; }
}
@media (max-width: 700px) {
  .projects-table, .projects-table thead, .projects-table tbody, .projects-table tr, .projects-table th, .projects-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .projects-table thead { display: none; }
  .projects-table tr { margin-bottom: 1.2rem; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(30,34,40,0.04); }
  .projects-table td { border: none; border-bottom: 1px solid #f2f3f5; position: relative; padding-left: 48%; min-height: 48px; }
  .projects-table td:before {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 44%;
    white-space: nowrap;
    color: #b0b4bb;
    font-weight: 600;
    font-size: 0.98em;
    content: attr(data-label);
  }
  .project-title-cell { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .action-buttons { gap: 0.2rem; }
}
/* Modern Remove Button for File Preview */
.remove-preview {
  background: #fff;
  color: #c53030;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(30,34,40,0.10);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.remove-preview:hover {
  background: #c53030;
  color: #fff;
}
/* Verstecke native Datei-Inputs komplett, damit kein 'Datei auswählen' angezeigt wird */
input[type="file"] {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}
/* Minimalistisches, modernes Design für eTwinning */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #fafbfc;
  color: #23272f;
  font-size: 18px;
  line-height: 1.7;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 0 16px;
}

.header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 18px 0;
  margin-bottom: 32px;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #23272f;
  text-decoration: none;
  letter-spacing: -1px;
}
.nav {
  display: flex;
  gap: 18px;
}
.nav-link {
  color: #23272f;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: #f2f3f5;
}

.main {
  min-height: 70vh;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.project-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(30,34,40,0.04);
  padding: 0;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  box-shadow: 0 6px 24px rgba(30,34,40,0.08);
  transform: translateY(-2px);
}
.project-image {
  background: #f2f3f5;
  border-radius: 14px 14px 0 0;
  border: 1.5px solid #ececec;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 14px 14px 0 0;
  background: #f2f3f5;
  display: block;
}
.project-content {
  padding: 22px 20px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #23272f;
}
.project-description {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 12px;
}
.project-meta {
  font-size: 0.95rem;
  color: #b0b4bb;
  margin-bottom: 8px;
}
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tag {
  background: #f2f3f5;
  color: #23272f;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.92em;
}
.project-audio {
  margin: 10px 0 0 0;
  width: 100%;
}

.btn, .btn-primary, .btn-secondary {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 500;
  background: #f2f3f5;
  color: #23272f;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: #23272f;
  color: #fff;
}
.btn-primary:hover {
  background: #111214;
}
.btn-secondary {
  background: #e5e7eb;
  color: #23272f;
}
.btn-secondary:hover {
  background: #d1d5db;
}

.form-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(30,34,40,0.04);
  padding: 32px 24px;
  margin-bottom: 32px;
}
.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 7px;
  color: #23272f;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #ececec;
  border-radius: 8px;
  font-size: 1rem;
  background: #fafbfc;
  color: #23272f;
  transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border: 1.5px solid #23272f;
  outline: none;
}
.form-group small {
  color: #b0b4bb;
  margin-top: 4px;
  display: block;
}

input[type="checkbox"] {
  accent-color: #23272f;
}

.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 1rem;
}
.alert-error {
  background: #ffeaea;
  color: #c53030;
}
.alert-success {
  background: #e6fffa;
  color: #2f855a;
}

.footer {
  background: #fff;
  color: #b0b4bb;
  text-align: center;
  padding: 32px 0 18px 0;
  border-top: 1px solid #ececec;
  margin-top: 48px;
  font-size: 1rem;
}

/* Audio Player minimal */
audio {
  width: 100%;
  outline: none;
  margin-top: 8px;
  background: #fafbfc;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .container { padding: 0 6px; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-section { padding: 18px 6px; }
}