/******************************
* Pluginname: AS Highlights
* Version:    1.0
* Datum:      09.06.2026
* Autor:      Alfred Steckel
* Dateiname:  as_highlights.css
******************************/

.as-highlights-admin,
.as-highlights-admin * {
    box-sizing: border-box;
}

.as-highlights-admin {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
    padding: 15px;
}

.as-highlights-header {
    margin-bottom: 1em;
    border-bottom: 2px solid #007acc;
}

.as-highlights-header h3 {
    margin: 0 0 8px;
    color: #007acc;
}

.as-highlights-header p {
    display: none;
}

.as-highlights-layout {
    display: flex;
    gap: 20px;
    width: 100%;
}

.as-highlights-sidebar {
    width: 220px;
    flex: 0 0 220px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
}

.as-highlights-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.as-highlights-sidebar li {
    margin-bottom: 1em;
}

.as-highlights-sidebar li:last-child {
    margin-bottom: 0;
}

.as-highlights-sidebar a {
    display: block;
    padding: 8px 12px;
    background: #1794DD;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.as-highlights-sidebar a.active,
.as-highlights-sidebar a:hover {
    background: #FDEAB3;
    color: #000;
}

.as-highlights-content {
    flex: 1 1 auto;
    min-width: 0;
}

.as-highlights-footer {
    margin-top: 2em;
    padding: 10px;
    background: #EAEAEA;
    color: #666;
    text-align: center;
    font-size: .9em;
}

.as-highlights-footer p {
    margin: 0;
}

.as-box {
    background: #fff;
    border: 1px solid #d5dce3;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.as-box-kopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.as-box h3 {
    margin-top: 0;
    color: #2E7FC0;
}

.as-button,
.as-kleinbutton {
    display: inline-block;
    background: #2E7FC0;
    color: #fff !important;
    border: 0;
    border-radius: 5px;
    padding: 8px 12px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.as-kleinbutton {
    padding: 5px 8px;
    font-size: 13px;
}

.as-button-zweit {
    background: #6d7882;
}

.as-loeschen {
    background: #b33a3a;
}

.as-tabelle-wrap {
    overflow-x: auto;
}

.as-tabelle {
    width: 100%;
    border-collapse: collapse;
}

.as-tabelle th,
.as-tabelle td {
    border-bottom: 1px solid #e1e6eb;
    padding: 9px 8px;
    text-align: left;
    vertical-align: top;
}

.as-tabelle th {
    background: #eef4f9;
    color: #244c68;
}

.as-aktionen {
    white-space: nowrap;
}

.as-aktionen form {
    display: inline-block;
    margin: 0 0 0 4px;
}

.as-status {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
}

.as-status-an {
    background: #dff1df;
    color: #256225;
}

.as-status-aus {
    background: #f3dddd;
    color: #7a2222;
}

.as-hinweis {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.as-erfolg {
    background: #e3f2df;
    border: 1px solid #b9d9ad;
}

.as-fehler {
    background: #f8e1e1;
    border: 1px solid #e0aaaa;
}

.as-formular label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
}

.as-formular input[type="text"],
.as-formular input[type="number"],
.as-formular input[type="date"],
.as-formular textarea,
.as-formular select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #ccd6df;
    border-radius: 5px;
    font: inherit;
}

.as-zweispaltig {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.as-checkbox {
    font-weight: normal !important;
}

.as-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.as-code {
    background: #f1f4f7;
    border: 1px solid #d5dce3;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
}

.as-hilfe-liste {
    line-height: 1.7;
}

.as-leer {
    color: #666;
    font-style: italic;
}

.as-highlights-frontend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.as-highlight-box {
    background: #fff;
    border: 1px solid #d5dce3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.as-highlight-art-hervorgehoben {
    border: 2px solid #2e7fc1;
    background: #eef7fd;
    box-shadow: 0 8px 22px rgba(46, 127, 193, .18);
}

.as-highlight-art-kompakt {
    padding: 12px;
}

.as-highlight-art-kompakt .as-highlight-bild {
    max-width: 120px;
}

.as-highlight-art-kompakt .as-highlight-text h3 {
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.as-highlight-art-mehrspaltig {
    flex: 1 1 260px;
}

.as-highlight-bild img {
    display: block;
    width: 100%;
    height: auto;
}

.as-highlight-text {
    padding: 14px;
}

.as-highlight-text h3 {
    margin: 0 0 8px 0;
    color: #2E7FC0;
}

.as-highlight-button {
    display: inline-block;
    margin-top: 8px;
    background: #2E7FC0;
    color: #fff;
    padding: 7px 10px;
    border-radius: 5px;
    text-decoration: none;
}

@media (max-width: 720px) {
    .as-highlights-layout {
        flex-direction: column;
    }

    .as-highlights-sidebar {
        width: 100%;
        flex-basis: auto;
        margin-bottom: 15px;
    }

    .as-zweispaltig {
        grid-template-columns: 1fr;
    }
}
