/* =============================================
   video.pan21.com — Helles Design
   Farben: Reinweiß / Hellgrau / PAN21-Gold (#C5A84B)
   Fonts: Cormorant Garamond (Titel) + Jost (Body)
   ============================================= */

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

:root {
  --white:    #ffffff;
  --bg:       #f5f4f1;
  --bg-card:  #ffffff;
  --border:   #e2ddd5;
  --text:     #1a1814;
  --text-mid: #5a5650;
  --text-lt:  #8a8580;
  --gold:     #C5A84B;
  --gold-dk:  #a88c36;
  --radius:   6px;
  --shadow:   0 2px 16px rgba(0,0,0,0.08);
  --shadow-h: 0 8px 32px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: flex; align-items: baseline; gap: 0.5rem; }
.logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text); }
.logo-accent { color: var(--gold); }
.logo-sub { font-family: 'Jost', sans-serif; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.25em; color: var(--text-mid); text-transform: uppercase; }
.header-nav { display: flex; gap: 1.5rem; }
.header-nav a { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; color: var(--text-mid); transition: color 0.2s; }
.header-nav a:hover { color: var(--gold); }

.hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 4rem 2rem 3.5rem; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 300; line-height: 1.1; color: var(--text); margin-bottom: 1rem; }
.hero-lead { font-size: 1.05rem; font-weight: 300; color: var(--text-mid); max-width: 580px; }

.filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0.75rem 2rem; }
.filter-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn { background: transparent; border: 1px solid var(--border); color: var(--text-mid); font-family: 'Jost', sans-serif; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.3rem 0.9rem; border-radius: 100px; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

.gallery-section { padding: 3rem 2rem 5rem; }
.gallery-inner { max-width: 1200px; margin: 0 auto; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.video-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; box-shadow: var(--shadow); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.video-card:hover .card-thumb img { transform: scale(1.04); }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0ede8, #e8e4dc); color: var(--gold); font-size: 2.5rem; }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0); transition: background 0.25s; }
.video-card:hover .play-overlay { background: rgba(0,0,0,0.25); }
.play-btn { width: 52px; height: 52px; border-radius: 50%; background: rgba(197,168,75,0.92); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.25s; padding-left: 4px; }
.video-card:hover .play-btn { opacity: 1; transform: scale(1); }
.card-body { padding: 1rem 1.2rem 1.2rem; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; line-height: 1.3; }
.card-desc { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.card-date { font-size: 0.75rem; color: var(--text-lt); }
.card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag { background: #f0ece4; color: var(--text-mid); font-size: 0.7rem; font-weight: 500; padding: 0.18rem 0.6rem; border-radius: 100px; letter-spacing: 0.04em; }

.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-lt); }
.empty-icon { font-size: 3rem; color: var(--gold); opacity: 0.4; margin-bottom: 1rem; }
.empty-state p { margin-bottom: 1.5rem; }
.btn-admin { display: inline-block; padding: 0.6rem 1.5rem; background: var(--gold); color: white; border-radius: var(--radius); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; }

.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(10,9,8,0.75); backdrop-filter: blur(4px); }
.lightbox-box { position: relative; z-index: 1; background: var(--white); border-radius: 8px; width: min(90vw, 900px); overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.3); }
.lb-close { position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(0,0,0,0.5); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; font-size: 0.85rem; cursor: pointer; z-index: 2; transition: background 0.2s; }
.lb-close:hover { background: rgba(0,0,0,0.8); }
.lb-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); padding: 1rem 1.2rem 0.5rem; }
.lb-video { width: 100%; display: block; max-height: 70vh; background: #000; }

.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; }
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--text); margin-bottom: 0.6rem; }
.footer-links { font-size: 0.82rem; color: var(--text-mid); margin-bottom: 0.6rem; }
.footer-links a { color: var(--gold); transition: opacity 0.2s; }
.footer-links a:hover { opacity: 0.75; }
.footer-legal { font-size: 0.75rem; color: var(--text-lt); }

