/*
Theme Name: Gutachten
theme uri: https://www.gutachten.org
author: Armin Causevic
author uri: https://www.gutachten.org
description: Gutachten.org
version: 1.0.1
license: gnu general public license v2 or later
license uri: http://www.gnu.org/licenses/gpl-2.0.html
text domain: Gutachten
*/

/* basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafb;
}


header,
footer {
    background: #333;
    color: #fff;
}

footer {
    padding: 3.75rem 4rem;
}

footer h2 {
    font-weight: 600;
    font-size: 19px;
    padding-bottom: 1rem;
}

footer ul {
    margin-top: -0.25rem;
    list-style-type: none;
}

footer a {
    text-decoration: none;
}

footer li {
    padding: 0.55rem 0px;
}

footer li a {
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none !important;
}

.footer-copyright {
    margin-top: 5rem;
}

header.header-block {
    border-bottom: 1px solid #eff0f0;
    padding: 0.75rem 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: fit-content;
    display: flex;
    width: 100%;
    z-index: 10000;
}

header .container {
    align-items: center;
}

/* menu */

nav.menu-desktop li.menu-item-has-children {
    position: relative;
}

nav.menu-desktop li.menu-item-has-children:hover {
    background-color: #eff0f0;
    border-radius: 0.25rem 0.25rem 0 0;
}

nav li.menu-item-has-children::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 5px;
    background-image: url('assets/menu_submenu.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    /* for rotation animation */
}

/* submenu styling */
nav.menu-desktop li.menu-item-has-children .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translatey(-10px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
    min-width: 200px;
    z-index: 1000;
    background-color: #f8fafb;
    border-right: 1px solid #eff0f0;
    border-left: 1px solid #eff0f0;
    border-bottom: 1px solid #eff0f0;
    border-radius: 0 0 0.25rem 0.25rem;
    border-top: 1px solid #eff0f0;
}

/* hover/focus states */
nav li.menu-item-has-children:hover::after,
nav li.menu-item-has-children:focus-within::after {
    transform: rotate(180deg);
}

nav.menu-desktop li.menu-item-has-children:hover .sub-menu,
nav.menu-desktop li.menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translatey(0);
    display: block;
}

/* accessibility: keyboard navigation support */
nav.menu-desktop li.menu-item-has-children a:focus+.sub-menu,
nav.menu-desktop li.menu-item-has-children .sub-menu:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translatey(0);
}

ul.sub-menu {
    justify-content: start !important;
}

header a,
footer a {
    color: #fff;
    text-decoration: none;
}

/* footer widget columns */

.widget-column {
    display: flex;
    flex-direction: column;
}

footer p {
    color: #fff;
    margin: 0;
}


/* font family */
body,
button,
input,
select,
optgroup,
textarea {
    font-family: 'noto sans', -apple-system, blinkmacsystemfont, "segoe ui", roboto, helvetica, arial, sans-serif;
}

/* headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'noto sans', -apple-system, blinkmacsystemfont, "segoe ui", roboto, helvetica, arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #273238;
}

h3 {
    font-size: 1.625rem;
    font-weight: 500;
    color: #526e68;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #273238;
}

p {
    font-size: 1rem;
    font-weight: 500;
    color: #273238;
    margin-bottom: 1rem;
}

/* default body text */
body {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* additional typography enhancements */
a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #005177;
    text-decoration: underline;
}

/* form elements */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    font-family: 'noto sans', -apple-system, blinkmacsystemfont, "segoe ui", roboto, helvetica, arial, sans-serif;
    font-weight: 700;
}

/* menu items*/

.menu-desktop ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
}

.menu-desktop li {
    padding: 0.25rem 0.75rem;
}

.menu-desktop li a {
    font-size: 1rem;
    font-weight: 400;
    color: #273238;
    text-decoration: none;
}

.menu-desktop li a::marker {
    display: none !important;
}

.menu-desktop li a:hover {
    color: #fc7019;
}

