


.stil-editor {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: 1.25rem;
}
@media (max-width: 800px) {
    .stil-editor { grid-template-columns: 1fr; }
}
.stil-editor-einstellungen {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.stil-editor-zeile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}
.stil-editor-zeile > span { font-weight: 600; }
.stil-editor-zeile-waagrecht {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.stil-editor-zeile input[type="color"] {
    width: 3rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: none;
    cursor: pointer;
}
.stil-editor-zeile input[type="number"] { max-width: 7rem; }
.stil-editor-felder {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-light);
}
.stil-editor-hinweis {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.stil-editor-fehler {
    margin: 0;
    color: var(--color-danger);
    font-size: 0.9rem;
}
.stil-editor-vorschau {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    display: flex;
    align-items: stretch;
    justify-content: center;
    
    height: max(20rem, calc(90vh - 15rem));
}
.stil-editor-vorschau iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.stil-editor-vorschau-leer {
    align-self: center;
    padding: 1rem;
    color: var(--color-text-light);
    text-align: center;
}


.stile-seite {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}
.stile-zurueck { display: inline-block; margin-bottom: 1rem; }
.stile-kopf {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.stile-titel { margin: 0 0 0.25rem; }
.stile-erklaerung { margin: 0; color: var(--color-text-light); max-width: 40rem; }
.stile-liste {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.stile-liste.ist-leer {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-text-light);
    border: 1px dashed var(--color-border);
    border-radius: 8px;
}
.stil-zeile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}
.stil-zeile-farben { display: flex; gap: 0.25rem; }
.stil-zeile-farbe {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}
.stil-zeile-text { flex: 1; min-width: 0; }
.stil-zeile-name { font-weight: 600; }
.stil-zeile-grundlage { font-size: 0.85rem; color: var(--color-text-light); }
.stil-zeile-aktionen { display: flex; gap: 0.5rem; }
