/*
Theme Name: Martina Haller 
Theme URI: https://martinahaller.at
Author: Andibar
Author URI: https://andibar.at
Description: 
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: martinahaller
*/

/* ============================================
   RESET / BASE
   ============================================ */

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */

:root {
    --font-large:  clamp(40px, 3vw, 60px);
    --font-medium: clamp(32px, 3vw, 50px);
    --font-small:  clamp(30px, 3vw, 40px);
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
}

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}


/* ============================================
   FONTS
   ============================================ */

/* Metrisch angepasste Fallback-Fonts um CLS beim Font-Swap zu minimieren */
@font-face {
    font-family: "abril-display-fallback";
    src: local("Georgia");
    size-adjust: 105%;
    ascent-override: 95%;
    descent-override: 22%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "poppins-fallback";
    src: local("Arial");
    size-adjust: 110%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: abril-display, "abril-display-fallback", serif;
    font-weight: 400;
    font-style: normal;
    color:var(--color-primary);
}

h2 {
    font-size: var(--font-large);
    line-height: 1.1;
}

body:not(.home) h1 {
    font-size: var(--font-large);
}

p {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 1.7;
    max-width: 600px;
}

a{
    color: var(--color-secondary);
    text-decoration: underline;
        text-underline-offset: 2px;
}

a:hover{
    text-decoration-thickness: 3px;

}

.subheadline {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 1.3px;
    line-height: 1.6;
}

.divider {
    border: none;
    border-top: 1px solid var(--color-secondary);
    width: 110px;
    margin: 0;
}


/* ============================================
   UTILITY — Visually Hidden (Barrierefreiheit)
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    margin: -1px;
}


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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    background-color: transparent;
}

.site-header.nav-is-open {
    background-color: var(--color-background);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 55px;
}

.site-logo img {
    height: 80px;
    width: auto;
    display: block;
    position: absolute;
    top: 15px;
    left: 30px;
}

.site-nav {
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

 .site-nav ul {

}

 .site-nav .nav-list li {
    height: 100%;
     display:flex;
    align-items: center;
}

.site-nav .nav-list li a {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 17px;
    text-decoration: none;
    color: var(--color-primary);
    letter-spacing: 0.03em;
    height: 60%;
    display:flex;
    align-items: center;
    padding:5px 10px;
}

.site-nav .nav-list li a:hover {
    background-color: var(--color-secondary-light);
    color:white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 4px;
    line-height: 0;
}

.nav-icon-fill {
    fill: var(--color-primary);
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.site-nav-mobile {
    display: none;
    background-color: var(--color-background);
    padding: 24px 20px 32px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.site-nav-mobile .nav-list-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-nav-mobile .nav-list-mobile li a {
    display: block;
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--color-primary);
    padding: 17px 0;
    border-bottom: 1px solid var(--color-secondary-light);
}


.site-nav-mobile .nav-list-mobile li a:hover {
    color: var(--color-secondary);
}

.site-nav-mobile[aria-hidden="false"] {
    display: block;
}


/* ============================================
   DROPDOWN-NAVIGATION (Desktop)
   ============================================ */

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

.site-nav .menu-item-has-children > a {
    cursor: pointer;
}

.site-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: var(--color-background);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 9100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.site-nav .menu-item-has-children > a[aria-expanded]::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.site-nav .menu-item-has-children > a[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.site-nav .sub-menu li a {
    display: block;
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 17px;
    text-decoration: none;
    color: var(--color-primary);
    padding: 20px 20px;
    white-space: nowrap;
    width: 100%;
}

.site-nav .sub-menu li a:hover {
    background-color: var(--color-secondary-light);
    color: var(--color-primary);
}

/* ============================================
   DROPDOWN-NAVIGATION (Mobile)
   ============================================ */

.site-nav-mobile .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
      margin-top:-10px;
      border-bottom:1px solid var(--color-secondary-light);
}

.site-nav-mobile .sub-menu li a {
    padding-left: 10px !important;
    font-size: 1rem;
    border-top: none;
    border-bottom: 1px solid var(--color-secondary-light);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
}


