
/* =======================================
	Image Lightbox
	------- */
#huon-image-lightbox {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	z-index: 9999;
	display: none;
	overflow: auto;
}

.lightbox-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 1100px;
	max-width: 96vw;
	max-height: 90vh;
	margin: 0;
	text-align: center;
	padding: 20px;
	box-sizing: border-box;
}

.lightbox-inner img {
	max-width: 100%;
	max-height: 80vh;
	height: auto;
	width: auto;
	border-radius: 6px;
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	color: #fff;
}

.lightbox-title {
	font-size: 18px;
	font-weight: 500;
}

.lightbox-close {
	font-size: 60px;
	line-height: 35px;
	cursor: pointer;
	padding: 0;
	user-select: none;
}

.lightbox-caption {
	margin-top: 10px;
	font-size: 14px;
	color: #ccc;
}


/* =======================================
	Menu Sidebar
	------- */

html.huon-sidepanel-active {
    overflow: hidden;
}
body.huon-sidepanel-active {
}

/* Overlay */
.huon-sidepanel-overlay {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 999998;
    backdrop-filter: blur(5px);
    transition: all 0.25s ease-in-out;
    display: none;
}

/* Panel selbst */
.huon-sidepanel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    bottom: 0;
    z-index: 999999;
    overflow: hidden;
    background: var(--background-gradient-sidepanel, #000);
    background: #dbdcfc;
    transition: left 0.3s ease-in-out, right 0.3s ease-in-out;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Geöffnet */
.huon-sidepanel.open {
    right: 0;
}

@media screen and (max-width: 400px) {
    .huon-sidepanel {
        width: 100% !important;
    }
}

/* Scroller (Wrapper für overflow) */
.huon-sidepanel-scroller {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: scroll;
    height: 100%;
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;         /* Internet Explorer/Edge Legacy */
}
.huon-sidepanel-scroller::-webkit-scrollbar {
    display: none;                    /* Chrome, Safari */
}

/* Inhalt (Header + Body + Footer) */
.huon-sidepanel-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    padding: 40px;
}

/* Header */
.huon-panel-header {
    padding: 18px 0px 0px 0px;
    border-bottom: 1px solid #ddd;
}

.huon-header-title-tagline {
    text-align: center;
}

.huon-header-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
}

.huon-header-tagline {
    font-size: 16px;
    color: #777;
    margin-bottom: 10px;
}

.huon-header-custom-content {
/*    font-size: 14px;*/
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Body */
.huon-panel-body {
/*    flex: 1;*/
/*    padding: 20px;*/
}



.huon-sidepanel-menu-container {
    width: 100%;
}
.huon-sidepanel-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.huon-sidepanel-menu li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
}
.huon-sidepanel-menu li.cta-item a {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #000;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 12px;
}
.huon-sidepanel-menu li.cta-item a:hover {
    background: rgba(255, 255, 255, 0.5);
}

.huon-sidepanel-menu a {
	display: flex;
	align-items: center;
	padding: 10px 0px 10px 10px;
	text-decoration: none;
	transition: background 0.3s ease, transform 0.3s ease;
}

.huon-sidepanel-menu a:hover {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	transform: translateX(6px);
}

.huon-menu-item {

}

.huon-menu-item.custom-html {

}

.huon-menu-item .menu-label:hover {
	text-decoration: underline;
}

.huon-sidepanel-menu i {
	margin-right: 12px;
	font-size: 20px;
	min-width: 24px;
	text-align: center;
}

.huon-sidepanel-submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.huon-sidepanel-submenu li a {
	font-size: 0.95em;
	padding: 8px 0px 8px 10px;
}

.huon-sidepanel-menu li.open > .huon-sidepanel-submenu {
	display: block;
}

.huon-menu-item .menu-icon i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.huon-menu-item.has-toggle:hover > .huon-menu-toggle .menu-icon i {
    transform: rotate(90deg);
}

.huon-menu-item.has-toggle.open > .huon-menu-toggle .menu-icon i {
    transform: rotate(90deg);
}

a .menu-icon::before {
	font-family: "Material Design Icons";
	display: inline-block;
	margin-right: 8px;
}

.huon-menu-item:hover > a.internal-link i::before {
	content: "\F0142"; /* mdi-chevron-right */
	content: "\F0141"; /* mdi-chevron-left */
}

