@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --clr_white: #fff;
}

* {
    margin: 0;
    padding: 0;
    color-scheme: var(--color-scheme);
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

a,
a:visited,
a:active,
a:focus {
    color: var(--text);
}

button {
    border: 1px solid var(--border);
    outline: none;
}

input {
	outline: none;
	border: 1px solid var(--border);
	transition: background 0.3s ease;
    transition: all .0s ease;
}

.input_text {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

input[type="text"] ~ .focus_border,
input[type="search"] ~ .focus_border,
select ~ .focus_border {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--akzentfarbe); 
    transition: 0.4s;
}

input[type="text"]:focus ~ .focus_border,
input[type="search"]:focus ~ .focus_border,
select:focus ~ .focus_border  {
    width: 100%; 
    left: 0;
    transition: 0.4s;
}

html {
    height: 100%;
    width: 100%;
    background: var(--background);
    color: var(--text);
}

body {
    width: 100%;
}

* {
    /* outline: 1px solid  red; */
}

.padding {
    padding: 0 250px;
}

.navigation_info {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 45px;
    background: var(--background_2);
    border-bottom: 1px solid var(--border);
    z-index: 5;
}

.path_item {
    color: var(--text_second);
    font-size: 14px;
}

.path_item:last-child {
    color: var(--text);
    font-weight: 600;
}

.path_arrow i {
    color: var(--text_second);
    font-size: 12px;
    margin: 0 5px;
}

.navigation_login {
    font-size: 14px;
}

.navigation_login span {
    font-weight: 600;
}

.page {
    height: 100%;
    display: flex;
}

.page_navigation {
    position: sticky;
    top: 45px;
    padding: 25px 0;
    width: 250px;
    height: 100%;
}


.navigation .hidden-ul {
	display: none;
}
.navigation li a {
	display: block;
	-webkit-transition: background .15s linear, color .15s linear;
	-o-transition: background .15s linear, color .15s linear;
	transition: background .15s linear, color .15s linear;
    cursor: pointer;
}


.navigation li>.has-ul {
	position: relative;
}

.navigation li>.has-ul:after {
	content: "\f104";
	font-family: 'Font Awesome\ 5 Free';
    font-weight: 900; 
	font-size: 13px;
	display: block;
	position: absolute;
	right: 15px;
	-webkit-transition: -webkit-transform .2s ease-in-out;
	-o-transition: -webkit-transform .2s ease-in-out;
	transition: -webkit-transform .2s ease-in-out
}
.navigation li.active>.has-ul:after {
	-webkit-transform: rotate(-90deg);
	-ms-transform: rotate(-90deg);
	-o-transform: rotate(-90deg);
	transform: rotate(-90deg)
}

.navigation>li {
    list-style: none;
    user-select: none;
}

.navigation>li>a {
    display: flex;
    align-items: center;
	min-height: 30px;
    font-size: 14px;
    color: var(--text);
}

.navigation>li>a i {
    width: 25px;
    font-size: 13px;
}
.navigation>li>a:hover, .navigation>li ul li a:hover  {
	background: linear-gradient(90deg, var(--background) 0%, var(--background_2) 60%);
}

.navigation>li ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.navigation>li ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
	padding: 0 0 0 25px;
	min-height: 30px;
    font-size: 14px;
    color: var(--text);
}

.navigation.nav>.active>.hidden-ul {
	display: block
}

.page_nav_settings {
    display: flex;
    align-items: center;
    height: 30px;
    color: var(--clr_white);
    background: var(--akzentfarbe);
    border-radius: 3px;
    margin: 10px 15px 0 0;
    padding: 0 10px;
    font-size: 14px;
    transition: all .3s ease;
}

.page_nav_settings i {
    margin-right: 5px;
}

.page_nav_settings:hover {
    cursor: pointer;
    filter: brightness(110%);
}

.page_text {
    min-height: calc(100% - 400px - 275px);
    border-left: 1px solid var(--border_light);
    padding: 25px 20px 0 30px;
    width: calc(100% - 200px);
}

