*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
svg { display: block; flex-shrink: 0; }
 
:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1c1c27;
  --surface3: #22222f;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --accent: #7c6dfa;
  --accent2: #4fc3f7;
  --text: #f0f0f5;
  --muted: #6b6b80;
  --success: #34d399;
  --error: #f87171;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --nav-h: 64px;
}
 
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
 
/* ===== SIDEBAR (Desktop only) ===== */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  padding: 20px 0;
}
 
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 20px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
 
.brand-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
 
.nav-section { padding: 0 10px; flex: 1; }
 
.nav-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 8px;
  margin: 14px 0 6px;
}
 
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
}
 
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: rgba(124,109,250,0.12); color: var(--accent); border-color: rgba(124,109,250,0.2); }
 
/* ===== MAIN ===== */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding-bottom: 20px;
}
 
/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
 
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
 
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px;
}
 
.topbar-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
 
/* ===== SEARCH ===== */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 8px 14px;
  width: 240px;
  transition: border-color 0.15s;
}
 
.search-wrap svg { color: var(--muted); flex-shrink: 0; }
.search-wrap:focus-within { border-color: var(--accent); }
 
.search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  width: 100%;
}
 
.search-input::placeholder { color: var(--muted); }
 
/* ===== HOME GRID ===== */
.home-content {
  padding: 20px 24px;
}
 
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
 
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
 
/* ===== THUMB CARD ===== */
.thumb-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface2);
  cursor: pointer;
  aspect-ratio: 9/16;
  border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.15s;
}
 
.thumb-card:hover { transform: translateY(-2px); border-color: var(--border2); }
 
.thumb-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
 
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}
 
.thumb-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
 
.thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding-left: 3px;
  opacity: 0;
  transition: opacity 0.2s;
}
 
.thumb-card:hover .thumb-play { opacity: 1; }
 
.thumb-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
}
 
.thumb-title {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.thumb-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
 
/* ===== SUBJECT BADGES ===== */
.badge-Deutsch   { background: rgba(251,191,36,0.25);  border: 1px solid rgba(251,191,36,0.5);  color: #fbbf24; }
.badge-Englisch  { background: rgba(52,211,153,0.25);  border: 1px solid rgba(52,211,153,0.5);  color: #34d399; }
.badge-Mathe     { background: rgba(79,195,247,0.25);  border: 1px solid rgba(79,195,247,0.5);  color: #4fc3f7; }
.badge-Informatik{ background: rgba(124,109,250,0.25); border: 1px solid rgba(124,109,250,0.5); color: #7c6dfa; }
 
/* ===== FULLSCREEN VIEWER ===== */
.fullscreen-viewer {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: none;
}
 
.fullscreen-viewer.open { display: block; }
 
.shorts-scroll {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
 
.shorts-scroll::-webkit-scrollbar { display: none; }
 
.short-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 16px;
  z-index: 210;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  cursor: pointer;
}
 
/* ===== SHORT ITEM ===== */
.short-item {
  height: 100dvh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
 
.short-item video {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
 
.short-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 45%);
  pointer-events: none;
}
 
.short-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
 
.short-play-overlay.visible { opacity: 1; }
 
.short-play-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding-left: 5px;
}
 
.short-bottom {
  position: absolute;
  bottom: calc(var(--nav-h) + 16px);
  left: 0; right: 0;
  padding: 0 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
 
.short-text { flex: 1; min-width: 0; }
 
.short-subject {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
 
.short-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
 
.short-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
.short-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-bottom: 4px;
}
 
.short-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  color: white;
  font-size: 11px;
  padding: 10px 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  min-width: 52px;
}
 
.short-btn:hover { background: rgba(255,255,255,0.2); }
.short-btn.liked { color: #f87171; border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.15); }
 
/* ===== BOTTOM NAV ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13,13,20,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border2);
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom);
}
 
.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s;
  padding: 8px 0;
}
 
.nav-tab.active { color: var(--accent); }
.nav-tab:hover { color: var(--text); }
 
/* ===== FÄCHER PAGE ===== */
.faecher-content {
  padding: 20px 24px;
}
 
.fach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
 
.fach-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
 
.fach-card:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface3); }
 
.fach-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
 
.fach-deutsch .fach-icon  { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.fach-englisch .fach-icon { background: rgba(52,211,153,0.15);  color: #34d399; }
.fach-mathe .fach-icon    { background: rgba(79,195,247,0.15);  color: #4fc3f7; }
.fach-informatik .fach-icon { background: rgba(124,109,250,0.15); color: #7c6dfa; }
 
.fach-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
 
.fach-count {
  font-size: 13px;
  color: var(--muted);
}
 
.back-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
 
.back-row:hover { color: var(--text); }
 
/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}
 
.empty-state svg { width: 48px; height: 48px; opacity: 0.3; }
.empty-state h3 { font-family: 'Syne', sans-serif; font-size: 18px; color: var(--text); font-weight: 700; }
.empty-state p { font-size: 14px; max-width: 260px; line-height: 1.6; }
 
/* ===== LOADING ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
 
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
 
@keyframes spin { to { transform: rotate(360deg); } }
 
/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}
 
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
 
/* ===== UPLOAD PAGE ===== */
.gate-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}
 
.gate-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
 
.gate-icon {
  width: 56px; height: 56px;
  background: rgba(124,109,250,0.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}
 
.gate-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
 
.gate-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
 
.upload-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
 
.upload-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 28px;
}
 
.upload-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
 
.upload-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
}
 
.manage-section { margin-top: 20px; }
 
.manage-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
 
.video-manage-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface2);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
 
.video-manage-thumb {
  width: 52px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface3);
}
 
.video-manage-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
}
 
.video-manage-info { flex: 1; min-width: 0; }
 
.video-manage-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.video-manage-meta { font-size: 12px; color: var(--muted); }
 
.video-manage-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
 
.btn-edit, .btn-delete {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border2);
  transition: all 0.15s;
}
 