.site-nav-mobile .sub-menu li a::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2349543E' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.site-nav-mobile .nav-list-mobile > li.menu-item-has-children > a {
    pointer-events: none;
    cursor: default;
    border-bottom: none;
}
.site-nav-mobile .nav-list-mobile li:nth-child(2) a {
  border:none;
}



/* ============================================
   BUTTON SYSTEM
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-primary);
    padding: 16px 16px 14px 16px;
    font-size: 1rem;
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    line-height: 1;
    width: max-content;
}

.btn:focus-visible {
    outline: 4px dashed var(--color-primary);
    outline-offset: 3px;
    background-color: transparent;
}

.btn.primary {
    color: var(--color-primary);
}

.btn:hover {
    background-color: var(--color-secondary-light);
    color:white;
    border:1px solid var(--color-secondary-light);
}

.btn.tertiary {
    border: none;
    border-bottom: 1px solid var(--color-primary);
    padding: 5px 16px;
    border-radius: 0;
    gap: 10px;
    margin-top:30px;
    color:var(--color-primary);
}

.btn.tertiary:hover {
    background-color: transparent;
    border-bottom: 1px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn.tertiary::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 14px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10.13 9'%3E%3Cpath fill-rule='evenodd' d='M0,4.5c0-.28.22-.5.5-.5h7.92L5.27.85c-.2-.2-.2-.51,0-.71.2-.2.51-.2.71,0l4,4c.2.2.2.51,0,.71,0,0,0,0,0,0l-4,4c-.2.2-.51.2-.71,0s-.2-.51,0-.71l3.15-3.15H.5c-.28,0-.5-.22-.5-.5'/%3E%3C%2Fsvg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10.13 9'%3E%3Cpath fill-rule='evenodd' d='M0,4.5c0-.28.22-.5.5-.5h7.92L5.27.85c-.2-.2-.2-.51,0-.71.2-.2.51-.2.71,0l4,4c.2.2.2.51,0,.71,0,0,0,0,0,0l-4,4c-.2.2-.51.2-.71,0s-.2-.51,0-.71l3.15-3.15H.5c-.28,0-.5-.22-.5-.5'/%3E%3C%2Fsvg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
    margin-top: -3px;
}

.btn.tertiary-back{
   padding-left:0;
}


.btn.tertiary-back::after{
    display:none;
}

.btn.tertiary-back::before{
       content: '';
    display: inline-block;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M12 8a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5a.5.5 0 0 1 .5.5'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M12 8a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5a.5.5 0 0 1 .5.5'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
    margin-top: -3px;
    
}


.btn.secondary {
    background-color: var(--color-secondary-light);
    color: var(--color-primary);
    border-color: var(--color-secondary-light);
    font-weight:300;
}

.btn.secondary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    width: 100%;
    height: 99vh;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1000;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.2) 10%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-bg-desktop {
    display: block;
}

.hero-bg-mobile {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    width: 100%;
    height: 100%;
    padding:30px;
}

.hero-logo {
    max-width: 300px;
    width: 300px;
    height: auto;
}

.hero-title {
    font-size: 1px;
    opacity: 0;
    position: absolute;
    pointer-events: none;
    user-select: none;
}


/* ============================================
   SEKTION 1 — Introduction
   ============================================ */

