@font-face {
    font-family: 'LineariconsFull';
    src: url('../font/Linearicons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Einfacher Fix für Custom Select von dem Template */

.custom-select ul.select-list {
	max-height: 300px !important;
	overflow-y: auto !important;
}

.custom-select:has(.select-title.active) { z-index: 102 !important; }

/* Verbesserte SEBmaster-Funktion zu dem Custom Select => select bleibt validierbar */
.mad-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* CSS für Sortable */

.bild_sortable {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    margin: 0;
}

.bild_sortable > .bild-sort-placeholder {
    flex: 0 0 calc((100% - 60px) / 3) !important;
    width: calc((100% - 60px) / 3) !important;
    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: 3 / 2;
    align-self: flex-start;

    background: rgba(166, 196, 55, 0.08);
    border: 1px dashed #a6c437;
    border-radius: 4px;
    box-sizing: border-box;
}

.bild_sortable > .item {
    float: none;
    width: calc((100% - 60px) / 3);
    padding: 0;
    margin: 0;
    flex: 0 0 calc((100% - 60px) / 3);
}

.bild_sortable .article-bild {
    margin: 0;
}

.bild_sortable .project-image {
    position: relative;
    aspect-ratio: 3 / 2;
}

.bild_sortable .project-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bild-sort-helper {
    z-index: 10000 !important;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

@media (max-width: 991px) {
    .bild_sortable > .item,
    .bild-sort-placeholder {
        width: calc((100% - 30px) / 2);
        flex-basis: calc((100% - 30px) / 2);
    }
	.bild_sortable > .bild-sort-placeholder {
        flex-basis: calc((100% - 30px) / 2) !important;
        width: calc((100% - 30px) / 2) !important;
    }
}

@media (max-width: 575px) {
    .bild_sortable > .item,
    .bild-sort-placeholder {
        width: 100%;
        flex-basis: 100%;
    }
	.bild_sortable > .bild-sort-placeholder {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}

/* Spezifisches CSS für einzelne Bildelemente */

.article-bild {
    margin-top: 15px;
    margin-bottom: 15px;
    position: relative;
}

.article-bild .leiste-edit {
    position: absolute;
    z-index: 20;
    pointer-events: none;
}

.article-bild .leiste-edit .titelbild-label,
.article-bild .leiste-edit .leiste-buttons,
.article-bild .leiste-edit .move-button,
.article-bild .leiste-edit .del-button {
    pointer-events: auto;
}

.article-bild .leiste-edit .move-button {
    position: relative;
    z-index: 21;
    cursor: grab;
}

.leiste-edit {
    position: absolute;
    z-index: 999;
    width: calc(100% - 20px);
    margin: 10px 10px 0;
    padding: 5px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.leiste-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.leiste-edit .titelbild-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 8px;

    background: rgba(255, 255, 255, 0.92);
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
}

.leiste-edit input[type="radio"] {
    display: inline-block;
    appearance: auto;
    -webkit-appearance: radio;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #e16c6c;
    cursor: pointer;
}

.leiste-edit .move-button,
.leiste-edit .del-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #fff;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.leiste-edit .move-button {
    background-color: #e16c6c;
    cursor: grab;
    touch-action: none;
}

.leiste-edit .move-button:active {
    cursor: grabbing;
}

.leiste-edit .del-button {
    background-color: #e16c6c;
}

.leiste-edit .move-button:hover,
.leiste-edit .del-button:hover {
    background-color: #d93636;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.leiste-edit .move-button > i,
.leiste-edit .del-button > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    color: #fff;
}

/* Upload-Bereich */

.image-upload-box {
    padding: 20px 25px;
    margin-bottom: 30px;
    background: #f8f9f6;
    border: 1px solid #e5e9df;
    border-radius: 10px;
}

/* Überschrift */

.image-upload-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.image-upload-header > i {
    font-size: 28px;
    color: #a6c437;
}

.image-upload-header strong {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.image-upload-header span {
    display: block;
    font-size: 13px;
    color: #888;
}

/* Bedienelemente */

.image-upload-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* Datei auswählen */

.image-upload-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 9px 18px;
    margin: 0;

    background: #fff;
    border: 1px solid #d5d9d0;
    border-radius: 6px;

    color: #555;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

    transition: all 0.25s ease;
}

.image-upload-select:hover {
    background: #eef4df;
    border-color: #a6c437;
    color: #66851f;
    transform: translateY(-1px);
}

.image-upload-select i {
    font-size: 16px;
}

/* Dateianzahl */

.image-upload-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #66851f;
}

.image-upload-count i {
    color: #a6c437;
    font-size: 17px;
}

/* Upload-Button */

.image-upload-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 22px;
    margin: 0 0 0 auto;

    background: #a6c437;
    border: none;
    border-radius: 6px;

    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;

    box-shadow: 0 3px 8px rgba(100, 130, 30, 0.2);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.image-upload-submit:hover:not(:disabled) {
    background: #8eab2b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(100, 130, 30, 0.3);
}

.image-upload-submit:disabled {
    background: #cbd4b9;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* Responsive */

@media (max-width: 575px) {
    .image-upload-box {
        padding: 15px;
    }

    .image-upload-submit {
        margin-left: 0;
        width: 100%;
    }
}

/* Noch von vorher */

.bild_del_button {

	font-family: 'Montserrat', sans-serif;
	font-size: 27px;
	display: inline-block;
	text-align: center;
	cursor: pointer;

	text-decoration: none;
	background-color: #e16c6c;

	border-radius: 100%;
	position: absolute;
    z-index: 1000;
    right: 10px;
    top: 10px;
	
}


.bild_del_button > i {
	display: inline-block;
	width: 20px;
	height: 20px;
	font-size: 17px;
	color: #ffffff;
	
}

.label.warning {
	background-color: #ffbd0a;
}

.blockquote-holder.with-bg-green {
	background: #a6c437;
}

.contact-form .contact-col-3{
	width: 33.3%;
}

.druck_raster { 
	display: grid;
	grid-template-columns: repeat(7, 20px);
	grid-template-rows: repeat(10, 20px);
	gap: 3px;
	margin-bottom: 15px;
}

.druck_feld {
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: 1px solid #777;
	background-color: white;
	cursor: pointer;
}

.druck_feld:has(input:checked) {
	background-color: #3498db;
	border-color: #217dbb;
}

.druck_feld input {
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	opacity: 0;
	display: block;
}


#modal-icon {
    display: none;              /* standardmäßig versteckt */
    position: fixed;
    inset: 0;                   /* füllt den ganzen Bildschirm */
    z-index: 1000;
    background: rgba(0, 0, 0, .5);
    align-items: center;        /* vertikal mittig */
    justify-content: center;    /* horizontal mittig */
}

.modal-icon-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;           /* scrollt, falls es viele Icons sind */
}

.icon-option {
    display: inline-block;
    width: 120px;
    height: 120px;
    line-height: 120px;
    text-align: center;
    font-family: 'LineariconsFull';
    font-size: 48px;
    cursor: pointer;
}
.icon-option:hover { opacity: .6; }

.icon-empty {
    font-family: inherit;   /* normale Schrift statt Icon-Font */
    font-size: 16px;
    border: 1px dashed #aaa;
}

.icon-show {
    font-family: 'LineariconsFull' !important;
    font-style: normal;
    font-weight: normal;
}

th.sortable { 
    cursor: pointer;
}

th.sortable::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    margin-top: -2px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9l5-5 5 5M7 15l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
