/* =============================================================
   1. ADMIN PAGE
   ============================================================= */
[hidden] {
    display: none !important;
}

.admin-grid {
    align-items: start;
}

.admin .button-link {
    margin-top: 0;
}

.admin-form textarea {
    resize: vertical;
    min-height: 160px;
}

.form-error-box {
    display: none;
    background: #ffdddd;
    border: 1px solid #cc0000;
    padding: 10px;
    border-radius: 8px;
}

.file-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 5px;
}

.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.admin-title-row > div {
    flex: 1;
}

.admin-title-row .button-link {
    width: auto;
    margin-top: 5px;
    white-space: nowrap;
}

.admin-title-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.admin-title-actions .button-link {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
}

/* Löschen links, Zurück/rechter Button rechts */
.delete-button {
    order: 1;
    background: #c0392b;
}

#toggleEditMode {
    order: 2;
}

.delete-button:hover {
    background: #a93226;
}

.edit-picker {
    margin-bottom: 5px;
}

/* =============================================================
   ADMIN BUTTONS
   ============================================================= */

.course-quick-status {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.course-status-actions {
    display: flex;
    gap: 8px;
}

/* Buttons kleiner */
.course-status-actions .button-link {
    padding: 8px 12px;
    font-size: 0.8em;
    width: auto;
    margin-top: 0;
}

/* Farben */
.course-yes {
    background: #27ae60;
}

.course-yes:hover {
    background: #219150;
}

.course-no {
    background: #c0392b;
}

.course-no:hover {
    background: #a93226;
}

/* =============================================================
   ADMIN COURSES QUICK STATUS
   ============================================================= */
.course-quick-status {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.course-quick-status label {
    display: grid;
    gap: 6px;
}

.course-quick-status input {
    width: 100%;
}

.course-status-actions {
    display: flex;
    gap: 8px;
}

.course-status-actions .button-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    min-width: 42px;
    height: 42px;

    margin: 0;
    padding: 0;

    border-radius: 8px;
    font-size: 1.1em;
}

.course-yes {
    background: #27ae60;
}

.course-yes:hover {
    background: #219150;
}

.course-no {
    background: #c0392b;
}

.course-no:hover {
    background: #a93226;
}

.course-quick-status input {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d0d4d2;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    color: #6b7770;
    outline: none;
}

.course-quick-status input:focus {
    border-color: #9aa1a6;
}

/* =============================================================
   Ab hier neu eingefügt bis media 700
   ============================================================= */
/* =============================================================
   CONTENT TYPE BUTTONS
   ============================================================= */

.content-type-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.content-type-btn {
    margin-top: 0 !important;
    text-align: center;
    transition: all 0.2s ease;
    opacity: 0.65;
}

.content-type-btn {
    padding: 10px 14px;
    font-size: 0.95rem;
}

/* AKTIV */
.content-type-btn.active {
    opacity: 1;
    transform: translateY(-1px);
}

/* BLOG */
.content-type-btn.blog {
    background: #6b7770;
}

/* LONG */
.content-type-btn.long {
    background: #9a7a58;
}

/* MEMORY */
.content-type-btn.memory {
    background: #74879a;
}

/* =============================================================
   CONTENT BOX MODES
   ============================================================= */

.content-box {
    transition: background-color 0.25s ease;
}

/* BLOG MODE */
.content-box.is-blog {
    background: #f5f5f5;
}

/* LONG MODE */
.content-box.is-long {
    background: #f7f2ec;
}

/* MEMORY MODE */
.content-box.is-memory {
    background: #eef2f5;
}

.content-type-btn .short-label {
    display: none;
}

/* =============================================================
   ADMIN GALLERY BILDER
   ============================================================= */

.gallery-admin-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.gallery-admin-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
}

.gallery-admin-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0;
    border-radius: 6px;
}

.gallery-admin-delete {
    position: absolute;
    top: 4px;
    right: 4px;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border-radius: 50%;
    font-size: 0.75em;
    line-height: 1;

    background: #c0392b;
    color: #fff;
}

/* =============================================================
   ADMIN TOGGLE BOXES
   ============================================================= */

.admin-box {
    padding: 0;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.admin-toggle {
    width: 100%;
    padding: 20px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
}

.admin-toggle-titleblock {
    display: flex;
    flex-direction: column;
}

.admin-toggle-title {
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    color: #6b7770;
}

.admin-toggle-subtitle {
    font-size: 1em;
    text-transform: uppercase;
    color: #999;
}

.admin-toggle-arrow {
    font-size: 2em;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .2s ease;
}

.admin-box.is-open .admin-toggle-arrow {
    transform: rotate(90deg);
}

.admin-toggle-content {
    display: none;
    padding: 0 20px 20px;
}

.admin-box.is-open .admin-toggle-content {
    display: block;
}

.admin-box.is-open .admin-toggle {
    display: none;
}

.admin-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.admin-close-toggle {
    border: 0;
    background: transparent;
    color: #6b7770;

    font-size: 2em;
    line-height: 1;

    cursor: pointer;

    transform: rotate(-90deg);
    transition: transform .2s ease;
}

.admin-close-toggle:hover {
    opacity: .7;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 700px) {

    .content-type-tabs {
        grid-template-columns: 1fr;
    }

    .content-type-btn {
        width: 100%;
    }
	
	    .content-type-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .content-type-btn .full-label {
        display: none;
    }

    .content-type-btn .short-label {
        display: inline;
    }

    .content-type-btn {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
}
@media (max-width: 600px) {
    .admin-title-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .admin-title-actions .button-link {
        width: 100%;
    }
	
	    .admin-box {
        padding: 0;
    }

.admin-toggle,
.admin-toggle-content {
    padding: 0px 0px 0px 0px;

	}
}