.intro {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 50px 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.intro-images {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    min-height: 700px;
}

.intro-img-item {
    position: absolute;
    margin: 0;
    overflow: hidden;
}

.intro-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-img-large {
    left: 30%;
    top: 5%;
    height: 90%;
    z-index: 2;
}

.intro-img-small-top {
    width: 32%;
    height: 40%;
    z-index: 1;
}

.intro-img-small-bot {
    bottom: 0;
    width: 32%;
    height: 40%;
    z-index: 1;
}

.intro-text {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 50px 30px;
    padding-right:0;
}

.intro-text h2 {
    margin: 0;
}

.intro-text .subheadline, .subheadline {
    margin: 0;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-size: 15px;
}


/* ============================================
   SEKTION 2 — Facts
   ============================================ */

.facts {
    display: flex;
    max-width: 1100px;
  margin: 0 auto;
}

.facts-col {
    flex: 1 1 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 5%;
    text-align: center;
    position: relative;
}

.facts-col-bg {
    position: absolute;
    inset: 0;
    background-size: 30%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.facts-col .fact,
.facts-col .subheadline {
    position: relative;
    z-index: 1;
}

.facts-col .fact {
    font-family: abril-display, "abril-display-fallback", serif;
    font-weight: 400;
    font-size: var(--font-large);
    line-height: 1.1;
    color: var(--color-primary);
}


/* ============================================
   SEKTION 3 — Schachbrett
   ============================================ */

.chess {
    width: 100%;
    overflow: hidden;
}

.chess-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 60vh;
}

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

.chess-text {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 80px 8%;
}

.chess-text h2,
.chess-text h3 {
    margin: 0;
}

.chess-divider {
    border: none;
    border-top: 1px solid var(--color-primary);
    margin: 0;
}

.chess-image {
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0;
    overflow: hidden;
}

.chess-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 500px;
    max-height: 700px;
    object-position: top;
}


/* ============================================
   SEKTION 4 — Bildreihe
   ============================================ */

.gallery {
    width: 100%;
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    padding: 30px 0px;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 15px;
    gap: 16px;
    background-size: 11vw;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-header h2 {
    margin: 0;
}

.gallery-track {
    display: flex;
    width: 100%;
    outline: none;
    gap: 16px;
    padding: 0 40px 20px;
}

.gallery-track:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.gallery-item {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
}


/* ============================================
   POST SINGLE — Page Hero (Vollbild)
   ============================================ */

.post-page-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.post-page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.post-page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.2) 10%,
        rgba(0, 0, 0, 0) 100%
        );
}

.post-page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.post-page-hero-content h1 {
    color: #fff;
    margin: 0;
}

.post-page-hero-content .subtitle, .subtitle {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: white;
    margin: 0;
    max-width: none;
}


/* ============================================
   POST SINGLE — Sektion 1: Bild & Text
   ============================================ */

.post-hero {
    display: flex;
    align-items: stretch;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.post-hero-image {
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0;
    overflow: hidden;
    margin-left: -0px;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.post-hero-text {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 60px 8% 60px 6%;
}

.post-hero-text h2 {
    margin: 0;
}


/* ============================================
   POST SINGLE — Sektion 2: Kacheln
   ============================================ */

.post-grid-section {
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.post-grid-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.post-grid-header h2 {
    margin: 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.post-grid-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    background-color: var(--color-secondary);
    background-size: cover;
    background-position: center;
}

.post-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);
    transition: background 0.1s ease;
}

.post-grid-item:hover .post-grid-overlay {
    background: rgba(0, 0, 0, 0.0);
}

.post-grid-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    text-align: center;
}

.post-grid-title {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.4;
    text-decoration:underline;
}


/* ============================================
   POST SINGLE — Sektion 3: Philosophie-Spalten
   ============================================ */

.post-s3 {
    padding: 10px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.post-s3-headline {
    margin: 0 0 16px;
}

.post-s3-divider {
    border: none;
    border-top: 1px solid var(--color-secondary);
    margin: 0 0 20px;
    max-width: 100%;
}

.post-s3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.post-s3-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-s3-col-h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.post-s3-icon {
    flex-shrink: 0;
    color: var(--color-secondary-light);
    width: 20px;
    height: 20px;
}

.post-s3-col p {
    margin: 0;
    max-width: none;
}


/* ============================================
   POST SINGLE — Sektion 4: Locations-Liste
   ============================================ */

.post-s4 {
    padding: 80px 60px;
}

.post-s4-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.post-s4-headline {
    margin: 0 0 16px;
}

.post-s4-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 3;
    column-gap: 40px;
}

.post-s4-list li {
    break-inside: avoid;
    padding: 6px 0 2px 20px;
    position: relative;
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-primary);
}

.post-s4-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    flex-shrink: 0;
}


/* ============================================
   GALERIE SINGLE — Masonry-Layout
   ============================================ */