/* ADMIN */
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 2rem; }
.login-box { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2.5rem 3rem; width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-text { font-size: 2rem; }
.login-logo .logo-sub { display: block; margin-top: 0.25rem; }
.login-box h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--text); margin-bottom: 1.5rem; text-align: center; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Jost', sans-serif; font-size: 0.9rem; color: var(--text); background: var(--bg); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-primary { width: 100%; padding: 0.75rem; background: var(--gold); color: white; border: none; border-radius: var(--radius); font-family: 'Jost', sans-serif; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.06em; cursor: pointer; margin-top: 0.5rem; transition: background 0.2s; }
.btn-primary:hover { background: var(--gold-dk); }
.error-msg { background: #fef0f0; border: 1px solid #f5c5c5; color: #c0392b; padding: 0.6rem 0.9rem; border-radius: var(--radius); font-size: 0.85rem; margin-bottom: 1rem; text-align: center; }
.success-msg { background: #f0faf4; border: 1px solid #a8d8b8; color: #1a6b3a; padding: 0.6rem 0.9rem; border-radius: var(--radius); font-size: 0.85rem; margin-top: 0.75rem; display: none; }

.admin-page { min-height: 100vh; background: var(--bg); }
.admin-header { background: var(--text); padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.admin-header .logo-text { font-size: 1.3rem; color: var(--white); }
.admin-header .logo-accent { color: var(--gold); }
.admin-header .logo-sub { color: rgba(255,255,255,0.5); }
.admin-nav { display: flex; gap: 1.5rem; align-items: center; }
.admin-nav a { color: rgba(255,255,255,0.7); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; transition: color 0.2s; }
.admin-nav a:hover, .admin-nav a.active { color: var(--gold); }
.admin-content { max-width: 900px; margin: 0 auto; padding: 2.5rem 2rem; }
.admin-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; color: var(--text); margin-bottom: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 2.5rem; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: var(--bg); }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--gold); background: #fdf9ef; }
.upload-zone-icon { font-size: 2rem; color: var(--gold); margin-bottom: 0.75rem; }
.upload-zone p { color: var(--text-mid); font-size: 0.9rem; }
.upload-zone small { color: var(--text-lt); font-size: 0.8rem; }
#fileInput { display: none; }
.progress-wrap { margin-top: 1rem; display: none; }
.progress-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); width: 0%; transition: width 0.3s; }
.progress-label { font-size: 0.8rem; color: var(--text-mid); margin-top: 0.4rem; text-align: center; }
.meta-fields { margin-top: 1.5rem; display: none; }

.video-list { display: flex; flex-direction: column; gap: 1rem; }
.video-list-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.vli-thumb { width: 100px; height: 64px; border-radius: 4px; overflow: hidden; background: #e8e4dc; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-lt); font-size: 1.2rem; }
.vli-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vli-info { flex: 1; }
.vli-title { font-weight: 500; color: var(--text); font-size: 0.95rem; margin-bottom: 0.2rem; }
.vli-tags { font-size: 0.78rem; color: var(--text-lt); }
.vli-date { font-size: 0.75rem; color: var(--text-lt); margin-top: 0.2rem; }
.vli-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-del { background: #fef0f0; border: 1px solid #f5c5c5; color: #c0392b; padding: 0.3rem 0.75rem; border-radius: var(--radius); font-size: 0.78rem; cursor: pointer; font-family: 'Jost', sans-serif; transition: background 0.2s; }
.btn-del:hover { background: #fad7d7; }
.btn-sm { background: var(--gold); border: none; color: white; padding: 0.3rem 0.75rem; border-radius: var(--radius); font-size: 0.78rem; cursor: pointer; font-family: 'Jost', sans-serif; text-decoration: none; display: inline-block; transition: background 0.2s; }
.btn-sm:hover { background: var(--gold-dk); }

@media (max-width: 600px) {
  .header-nav { display: none; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .gallery-section { padding: 2rem 1.25rem 3rem; }
  .video-grid { grid-template-columns: 1fr; }
  .login-box { padding: 2rem 1.5rem; }
  .admin-content { padding: 1.5rem 1.25rem; }
}
