/*
Theme Name: Hauszi
Description: Own theme of hauszi.de, rebuilt with current core functions. Colors, type and layout follow the previous site.
Author: hauszi.de
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: hauszi
*/

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(assets/fonts/quicksand-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(assets/fonts/quicksand-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --hz-bg: #f8f4ef;
    --hz-text: #4d4d4d;
    --hz-green: #4abf29;
    --hz-link-hover: #dab49d;
    --hz-border: #e1e8e1;
    --hz-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 137.5%; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--hz-bg);
    color: var(--hz-text);
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.8;
    overflow-x: hidden;
}

a { color: var(--hz-green); text-decoration: none; }
a:hover, a:focus { color: var(--hz-link-hover); }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
ul, ol { margin: 0 0 1.5em; padding-left: 1.4em; }
p { margin: 0 0 1.75em; }
::selection { background: #47c524; color: #000; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .2em;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--hz-text);
}
h1 { font-size: 2.909rem; line-height: 1.4; }
h2 { font-size: 2.182rem; line-height: 1.3; }
h3 { font-size: 1.09rem; line-height: 1.3; }
h4 { font-size: .909rem; line-height: 1.2; }
h5 { font-size: .818rem; line-height: 1.2; }
h6 { font-size: .682rem; line-height: 1.25; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.hz-container { width: calc(100% - 40px); max-width: calc(var(--hz-width) + 40px); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: relative; z-index: 99; background: var(--hz-bg); border-bottom: 1px solid #ebe6df; }
.site-header .main-navigation { margin-left: auto; }
.site-header .hz-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-branding { padding: 1em 0; line-height: 1; }
.site-branding a.logo { display: inline-block; }
.site-branding img { width: 60px; height: auto; }
.site-description { margin: 0; font-size: .636rem; line-height: 1.5; color: var(--hz-text); }

.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > ul { display: flex; align-items: center; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 0 1.04em; color: #333; line-height: 3; font-size: 1rem; }
.main-navigation a:hover, .main-navigation a:focus { color: #0f172a; }
.main-navigation .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: .4em;
    height: .4em;
    margin-left: .5em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-.15em) rotate(45deg);
}
.main-navigation .sub-menu {
    position: absolute;
    left: -999em;
    top: 100%;
    width: 240px;
    background: #fff;
    border: 1px solid #ebe6df;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .1);
    line-height: 1.45;
}
.main-navigation .sub-menu a { padding: .9em 1em; line-height: 1.45; border-bottom: 1px solid #ebe6df; }
.main-navigation .sub-menu .sub-menu { top: -1px; }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { left: 0; }
.main-navigation .sub-menu li:hover > .sub-menu,
.main-navigation .sub-menu li:focus-within > .sub-menu { left: 100%; }

.header-search { position: relative; }
.header-search summary { list-style: none; cursor: pointer; color: var(--hz-green); padding: 0; line-height: 1; }
.header-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.header-search summary::-webkit-details-marker { display: none; }
.header-search form { position: absolute; right: 0; top: 100%; background: #fff; padding: .5em; border: 1px solid #ebe6df; }
.search-field { font: inherit; font-size: .8rem; padding: .5em; border: 1px solid #ddd; border-radius: 2px; background: #f9fafb; }
.search-submit { font: inherit; font-size: .8rem; padding: .5em 1em; border: 0; border-radius: 2px; background: var(--hz-green); color: #000; cursor: pointer; }

.menu-toggle { display: none; background: none; border: 0; font: inherit; color: var(--hz-text); padding: .5em; cursor: pointer; }
.menu-toggle span { display: block; width: 1.4em; height: 2px; margin: .3em 0; background: currentColor; }

/* Layout */
.site-content { padding: 0; }
.has-sidebar .hz-container { display: flex; align-items: flex-start; }
#primary { width: 100%; margin: 4em 0; min-width: 0; }
.has-sidebar #primary { width: 66%; margin-top: 7em; }
#secondary { width: 34%; margin: 4em 0 2.5em; padding-left: 30px; word-break: break-word; line-height: 2; }

/* Lists */
.archive-description { margin: 154px 0 104px; padding: 0 67px; }
.archive-description h1 { font-size: 1.4545rem; font-weight: 600; color: #333; margin-bottom: .5em; }
.archive-description p { margin: 0; }

.post-list { padding: 0; }
.post-card { display: flex; align-items: center; gap: 32px; margin: 0 0 44px; }
.post-card .thumb { flex: 0 0 300px; width: 300px; }
.post-card .thumb img { display: block; width: 300px; height: auto; border-radius: 6px; }
.post-card .body { flex: 1; min-width: 0; }
.post-card .cat-links { display: block; margin-bottom: 1.8em; font-size: .636rem; font-weight: 600; line-height: 1.45; }
.post-card .entry-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.post-card .entry-title a { color: var(--hz-text); }
.post-card .entry-title a:hover { color: var(--hz-link-hover); }

.pagination { margin: 3em 0; }
.pagination .page-numbers { display: none; }
.pagination .next.page-numbers {
    display: inline-block;
    padding: .4em 1em;
    border: 1px solid #47c524;
    background: #47c524;
    color: #000;
    border-radius: 2px;
}

/* Single and page */
.entry-article { padding: 0 60px 0 43px; }
.entry-article .entry-title { font-size: 2.27rem; line-height: 1.3; }
.breadcrumbs, .breadcrumbs * { font-size: .682rem; line-height: 1.6; }
.breadcrumbs ul { list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline; }
.breadcrumbs li::after { content: ' / '; }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs .current { color: var(--hz-text); }
.entry-header { margin-bottom: 1.5em; }
.entry-article .entry-title, .entry-content h2, .entry-content h3 { color: #333; }
.entry-meta, .entry-meta * { font-size: .59rem; line-height: 1.45; color: var(--hz-green); font-weight: 600; }
.entry-meta a:hover { color: var(--hz-link-hover); }
.entry-content { word-wrap: break-word; }
.entry-content::after { content: ''; display: table; clear: both; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { margin: 0 0 1.75em; }
.entry-content figure img { box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.entry-content figcaption, .wp-block-image figcaption {
    font-size: 12px;
    color: #555;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}
.entry-content blockquote { margin: 0 0 1.75em; padding-left: 1em; border-left: 4px solid var(--hz-green); color: #020202; }

.custom-share-icons { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.custom-share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    transition: all .25s ease;
}
.custom-share-icons a:hover { border-color: #333; transform: translateY(-2px); }
.custom-share-icons img { width: 26px; height: 26px; }

.post-disclaimer {
    background: #fef9f5;
    border-left: 4px solid #e8b06d;
    color: #444;
    padding: 1rem 1.5rem;
    margin-top: 2.5rem;
    font-size: .95rem;
    font-style: italic;
    border-radius: 6px;
    line-height: 1.6;
}
.author-box {
    margin-top: 50px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box strong { display: block; margin-bottom: 5px; color: #2d2d2d; }
.author-box .bio { margin: 0; }
.author-box .bio a { color: #5aaf7f; }

.post-navigation { margin: 2em 0; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 2em; }

.related-posts { margin: 3em 0; }
.related-posts h2 { font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5em; }
.related-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.related-grid .entry-title { margin: .6em 0 .2em; font-size: .9rem; }
.related-grid .entry-title a { color: var(--hz-text); }

/* Footer */
.site-footer { margin-top: 2em; background: var(--hz-bg); border-top: 1px solid var(--hz-border); font-size: 14px; line-height: 1.4; }
.site-footer .hz-container { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; padding-bottom: 20px; min-height: 80px; }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; }
.footer-navigation li a { padding: 0 .5em; }
.footer-navigation li:first-child a { padding-left: 0; }
.site-footer .copyright { margin: 0; }
.footer-social a { display: inline-block; color: #ea575a; }

@media (max-width: 921px) {
    .has-sidebar .hz-container { display: block; }
    .has-sidebar #primary, #secondary { width: 100%; }
    #secondary { padding-left: 0; margin-top: 0; }
    .menu-toggle { display: block; }
    .main-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #ebe6df; }
    .main-navigation.is-open { display: block; }
    .main-navigation > ul { display: block; }
    .main-navigation .sub-menu { position: static; width: auto; border: 0; box-shadow: none; padding-left: 1em; }
    .main-navigation .menu-item-has-children > a::after { display: none; }
    .entry-article { padding: 0; }
    .has-sidebar #primary { margin-top: 4em; }
    .site-header .hz-container { position: relative; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .post-card { flex-direction: column; align-items: stretch; gap: 1em; }
    .post-card .thumb { flex-basis: auto; width: 100%; }
    .post-card .thumb img { width: 100%; height: auto; }
    .related-grid { grid-template-columns: 1fr; }
    .archive-description { padding: 0 .5em; }
}

.hover-zoom img { transition: transform .4s ease, box-shadow .4s ease, filter .4s ease; transform-origin: center center; }
.hover-zoom img:hover { transform: scale(1.08); box-shadow: 0 10px 25px rgba(0, 0, 0, .2); filter: brightness(1.1); }