.page_titel {
    font-size: 30px;
    font-weight: 600;
    text-decoration: underline;
}

.page_thread {
    position: relative;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    scroll-margin-top: 45px;
}

.page_thread:last-child {
    border-bottom: none;
    padding-bottom: 105px;
}

.page_thread_title {
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page_thread_img_box {
    width: 100%;
    height: auto;
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.page_thread_img_item {
    width: 170px;
    background: var(--background_2);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border_light);
    cursor: pointer;
    transition: all .2s ease;
}

.page_thread_img_item:hover {
    transform: scale(1.1);    
}

.page_thread_img_item img {
    width: 100%;
}

.page_thread_img_description {
    font-size: 13px;
    color: var(--text_second);
}

.page_thread:hover .page_thread_edit {
    opacity: 1;
}

.page_thread_edit {
    opacity: 0;
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    transition: all .2s ease;
}

.btn_thread_edit,
.btn_thread_delete {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background_2);
    border-radius: 2px;
    transition: all .2s ease;
}

.btn_thread_edit:hover,
.btn_thread_delete:hover {
    background: var(--background);
    box-shadow: 0 0 5px var(--shadow);
    cursor: pointer;
}

.last_edit {
    margin-top: 5px;
    text-align: right;
    color: var(--text_second);
    font-size: 13px;
}

.contents {
    position: sticky;
    top: 70px;
    width: 275px;
    height: fit-content;
    border-left: 2px solid var(--border_light);
    margin: 25px 0 30px 0;
    padding: 5px 0 5px 15px;
}

.contents_titel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
} 

.contents_titel div i {
    margin-right: 5px;
} 

.contents_edit {
    opacity: 0;
    transition: all.2s ease;
}

.contents:hover .contents_edit {
    opacity: 1;
}

.contents_edit:hover {
    cursor: pointer;
}

.contents ul {
    list-style: none;
    margin-top: 5px;
}

.contents ul a {
    text-decoration: none;
    color: var(--text) !important;
}

.contents ul li {
    position: relative;
    font-size: 14px;
    transition: all .3s ease;
    height: 25px;
}

.contents ul li:hover {
    cursor: pointer;
    padding-left: 5px;
}

.li_border {
    position: absolute;
    left: -17px;
    top: 0;
    height: 25px;
}


/* Modale */
.modal {
    display: none;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    animation: moadlallBG .3s forwards ease;
}

@keyframes moadlallBG {
    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: none;
    }
    to {
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(2px);
    }
}

.modal_container {
    background: var(--background);
    box-shadow: 0 0 5px var(--shadow);
    border-radius: 3px;
    top: 215px;
    width: 300px;
    height: fit-content;
    position: relative;
    animation: modalOpen .3s ease-in-out;
    overflow: hidden;
}
  
@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal_titel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: 30px;
    width: 100%;
    background: var(--background_2);
    border-bottom: 1px solid var(--akzentfarbe);
    font-weight: 600;
}

.modal_close_btn i {
    transition: all .2s ease;
}
  
.modal_close_btn:hover.modal_close_btn i {
    color: #ff0000;
    cursor: pointer;
}


.modal_contents {
    padding: 5px 10px; 
}

.modal_contents_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.modal_contents_item:last-child {
    border-bottom: none;
}

.input_modal_contents {
    height: 30px !important;
}

.modal_contents_item input {
    width: 100%;
    height: 30px;
    padding: 0 5px;
    border-radius: 2px;
    background: var(--background_2);
    color: var(--text);
}

.modal_contents_item button {
    min-width: 30px;
    height: 30px;
    padding: 0 5px;
    border-radius: 2px;
    background: var(--background_2);
    color: var(--text);
}

.modal_contents_item button:hover {
    cursor: move;
}

.modal_contents_submit_btn {
    height: 30px;
    width: calc(100% - 20px);
    border-radius: 3px;
    margin: 0 10px 10px;
    background: var(--akzentfarbe);
    color: var(--clr_white);
    transition: all .2s ease;
}

