@font-face { font-family: 'Archivo'; font-weight: 400; font-display: swap; src: url('archivo-v25-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 500; font-display: swap; src: url('archivo-v25-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 600; font-display: swap; src: url('archivo-v25-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 700; font-display: swap; src: url('archivo-v25-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 800; font-display: swap; src: url('archivo-v25-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 900; font-display: swap; src: url('archivo-v25-latin-900.woff2') format('woff2'); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Archivo', system-ui, sans-serif; background: #0B1F33; color: #EEF4FB; background-image: radial-gradient(1200px 560px at 50% 0px, rgba(244,184,28,0.18) 0%, rgba(11,31,51,0) 58%), linear-gradient(180deg, #0C2236 0%, #0B1F33 60%); background-attachment: fixed; }
a { color: inherit; }
a:hover { color: inherit; }
::selection { background: #F4B81C; color: #0B1F33; }
button, input, select, textarea { font-family: inherit; }

@keyframes qFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qRise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes qFlip { from { opacity: 0; transform: perspective(900px) rotateY(80deg) scale(0.6); } to { opacity: 1; transform: perspective(900px) rotateY(0) scale(1); } }
@keyframes qGlow { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes qSpin { to { transform: rotate(360deg); } }

.q-tile { transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.q-tile:hover { transform: translateY(-4px); border-color: #F4B81C !important; box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.q-link { transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.q-link:hover { border-color: #F4B81C !important; background: #163a5c !important; transform: translateY(-2px); }
.q-btn { transition: filter .15s ease, transform .15s ease; }
.q-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.pv-mod { transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease; }
.pv-mod:hover { transform: translateY(-6px) scale(1.025); box-shadow: 0 18px 40px rgba(0,0,0,0.45); z-index: 3; }
.pv-mod:hover .pv-glint { opacity: 0.95 !important; }
.pv-panelize { transition: opacity .28s ease; }
.pv-mod:hover .pv-panelize { opacity: 0.12 !important; }
.pv-empty:hover { border-color: #F4B81C !important; }
.pv-preview-card { min-height: 230px !important; }
.q-in:focus { outline: none; border-color: #F4B81C !important; }

/* Navigation */
.nav-link { text-decoration: none; color: #9FB3C8; font-size: 14px; font-weight: 800; padding: 7px 11px; border-radius: 8px; }
.nav-link.is-active { color: #0B1F33; background: #F4B81C; }

/* Modul-Kachel im PV-Feld */
.pv-cell { position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: 10px; overflow: hidden; border: 2px solid #0A1626; box-shadow: 0 12px 26px rgba(0,0,0,0.45); min-height: 150px; }
.pv-cell.is-empty { aspect-ratio: 1 / 1; min-height: 0; border: 2px dashed #2a4d72; }
.pv-cell.is-inactive { opacity: 0.55; }
.pv-tint { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(20,57,92,0.6) 0%, rgba(9,28,54,0.82) 100%); }
.pv-grid { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.36) 0, rgba(0,0,0,0.36) 1.5px, transparent 1.5px, transparent 16.66%), repeating-linear-gradient(90deg, rgba(0,0,0,0.36) 0, rgba(0,0,0,0.36) 1.5px, transparent 1.5px, transparent 25%); box-shadow: inset 0 0 0 2px rgba(244,184,28,0.45); }
.pv-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(7,18,33,0.94) 0%, rgba(7,18,33,0.15) 46%, rgba(7,18,33,0) 70%); }
.pv-glint { position: absolute; inset: 0; opacity: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,233,160,0.6) 50%, rgba(255,255,255,0) 65%); pointer-events: none; }
.pv-prev-page[hidden] { display: none !important; }

/* Pager */
.pg-btn { border-radius: 9px; font-size: 14px; font-weight: 800; padding: 9px 14px; min-width: 42px; text-decoration: none; background: #13314E; border: 2px solid #2a4a6e; color: #cfe0f2; text-align: center; }
.pg-btn.is-active { background: #F4B81C; border-color: #0A1626; color: #0B1F33; }
.pg-btn.is-disabled { opacity: 0.45; pointer-events: none; }
.mon-btn { flex: 0 0 auto; border-radius: 9px; font-size: 13px; font-weight: 800; padding: 8px 14px; white-space: nowrap; text-decoration: none; background: #13314E; border: 2px solid #2a4a6e; color: #cfe0f2; }
.mon-btn.is-active { background: #F4B81C; border-color: #0A1626; color: #0B1F33; }

/* Formulare (Admin / Profil) */
.box { background: #11304d; border: 2px solid #0A1626; border-radius: 16px; padding: 20px; margin-top: 16px; }
.box.is-blue { background: #0f2a47; border-color: #1e436a; }
.box-title { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #F4B81C; margin-bottom: 14px; }
.box-note { font-size: 12px; color: #9FB3C8; margin: -8px 0 14px; line-height: 1.5; }
.lbl { display: block; }
.lbl-t { display: block; font-size: 11px; font-weight: 800; color: #9FB3C8; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.inp { width: 100%; background: #0E2A47; border: 1.5px solid #2a4a6e; border-radius: 9px; color: #EEF4FB; font-size: 14px; font-weight: 600; padding: 10px 12px; }
.inp.is-flat { font-size: 13px; padding: 9px 11px; }
textarea.inp { min-height: 70px; resize: vertical; line-height: 1.5; }
.inp:focus { outline: none; border-color: #F4B81C; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 9px; }
.mt { margin-top: 12px; }
.hint { font-size: 11.5px; color: #7e93a8; line-height: 1.5; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; font-size: 13px; font-weight: 900; padding: 10px 16px; border-radius: 9px; border: 2px solid #0A1626; background: #F4B81C; color: #0B1F33; transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); color: #0B1F33; }
.btn.is-ghost { background: #13314E; border-color: #2a4a6e; color: #cfe0f2; font-weight: 800; }
.btn.is-ghost:hover { color: #cfe0f2; }
.btn.is-danger { background: #2a1414; border: 1px solid #5a2e2e; color: #e0a0a0; font-weight: 800; }
.btn.is-green { background: #2c9c63; color: #fff; }
.btn.is-blue { background: #2f6fe0; color: #fff; }
.btn.is-red { background: #FF0000; color: #fff; }
.btn.is-small { font-size: 12px; padding: 7px 12px; border-radius: 8px; }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #cfe0f2; cursor: pointer; }
.chip-check { display: inline-flex; align-items: center; gap: 7px; background: #0E2A47; border: 1px solid #1e436a; border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; font-size: 13px; font-weight: 800; color: #EEF4FB; }
.chip-check input { accent-color: #F4B81C; }
.chip-check .b { width: 24px; height: 24px; border-radius: 50%; background: #F4B81C; color: #0B1F33; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; }
.list-row { display: flex; align-items: center; gap: 11px; background: #0E2A47; border: 1px solid #1e436a; border-radius: 12px; padding: 11px 13px; flex-wrap: wrap; }
.badge { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: #F4B81C; color: #0B1F33; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 9px; background: #0E2A47 center/cover no-repeat; border: 1.5px solid #2a4a6e; }
details.month { background: #0E2A47; border: 1px solid #1e436a; border-radius: 12px; }
details.month > summary { cursor: pointer; list-style: none; padding: 11px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: #F7EAC8; }
details.month > summary::-webkit-details-marker { display: none; }
details.month[open] > summary { border-bottom: 1px solid #1e436a; }
details.month .body { padding: 13px 14px; }
.src { font-size: 10px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: #13314E; color: #9cc4ea; }
code, .code { background: #0E2A47; border: 1px solid #1e436a; border-radius: 7px; padding: 1px 6px; font-size: 12px; color: #9cc4ea; }
pre.code { display: block; padding: 11px; white-space: pre-wrap; word-break: break-all; }

/* Meldungen */
.flash { max-width: 920px; margin: 14px auto 0; padding: 0 24px; }
.flash div { border-radius: 12px; padding: 13px 16px; font-size: 14px; font-weight: 800; border: 2px solid; }
.flash .ok { background: #10331f; border-color: #2c6b45; color: #b8f0cc; }
.flash .err { background: #3a1414; border-color: #7a2e2e; color: #ffb3b3; }
.flash .info { background: #102a44; border-color: #2a5a8e; color: #cfe0f2; }

/* Speicher-Leiste */
.savebar { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; align-items: center; gap: 13px; background: #10331f; border: 2px solid #2c6b45; border-radius: 13px; padding: 11px 14px; box-shadow: 0 14px 40px rgba(0,0,0,0.5); max-width: min(94vw, 400px); }
.savebar.is-dirty { background: #3a2e10; border-color: #7a5e1c; }
.savebar.is-saving { background: #102a44; border-color: #2a5a8e; }
.savebar .t { font-size: 13.5px; font-weight: 800; color: #EEF4FB; }
.savebar .s { font-size: 11px; font-weight: 700; color: #9FB3C8; }
.upload-status { font-size: 12px; font-weight: 800; margin-top: 6px; color: #9cc4ea; }

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
}