.huon-menu-item:hover > a.open-in-new .menu-icon i::before {
    content: "\F03CC"; /* mdi-open-in-new */
	content: "\F0143"; /* mdi-chevron-up */
}

.huon-menu-toggle {
	cursor: pointer;
	padding: 10px 0px 10px 10px;
	display: flex;
	align-items: center;
	transition: background 0.3s ease, transform 0.3s ease;
}

.huon-menu-toggle:hover {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	transform: translateX(6px);
}

.huon-menu-separator {
	padding: 8px 10px;
	margin-top: 10px;
	border-top: 1px solid #666;
	font-size: 12px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.huon-menu-separator-label {
	display: block;
}




/* Footer */
.huon-panel-footer {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

/* Social Icons */
.huon-social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.huon-social-icons li {
    position: relative;
}

.huon-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    text-decoration: none;
    color: #111;
    font-size: 18px;
    transition: all 0.3s ease;
}

.huon-social-icons a:hover {
    background: #eee;
}

/* Tooltip */
.huon-icon-tooltip {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
    display: block;
}

/* Close Button */
.huon-sidepanel-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    text-decoration: none;

    height: 50px;
    width: 50px;
    background: #e8e8fc;
    color: #010102;
    border-radius: 0px;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
}
.huon-sidepanel-close:hover {
    background: #f7eaff;
    color: #010102;
}



/* =======================================
	Modal Overlay
	------- */
.huon-modal-overlay {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
/*    background: rgba(0, 0, 0, 0.4);*/
    background: rgba(255, 255, 255, 0.2);
    z-index: 999998;

    backdrop-filter: blur(5px);
    transition: all 0.3s ease-in-out;
}

.huon-modal {
	--bg-alpha: 80%;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at top left, rgba(74, 247, 171, 0.8), transparent var(--bg-alpha)), /* #4AF7AB */
                radial-gradient(circle at top right, rgba(238, 74, 247, 0.8), transparent var(--bg-alpha)),/* #EE4AF7 */
                radial-gradient(circle at bottom left, rgba(181, 74, 247, 0.8), transparent var(--bg-alpha)),/* #B54AF7 */
                radial-gradient(circle at bottom right, rgba(247, 183, 74, 0.8), transparent var(--bg-alpha));/* #F7B74A */
    border-radius: 6px;
    padding: 40px;
    z-index: 999999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 95%;
    max-height: 80%;
    overflow-y: auto;
}

/* === Verbesserungen für Mobilgeräte === */
@media (max-width: 768px) {
    .huon-modal {
/*        top: 5%;*/
        width: 95%;
        padding: 20px 20px;
        max-width: calc(95% - 40px);
        max-height: 90%;
        border-radius: 12px;
    }

    .huon-modal-content {
        max-height: 70vh;
        padding: 10px 5px !important;
    }

    .huon-modal-header h2 {
        font-size: 18px;
        line-height: 1.3;
    }

    .huon-modal-close {
        top: 0.5em;
        right: 0.5em;
    }
}

/* Optional: Smooth Scroll Inside Modal */
.huon-modal-content {
    scroll-behavior: smooth;
}

.huon-modal-content p:first-child {
    margin-top: 0;
    margin-block-start: 0;
}

.huon-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    /*padding: 1em;
    border-bottom: 1px solid #ccc;
    position: relative;*/
}

.huon-modal-header h2 {
    margin-block-start: 0em;
    margin-block-end: 0em;
}

.huon-modal-content {
    max-height: 70vh;
    overflow-y: auto;
	border-radius: var(--border-radius-md);
    padding: 10px;
}

.huon-modal-close {
    position: absolute;
    right: 1em;
    top: 1em;
    text-decoration: none;
}

/* =======================================
	Common
	------- */
.wrap .highlighted {
    background: rgba(255, 235, 225, 0.9) !important;
}

.wrap td {
	border-top: 1px solid #ccc;
}


/* Highlight Row */
.wrap tr.highlighted {
    background: rgba(255, 235, 225, 0.9) !important;
}

/* Accordion */
.huon-accordion-toggle {
    cursor: pointer;
    font-weight: bold;
}
.huon-accordion-content {
    display: none;
    padding: 10px;
}

/* Toast */
.huon-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #323232;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 999999;
    opacity: 0.95;
}
.huon-toast.success { background: #4CAF50; }
.huon-toast.error { background: #F44336; }

/* Error highlighting */
input.error, select.error, textarea.error {
    border-color: #e74c3c !important;
}
