/* =========================================================
   MARKTHYR HEADER
   Modern / Glass
========================================================= */

.mk-header {

    position: sticky;
    top: 0;
    z-index: 9999;

    height: 68px;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, .06);

}

/* =========================================================
   HEADER INNER
========================================================= */

.mk-header-inner {

    width: calc(100% - 56px);
    max-width: 1480px;

    height: 68px;

    margin: 0 auto;
    padding: 0;

    display: flex;
    align-items: center;

    /*
     * Logo bleibt links.
     * Navigation schiebt sich über margin-left:auto
     * nach rechts.
     */
    justify-content: flex-start;

    gap: 40px;

    box-sizing: border-box;

}

/* =========================================================
   LOGO
========================================================= */

.mk-header-logo {

    display: flex;
    align-items: center;

    flex-shrink: 0;

    margin: 0;

}

.mk-header-logo img {

    display: block;

    width: auto;
    height: 52px;
    max-height: 52px;

}

/* =========================================================
   NAVIGATION
========================================================= */

.mk-nav {

    height: 68px;

    margin-left: auto;

    flex: 0 0 auto;

    width: auto;

}

.mk-nav-list {

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 28px;

    height: 68px;

    margin: 0;
    padding: 0;

    list-style: none;

}

.mk-nav-list li {

    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;

}

.mk-nav-list a {

    display: flex;
    align-items: center;

    height: 68px;

    color: rgba(255, 255, 255, .92);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color .2s ease,
        opacity .2s ease;

}

.mk-nav-list a:hover {

    color: #ff7a00;

}

/* =========================================================
   NAV ITEM
========================================================= */

.mk-nav-item {

    position: relative;

}

/* =========================================================
   HEADER ACTIONS
   Suche + Login
========================================================= */

.mk-header-actions {

    display: flex;
    align-items: center;

    gap: 8px;

    margin-left: 12px;

    flex: 0 0 auto;

}

/* =========================================================
   GENERIC ACTION BUTTON
========================================================= */

.mk-header-action {

    width: 40px;
    height: 40px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 11px;

    background: rgba(255, 255, 255, .035);

    color: rgba(255, 255, 255, .85);

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;

}

.mk-header-action svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;

}

/* =========================================================
   ACTION HOVER
========================================================= */

.mk-header-action:hover {

    background: rgba(255, 122, 0, .10);

    border-color: rgba(255, 122, 0, .45);

    color: #ff7a00;

    transform: translateY(-1px);

}

/* =========================================================
   LOGIN
========================================================= */

.mk-header-login {

    flex-shrink: 0;

}

/* =========================================================
   SEARCH WRAPPER
========================================================= */

.mk-header-search {

    position: relative;

    display: flex;
    align-items: center;

    flex-direction: row-reverse;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    /*
     * Wichtig:
     * Der Wrapper selbst animiert seine Breite.
     * Dadurch verschiebt sich die Navigation
     * synchron mit dem Suchfeld.
     */
    transition: width .28s ease;

}

/* =========================================================
   SEARCH FORM
========================================================= */

.mk-header-search-form {

    position: absolute;

    top: 0;
    right: 0;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;

    overflow: hidden;

    box-sizing: border-box;

    border: 1px solid transparent;
    border-radius: 11px;

    background: transparent;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        width .28s ease,
        opacity .18s ease,
        background .28s ease,
        border-color .28s ease;

}

/* =========================================================
   SEARCH INPUT
========================================================= */

.mk-header-search-input {

    width: 100%;
    height: 100%;

    min-width: 0;

    padding: 0 48px 0 15px;

    border: 0 !important;
    outline: none !important;

    background: transparent !important;

    color: #fff !important;

    font-family: inherit;
    font-size: 13px;

    box-shadow: none !important;

}

.mk-header-search-input::placeholder {

    color: rgba(255, 255, 255, .45);

}

/* =========================================================
   SEARCH TOGGLE
========================================================= */

.mk-header-search-toggle {

    position: absolute;

    top: 0;
    right: 0;

    z-index: 3;

}

/*
 * Suchbutton bekommt exakt denselben Ruhezustand
 * wie der Login-Button.
 */

.mk-header-search-toggle.mk-header-action {

    background: rgba(255, 255, 255, .035);

    border-color: rgba(255, 255, 255, .10);

    color: rgba(255, 255, 255, .85);

}

/* =========================================================
   SEARCH OPEN
========================================================= */

.mk-header-search.is-open {

    width: 320px;

}