.button-menu {
    display: none;
}

/*footer */

.footer-copyright>.container {
    align-items: center;
}

.footer-widgets .widget-column {
    width: fit-content;
    padding: 0 2.5rem;
}

.footer-widgets .footer-column-1 {
    flex-grow: 1;
    padding: 0 0 0 0px;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 2.25rem;
    width: 2.25rem;
}

.social-link:hover {
    opacity: 0.8;
    transform: translatey(-2px);
}

.social-icon {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
    object-position: center;
}

/* for text-only links */
.social-link:not(:has(img)) {
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #333;
}

.social-link:not(:has(img)):hover {
    background: #e0e0e0;
}


/*buttons*/

a.button,
a.button:hover {
    text-decoration: none;
}

.button p {
    margin: 0px;
}

.button-primary {
    color: #273238;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    width: fit-content;
    text-align: center;
    min-width: 250px;
    border-radius: 0.25rem;
}

/* layout styles */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-wrap {
    display: flex;
    flex-wrap: wrap;
}

.content-area {
    width: 100%;
}

.left-sidebar,
.right-sidebar {
    display: none;
}

/* clear floats */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 5rem 0;
}

.post-card {
    border: 1px solid #eee;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 5px 1rem rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* entry meta */
.entry-meta {
    font-size: 0.875em;
    color: #666;
    margin: 0.75rem 0;
}

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 5rem 0;
}

.blog-pagination-block {
    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
    }

    .page-numbers {
        font-size: 1rem;
        font-weight: 400;
        color: #000;
    }

    .page-numbers.current {
        font-weight: 500;
        color: #FC7019;
    }

    a.next,
    a.prev {
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.0;
        color: #FC7019;
        border: 1px solid #FC7019;
        padding: 0.75rem 1.25rem;
        border-radius: 0.25rem;
        display: flex;
        width: fit-content;
        flex-direction: row;
        align-items: center;
        text-decoration: none;
        overflow: hidden;

        .material-icons {
            height: 0.9rem;
            font-size: 1rem;
            width: 0.5rem;
            line-height: 1;
        }

        .material-icons.prev {
            margin-right: 0.9rem;
            margin-left: -0.4rem;
        }

        .material-icons.next {
            margin-left: 0.25rem;
        }
    }
}

/* search results */
.search-result {
    margin-bottom: 5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

/* 404 page */
.error-404 {
    text-align: center;
    padding: 3.75rem 0;
}

.widget_categories ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

/* comments area */
.comments-area {
    margin: 2em 0;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 4px;
}

.comments-title {
    margin-bottom: 1em;
    font-size: 1.5em;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 1.5em;
    padding: 1em;
    background: #fff;
    border-radius: 4px;
}

.comment-meta {
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.comment-author {
    display: flex;
    align-items: center;
}

.comment-author .avatar {
    margin-right: 10px;
    border-radius: 50%;
}

.comment-content {
    margin-top: 0.5em;
}

.comment-reply-link {
    font-size: 0.8em;
    text-decoration: none;
}

.comment-respond {
    margin-top: 2em;
}

.comment-form {
    display: grid;
    gap: 1em;
}

.comment-form textarea {
    width: 100%;
    min-height: 150px;
}

.no-comments {
    color: #666;
    font-style: italic;
}

/*flex*/

.flex {
    display: flex;
    flex-direction: row;
}

.flex-reverse {
    flex-direction: row-reverse;
}

.column-reverse {
    flex-direction: column-reverse;
}


.flex-wrap {
    flex-wrap: wrap;
}

.flex-no-wrap {
    flex-wrap: nowrap;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.flex-expand {
    flex-grow: 1;
}

.flex-1-2 {
    width: 50%;
}

.flex-1-3 {
    width: 33.33333%;
}

.flex-1-4 {
    width: 25%;
}

.flex-1-5 {
    width: 20%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.grid-item {
    direction: ltr;
}

.grid-reverse {
    grid-auto-flow: dense;
    direction: rtl;
}

.grid-1-2 {
    grid-template-columns: repeat(auto-fill, minmax(min(550px, 50%), 1fr));
}

.grid-1-3 {
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 33%), 1fr));
}

.grid-1-4 {
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 25%), 1fr));
}