.btn-edit { background: rgba(124,109,250,0.1); color: var(--accent); }
.btn-edit:hover { background: rgba(124,109,250,0.2); }
.btn-delete { background: rgba(248,113,113,0.1); color: var(--error); }
.btn-delete:hover { background: rgba(248,113,113,0.2); }
 
/* ===== FORM ===== */
.form-field { margin-bottom: 16px; }
 
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}
 
.form-field input[type="text"],
.form-field input[type="password"],
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
 
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,109,250,0.1); }
 
.form-field textarea { resize: vertical; min-height: 68px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
 
.file-drop {
  border: 2px dashed var(--border2);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
 
.file-drop:hover { border-color: var(--accent); background: rgba(124,109,250,0.04); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
 
.file-drop-icon {
  width: 44px; height: 44px;
  background: rgba(124,109,250,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  color: var(--accent);
}
 
.file-drop p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.file-drop strong { color: var(--accent); }
 
.file-name {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--success);
  justify-content: center;
}
 
.btn-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), #5b52d8);
  border: none;
  border-radius: 10px;
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124,109,250,0.3);
  transition: all 0.2s;
  margin-top: 6px;
}
 
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
 
.progress-bar-wrap {
  background: var(--surface2);
  border-radius: 8px;
  height: 5px;
  overflow: hidden;
  display: none;
  margin-top: 10px;
}
 
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 8px;
  width: 0%;
  transition: width 0.3s;
}
 
/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
 
.modal-overlay.open { opacity: 1; pointer-events: auto; }
 
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
 
.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}
 
.modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
 
.btn-ghost {
  flex: 1;
  padding: 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
 
.btn-ghost:hover { color: var(--text); background: var(--surface3); }
 
.btn-save {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, var(--accent), #5b52d8);
  border: none;
  border-radius: 10px;
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
 
.btn-save:hover { opacity: 0.9; }
 
/* ===== LEGAL / IMPRESSUM / DATENSCHUTZ ===== */
.page-container { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
 
.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
 
.page-card h1 { font-family: 'Syne', sans-serif; margin-bottom: 24px; }
.page-card h2 { font-family: 'Syne', sans-serif; color: var(--accent2); margin-top: 24px; margin-bottom: 8px; font-size: 15px; }
.page-card p { line-height: 1.8; font-size: 14px; }
.page-card .muted { color: var(--muted); }
.page-card .placeholder { color: var(--muted); }
 
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #5b52d8);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.15s;
}
 
.back-btn:hover { opacity: 0.9; }
 
/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: calc(var(--nav-h) + 20px); }
  .bottom-nav { display: flex; }
  .topbar { padding: 0 16px; }
  .home-content { padding: 16px; }
  .faecher-content { padding: 16px; }
  .search-wrap { width: 160px; }
  .video-grid { gap: 8px; }
}
 
@media (max-width: 400px) {
  .fach-grid { grid-template-columns: 1fr; }
  .upload-card { padding: 20px; }
  .gate-card { padding: 28px 20px; }
}
 