.mk-header-search.is-open .mk-header-search-form {

    width: 320px;

    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    background: rgba(20, 20, 20, .72);

    border-color: rgba(255, 255, 255, .10);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

}

/*
 * Auch geöffnet bleibt die Lupe optisch
 * identisch zum Login-Button.
 */

.mk-header-search.is-open .mk-header-search-toggle.mk-header-action {

    background: rgba(255, 255, 255, .035);

    border-color: rgba(255, 255, 255, .10);

    color: rgba(255, 255, 255, .85);

}

/* =========================================================
   SEARCH / LOGIN HOVER
========================================================= */

.mk-header-search-toggle.mk-header-action:hover,
.mk-header-login:hover {

    background: rgba(255, 122, 0, .10);

    border-color: rgba(255, 122, 0, .45);

    color: #ff7a00;

    transform: translateY(-1px);

}

/* =========================================================
   WORDPRESS ADMIN BAR
========================================================= */

body.admin-bar .mk-header {

    top: 32px;

}

@media (max-width: 782px) {

    body.admin-bar .mk-header {

        top: 46px;

    }

}

/* =========================================================
   DESKTOP → SMALLER DESKTOP
========================================================= */

@media (max-width: 1200px) {

    .mk-header-inner {

        width: calc(100% - 36px);

    }

    .mk-nav-list {

        gap: 20px;

    }

    .mk-nav-list a {

        font-size: 13px;

    }

    .mk-header-logo img {

        height: 48px;
        max-height: 48px;

    }

}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .mk-header {

        height: 64px;

    }

    .mk-header-inner {

        height: 64px;

    }

    .mk-header-logo img {

        height: 46px;
        max-height: 46px;

    }

    .mk-nav {

        height: 64px;

    }

    .mk-nav-list {

        height: 64px;
        gap: 15px;

    }

    .mk-nav-list a {

        height: 64px;

    }

}

/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.mk-header-account {
	position: relative;
}

.mk-header-account-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 280px;

	padding: 10px;

	background: #151515;
	border: 1px solid #292929;
	border-radius: 16px;

	box-shadow:
		0 18px 50px rgba(0, 0, 0, 0.55);

	z-index: 9999;
}

.mk-header-account-menu[hidden] {
	display: none;
}

/* Aktiver Charakter */

.mk-header-account-character {
	padding: 14px 14px 12px;
}

.mk-account-label {
	display: block;

	margin-bottom: 5px;

	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;

	color: #ff7a00;
}

.mk-header-account-character strong {
	display: block;

	font-size: 18px;
	font-weight: 800;

	color: #fff;
}

.mk-header-account-character-info {
	display: block;

	margin-top: 4px;

	font-size: 13px;

	color: #aaa;
}

.mk-header-account-character small {
	display: block;

	margin-top: 4px;

	font-size: 12px;

	color: #777;
}

/* Trennlinie */

.mk-header-account-divider {
	height: 1px;

	margin: 7px 4px;

	background: #292929;
}

/* Menüeinträge */

.mk-header-account-item {
	display: flex;
	align-items: center;
	gap: 11px;

	width: 100%;
	box-sizing: border-box;

	padding: 11px 12px;

	border-radius: 10px;

	text-decoration: none;

	font-size: 14px;
	font-weight: 600;

	color: #ddd;

	transition:
		background 0.15s ease,
		color 0.15s ease;
}

.mk-header-account-item:hover {
	background: #222;
	color: #fff;
}

.mk-header-account-item-icon {
	width: 24px;

	text-align: center;

	font-size: 17px;

	color: #ff7a00;
}

/* Deaktivierte Punkte */

.mk-header-account-item.is-disabled {
	cursor: default;

	opacity: 0.42;
}

.mk-header-account-item.is-disabled:hover {
	background: transparent;
	color: #ddd;
}

.mk-header-account-item.is-disabled > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mk-header-account-item.is-disabled small {
	font-size: 10px;
	font-weight: 500;

	color: #777;
}

/* Abmelden */

.mk-header-account-logout {
	color: #aaa;
}

.mk-header-account-logout:hover {
	color: #fff;
	background: #211717;
}

.mk-header-account-logout
.mk-header-account-item-icon {
	color: #aaa;
}

/* =========================================================
   ACCOUNT BUTTON
========================================================= */

.mk-header-account-toggle {
	display: flex;
	align-items: center;
	gap: 8px;

	padding: 4px 9px 4px 5px;

	cursor: pointer;
}

.mk-header-account-toggle:hover {
	color: #fff;
}