.mh-gallery-single {
    padding-top: 55px;
}

.mh-gallery-back-wrap {
    padding: 24px 60px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.mh-gallery-back {
    margin-top: 0;
}

.mh-gallery-header {
    padding: 40px 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.mh-gallery-h1 {
    margin: 0 0 8px;
    font-size: var(--font-medium)!important;
}

.mh-gallery-subtitle {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin: 0 0 20px;
    max-width: none;
}

.mh-gallery-header .divider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.mh-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 4px;
    gap: 0 12px;
    padding: 0 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.mh-gallery-masonry-item {
    overflow: hidden;
}

.mh-gallery-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Back to Top Button --- */

.mh-back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 8000;
    pointer-events: none;
}

.mh-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mh-back-to-top:hover {
    background-color: var(--color-secondary-light);
    border-color: var(--color-secondary-light);
    color: white;
}

.mh-back-to-top:focus-visible {
    outline: 4px dashed var(--color-primary);
    outline-offset: 3px;
}


/* ============================================
   ÜBER MICH PAGE
   ============================================ */

.um-page {
    background-color: var(--color-background);
}

/* --- Sektion 1: Bilder + Text --- */

.um-s1 {
    padding: 100px 60px;
    position: relative;
    overflow: hidden;
}

.um-s1-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Linke Spalte */
.um-s1-images {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    position: relative;
}

.um-img-large {
    margin: 0;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 2px;
}

.um-img-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.um-img-round {
    margin: 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.um-img-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.um-img-round--left{
    position:absolute;
    bottom:-50px;
    right:-50px;
    width: 200px;
    height: 200px;
}

/* Rechte Spalte */
.um-s1-text {
    position: relative;
    padding-top: 20px;
}

.um-img-round--right {
    position: absolute;
    top: 0;
    right: 0;
}

.um-s1-h2 {
    margin: 0 0 16px;
    padding-right: 150px; /* keep clear of round image */
}

.um-s1-subheadline {
    margin: 0 0 20px;
}

.um-s1-text .divider {
    margin: 0 0 24px;
}

.um-s1-text p {
    margin: 0 0 16px;
    max-width: none;
}

.um-s1-text p:last-child {
    margin-bottom: 0;
}

/* --- Sektion 2: Herz-Liste --- */

.um-s2 {
    padding: 0 60px 100px;
}

.um-s2-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.um-s2-headline {
    margin: 0 0 16px;
}

.um-s2-divider {
    border: none;
    border-top: 1px solid var(--color-secondary);
    width: 110px;
    margin: 0 0 32px;
}

.um-s2-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 3;
    column-gap: 40px;
}

.um-s2-list li {
    break-inside: avoid;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-primary);
}

.um-s2-icon {
    flex-shrink: 0;
    color: var(--color-secondary-light);
    width: 14px;
    height: 14px;
    position: relative;
    top: 1px;
}


/* ============================================
   KONTAKT PAGE
   ============================================ */

.kt-page {
    background-color: var(--color-background);
    padding: 150px 60px 100px;
    position: relative;
    overflow: hidden;
}

.mh-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    opacity: 0.45;
    z-index: -2;
}

.mh-page-wave{
    z-index: 1;
}

.mh-wave svg {
    display: block;
    width: 100%;
    height: 80px;
    fill: var(--color-secondary-light);
}

.mh-wave--bottom {
    top: auto;
   bottom: -55px;
    z-index: 2;
}

.mh-wave--top {
    position: initial;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
    line-height: 0;
}

.kt-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

/* --- Linke Spalte --- */

.kt-h1 {
    font-size: var(--font-large);
    text-align: center;
}

.kt-contact-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    width: max-content;
}

.kt-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 1rem;
}

.kt-contact-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 35px;
  height: 35px;
    border-radius: 80px;
    background-color: var(--color-secondary);
    color: #fff;
}

.kt-contact-icon {
    flex-shrink: 0;
    color: #fff;
}

.kt-contact-item a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 1rem;
}

.kt-contact-item a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--color-primary);
}

