:root {
    --frauen-blue:   #004B93;
    --frauen-yellow: #FFD700;
    --frauen-blue-dark: #003870;
}

/* ── Navbar ──────────────────────────────────────────── */
.navbar-frauen {
    background-color: var(--frauen-blue);
}

.navbar-frauen .nav-link,
.navbar-frauen .navbar-brand {
    color: rgba(255, 255, 255, 0.88);
}

.navbar-frauen .nav-link:hover,
.navbar-frauen .nav-link.active {
    color: #ffffff;
}

.navbar-frauen .nav-link.active {
    border-bottom: 2px solid var(--frauen-yellow);
}

.navbar-frauen .navbar-toggler {
    border-color: rgba(255,255,255,.4);
}

.navbar-frauen .navbar-toggler-icon {
    filter: invert(1);
}

/* Brand */
.brand-logo {
    font-size: 1.4rem;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.brand-e {
    display: inline-block;
    background-color: var(--frauen-yellow);
    color: var(--frauen-blue);
    padding: 0 3px;
    border-radius: 2px;
}

.brand-divider {
    display: inline-block;
    width: 1px;
    height: 1.2rem;
    background: rgba(255,255,255,.35);
    margin: 0 0.5rem;
    vertical-align: middle;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,.75);
    font-weight: 400;
}

/* ── Action Button ───────────────────────────────────── */
.btn-frauen-action {
    background-color: var(--frauen-yellow);
    border-color: var(--frauen-yellow);
    color: var(--frauen-blue);
    font-weight: 600;
}

.btn-frauen-action:hover,
.btn-frauen-action:focus {
    background-color: #e6c400;
    border-color: #e6c400;
    color: var(--frauen-blue);
}

/* ── Stat Cards ──────────────────────────────────────── */
.stat-card {
    border: 1px solid var(--bs-border-color);
    transition: box-shadow .15s;
}

.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    margin-top: 2px;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
}

/* ── Produktliste ────────────────────────────────────── */
.product-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--bs-border-color);
    background: #f8f9fa;
}

.product-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px dashed var(--bs-border-color);
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch {
    width: 40px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.12);
}

/* ── Produktkarte Vorschau ───────────────────────────── */
.product-card-preview {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    background: #fff;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: background .2s;
}

.pcp-image-wrap {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.45);
}

.pcp-image {
    max-height: 130px;
    max-width: 100%;
    object-fit: contain;
}

.pcp-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.pcp-body {
    padding: 8px 10px 4px;
    flex: 1;
}

.pcp-title {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
}

.pcp-subtitle {
    font-size: .78rem;
    color: #555;
    min-height: .9rem;
}

.pcp-quantity {
    font-size: .72rem;
    color: #777;
    min-height: .9rem;
}

.pcp-price-strike {
    font-size: .75rem;
    text-decoration: line-through;
    color: #888;
    min-height: 1rem;
    margin-top: 4px;
}

.pcp-price-current {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--frauen-blue);
    line-height: 1.1;
}

.pcp-logo-wrap {
    padding: 4px 10px 8px;
    display: flex;
    justify-content: flex-end;
}

.pcp-logo {
    max-height: 30px;
    max-width: 80px;
    object-fit: contain;
}

/* ── Zusammenstellungen ──────────────────────────────── */
.drag-handle {
    cursor: grab;
    opacity: .45;
}

.drag-handle:active {
    cursor: grabbing;
}

.comp-item-swatch {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
}

.comp-item-swatch--sm {
    width: 36px;
    height: 36px;
}

.comp-item-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.picker-item:hover {
    background-color: var(--bs-tertiary-bg);
}

#sortable-items .list-group-item {
    transition: background .1s;
}

#sortable-items .sortable-ghost {
    opacity: .4;
    background: var(--bs-primary-bg-subtle);
}

/* ── Template-Karten (Vorlage wählen) ───────────────────────────────────── */
.card-hover {
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    border: 2px solid transparent;
}

.card-hover:hover {
    border-color: var(--frauen-blue);
}