.mk-header-account.is-open
.mk-header-account-chevron {
	transform: rotate(180deg);
}

.mk-header-account-avatar {
	width: 34px;
	height: 34px;

	object-fit: cover;

	border-radius: 8px;

	display: block;

	border: 1px solid #333;
}

.mk-header-account-name {
	font-size: 14px;
	font-weight: 700;

	color: #fff;

	white-space: nowrap;
}

.mk-header-account-chevron {
	width: 13px;
	height: 13px;

	margin-left: 2px;

	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;

	transition: transform 0.2s ease;
}

/* =========================================================
   ACCOUNT – EINGELOGGT
========================================================= */

.mk-header-account {
    flex: 0 0 auto;
    width: max-content;
    max-width: none;
}

.mk-header-account-toggle {
    width: max-content;
    min-width: 145px;
    max-width: none;

    min-height: 52px;

    padding: 6px 14px 6px 6px;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    border-radius: 12px;

    white-space: nowrap;

    flex: 0 0 auto;
}

/* =========================================================
   CHARAKTERBILD
========================================================= */

.mk-header-account-avatar {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    object-fit: cover;

    border-radius: 9px;
}

/* =========================================================
   CHARAKTERNAME
========================================================= */

.mk-header-account-name {
    display: block;

    width: max-content;
    max-width: none;

    white-space: nowrap;

    flex: 0 0 auto;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* =========================================================
   PFEIL
========================================================= */

.mk-header-account-chevron {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    margin-left: 4px;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mk-mobile-menu-toggle {

    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    margin-left: auto;

    flex: 0 0 44px;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 11px;

    background: rgba(255, 255, 255, .035);

    color: #fff;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background .2s ease,
        border-color .2s ease;
}

/* =========================================================
   HAMBURGER STRICHE
========================================================= */

.mk-mobile-menu-toggle span {

    display: block;

    width: 19px;
    height: 2px;

    border-radius: 999px;

    background: currentColor;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

/* =========================================================
   HOVER
========================================================= */

.mk-mobile-menu-toggle:hover {

    background: rgba(255, 122, 0, .10);

    border-color: rgba(255, 122, 0, .45);

    color: #ff7a00;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .mk-header {

        height: 64px;

    }

    .mk-header-inner {

        width: calc(100% - 24px);

        height: 64px;

        gap: 0;

    }

    /* -----------------------------------------------
       LOGO
    ----------------------------------------------- */

    .mk-header-logo {

        margin: 0;

        flex: 0 0 auto;

        min-width: 0;

    }

    .mk-header-logo img {

        height: 46px;
        max-height: 46px;

        width: auto;

    }

    /* -----------------------------------------------
       DESKTOP NAVIGATION KOMPLETT AUSBLENDEN
    ----------------------------------------------- */

    .mk-nav {

        display: none !important;

    }

    /* -----------------------------------------------
       MOBILE HAMBURGER
    ----------------------------------------------- */

    .mk-mobile-menu-toggle {

        display: flex;

        margin-left: auto;

    }

    /* -----------------------------------------------
       SUCHE / LOGIN MOBILE VORERST AUSBLENDEN
    ----------------------------------------------- */

    .mk-header-actions {

        display: none !important;

    }

}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.mk-mobile-menu {

    display: none;

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .mk-mobile-menu {

        display: none;

        position: absolute;

        top: 64px;
        left: 0;
        right: 0;

        width: 100%;

        box-sizing: border-box;

        padding: 12px;

        background: rgba(15, 15, 15, .96);

        border-bottom: 1px solid rgba(255, 255, 255, .08);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        box-shadow:
            0 15px 35px rgba(0, 0, 0, .35);

        z-index: 9998;

    }

    /*
     * MENÜ GEÖFFNET
     */

    .mk-header.mobile-menu-open
    .mk-mobile-menu {

        display: block;

    }

    /*
     * NAVIGATION
     */

    .mk-mobile-nav ul {

        display: flex;

        flex-direction: column;

        gap: 6px;

        margin: 0;
        padding: 0;

        list-style: none;

    }

    .mk-mobile-nav li {

        margin: 0;
        padding: 0;

        list-style: none;

    }

    .mk-mobile-nav a {

        display: flex;

        align-items: center;

        width: 100%;

        min-height: 52px;

        padding: 0 16px;

        box-sizing: border-box;

        border: 1px solid rgba(255,255,255,.06);

        border-radius: 12px;

        background: rgba(255,255,255,.035);

        color: #fff;

        text-decoration: none;

        font-size: 15px;
        font-weight: 700;

        transition:
            background .2s ease,
            border-color .2s ease,
            color .2s ease;

    }

    .mk-mobile-nav a:hover {

        background: rgba(255,122,0,.10);

        border-color: rgba(255,122,0,.35);

        color: #ff7a00;

    }

    /*
     * HAMBURGER → X
     */

    .mk-header.mobile-menu-open
    .mk-mobile-menu-toggle
    span:nth-child(1) {

        transform: translateY(7px) rotate(45deg);

    }

    .mk-header.mobile-menu-open
    .mk-mobile-menu-toggle
    span:nth-child(2) {

        opacity: 0;

    }

    .mk-header.mobile-menu-open
    .mk-mobile-menu-toggle
    span:nth-child(3) {

        transform: translateY(-7px) rotate(-45deg);

    }

}

/* =========================================================
   MOBILE SEARCH
========================================================= */

.mk-mobile-search-item {
    margin-bottom: 6px !important;
}

.mk-mobile-search {

    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 48px;

    box-sizing: border-box;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;

    background: rgba(255,255,255,.035);

}

.mk-mobile-search input {

    width: 100%;
    height: 100%;

    min-width: 0;

    padding: 0 52px 0 16px;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #fff !important;

    font-family: inherit;
    font-size: 14px;

    box-shadow: none !important;

}

.mk-mobile-search input::placeholder {

    color: rgba(255,255,255,.45);

}

.mk-mobile-search button {

    position: absolute;

    top: 0;
    right: 0;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: transparent;

    color: #aaa;

    cursor: pointer;

}

.mk-mobile-search button:hover {

    color: var(--mk-orange);

}

.mk-mobile-search button svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;

}

.one-container .site-content {
    padding: 0px !important; 
}

/* =========================================================
   TOOLS DROPDOWN
   ========================================================= */

.mk-nav-item.has-dropdown {
	position: relative;
}

/*
 * Kleiner Pfeil neben "Tools"
 */

.mk-nav-dropdown-arrow {
	margin-left: 5px;
	font-size: 11px;
	color: #888;
	transition: transform 0.2s ease, color 0.2s ease;
}

.mk-nav-item.has-dropdown:hover .mk-nav-dropdown-arrow {
	color: #ff7a00;
	transform: translateY(1px);
}

/*
 * Dropdown
 */

.mk-tools-dropdown {
	position: absolute;

	top: calc(100% + 8px);
	left: 50%;

	transform: translateX(-50%) translateY(-8px);

	width: 210px;

	padding: 7px;

	background: #111111;

	border: 1px solid #292929;
	border-top: 2px solid #ff7a00;

	border-radius: 10px;

	box-shadow:
		0 15px 40px rgba(0, 0, 0, 0.55);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition:
		opacity 0.18s ease,
		transform 0.18s ease,
		visibility 0.18s ease;

	z-index: 9999;
}

/*
 * Wichtig:
 * Der Abstand zwischen Tools und Dropdown darf
 * nicht dazu führen, dass Hover verloren geht.
 */

.mk-nav-item.has-dropdown::after {
	content: "";

	position: absolute;

	left: 0;
	right: 0;

	top: 100%;

	height: 12px;
}

/*
 * Öffnen
 */

.mk-nav-item.has-dropdown:hover .mk-tools-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;

	transform: translateX(-50%) translateY(0);
}

/*
 * Einzelner Menüpunkt
 */

.mk-tools-dropdown-item {
	display: flex;

	align-items: center;
	justify-content: space-between;

	width: 100%;

	padding: 11px 13px;

	box-sizing: border-box;

	color: #bdbdbd;

	font-size: 13px;
	font-weight: 500;

	text-decoration: none;

	border-radius: 6px;

	transition:
		background 0.18s ease,
		color 0.18s ease,
		padding-left 0.18s ease;
}

/*
 * Hover
 */

.mk-tools-dropdown-item:hover {
	background: rgba(255, 122, 0, 0.10);

	color: #ffffff;

	padding-left: 17px;
}

/*
 * Name
 */

.mk-tools-dropdown-title {
	white-space: nowrap;
}

/*
 * Pfeil rechts
 */

.mk-tools-dropdown-arrow {
	color: #666;

	font-size: 18px;
	line-height: 1;

	transition:
		color 0.18s ease,
		transform 0.18s ease;
}

.mk-tools-dropdown-item:hover .mk-tools-dropdown-arrow {
	color: #ff7a00;

	transform: translateX(3px);
}