/* --- Rechte Spalte --- */

.kt-h2 {
    font-family: abril-display, "abril-display-fallback", serif;
    margin: 0 0 20px;
}

.kt-subheadline {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary-light);
    margin: 0 0 16px;
    font-weight: 300;
}

.kt-divider {
    margin: 10px 0 24px;
    max-width: 100%;
    width: 100%;
}

.kt-text {
    font-family: poppins, "poppins-fallback", sans-serif;
    margin: 0 0 16px;
    max-width: none;
}

.kt-text:last-of-type {
    margin-bottom: 32px;
}

.kt-form {
    margin-top: 24px;
}
/* ============================================
   WP-FORMS STYLES
   ============================================ */

.wpforms-container .wpforms-field-label {
  display: block;
  font-weight: 400!important;
  float: none;
  word-break: break-word;
  word-wrap:
break-word;
	color:#BE8168;
	font-size:16px!important;
}

/* Schriftart auf alle Formular-Elemente */
.wpforms-container,
.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select,
.wpforms-container label,
.wpforms-container button {
    font-family: poppins, "poppins-fallback", sans-serif;
}
.wpforms-container input,
    .wpforms-container textarea,
.wpforms-container select,
.wpforms-container button {
    height: 40px;
    background-color: transparent;
    border: 1px solid var(--color-primary);
}

/* Submit-Button wie .btn.primary */
.wpforms-container .wpforms-submit {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-primary);
    padding: 16px 16px 14px 16px;
    font-size: 1rem;
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    line-height: 1;
    width: max-content;
    color: var(--color-primary);
    border-radius: 0;
}

.wpforms-container .wpforms-submit:hover {
    background-color: var(--color-secondary-light);
    color: white;
    border: 1px solid var(--color-secondary-light);
}

.wpforms-container .wpforms-submit:focus-visible {
    outline: 4px dashed var(--color-primary);
    outline-offset: 3px;
    background-color: transparent;
}

.wp-element-button, .wp-block-button__link {
  background-color: #be8168;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  padding:
calc(0.667em + 2px) calc(1.333em + 2px);
  text-decoration:
none;
}

.wp-element-button:hover, .wp-block-button__link:hover {
  background-color: transparent;
  border:1px solid #fff;
  color: #fff;
	
}

.wpforms-container ul, .wpforms-container ul li {
  padding-top: 10px;
  color: var(--color-primary);
}


.wpforms-container .wpforms-field-label-inline{
  font-weight:300!important; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: var(--color-primary);
    color: var(--color-background);
    text-align: center;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 20px 60px;
}

.footer-logo img {
    height: 70px;
    width: auto;
    display: block;
}

.footer-headline {
    color: var(--color-secondary-light);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact-link {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--color-secondary-light);
    text-decoration: none;
}

.footer-contact-link:hover {
    color: var(--color-secondary-light);
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary-light);
    text-decoration: none;
    font-family: poppins, "poppins-fallback", sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-social-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--color-secondary-light);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.footer-legal-list li a {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--color-secondary-light);
    text-decoration: none;
}

.footer-legal-list li a:hover {
    color: white;
}

.footer-copyright {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--color-secondary-light);
    margin: 0;
    max-width: none;
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .post-grid-overlay {
        transition: none;
    }
}

@media (max-width: 965px) {
.um-img-round--right {
    display:none;
}
}
/* ============================================
   MEDIA QUERIES — max-width: 768px (Tablet)
   ============================================ */