/* ── Editor – Template-Canvas ───────────────────────────────────────────── */
.tpl-canvas {
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.tpl-portrait  { aspect-ratio: 210 / 297; max-width: 500px; margin: 0 auto; }
.tpl-landscape { aspect-ratio: 297 / 210; max-width: 720px; margin: 0 auto; }
.tpl-panorama  { aspect-ratio: 420 / 210; max-width: 900px; margin: 0 auto; }

.tpl-store-header {
    background: var(--frauen-blue);
    color: #ffffff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: .75rem;
    flex-shrink: 0;
}

.tpl-section-header-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--frauen-yellow);
    background: transparent;
    font-weight: 700;
    font-size: .9rem;
    color: var(--frauen-blue);
    padding: 2px 0;
    outline: none;
    text-align: center;
    flex-shrink: 0;
}

.tpl-section-header-input:focus {
    border-bottom-color: var(--frauen-blue);
    background: rgba(0,75,147,.03);
}

.tpl-product-grid {
    display: grid;
    gap: 6px;
    min-height: 0;
}

.tpl-grid-1col { grid-template-columns: 1fr; }
.tpl-grid-2col { grid-template-columns: 1fr 1fr; }
.tpl-grid-3col { grid-template-columns: 1fr 1fr 1fr; }
.tpl-grid-4col { grid-template-columns: repeat(4, 1fr); }

.tpl-circle-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px 0;
}

/* ── Editor – Ad Slots ──────────────────────────────────────────────────── */
.ad-slot {
    border: 2px dashed rgba(0,75,147,.2);
    border-radius: 6px;
    background: #f8f9fa;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color .15s, background .15s, box-shadow .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

.ad-slot:hover,
.ad-slot.drop-hover {
    border-color: var(--frauen-blue);
    border-style: solid;
    background: rgba(0,75,147,.04);
}

.ad-slot.slot-pending {
    border-color: var(--frauen-yellow);
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(255,215,0,.35);
    background: rgba(255,215,0,.06);
}

.ad-slot.slot-filled {
    border-style: solid;
    border-color: rgba(0,0,0,.1);
    background: transparent;
}

.ad-slot-empty {
    color: rgba(0,0,0,.22);
    font-size: .65rem;
    text-align: center;
    padding: 8px;
    pointer-events: none;
    line-height: 1.3;
}

/* Clear button */
.ad-slot-clear {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    padding: 0;
    font-size: .55rem;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: rgba(220,53,69,.9);
    border: none;
    color: #fff;
    opacity: 0;
    transition: opacity .15s;
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot:hover .ad-slot-clear {
    opacity: 1;
}

/* Filled product card inside slot */
.slot-product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slot-product-top {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding: 4px;
}

.slot-product-top img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slot-product-bottom {
    background: rgba(255,255,255,.88);
    padding: 3px 5px 4px;
    flex-shrink: 0;
}

.slot-product-title {
    font-size: .62rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.slot-product-price {
    font-size: .82rem;
    font-weight: 800;
    color: var(--frauen-blue);
    line-height: 1.1;
}

.slot-product-strike {
    font-size: .58rem;
    color: #999;
    text-decoration: line-through;
    line-height: 1.1;
}

/* Circle slot */
.ad-slot.slot-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-direction: column;
    padding: 8px;
    flex-shrink: 0;
    background: rgba(0,75,147,.06);
}

.slot-circle-filled {
    text-align: center;
    line-height: 1.2;
}

.slot-circle-price {
    font-size: .82rem;
    font-weight: 900;
    color: var(--frauen-blue);
}

.slot-circle-strike {
    font-size: .58rem;
    color: #999;
    text-align: center;
}

.circle-label-input {
    width: 88%;
    font-size: .58rem;
    padding: 1px 3px;
    border: 1px dashed rgba(0,0,0,.2);
    border-radius: 3px;
    background: rgba(255,255,255,.75);
    text-align: center;
    margin-top: 3px;
    outline: none;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.circle-label-input:focus {
    border-color: var(--frauen-blue);
    background: #fff;
}

/* ── Editor – Produktpicker sidebar ─────────────────────────────────────── */
.editor-picker-item {
    cursor: grab;
    padding: 8px 12px;
    transition: background .1s;
    user-select: none;
}

.editor-picker-item:hover {
    background: var(--bs-tertiary-bg);
}

.editor-picker-item:active,
.editor-picker-item.is-dragging {
    cursor: grabbing;
    opacity: .55;
}
