/*
Theme Name: LOKF Legacy
Theme URI: https://next.lokf.at/
Author: GitHub Copilot
Description: Legacy-inspired custom theme for the LOKF WordPress port.
Version: 0.1.0
Text Domain: lokf-legacy
*/

.memorialArea {
    background: #f5f2ee;
    border-top: 4px solid #6f5a4f;
    border-bottom: 1px solid #d9d1ca;
    padding: 35px 0 40px;
}

.memorialBox {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.memorialBox h2 {
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.2;
    color: #2f2f2f;
}

.memorialBox p {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.6;
    color: #3a3a3a;
}

.memorialNotice {
    margin: 22px 0 26px;
    padding: 16px 18px;
    background: #7a1f1f;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}

.memorialPdf {
    width: 100%;
    height: 900px;
    border: 1px solid #d0d0d0;
    background: #f7f7f7;
}

.memorialLink {
    margin-top: 14px;
    font-size: 16px;
}

.search .formular {
    width: 140px;
}

.menuBottom a:empty {
    display: none;
}

.legacy-page-shell .content,
.legacy-search-shell .content {
    min-height: 380px;
}

.legacy-page-shell .content h1,
.legacy-search-shell .content h1 {
    color: #003366;
}

.legacy-page-shell .content,
.legacy-search-shell .content,
.search-results article {
    font-size: 15px;
    line-height: 1.6;
}

body.page-id-24 .legacy-page-shell .content .board-title {
    margin: 0 0 24px;
    color: #9d0000;
    font-size: 30px;
    line-height: 1.15;
    text-align: left;
}

body.page-id-24 .legacy-page-shell .content .board-table {
    width: 100% !important;
    border-collapse: collapse;
}

body.page-id-24 .legacy-page-shell .content .board-table td {
    vertical-align: top;
    padding-top: 12px;
    padding-bottom: 12px;
}

body.page-id-24 .legacy-page-shell .content .board-photo {
    width: 130px;
    padding-right: 16px;
}

body.page-id-24 .legacy-page-shell .content .board-photo img {
    display: block;
    margin: 10px auto !important;
}

body.page-id-24 .legacy-page-shell .content .board-name {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

body.page-id-24 .legacy-page-shell .content .board-details p {
    margin: 0 0 12px;
}

body.page-id-24 .legacy-page-shell .content .board-details strong {
    font-size: 16px;
}

.search-results article + article {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #d9d9d9;
}

.search-results h2 {
    margin-bottom: 8px;
}

.wp-block-image {
    margin: 0;
}

.lokf-nav-toggle,
.submenu-toggle {
    display: none !important;
}

.lokf-nav-toggle {
    appearance: none;
    -webkit-appearance: none;
}

.lokf-nav-toggle__icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
}

.lokf-nav-toggle__icon span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .lokf-nav-toggle__icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.menu-open .lokf-nav-toggle__icon span:nth-child(2) {
    opacity: 0;
}

body.menu-open .lokf-nav-toggle__icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.lokf-site-nav .lokf-menu,
.lokf-site-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lokf-site-nav .lokf-menu {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
}

.lokf-site-nav .lokf-menu > li {
    position: relative;
}

.lokf-site-nav .lokf-menu a {
    display: block;
    color: #fff !important;
    text-decoration: none;
    padding: 20px !important;
}

.lokf-site-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #0d2f4f;
    z-index: 30;
}

.lokf-site-nav .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

.lokf-site-nav li:hover > .sub-menu,
.lokf-site-nav li:focus-within > .sub-menu {
    display: block;
}

.lokf-site-nav .sub-menu li {
    position: relative;
    border-bottom: 1px solid #323537;
}

.lokf-site-nav .sub-menu a {
    padding: 10px 20px !important;
}

footer,
footer > div,
footer .container,
footer .row {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

footer > div {
    max-width: 1040px;
}

footer .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 20px !important;
    box-sizing: border-box;
}

.logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.logos img,
.fb,
.asvo,
.wappen,
.tschrepitsch {
    float: none !important;
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    display: block;
    width: auto;
    max-height: 42px;
}

.tschrepitsch {
    width: 60px;
    max-height: none;
}

.menuBottom {
    float: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.menuBottom a {
    display: inline-block;
}

body.home .home-featured-teaser {
    display: flex;
    justify-content: center;
}

body.home .home-featured-teaser .box {
    float: none !important;
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body.home .home-featured-teaser .contentBox {
    text-align: left;
}

body.home .home-featured-teaser .contentBox p:first-child {
    text-align: center;
}

body.home .home-featured-teaser .contentBox img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto !important;
    margin: 0 auto;
}

@media (max-width: 1280px) {
    .search,
    .flag {
        display: none !important;
    }

    .menueTop {
        width: 100% !important;
    }

    .lokf-site-nav .lokf-menu {
        justify-content: center;
    }

    .lokf-site-nav .lokf-menu a {
        padding: 20px 16px !important;
    }
}

@media (max-width: 900px) {
    html,
    body {
        overflow-x: hidden;
    }

    .header,
    .menuLine,
    .menueTop,
    #page,
    #dropdown,
    .logoRow,
    .container,
    .row,
    .content,
    .smallBoxes,
    .logos,
    .menuBottom {
        width: auto !important;
        max-width: none !important;
    }

    .menuLine,
    .logoRow,
    .container,
    footer .container {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    #dropdown {
        display: block;
        width: 100% !important;
        float: none !important;
    }

    .menueTop,
    #page {
        width: 100% !important;
        float: none !important;
    }

    .lokf-nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        min-width: 48px;
        min-height: 48px;
        padding: 0;
        border: 0;
        background: #0d2f4f;
        color: #fff;
        cursor: pointer;
        margin: 10px 0;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    }

    .lokf-site-nav {
        display: none;
        width: min(70vw, 340px);
        margin: 0 0 14px;
        background: #0d2f4f !important;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
        opacity: 1 !important;
        position: relative;
        z-index: 80;
        overflow: hidden;
    }

    body.menu-open .lokf-site-nav {
        display: block;
        opacity: 1 !important;
    }

    .lokf-site-nav .lokf-menu,
    .lokf-site-nav .lokf-menu li,
    .lokf-site-nav .sub-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        float: none !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .lokf-site-nav .lokf-menu {
        display: block !important;
    }

    .lokf-site-nav .lokf-menu li {
        display: block !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        background: #0d2f4f;
    }

    .lokf-site-nav .lokf-menu li a {
        display: block !important;
        padding: 14px 12px !important;
        white-space: normal !important;
        color: #ffffff !important;
        text-align: left !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .lokf-site-nav .sub-menu {
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding-left: 0 !important;
        background: #163d63 !important;
        min-width: 0;
    }

    .lokf-site-nav .sub-menu > li > a {
        padding-left: 24px !important;
    }

    .lokf-site-nav .sub-menu .sub-menu > li > a {
        padding-left: 36px !important;
    }

    .lokf-site-nav li.mobile-submenu-open > .sub-menu {
        display: block !important;
    }

    .lokf-site-nav .menu-item-has-children {
        display: block !important;
    }

    .lokf-site-nav .menu-item-has-children > a {
        min-width: 0;
        display: flex !important;
        align-items: center;
        gap: 0;
        padding-right: 12px !important;
    }

    .lokf-site-nav .menu-item-has-children > a::after {
        content: "";
        display: block;
        flex: 0 0 10px;
        margin-left: auto;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transform-origin: center;
        pointer-events: none;
    }

    .submenu-toggle {
        display: none !important;
    }

    .lokf-site-nav li.mobile-submenu-open > a::after {
        transform: rotate(-135deg);
    }

    .search,
    .flag {
        display: none !important;
    }

    .logo {
        width: auto !important;
        text-align: center;
    }

    .logo img,
    .content img,
    .content object,
    .content iframe {
        max-width: 100% !important;
        height: auto !important;
    }

    .smallBoxes {
        display: block !important;
    }

    .smallBoxes .box,
    .smallBoxes .box.last {
        float: none !important;
        width: 100% !important;
        margin: 0 0 18px 0 !important;
    }

    .menuBottom {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    footer .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .logos {
        justify-content: center;
    }

    footer .menuBottom {
        justify-content: center;
    }

    body:not(.home) .row {
        width: auto !important;
        padding: 18px 16px !important;
    }

    body:not(.home) .legacy-page-shell .content,
    body:not(.home) .legacy-search-shell .content {
        max-width: 760px;
        margin: 0 auto;
        padding: 22px 18px !important;
        background: rgba(255, 255, 255, 0.88);
        text-align: left !important;
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    }

    body:not(.home) .legacy-page-shell .content p,
    body:not(.home) .legacy-page-shell .content li,
    body:not(.home) .legacy-search-shell .content p,
    body:not(.home) .legacy-search-shell .content li {
        font-size: 18px;
        line-height: 1.75;
        text-align: left !important;
    }

    body:not(.home) .legacy-page-shell .content h1,
    body:not(.home) .legacy-page-shell .content h2,
    body:not(.home) .legacy-page-shell .content h3,
    body:not(.home) .legacy-page-shell .content h4 {
        text-align: left !important;
    }

    body:not(.home) .legacy-page-shell .content img,
    body:not(.home) .legacy-search-shell .content img {
        display: block;
        margin: 18px auto;
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 640px) {
    .search {
        display: none;
    }

    .content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.page-id-24 .legacy-page-shell .content .board-table td {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.page-id-24 .legacy-page-shell .content .board-photo {
        width: 92px;
        padding-right: 8px;
    }

    body.page-id-24 .legacy-page-shell .content .board-photo img {
        width: 82px;
        max-width: 82px !important;
        margin: 6px auto !important;
    }

    body.page-id-24 .legacy-page-shell .content {
        width: auto !important;
        max-width: none !important;
        padding: 16px 12px !important;
        overflow: visible;
        box-sizing: border-box;
    }

    body.page-id-24 .legacy-page-shell .content .board-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    body.page-id-24 .legacy-page-shell .content .board-table {
        table-layout: fixed;
    }

    body.page-id-24 .legacy-page-shell .content p,
    body.page-id-24 .legacy-page-shell .content li {
        font-size: 15px !important;
        line-height: 1.5 !important;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    body.page-id-24 .legacy-page-shell .content .board-name {
        font-size: 18px;
    }

    body.page-id-24 .legacy-page-shell .content .board-table td:last-child {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    body.page-id-24 .legacy-page-shell .content {
        padding: 14px 10px !important;
    }

    body.page-id-24 .legacy-page-shell .content .board-title {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 14px;
    }

    body.page-id-24 .legacy-page-shell .content .board-table {
        table-layout: fixed;
    }

    body.page-id-24 .legacy-page-shell .content .board-table td {
        display: table-cell;
        padding-top: 8px;
        padding-bottom: 8px;
        vertical-align: top;
    }

    body.page-id-24 .legacy-page-shell .content .board-table tr {
        display: table-row;
    }

    body.page-id-24 .legacy-page-shell .content .board-photo {
        width: 78px !important;
        padding-right: 8px;
        text-align: left;
        padding-bottom: 8px;
    }

    body.page-id-24 .legacy-page-shell .content .board-photo img {
        width: 72px;
        max-width: 72px !important;
        margin: 4px 0 !important;
    }

    body.page-id-24 .legacy-page-shell .content .board-details {
        width: auto !important;
        min-width: 0;
        text-align: left;
    }

    body.page-id-24 .legacy-page-shell .content .board-name {
        margin-top: 0;
        font-size: 17px;
    }

    body.page-id-24 .legacy-page-shell .content .board-details p,
    body.page-id-24 .legacy-page-shell .content .board-details li {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 900px) {
    body.home .logoRow {
        height: auto;
        margin-top: 8px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    body.home .logo,
    body.home .logo a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body.home .row {
        width: auto !important;
        padding: 20px 16px !important;
    }

    body.home .home-hero {
        padding: 24px 20px !important;
        text-align: center;
        background-position: center top;
        background-size: cover;
        background-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    }

    body.home .home-hero h1 {
        margin: 0 0 10px;
        font-size: 32px;
        line-height: 1.15;
    }

    body.home .home-hero h2 {
        margin: 0 0 16px;
        font-size: 30px;
        line-height: 1.15;
    }

    body.home .home-hero h3,
    body.home .home-hero h4 {
        margin-left: 0;
        margin-right: 0;
    }

    body.home .home-hero p {
        margin-top: 16px !important;
    }

    body.home .home-hero p:first-of-type {
        text-align: center;
    }

    body.home .home-hero p:first-of-type img {
        display: block;
        margin: 0 auto;
        width: min(240px, 70vw);
        height: auto !important;
    }

    body.home .home-featured-teaser {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px;
    }

    body.home .home-featured-teaser .box {
        display: block !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        clear: both !important;
        float: none !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    body.home .home-featured-teaser .headingBox {
        height: auto;
        padding: 0 12px;
    }

    body.home .home-featured-teaser .headingBox h3 {
        margin: 0;
        padding: 16px 0;
    }

    body.home .home-featured-teaser .contentBox {
        padding: 16px;
        text-align: left;
    }

    body.home .home-featured-teaser .contentBox p {
        margin-top: 14px !important;
    }

    body.home .home-featured-teaser .contentBox p:first-child {
        margin-top: 0 !important;
        text-align: center;
    }

    body.home .home-featured-teaser .contentBox img {
        display: block;
        width: 100% !important;
        max-width: 340px;
        height: auto !important;
        margin: 0 auto;
    }

    body.home .home-teasers {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px;
    }

    body.home .home-teasers .box,
    body.home .home-teasers .box.last {
        display: block !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        clear: both !important;
        float: none !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    body.home .home-teasers .headingBox {
        height: auto;
        padding: 0 12px;
    }

    body.home .home-teasers .headingBox h3 {
        margin: 0;
        padding: 16px 0;
    }

    body.home .home-teasers .contentBox {
        padding: 16px;
        text-align: left;
    }

    body.home .home-teasers .contentBox p {
        margin-top: 14px !important;
    }

    body.home .home-teasers .contentBox p:first-child {
        margin-top: 0 !important;
        text-align: center;
    }

    body.home .home-teasers .contentBox img {
        display: block;
        width: 100% !important;
        max-width: 340px;
        height: auto !important;
        margin: 0 auto;
    }

    body.home footer .logos {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 12px 0;
    }
}

@media (max-width: 900px) and (min-width: 601px) {
    .menuLine {
        background: transparent !important;
        box-shadow: none !important;
    }

    #dropdown {
        background: transparent !important;
    }

    .lokf-nav-toggle {
        margin-top: 0;
        margin-bottom: 12px;
    }
}

@media (max-width: 600px) {
    body.home .logo img {
        max-width: 220px;
        margin: 0 auto !important;
    }

    body.home .home-hero {
        padding: 20px 16px !important;
    }

    body.home .home-hero h1 {
        font-size: 26px;
    }

    body.home .home-hero h2 {
        font-size: 24px;
    }

    body.home .home-hero h3 {
        font-size: 22px;
        line-height: 1.2;
    }

    body.home .home-teasers .contentBox {
        padding: 14px;
    }

    body.home .home-featured-teaser .contentBox {
        padding: 14px;
    }

    body:not(.home) .legacy-page-shell .content,
    body:not(.home) .legacy-search-shell .content {
        padding: 18px 14px !important;
    }

    body:not(.home) .legacy-page-shell .content p,
    body:not(.home) .legacy-page-shell .content li,
    body:not(.home) .legacy-search-shell .content p,
    body:not(.home) .legacy-search-shell .content li {
        font-size: 17px;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    body.home .row {
        padding: 16px 12px !important;
    }

    body.home .home-featured-teaser {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.home .home-teasers {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.home .home-featured-teaser .box {
        display: block !important;
        clear: both !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
    }

    body.home .home-teasers .box,
    body.home .home-teasers .box.last {
        display: block !important;
        clear: both !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
    }

    body.home .home-featured-teaser .headingBox,
    body.home .home-featured-teaser .contentBox {
        width: 100% !important;
        box-sizing: border-box;
    }

    body.home .home-teasers .headingBox,
    body.home .home-teasers .contentBox {
        width: 100% !important;
        box-sizing: border-box;
    }

    body.home .home-featured-teaser .contentBox img {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.home .home-teasers .contentBox img {
        width: 100% !important;
        max-width: 100% !important;
    }
}