@media (max-width: 768px) {

    .site-header-inner {
        padding: 0 20px;
    }

    .site-nav {
        display: none;
    }

    .site-logo img {
        height: 50px;
        width: auto;
        display: block;
        position: relative;
        top: 0px;
        left: 0px;
    }

    .nav-toggle {
        display: block;
    }
    

    .intro {
        flex-direction: column;
        padding:0px 15px;
    }

    .intro-images,
    .intro-text {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .intro-images {
        min-height: unset;
        position: static;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0 0;
    }

    .intro-img-item {
        position: static;
        width: 100% !important;
        height: auto !important;
    }

    .intro-img-item img {
        height: 100%;
    }

    .intro-img-large     { order: 1; }
    .intro-img-small-top { 
        display:none;
    }
    .intro-img-small-bot { 
        display:none;
    }

    .intro-text {
        padding: 32px 0px;
        gap: 20px;
    }

    .facts {
        flex-direction: column;
    }

    .facts-col {
        min-height: 32vw;
        padding:0;
    }

    .facts-col .fact {
        font-size: var(--font-large);
    }

    .gallery {
        padding-bottom: 50px;
    }

    .gallery-header {
        background-size: 25vw;
    }

    .gallery-track {
        gap: 10px;
        padding: 0 20px 40px;
        flex-direction: column;
    }

    .gallery-item img {
        height: 50vh;
    }

    .post-page-hero-content {
        padding: 0 20px 60px;
    }

    .post-hero {
        flex-direction: column;
        min-height: unset;
    }

    .post-hero-image,
    .post-hero-text {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .post-hero-image img {
        height: 60vw;
        display: none;
    }

    .post-hero-text {
        padding: 40px 20px 40px;
    }

    .post-grid-section {
        padding: 50px 20px;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mh-gallery-header {
        padding: 40px 20px 24px;
    }

    .mh-gallery-back-wrap {
        padding: 20px 20px 0;
    }

    .mh-gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px 60px;
    }

    .post-s3 {
        padding: 60px 20px;
    }

    .post-s3-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .post-s4 {
        padding: 60px 20px;
    }

    .post-s4-list {
        columns: 2;
    }

    .post-s4-list li {
    line-height: 1.2;
    }

    /* Über mich — Tablet */
    .um-s1 {
        padding: 60px 20px;
    }

    .um-s1-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .um-img-round--left {
        right: 0px;
    }

    .um-s1-h2 {
        padding-right: 150px;
    }

    .um-s2 {
        padding: 0 20px 60px;
    }

    .um-s2-list {
        columns: 2;
    }

    /* Kontakt — Tablet */
    .kt-page {
        padding: 60px 20px 80px;
    }

    .kt-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }


.sub-menu li a {
  border-top: 1px solid var(--color-secondary);
}
}


/* ============================================
   MEDIA QUERIES — max-width: 550px (Mobile)
   ============================================ */

@media (max-width: 550px) {


    .hero {
        height:90vh;
    }

    h1, h2 {
        font-size: var(--font-medium);
    }

    .subheadline {
        font-size: 14px;
        padding-bottom: 10px;
    }

    .btn.tertiary {
        margin-top: 10px;
    }

    .divider {
        display:none;
    }

    .hero-bg-desktop {
        display: none;
    }

    .hero-bg-mobile {
        display: block;
    }

    .hero-logo {
    width: 250px;
}

    .chess-row,
    .chess-row-reversed {
        flex-direction: column;
        min-height: unset;
    }

    .chess-image {
        order: -1;
    }

    .chess-text,
    .chess-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .chess-image img {
        min-height: unset;
        height: 70vw;
    }

    .chess-text {
        padding: 15px 15px 50px 15px;
        gap: 20px;
    }

    .facts-col {
        min-height: 40vw;
        padding:0;
    }

    .site-nav-mobile {
        padding: 0px 20px 32px;
    }

    .site-nav-mobile .nav-list-mobile li a {
        padding: 20px 0px;
    }

    .sub-menu li a{
        padding-left:40px!important;
    }
   

    .footer-social {
        flex-direction: column;
        gap: 12px;
    }

    .footer-legal-list {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .post-page-hero {
        height: 100vh;
    }

    .post-page-hero-content {
        padding: 0 15px 50px;
    }

    .post-page-hero-content .subtitle {
        font-size: 16px;
    }

    .post-hero-image img {
        height: 75vw;
    }

    .post-hero-text {
        padding: 30px 15px 40px;
    }

    .post-grid-section {
        padding: 40px 15px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-grid-item {
        aspect-ratio: 2 / 2;
    }

    .mh-gallery-header {
        padding: 30px 15px 20px;
    }

    .mh-gallery-masonry {
        grid-template-columns: 1fr;
        padding: 0 15px 50px;
    }

    .post-s3 {
        padding: 40px 15px;
    }

    .post-s4 {
        padding: 40px 15px;
    }
     .post-s4-list {
        columns: 1;
    }

    /* Über mich — Mobile */
    .um-s1 {
        padding: 40px 15px;
    }

    .um-s1-inner {
        gap: 32px;
    }

    .um-s1-h2 {
        padding-right: 120px;
    }

    .um-img-round {
        width: 150px;
        height: 150px;
    }

    .um-s2 {
        padding: 0 15px 50px;
    }

    .um-s2-list {
        columns: 1;
    }

    /* Kontakt — Mobile */
    .kt-page {
        padding: 40px 15px 60px;
    }

    .kt-inner {
        gap: 36px;
    }

    /* Standard-Seite — Mobile */
    .wp-page-content {
        padding: 40px 20px 70px;
    }

    /* Cookie-Banner — Mobile */
    .mh-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        border-radius: 10px;
        padding: 24px 20px 20px;
    }

    .mh-cookie-banner h2 {
        font-size: 5vw;
    }
}

.gallery{
    padding-top:0;
}

.facts-col {
  gap: 0px;

}


/* ============================================
   STANDARD-SEITE (page.php / Gutenberg)
   ============================================ */

.wp-page-main {
    position: relative;
    overflow: hidden;
}

.wp-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 100px;
}

.wp-page-title {
    font-size: var(--font-large);
    line-height: 1.1;
    margin-bottom: 24px;
}

.wp-page-divider {
    margin-bottom: 40px;
    width: 100%;
}


.wp-page-body h2 {
    margin-top: 48px;
    margin-bottom: 16px;
}


.wp-page-body h3 {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    margin-top: 32px;
    margin-bottom: 10px;
}

.wp-page-body p {
    max-width: none;
    margin-bottom: 1.2em;
}

.wp-page-body ul,
.wp-page-body ol {
    font-family: poppins, "poppins-fallback", sans-serif;
    font-weight: 300;
    line-height: 1.7;
    padding-left: 1.4em;
    margin-bottom: 1.2em;
}

.wp-page-body li {
    margin-bottom: 0.4em;
}


/* ============================================
   COOKIE-BANNER
   ============================================ */

.mh-cookie-banner {
    display: none;
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    background-color: var(--color-background, #faf6f4);
    border: 1px solid var(--color-secondary-light, #ebc0a9);
    border-radius: 12px;
    padding: 28px 32px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 560px;
    margin: 0 auto;
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity   0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-cookie-banner:not([aria-hidden="true"]):not(.mh-cookie-hide) {
    transform: translateY(0);
    opacity: 1;
}

.mh-cookie-banner.mh-cookie-hide {
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
}

.mh-cookie-banner-heading {
    font-family: abril-display, "abril-display-fallback", serif;
    font-weight: 400;
    color: var(--color-primary, #49543E);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 10px;
    outline: none;
}

.mh-cookie-banner-heading:focus-visible {
    outline: 2px solid var(--color-primary, #49543E);
    outline-offset: 3px;
    border-radius: 3px;
}

a.mh-cookie-settings-link {}


/* ============================================
   CONTENT-VISIBILITY — Off-screen-Rendering überspringen
   ============================================ */

.facts {
    content-visibility: auto;
    contain-intrinsic-size: auto 100% auto 500px;
}

.chess {
    content-visibility: auto;
    contain-intrinsic-size: auto 100% auto 1800px;
}

.gallery {
    content-visibility: auto;
    contain-intrinsic-size: auto 100% auto 600px;
}

.post-grid-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 100% auto 700px;
}

.post-s3 {
    content-visibility: auto;
    contain-intrinsic-size: auto 100% auto 450px;
}

.post-s4 {
    content-visibility: auto;
    contain-intrinsic-size: auto 100% auto 350px;
}

.um-s2 {
    content-visibility: auto;
    contain-intrinsic-size: auto 100% auto 450px;
}
