/* ================================================================
   ALLGEMEIN — Admin
================================================================ */
.admin-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 16px 0 8px;
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
}
.admin-action-bar .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.admin-btn-save {
    min-height: 44px;
    margin-top: 12px;
}
.admin-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    min-height: 44px;
    line-height: 44px;
    padding: 0 12px;
    margin-top: 8px;
}
.admin-filelist {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}
.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* ================================================================
   EDIT VIEW — Bilder-Sidebar
================================================================ */
.admin-edit-images-box {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    position: sticky;
    top: 20px;
}
.admin-edit-images-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
}
.admin-edit-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}
@media (max-width: 991px) {
    .admin-edit-images-box {
        position: static;
        margin-top: 0;
    }
}

/* ================================================================
   IMAGES VIEW — Bildkarten-Grid
================================================================ */
.admin-img-hint {
    font-size: 14px;
    margin-bottom: 16px;
}
.admin-img-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-img-card--active {
    border-color: #e09c1c;
    box-shadow: 0 0 0 3px rgba(224,156,28,0.2);
}
.admin-img-drag-handle {
    position: relative;
    cursor: grab;
    user-select: none;
}
.admin-img-drag-handle:active {
    cursor: grabbing;
}
.admin-img-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.admin-img-drag-icon {
    position: absolute;
    top: 6px;
    right: 8px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 4px;
    pointer-events: none;
    letter-spacing: 1px;
}
.sortable-ghost .admin-img-card {
    opacity: 0.35;
    border: 2px dashed #e09c1c;
}
.sortable-chosen .admin-img-card {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.admin-img-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    min-height: 48px;
}
.admin-img-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    user-select: none;
}
.admin-img-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}
.admin-img-badge {
    color: #e09c1c;
    font-weight: 700;
}
button.admin-img-delete-btn {
    background: none;
    border: 2px solid #ccc !important;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
button.admin-img-delete-btn:hover {
    background: #ffeaea !important;
    border-color: #e55 !important;
}
.admin-reorder-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fffbe6;
    border: 1px solid #e09c1c;
    border-radius: 6px;
    padding: 10px 16px;
    margin-top: 8px;
    font-size: 14px;
}

