/* /Components/Components/Collage.razor.rz.scp.css */
body[b-dix0jjt02d] {
    margin: 0;
    padding: 0;
    background-color: #657368;
}

.ImageOrVideo[b-dix0jjt02d]{
    /*transform: scale(1.25);*/
    /*transition: .5s ease;*/
}
.photo-collage[b-dix0jjt02d] {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* ---- Vorlagen-Modus: Hintergrundbild + Overlay-Stage ----
   Das in-flow <img> treibt die Größe (Letterbox via Flex-Zentrierung);
   die Overlay-Schicht (inset:0) trägt die prozentgenau positionierten Slots. */
.collage-stage-wrapper[b-dix0jjt02d] {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    /* Groessenbezug fuer die Buehne, damit sie den Schirm ausfuellen kann */
    container-type: size;
}

/* Die Buehne fuellt die verfuegbare Flaeche aus und behaelt dabei exakt das
   Seitenverhaeltnis des Hintergrunds (--ar wird von der Komponente gesetzt).
   Zuvor stand hier width/height:auto - dadurch blieb das Bild in seiner
   Naturgroesse (z. B. 1536x1024) mitten auf einem 4K-Schirm stehen. */
.collage-stage[b-dix0jjt02d] {
    position: relative;
    line-height: 0;
    width: min(100cqw, calc(100cqh * var(--ar, 1.5)));
    height: min(100cqh, calc(100cqw / var(--ar, 1.5)));
}

.collage-bg[b-dix0jjt02d] {
    display: block;
    width: 100%;
    height: 100%;
}

.collage-overlay[b-dix0jjt02d] {
    position: absolute;
    inset: 0;
    container-type: inline-size;
}

.photo-item[b-dix0jjt02d] {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    border: 6px solid white;
    cursor: pointer;
    border-radius: 4px;
    transform-origin: center;
    background-color: white;
    border-image: linear-gradient(45deg, #fff, #e0e0e0, #fff) 1;
}

/* Altvorlagen: Rahmen sind ins Hintergrundbild gemalt – das Foto füllt die Öffnung
   randlos aus, ein zusätzlicher Rahmen wäre doppelt. */
.photo-item.bare[b-dix0jjt02d] {
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    border-image: none;
}

/* Passepartout: schmaler weißer Rand + weicher Schatten. Die Außenkante entspricht
   exakt dem Slot (border-box), die Randbreite skaliert über cqw mit der Stage mit,
   damit sie auf jeder Bildschirmgröße gleich proportional wirkt. */
.photo-item.mat[b-dix0jjt02d] {
    box-sizing: border-box;
    border: 0.7cqw solid #fcfbf8;
    border-image: none;
    border-radius: 0;
    background: #fcfbf8;
    box-shadow: 0 0.35cqw 0.8cqw rgba(0, 0, 0, 0.45);
}

.photo-item.portrait img[b-dix0jjt02d] {
    object-position: center;
}

.photo-item.landscape img[b-dix0jjt02d] {
    object-position: center;
}

.photo-item img[b-dix0jjt02d] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Keine Animationen oder Übergänge für Bilder */

/* Kalender-Stil */
.calendar-container[b-dix0jjt02d] {
    transform: rotate(0deg) !important; /* Keinen Winkel für Kalender */
    overflow: hidden;
}
/* Hoch- und Querformat-Optimierungen */
.photo-item.portrait img[b-dix0jjt02d] {
    object-position: center;
}

.photo-item.landscape img[b-dix0jjt02d] {
    object-position: center;
}

.loading[b-dix0jjt02d] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
    color: white;
    font-size: 24px;
    z-index: 1000;
}

.spinner[b-dix0jjt02d] {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    margin-bottom: 20px;
}

.fullscreen-overlay[b-dix0jjt02d] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-container[b-dix0jjt02d] {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-image img[b-dix0jjt02d] {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    border: 5px solid white;
}

.fade-keyframe[b-dix0jjt02d],
.fade-video[b-dix0jjt02d] {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.fade-keyframe.show[b-dix0jjt02d],
.fade-video.show[b-dix0jjt02d] {
    opacity: 1;
    visibility: visible;
}

.close-button[b-dix0jjt02d] {
    position: absolute;
    top: -40px;
    right: -40px;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 48px;
    cursor: pointer;
}

/* Keine Fade-in Animation für das Vollbild */


.no-images[b-dix0jjt02d] {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: black;
    color: white;
}

.message[b-dix0jjt02d] {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}


.video[b-dix0jjt02d]{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video.portrait[b-dix0jjt02d]{
    height: 100%;
}
.video.landscape[b-dix0jjt02d]{
    width: 100%;
}

/* ---- Countdown-Karten (Polaroid-Optik) ----
   --cdw = Kartenbreite (inline gesetzt). Alle Größen werden als Bruchteil
   davon berechnet -> Schrift & Abstände skalieren mit der Foto-Position. */
.countdown-slot[b-dix0jjt02d] {
    position: absolute;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-card[b-dix0jjt02d] {
    flex: 0 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100%;
    background: #fffefb;
    padding: calc(var(--cdw) * 0.05) calc(var(--cdw) * 0.05) 0; /* weißer Polaroid-Rand */
    border-radius: calc(var(--cdw) * 0.012);
    box-shadow: 0 calc(var(--cdw) * 0.04) calc(var(--cdw) * 0.08) rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: center;
}

.countdown-photo[b-dix0jjt02d] {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* quadratisch -> echtes Polaroid-Bildfeld */
    border-radius: calc(var(--cdw) * 0.008);
    overflow: hidden;
    background: radial-gradient(circle at 50% 28%, #3c4d72 0%, #1e2742 68%, #151c31 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.countdown-img[b-dix0jjt02d] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.countdown-timer[b-dix0jjt02d] {
    display: flex;
    gap: calc(var(--cdw) * 0.035);
    align-items: flex-end;
    justify-content: center;
    padding: calc(var(--cdw) * 0.02);
    flex-wrap: wrap;
}

.cd-unit[b-dix0jjt02d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.cd-value[b-dix0jjt02d] {
    display: inline-block;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: calc(var(--cdw) * 0.13);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 calc(var(--cdw) * 0.003) calc(var(--cdw) * 0.008) rgba(0, 0, 0, 0.55);
}

.cd-label[b-dix0jjt02d] {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: calc(var(--cdw) * 0.045);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-top: calc(var(--cdw) * 0.015);
}

.cd-seconds[b-dix0jjt02d] {
    color: #ffd479;
    animation: cd-pulse-b-dix0jjt02d 1s ease-in-out infinite;
}

@keyframes cd-pulse-b-dix0jjt02d {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.18); opacity: 0.82; }
}

.countdown-caption[b-dix0jjt02d] {
    font-family: 'Dancing Script', 'Brush Script MT', 'Segoe Script', cursive;
    text-align: center;
    color: #2a2a2a;
    padding: calc(var(--cdw) * 0.03) calc(var(--cdw) * 0.01) calc(var(--cdw) * 0.05);
    font-size: calc(var(--cdw) * 0.15);
    line-height: 1.05;
    word-break: break-word;
}

.countdown-done[b-dix0jjt02d] {
    display: none;
    font-size: calc(var(--cdw) * 0.26);
}

.countdown-card.expired .countdown-timer[b-dix0jjt02d] { display: none; }
.countdown-card.expired .countdown-done[b-dix0jjt02d] { display: block; }

/* ---- Foto-Stil: Bild oben, Titel + Countdown darunter ---- */
.countdown-card.photo-style .countdown-caption[b-dix0jjt02d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--cdw) * 0.01);
}

.countdown-title-text[b-dix0jjt02d] {
    font-family: 'Dancing Script', 'Brush Script MT', 'Segoe Script', cursive;
    color: #2a2a2a;
    font-size: calc(var(--cdw) * 0.14);
    line-height: 1.05;
    text-align: center;
    word-break: break-word;
}

.countdown-timer.compact[b-dix0jjt02d] {
    gap: calc(var(--cdw) * 0.03);
    padding: calc(var(--cdw) * 0.01) 0 calc(var(--cdw) * 0.02);
}

.countdown-timer.compact .cd-value[b-dix0jjt02d] {
    font-size: calc(var(--cdw) * 0.09);
    color: #2a2a2a;
    text-shadow: none;
}

.countdown-timer.compact .cd-label[b-dix0jjt02d] {
    font-size: calc(var(--cdw) * 0.038);
    color: #555;
    opacity: 0.85;
    margin-top: calc(var(--cdw) * 0.01);
}

.countdown-timer.compact .cd-seconds[b-dix0jjt02d] {
    color: #c98a00;
}
/* /Components/Layout/AdminLayout.razor.rz.scp.css */
.admin-shell[b-pfs63gp5s0] {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

/* ------------------------------ Kopfleiste ------------------------------ */

.topbar[b-pfs63gp5s0] {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner[b-pfs63gp5s0] {
    max-width: 1180px;
    margin: 0 auto;
    padding: .7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand[b-pfs63gp5s0] {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 650;
    font-size: .98rem;
    color: var(--text);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.brand:hover[b-pfs63gp5s0] { color: var(--text); }

.brand-mark[b-pfs63gp5s0] {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

/* ------------------------------ Navigation ------------------------------ */

.topnav[b-pfs63gp5s0] {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin-left: .5rem;
}

.topnav[b-pfs63gp5s0]  .topnav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem;
    border-radius: var(--radius-sm);
    font-size: .89rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: background-color .15s ease, color .15s ease;
}

.topnav[b-pfs63gp5s0]  .topnav-link:hover {
    background: var(--surface-3);
    color: var(--text);
}

.topnav[b-pfs63gp5s0]  .topnav-link.active {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.topnav[b-pfs63gp5s0]  .topnav-link i { font-size: .95rem; }

/* --------------------------- Aktionen / Nutzer -------------------------- */

.topbar-actions[b-pfs63gp5s0] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.user-chip[b-pfs63gp5s0] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .7rem .25rem .3rem;
    border-radius: 999px;
    background: var(--surface-3);
    max-width: 190px;
}

.avatar[b-pfs63gp5s0] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-name[b-pfs63gp5s0] {
    font-size: .84rem;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn[b-pfs63gp5s0] {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, color .15s ease;
}

.icon-btn:hover[b-pfs63gp5s0] { background: var(--surface-3); color: var(--text); }

/* -------------------------------- Inhalt -------------------------------- */

.admin-main[b-pfs63gp5s0] {
    flex: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Symbol und Beschriftung sauber trennen, damit auf schmalen Geraeten
   nur das Symbol bleibt und die Kopfleiste einzeilig passt. */
.topbar-actions .btn-label[b-pfs63gp5s0] { margin-left: .4rem; }

@media (max-width: 820px) {
    .topbar-inner[b-pfs63gp5s0] { padding: .6rem .9rem; gap: .5rem; flex-wrap: nowrap; }
    .topbar-actions .btn-label[b-pfs63gp5s0] { display: none; }
    .user-chip[b-pfs63gp5s0] { padding: .25rem; }
    .user-name[b-pfs63gp5s0], .brand-name[b-pfs63gp5s0] { display: none; }
    .topnav[b-pfs63gp5s0]  .topnav-link span { display: none; }
    .topnav[b-pfs63gp5s0]  .topnav ::deep .topnav-link { padding: .45rem .6rem; }
    .admin-main[b-pfs63gp5s0] { padding: 1.25rem .9rem 3rem; }
}

@media (hover: none), (pointer: coarse) {
    .icon-btn[b-pfs63gp5s0] { width: 44px; height: 44px; }
    .avatar[b-pfs63gp5s0] { width: 32px; height: 32px; }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-iztt6bae55] {
    position: relative;
    display: flex;
    flex-direction: column;
}

#blazor-error-ui[b-iztt6bae55] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-iztt6bae55] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Pages/Admin.razor.rz.scp.css */
/* Statusanzeige im Seitenkopf */
.live-chip[b-yvltxvb5kj] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: .84rem;
    font-weight: 500;
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
}

.live-chip .dot[b-yvltxvb5kj] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px var(--success-soft);
}

.mode-panel[b-yvltxvb5kj] {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Ausgewaehltes Einzelbild */
.picked[b-yvltxvb5kj] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.picked-thumb[b-yvltxvb5kj] {
    width: 84px;
    height: 62px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.picked-meta[b-yvltxvb5kj] { min-width: 0; flex: 1; }

.picked-name[b-yvltxvb5kj] {
    font-weight: 500;
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picked-sub[b-yvltxvb5kj] { font-size: .82rem; color: var(--text-muted); }

/* Albumliste */
.album-list[b-yvltxvb5kj] { display: flex; flex-direction: column; gap: .5rem; }

.album-row[b-yvltxvb5kj] {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .8rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.album-row:hover[b-yvltxvb5kj] {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    box-shadow: var(--shadow-sm);
}

.album-icon[b-yvltxvb5kj] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface-3);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.album-row:hover .album-icon[b-yvltxvb5kj] { background: #fff; color: var(--accent); }

.album-info[b-yvltxvb5kj] { min-width: 0; flex: 1; }
.album-title[b-yvltxvb5kj] { font-weight: 550; font-size: .95rem; }
.album-meta[b-yvltxvb5kj] { font-size: .8rem; color: var(--text-muted); }
.album-meta .sep[b-yvltxvb5kj] { margin: 0 .35rem; }

.album-chevron[b-yvltxvb5kj] { color: var(--text-muted); font-size: .85rem; }

/* Bildauswahl im Dialog */
.pick-grid[b-yvltxvb5kj] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .6rem;
}

.pick-tile[b-yvltxvb5kj] {
    position: relative;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-3);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.pick-tile img[b-yvltxvb5kj] { width: 100%; height: 100%; object-fit: cover; display: block; }

.pick-tile:hover[b-yvltxvb5kj] {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pick-check[b-yvltxvb5kj] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, .35);
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity .15s ease;
}

.pick-tile:hover .pick-check[b-yvltxvb5kj] { opacity: 1; }

@media (max-width: 640px) {
    .picked[b-yvltxvb5kj] { flex-wrap: wrap; }
    .modal-dialog[b-yvltxvb5kj] { margin: 1.25rem; }
}

/* Kopfbereich: Speicher-Hinweis neben dem Statuschip */
.head-status[b-yvltxvb5kj] { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.save-hint[b-yvltxvb5kj] {
    display: inline-flex;
    align-items: center;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
    font-size: .82rem;
    font-weight: 500;
    animation: hint-in-b-yvltxvb5kj .18s ease;
}

@keyframes hint-in-b-yvltxvb5kj { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* Loeschen erst beim Ueberfahren der Zeile zeigen – haelt die Liste ruhig */
.album-delete[b-yvltxvb5kj] {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: .35rem .5rem;
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}

.album-row:hover .album-delete[b-yvltxvb5kj] { opacity: 1; }
.album-delete:hover[b-yvltxvb5kj] { background: var(--danger-soft); color: var(--danger); }
.album-delete:focus-visible[b-yvltxvb5kj] { opacity: 1; box-shadow: var(--ring); }

@media (hover: none), (pointer: coarse) {
    /* Ohne Mauszeiger waere das Loeschen sonst unerreichbar */
    .album-delete[b-yvltxvb5kj] {
        opacity: 1;
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .album-row[b-yvltxvb5kj] { padding: 1rem .9rem; }
}
/* /Components/Pages/AlbumDetail.razor.rz.scp.css */
/* -------------------------------- Kopf ---------------------------------- */

.head-left[b-4fxdack6a9] { display: flex; align-items: flex-start; gap: .85rem; }

.icon-back[b-4fxdack6a9] {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .15rem;
    transition: background-color .15s ease, color .15s ease;
}

.icon-back:hover[b-4fxdack6a9] { background: var(--surface-3); color: var(--text); }

.title-row[b-4fxdack6a9] { display: inline-flex; align-items: center; gap: .5rem; }

.title-edit-btn[b-4fxdack6a9] {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: .8rem;
    padding: .2rem .35rem;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .15s ease, background-color .15s ease;
}

.title-row:hover .title-edit-btn[b-4fxdack6a9] { opacity: 1; }
.title-edit-btn:hover[b-4fxdack6a9] { background: var(--surface-3); color: var(--accent); }

.title-edit[b-4fxdack6a9] { display: flex; align-items: center; gap: .4rem; }
.title-edit .form-control[b-4fxdack6a9] { max-width: 320px; font-size: 1.05rem; font-weight: 600; }

/* Auswahlleiste */
.selection-bar[b-4fxdack6a9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    font-size: .9rem;
    color: var(--accent-hover);
}

/* -------------------------------- Upload -------------------------------- */

.upload-row[b-4fxdack6a9] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .85rem;
    margin-bottom: 1.5rem;
}

.upload-tile[b-4fxdack6a9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    padding: 1.35rem 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text-soft);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.upload-tile:hover:not(:disabled)[b-4fxdack6a9] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.upload-tile:disabled[b-4fxdack6a9] { opacity: .55; cursor: default; }
.upload-tile i[b-4fxdack6a9] { font-size: 1.5rem; margin-bottom: .3rem; }
.upload-title[b-4fxdack6a9] { font-weight: 550; font-size: .93rem; }
.upload-sub[b-4fxdack6a9] { font-size: .8rem; color: var(--text-muted); }

.upload-progress[b-4fxdack6a9] {
    margin-bottom: 1.5rem;
    padding: .9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.upload-progress .progress[b-4fxdack6a9] { margin-bottom: .45rem; }

/* ------------------------------ Countdowns ------------------------------ */

.cd-panel[b-4fxdack6a9] {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.cd-panel > summary[b-4fxdack6a9] {
    cursor: pointer;
    padding: .95rem 1.25rem;
    font-weight: 600;
    font-size: .95rem;
    list-style: none;
    display: flex;
    align-items: center;
}

.cd-panel > summary[b-4fxdack6a9]::-webkit-details-marker { display: none; }
.cd-panel > summary:hover[b-4fxdack6a9] { background: var(--surface-2); }
.cd-panel[open] > summary[b-4fxdack6a9] { border-bottom: 1px solid var(--border); }

.cd-body[b-4fxdack6a9] { padding: 1.25rem; }

.cd-photo-picker[b-4fxdack6a9] {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    max-height: 220px;
    overflow-y: auto;
    padding: .5rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cd-photo-thumb[b-4fxdack6a9] {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    outline: 1px solid var(--border);
    cursor: pointer;
    transition: border-color .15s ease, transform .12s ease;
}

.cd-photo-thumb:hover[b-4fxdack6a9] { transform: scale(1.05); }
.cd-photo-thumb.selected[b-4fxdack6a9] { border-color: var(--accent); outline-color: var(--accent); }

.cd-list[b-4fxdack6a9] { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.25rem; }

.cd-item[b-4fxdack6a9] {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .6rem .8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.cd-item.editing[b-4fxdack6a9] { border-color: var(--accent); background: var(--accent-soft); }

.cd-list-thumb[b-4fxdack6a9], .cd-list-swatch[b-4fxdack6a9] {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.cd-list-swatch[b-4fxdack6a9] { display: inline-block; border: 1px solid var(--border); }

.cd-item-info[b-4fxdack6a9] { flex: 1; min-width: 0; }
.cd-item-title[b-4fxdack6a9] { font-weight: 550; font-size: .92rem; }
.cd-item-meta[b-4fxdack6a9] { font-size: .8rem; color: var(--text-muted); }
.cd-item-actions[b-4fxdack6a9] { display: flex; gap: .35rem; }

/* ------------------------------ Bildraster ------------------------------ */

.photo-grid[b-4fxdack6a9] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .7rem;
}

.image-container[b-4fxdack6a9] {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-3);
    cursor: pointer;
}

.album-image[b-4fxdack6a9] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.image-container:hover .album-image[b-4fxdack6a9] { transform: scale(1.05); }

.selection-overlay[b-4fxdack6a9] {
    position: absolute;
    inset: 0;
    background-color: rgba(16, 24, 40, .12);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    transition: background-color .15s ease;
}

.selection-overlay.selected[b-4fxdack6a9] {
    background-color: rgba(79, 70, 229, .35);
    box-shadow: inset 0 0 0 3px var(--accent);
}

.selection-indicator[b-4fxdack6a9] { color: #fff; font-size: 1.9rem; line-height: 1; }

/* ------------------------------ Vollbild -------------------------------- */

.fullscreen-overlay[b-4fxdack6a9] {
    position: fixed;
    inset: 0;
    background-color: rgba(6, 9, 15, .92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-container[b-4fxdack6a9] { position: relative; max-width: 90%; max-height: 90%; }
.fullscreen-image img[b-4fxdack6a9] { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }

.close-button[b-4fxdack6a9] {
    position: absolute;
    top: -44px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 640px) {
    .photo-grid[b-4fxdack6a9] { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .modal-dialog[b-4fxdack6a9] { margin: 1.25rem; }
}

/* Schrittweises Nachladen bei grossen Alben */
.load-more[b-4fxdack6a9] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: 1.5rem 0 .5rem;
    flex-wrap: wrap;
}

@media (hover: none), (pointer: coarse) {
    /* Titel-Bearbeiten ist ohne Hover sonst unsichtbar */
    .title-edit-btn[b-4fxdack6a9] { opacity: 1; }
    .icon-back[b-4fxdack6a9] { width: 44px; height: 44px; }
}
/* /Components/Pages/Home.razor.rz.scp.css */

.all[b-43ro7us917]{

    background: #9eaba0;
    height: 100vh;
}

.collage[b-43ro7us917]{
    cursor: none;
    height: 100%;
}

.fullscreen-image[b-43ro7us917]{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* /Components/Pages/Login.razor.rz.scp.css */
.login-container[b-2u6e353cbn] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: var(--bg);
}

.login-box[b-2u6e353cbn] {
    width: 100%;
    max-width: 380px;
    padding: 2.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.login-header[b-2u6e353cbn] { text-align: center; margin-bottom: 1.75rem; }

.login-mark[b-2u6e353cbn] {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--accent);
    color: #fff;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
}

.login-header h1[b-2u6e353cbn] { font-size: 1.35rem; margin: 0 0 .3rem; }
.login-header p[b-2u6e353cbn] { color: var(--text-muted); font-size: .9rem; margin: 0; }

.form-group[b-2u6e353cbn] { margin-bottom: 1rem; }

.login-form .btn[b-2u6e353cbn] { margin-top: .6rem; padding: .6rem 1rem; }
.login-form .alert[b-2u6e353cbn] { margin-bottom: 1rem; }
/* /Components/Pages/Templates.razor.rz.scp.css */
.gen-card[b-ungc0pzhea] { margin-bottom: 2rem; }

.gen-actions[b-ungc0pzhea] {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.tpl-section[b-ungc0pzhea] { margin-bottom: 2rem; }

.tpl-grid[b-ungc0pzhea] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.tpl-card[b-ungc0pzhea] {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .15s ease, transform .1s ease;
}

.tpl-card:hover[b-ungc0pzhea] { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tpl-preview[b-ungc0pzhea] {
    aspect-ratio: 3 / 2;
    background: var(--surface-3);
    overflow: hidden;
}

.tpl-preview img[b-ungc0pzhea] { width: 100%; height: 100%; object-fit: cover; display: block; }

.tpl-placeholder[b-ungc0pzhea] {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: .84rem;
}

.tpl-placeholder i[b-ungc0pzhea] { font-size: 1.6rem; }
.tpl-placeholder.failed[b-ungc0pzhea] { color: var(--danger); }

.tpl-body[b-ungc0pzhea] { padding: .8rem .9rem; }
.tpl-name[b-ungc0pzhea] { font-weight: 550; font-size: .93rem; }
.tpl-meta[b-ungc0pzhea] { font-size: .8rem; color: var(--text-muted); }
.tpl-meta .sep[b-ungc0pzhea] { margin: 0 .35rem; }

.tpl-actions[b-ungc0pzhea] {
    position: absolute;
    top: .6rem;
    right: .6rem;
    opacity: 0;
    transition: opacity .15s ease;
}

.tpl-card:hover .tpl-actions[b-ungc0pzhea] { opacity: 1; }
.tpl-actions .btn[b-ungc0pzhea] { background: rgba(255, 255, 255, .95); backdrop-filter: blur(4px); }

/* Manueller Bereich – eingeklappt, da Spezialfall */
.manual-panel[b-ungc0pzhea] {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.manual-panel > summary[b-ungc0pzhea] {
    cursor: pointer;
    padding: .95rem 1.25rem;
    font-weight: 550;
    font-size: .93rem;
    list-style: none;
    display: flex;
    align-items: center;
    color: var(--text-soft);
}

.manual-panel > summary[b-ungc0pzhea]::-webkit-details-marker { display: none; }
.manual-panel > summary:hover[b-ungc0pzhea] { background: var(--surface-2); }
.manual-panel[open] > summary[b-ungc0pzhea] { border-bottom: 1px solid var(--border); }

.manual-body[b-ungc0pzhea] { padding: 1.25rem; }

.upload-preview[b-ungc0pzhea] {
    margin-top: .6rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.upload-preview img[b-ungc0pzhea] {
    height: 60px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.form-control.code[b-ungc0pzhea] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
}

/* Live-Vorschau der Bildverteilung (kostenlos, vor der Generierung) */
.layout-preview[b-ungc0pzhea] {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.lp-head[b-ungc0pzhea] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .6rem;
}

.lp-stage[b-ungc0pzhea] {
    position: relative;
    aspect-ratio: 3 / 2;
    max-width: 460px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-3);
    overflow: hidden;
}

.lp-slot[b-ungc0pzhea] {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .12);
}

.lp-medallion[b-ungc0pzhea] {
    position: absolute;
    left: 36%;
    top: 34%;
    width: 28%;
    height: 32%;
    border-radius: 50%;
    border: 1px dashed var(--accent-border);
    background: var(--accent-soft);
}

/* Mehrere Aktionen auf der Kachel */
.tpl-actions[b-ungc0pzhea] { display: flex; gap: .3rem; }

@media (hover: none), (pointer: coarse) {
    /* Aktionen sind ohne Hover sonst nicht erreichbar */
    .tpl-actions[b-ungc0pzhea] { opacity: 1; }
    .lp-stage[b-ungc0pzhea] { max-width: 100%; }
}