.grid-1-5 {
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 20%), 1fr));
}

.center-content {
    margin-left: auto;
    margin-right: auto;
}

/*mobile menu*/
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-toggle .material-icons,
.mobile-menu-close .material-icons {
    color: #191919;
}

/* mobile menu panel */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu[aria-hidden="false"] {
    transform: translatex(100%);
}

.mobile-menu .logo-block {
    padding: 1rem;
    border-bottom: 1px solid #eff0f0;
}

/* close button */
.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
}

/* menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* menu list styling */
.mobile-menu-list {
    padding: 1.5rem 1rem;
    margin: 0;
    list-style: none;
}

.mobile-menu-list li {
    margin-bottom: 15px;
}

.mobile-menu-list a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
}

.mobile-menu-list li.button a {
    padding: 0;
}

/* submenu handling */
.mobile-menu-list .menu-item-has-children {
    position: relative;
}

.mobile-menu-list .menu-item-has-children>a {
    pointer-events: none;
}

.mobile-menu-list .menu-item-has-children::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    cursor: pointer;
    transform: rotate(0deg) !important;
}

.mobile-menu-list .menu-item-has-children.active::after {
    transform: rotate(180deg) !important;
}

.mobile-menu-list .sub-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.3s ease,
        opacity 0.2s ease,
        padding 0.3s ease;
    padding: 0 0 0 1rem;
    /* match your item padding */
}

.mobile-menu-list .sub-menu.active {
    max-height: fit-content;
    opacity: 1;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;

}

/*singular page/post*/

.wp-singular main {
    padding-top: 4rem;
}

.wp-singular .entry-header {
    background-color: #f8fafb;
}

.wp-singular .entry-title {
    color: #273238;
    font-size: 3rem;
    font-weight: 600;
}

.wp-singular .entry-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

.wp-singular .entry-content blockquote {
    border-left: 2px solid #273238;
    padding-left: 1rem;
}

.wp-singular .entry-content blockquote p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
}

.entry-singular.layout-1 {

    .entry-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .entry-data {
        margin: 0 auto;
        max-width: 768px;
    }

    .entry-title {
        text-align: center;
        font-size: 3rem;
        font-weight: 700;
        color: #000;
    }

    .entry-excerpt {
        margin-top: 1.5rem;
        text-align: center;
        font-size: 1rem;
        font-weight: 400;
        color: #000;
    }

    .entry-image {
        margin-top: 1.5rem;
        width: 100%;
        height: 600px;

        img {
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
    }
}

.entry-meta {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-top: 1.5rem;

    .author-info {
        display: flex;
        flex-direction: row;
        width: fit-content;
        margin: 0 auto;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;

        .author-avatar {
            border-radius: 100%;
            overflow: hidden;
            height: 24px;
            width: 24px;
        }

        .author-name a {
            color: #000;
            text-decoration: none;
        }
    }
}

.related-posts-block {
    margin-top: 7rem;

    h2.related-posts-title {
        text-align: center;
        color: #000;
        font-size: 3rem;
        font-weight: 700;
    }
}


/* responsive css */

@media only screen and (max-width: 999px) {
    .flex {
        flex-direction: column;
    }

    .flex-1-2,
    .flex-1-3,
    .flex-1-4,
    .flex-1-5,
    .blog-item {
        width: 100%;
        max-width: 100% !important;
        min-width: auto !important;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)) !important;
    }

    header .site-logo {
        flex-grow: 1;
    }

    .mobile-menu-toggle {
        display: block;
    }

    footer {
        padding: 1rem 0;
    }

    .footer-widgets .widget-column {
        width: fit-content;
        padding: 0.75rem 0rem;
    }
}