/* ================================================================
   WYSIWYG EDITOR
================================================================ */
.wp-webdeasy-comment-editor {
    width: 100%;       /* war: 40rem — responsiv gemacht */
    min-height: 18rem;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.3);
    border-top: 6px solid #4a4a4a;
    border-radius: 3px;
    margin: 2rem 0;
}
.wp-webdeasy-comment-editor .toolbar {
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.wp-webdeasy-comment-editor .toolbar .lineedit {
    display: flex;
    border-bottom: 1px solid #e2e2e2;
}
.wp-webdeasy-comment-editor .toolbar .lineedit:last-child {
    border-bottom: none;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box {
    display: flex;
    border-left: 1px solid #e2e2e2;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.2s ease all;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn:hover,
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn.active {
    background-color: #e1e1e1;
    cursor: pointer;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn.icon img {
    width: 15px;
    padding: 9px;
    box-sizing: content-box;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn.icon.smaller img {
    width: 16px;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn.has-submenu {
    width: 20px;
    padding: 0 10px;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn.has-submenu::after {
    content: '';
    width: 6px;
    height: 6px;
    position: absolute;
    background-image: url(https://img.icons8.com/ios-glyphs/30/000000/chevron-down.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    right: 4px;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn.has-submenu .submenu {
    display: none;
    position: absolute;
    top: 34px;
    left: -1px;
    z-index: 10;
    background-color: #fff;
    border: 1px solid #b5b5b5;
    border-top: none;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn.has-submenu .submenu .btn {
    width: 39px;
}
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn.has-submenu .submenu:hover,
.wp-webdeasy-comment-editor .toolbar .lineedit .box .editor-btn.has-submenu:hover .submenu {
    display: block;
}
.wp-webdeasy-comment-editor .content-area {
    padding: 15px 12px;
    line-height: 1.5;
}
.wp-webdeasy-comment-editor .content-area .visuell-view {
    outline: none;
    min-height: 12rem;
}
.wp-webdeasy-comment-editor .content-area .visuell-view p {
    margin: 12px 0;
}
.wp-webdeasy-comment-editor .content-area .html-view {
    outline: none;
    display: none;
    width: 100%;
    height: 200px;
    border: none;
    resize: none;
}

/* ================================================================
   LEGACY — wird noch von anderen Views genutzt
================================================================ */
.admin_image {
    width: 130px;
    height: 80px;
    object-fit: cover;
}
.overlay_outer {
    position: relative;
    border: none;
}
.overlay_image {
    display: none;
}
.overlay_outer:hover .overlay_image {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.7;
    top: 0;
}
.overlay_text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 48px;
    transform: translate(-50%, -50%);
    color: white;
}
.image_flex_box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.btn_delete {
    border: none;
    background: rgba(0,0,0,0);
}

/* ================================================================
   FRONTEND
================================================================ */
.fullPage_text {
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 300;
    text-transform: none;
    line-height: 1.5;
    letter-spacing: 0;
    color: #2b2b2b;
    font-family: ff-tisa-sans-web-pro, sans-serif;
}
.normal-portfolio-image img {
    width: 353px !important;
    height: 282px !important;
}
.full-page-flex {
    display: flex;
    gap: 24px;
}
table.dataTable tbody td {
    word-break: break-word;
    vertical-align: top;
}

/* Modal Styles for Magnific Popup */
.mfp-ready .modal {
    max-width: 900px !important;
}
.modal .full-page-flex img {
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}
.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .modal .full-page-flex {
        flex-direction: column;
    }
    .modal .full-page-flex img {
        max-width: 100%;
    }
}

/* Post-Item Carousel */
.post-item-description {
    padding: 25px 40px !important;
    margin: 10px 0;
    min-height: 200px;
    position: relative;
    background: #fff;
}
.post-item-description h5 {
    margin-bottom: 15px;
    font-weight: 600;
}
.post-item-description h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.post-item-description h5 a:hover { color: #E09C1C; }
.post-item-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}
.post-item-description .item-link {
    color: #E09C1C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.post-item-description .item-link:hover { color: #c28615; }
.post-item-description .item-link i { margin-left: 5px; }

/* ── Tier-Carousel ── */
.tiere-carousel-wrapper {
    position: relative;
    padding-top: 44px;
    padding-bottom: 0;
}
.tiere-carousel-wrapper .flickity-button {
    top: -44px !important;
    bottom: auto !important;
    margin-top: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer !important;
}
.tiere-carousel-wrapper .flickity-button.previous {
    left: auto !important;
    right: 34px !important;
}
.tiere-carousel-wrapper .flickity-button.next {
    right: 0px !important;
    left: auto !important;
}
.tiere-carousel-wrapper .flickity-button:hover { background-color: #264c98 !important; }
.tiere-carousel-wrapper .flickity-button:hover::before { color: #fff !important; }
.tiere-carousel-wrapper .carousel:hover .flickity-button.next {
    right: 0px !important;
    left: auto !important;
    top: -44px !important;
}
.tiere-carousel-wrapper .carousel:hover .flickity-button.previous {
    left: auto !important;
    right: 34px !important;
    top: -44px !important;
}
.tiere-carousel .portfolio-image img {
    transform: none !important;
    transition: none !important;
}
.tiere-carousel .portfolio-description {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    transform: none !important;
    transition: opacity 0.3s ease !important;
    z-index: 3;
}
.tiere-carousel .portfolio-description a i {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 30px !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    opacity: 0;
}
.tiere-carousel .portfolio-description a.tiere-icon-left i {
    transform: translateX(-50px);
    transition: transform 0.4s ease 0s, opacity 0.4s ease 0s !important;
}
.tiere-carousel .portfolio-description a.tiere-icon-right i {
    transform: translateX(50px);
    transition: transform 0.4s ease 0.08s, opacity 0.4s ease 0.08s !important;
}
.tiere-carousel .portfolio-item:hover .portfolio-description a.tiere-icon-left i {
    opacity: 1;
    transform: translateX(0) !important;
}
.tiere-carousel .portfolio-item:hover .portfolio-description a.tiere-icon-right i {
    opacity: 1;
    transform: translateX(0) !important;
}
.tiere-carousel .portfolio-description a:hover i {
    background-color: transparent !important;
    border: none !important;
    color: #ffffff !important;
}
.tiere-carousel .tiere-icon-divider {
    display: inline-block;
    width: 1px;
    height: 28px;
    background-color: rgba(255,255,255,0.65);
    margin: 0 16px;
    opacity: 0;
    transition: opacity 0.35s ease 0.1s;
    flex-shrink: 0;
}
.tiere-carousel .portfolio-item:hover .tiere-icon-divider { opacity: 1; }
.tiere-carousel-wrapper[data-count="1"] .flickity-button { display: none !important; }
.tiere-carousel-wrapper[data-count="2"] .flickity-button { display: none !important; }
@media (max-width: 767px) {
    .tiere-carousel-wrapper[data-count="2"] .flickity-button {
        display: block !important;
        cursor: pointer !important;
    }
    .tiere-carousel-wrapper .carousel:hover .flickity-button.next {
        right: 0px !important;
        top: -44px !important;
    }
    .tiere-carousel-wrapper .carousel:hover .flickity-button.previous {
        left: auto !important;
        right: 34px !important;
        top: -44px !important;
    }
}