/* Monogramm — eigene Muster-Kachel (frontend/js/monogramm.js). Der Editor sitzt
   in der Motiv-Karte (#icon-section) und ersetzt dort das Motiv-Raster. */

#lc-mono { display: none; }
#icon-section.lc-mono-an #lc-mono { display: block; margin-bottom: var(--space-md); }
#icon-section.lc-mono-an .text-field-enhanced > label:not(.lc-mono-titel):not(.motiv-pos-label),
#icon-section.lc-mono-an #info-motiv,
#icon-section.lc-mono-an #icon-grid,
#icon-section.lc-mono-an #motiv-status-inline { display: none !important; }

.lc-mono-titel {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}
.lc-mono-teil { margin-bottom: var(--space-md); }
.lc-mono-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.lc-mono-optional { color: var(--gray-400); }

/* Aufteilung + Rahmen: Kacheln wie „Motiv-Position" (.icon-pos-btn aus
   style.css) — rechteckig, auch am Handy groß genug (Daniel 28.10.2026) */
.lc-mono-wahlen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: var(--space-sm);
    max-width: 560px;
}
.lc-mono-wahl {
    font: inherit;
    min-width: 0;
    width: 100%;
    padding: var(--space-sm) 4px;
}
.lc-mono-wahl .lc-mono-bild {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: var(--radius-sm);
}
.lc-mono-wahl span { white-space: nowrap; }
/* Eigene Markierung statt .active — app.js syncMotivPositionUI setzt .active
   an allen .icon-pos-btn nach data-pos neu (Oben/Unten/Unter Klingel) */
.lc-mono-wahl.lc-gewaehlt { border-color: var(--accent); background: var(--white); }
.lc-mono-wahl.lc-gewaehlt span { color: var(--accent); }

.lc-mono-felder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    max-width: 360px;
}
.lc-mono-felder-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lc-mono-felder-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 440px; }
.lc-mono-feld { min-width: 0; }
.lc-mono-feldname {
    display: block;
    font-size: 0.6875rem;
    color: var(--gray-500);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-mono-eingabe {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
}
/* Gewähltes Symbol steht im Eingabefeld (Tippen ersetzt es) */
.lc-mono-symbol {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.lc-mono-symbol img { height: 24px; width: auto; max-width: 80%; filter: brightness(0); }
.lc-mono-symbol svg { height: 22px; width: 22px; color: var(--black); }
.lc-mono-eingabe.hat-symbol input:focus { caret-color: var(--accent); }
.lc-mono-eingabe:focus-within,
.lc-mono-ziel .lc-mono-eingabe { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(62, 106, 225, 0.15); }
.lc-mono-ziel .lc-mono-feldname { color: var(--accent); }
.lc-mono-eingabe input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    padding: 8px 6px;
    font-size: 1.125rem;
    text-align: center;
    text-transform: uppercase;
    background: transparent;
    outline: none;
}
.lc-mono-motive .icon-preview svg { width: 24px; height: 24px; color: var(--black); }
.lc-mono-zeichen { font-family: 'Raleway', sans-serif; font-size: 22px; line-height: 1; color: var(--black); }

.lc-mono-anzahl { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.lc-mono-anzahl button {
    font: inherit;
    font-size: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    padding: 4px 12px;
    cursor: pointer;
}
.lc-mono-anzahl button:disabled { opacity: .4; cursor: default; }

/* Symbol-Leiste unter den Feldern (Variante A, Daniel 28.10.2026): immer
   sichtbar, Feld antippen, dann Symbol — wie eine Emoji-Tastatur */
.lc-mono-leiste { margin-top: 10px; max-width: 440px; }
.lc-mono-leiste-text {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.lc-mono-motive {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}
.lc-mono-motive .icon-card { font: inherit; padding: 6px 2px; min-width: 0; border-width: 1px; }
.lc-mono-motive .icon-card:hover { transform: none; }
.lc-mono-motive .icon-preview { width: 28px; height: 28px; margin-bottom: 2px; }
.lc-mono-motive .icon-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lc-mono-motive .icon-preview img { max-width: 100%; max-height: 100%; }

.lc-mono-hinweis {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 6px 0 0;
}

#lc-mono-zusatz {
    width: 100%;
    max-width: 260px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    font-size: 0.9375rem;
}
#lc-mono-zusatz:focus { border-color: var(--accent); outline: none; }

.lc-mono-schrift { margin-bottom: var(--space-sm); }

@media (max-width: 480px) {
    .lc-mono-felder-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lc-mono-motive { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Monogramm-Block steht ganz oben im Tab Texte (monogramm.js sync) */
.icon-section.lc-mono-an { margin-top: 0; margin-bottom: var(--space-md); }
