/* ====================================================================
   Amadeo Laufschrift – Editor (Admin + Frontend)
   ==================================================================== */

.aml-form-wrap { max-width: 820px; }

.aml-intro { max-width: 820px; font-size: 14px; }

.aml-global {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 14px 0 22px;
}

.aml-global-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 14px;
}
.aml-global-grid label,
.aml-section label.aml-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.aml-global-grid input { width: 100%; }

.aml-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.aml-switch--sm { font-size: 13px; font-weight: 500; }

.aml-section {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.aml-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.aml-section-head h3 { margin: 0; font-size: 16px; }
.aml-hint { color: #777; font-size: 13px; margin: 6px 0 14px; }

.aml-rows { display: flex; flex-direction: column; gap: 10px; }

.aml-row {
    display: grid;
    grid-template-columns: 34px 190px 1fr 34px;
    align-items: center;
    gap: 10px;
}
.aml-row-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #de7300;
    background: #2b2b2b;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 18px;
}
.aml-row-preview .aml-svg { display: block; font-size: 1.1em; }

.aml-row select,
.aml-row input[type="text"] {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #cfcfcf;
    padding: 0 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.aml-row-remove {
    border: none;
    background: #f3f3f3;
    color: #b3261e;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
}
.aml-row-remove:hover { background: #fbe2e0; }

.aml-add-row {
    margin-top: 12px !important;
    cursor: pointer;
}

/* ---- Frontend-Editor-Hülle ---------------------------------------- */
.aml-editor {
    max-width: 860px;
    margin: 0 auto;
    font-family: inherit;
}
.aml-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.aml-editor-head h2 { margin: 0; }
.aml-logout {
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px 12px;
    color: #444;
}
.aml-logout:hover { background: #f3f3f3; }

.aml-preview-box {
    position: relative;
    background: #555;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 22px;
    min-height: 46px;
}
.aml-preview-label {
    position: absolute;
    top: 6px; left: 10px;
    font-size: 11px;
    color: rgba(255,255,255,.75);
    z-index: 6;
}

.aml-login {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.aml-login h2 { margin-top: 0; }
.aml-login input[type="password"] {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #cfcfcf;
    padding: 0 12px;
    font-size: 15px;
    margin: 10px 0 14px;
    box-sizing: border-box;
}
.aml-login button,
.aml-save-btn {
    background: #de7300;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.aml-login button:hover,
.aml-save-btn:hover { background: #c56600; }

.aml-note {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.aml-note--ok    { background: #e6f5ea; color: #1b6b35; border: 1px solid #b8e0c4; }
.aml-note--error { background: #fbe6e4; color: #9c241c; border: 1px solid #f0bdb8; }
.aml-note--warn  { background: #fff6e0; color: #7a5600; border: 1px solid #f0dca0; }

@media (max-width: 640px) {
    .aml-global-grid { grid-template-columns: 1fr; }
    .aml-row { grid-template-columns: 34px 1fr 34px; }
    .aml-row .aml-icon-select { grid-column: 2 / 3; }
    .aml-row input[type="text"] { grid-column: 1 / 4; }
}