.modal_contents_submit_btn:hover {
    filter: brightness(110%);
    cursor: pointer;
}




/* Modal PageNav */
.modal_page_nav .modal_container {
    width: auto;
}

.modal_page_nav_container {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    gap: 15px;
}

.page_nav_list {
    height: 265px;
    width: 275px;
    overflow: hidden;
    background: var(--background_2);
    border-radius: 3px;
    border: 1px solid var(--border);
}

.page_nav_list_scroll {
    overflow: auto;
    height: 100%;
}

.page_nav_list_category span {
    display: block;
    width: 100%;
    padding: 0 10px;
    font-weight: 600;
    transition: all .3s ease;
}

.page_nav_list_category span:hover,
.page_nav_list_category span:hover ~ .page_nav_list_item {
    background: var(--background);
    cursor: grab;
}

.page_nav_list_category span:active,
.page_nav_list_category span:active ~ .page_nav_list_item {
    background: var(--background);
    user-select: none;
    cursor: grabbing;
}

.page_nav_list_item {
    padding-left: 25px;
    transition: all .3s ease;
}

.page_nav_list_item:hover {
    background: var(--background);
    cursor: grab;
}

.page_nav_list_item:active {
    background: var(--background);
    user-select: none;
    cursor: grabbing;
} 

.page_nav_create {
    width: 250px;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.create_category,
.create_thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.create_head {
    width: 100%;
    border-bottom: 1px solid var(--border);   
    font-weight: 600;
} 

.create_modal_input {
    height: 30px !important;
}

.create_modal_input input {
    width: 100%;
    height: 30px;
    padding: 0 5px;
    border-radius: 2px;
    background: var(--background_2);
    color: var(--text);
}

.create_btn {
    height: 30px;
    border-radius: 3px;
    background: var(--akzentfarbe);
    color: var(--clr_white);
    transition: all .2s ease;
}

.create_btn:hover {
    filter: brightness(110%);
    cursor: pointer;
}

/* Modal New Beitrag */

.modal_new_beitrag {
    width: 1100px;
}

.modal_new_beitrag_contents {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.modalTitelInput input {
    width: 100%;
    height: 30px;
    padding: 0 5px;
    border-radius: 2px;
    background: var(--background_2);
    color: var(--text);
}

.cfg_ck_container {
    width: 100%;
    border-radius: 2px;
    border: 1px solid var(--border) !important;
    overflow: auto;
    background-color: var(--background_2);
}

.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content {
	border: none !important;
}

.ck-editor__main {
    max-height: 400px;
    overflow: auto;
}

.modal_add_file {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    width: 100%;
}

.modal_add_file input {
    height: 30px;
    background: var(--background_2);
    color: var(--text_second);
    border-radius: 2px;
    width: 100%;
    cursor: pointer;
    transition: all .1s ease;
} 

.modal_add_file input::file-selector-button {
    height: 30px;
    background: var(--background_2);
    color: var(--text);
    border: none;
    border-right: 2px solid var(--border);
} 

.modal_add_file input:hover {
    border: 1px solid var(--border_light);
}

.modal_add_file button {
    height: 30px;
    min-width: 30px;
    background: var(--akzentfarbe);
    color: var(--clr_white);
    border-radius: 2px;
    cursor: pointer;
    transition: all .1s ease;
} 

.modal_img_item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 30px;
}

.modal_filename {
    min-width: 200px;
    background-color: var(--background_2);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 2px 0 0 2px;
    line-height: 30px;
    font-size: 14px;
    padding: 0 7px;
}

.modal_imgDescription input {
    border-radius: 0 2px 2px 0;
}

.modal_removeBtn {
    height: 30px;
    min-width: 30px;
    background: #d44646;
    color: var(--clr_white);
    border-radius: 2px;
    cursor: pointer;
    transition: all .1s ease;
    margin-left: 7px;
}