:root {
    --page-header-top-height: 30vh;
    --page-header-top-hover-height: 35vh;
    --page-header-scrolled-height: 20vh;
    --page-header-scrolled-hover-height: 25vh;
}

html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

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

html {
    display: block;
    overflow-x: clip;
    overscroll-behavior: none;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: clip;
    overscroll-behavior: none;
    text-align: center;
    font-family: "legitima", serif;
    font-weight: bolder;
}

button,
input,
textarea,
select {
    font-family: "legitima", serif;
}

header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: var(--page-header-top-height);
    position: fixed;
    top: 0;
    overflow: hidden;
    transition: height 0.18s ease-in-out, padding 0.18s ease-in-out;
    z-index: 100;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: height;
}

header:hover {
    height: var(--page-header-top-hover-height);
}

header.scrolled {
    height: var(--page-header-scrolled-height);
    padding: 0;
}

header.scrolled:hover {
    height: var(--page-header-scrolled-hover-height);
}

#video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: paint;
    will-change: transform, opacity;
}

main {
    width: 100%;
    height: auto;
    display: block;
    justify-content: flex-start;
    margin-top: var(--page-header-top-height);
    transition: margin-top 0.18s ease-in-out;
}

main.scrolled-main {
    margin-top: var(--page-header-scrolled-height);
}

header:hover ~ main {
    margin-top: var(--page-header-top-hover-height);
}

header.scrolled:hover ~ main.scrolled-main {
    margin-top: var(--page-header-scrolled-hover-height);
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: calc(100vw / 3);
    height: 100%;
}

#hamburger {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: visible;
    background: none;
    z-index: 20;
}

input#hamburg {
    display: none;
}

label.hamburg {
    width: 100%;
    height: 100%;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    overflow: visible;
    background: transparent;
    z-index: 21;
}

.hamburg:hover {
    width: 100%;
    height: 100%;
}

.line {
    height: 7px;
    width: 78px;
    background: black;
    border-radius: 8px;
    display: block;
    margin: 7px 0;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    z-index: 22;
    cursor: pointer;
}

.line::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: var(--ee-gold-laser-core-gradient), var(--ee-gold-sweep-gradient);
    background-size: 100vw 100vh;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: saturate(var(--gold-light-saturate)) contrast(var(--gold-light-contrast)) drop-shadow(0 0 8px rgba(255, 215, 72, 1)) drop-shadow(0 0 var(--gold-light-glow-a) rgba(246, 213, 106, 1)) drop-shadow(0 0 var(--gold-light-glow-b) rgba(237, 189, 60, 0.95)) drop-shadow(0 0 calc(var(--gold-light-glow-b) * 1.65) rgba(240, 200, 77, 0.52));
    transform: translateZ(0);
    backface-visibility: hidden;
}

.line:hover {
    background: var(--ee-gallery-gold-gradient);
    box-shadow: 0 0 10px gold;
}

.line:hover::after {
    opacity: 1;
}

.line:nth-child(1),
.line:nth-child(2),
.line:nth-child(3) {
    top: 5%;
}

#hamburg:checked + .hamburg .line:nth-child(1) {
    transform: rotate(-45deg) translate(0%, 0%);
}

#hamburg:checked + .hamburg .line:nth-child(2) {
    opacity: 0;
}

#hamburg:checked + .hamburg .line:nth-child(3) {
    transform: rotate(45deg) translate(0%, 0%);
}

.topmenu {
    height: auto;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.1s;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 23%;
    z-index: 30;
}

#hamburg:checked + .hamburg + .topmenu {
    height: 100%;
    max-height: 30vh;
    overflow: visible;
    pointer-events: auto;
}

#menu {
    font-size: 3vh;
    list-style-type: none;
    padding-left: 0;
}

#menu ul {
    list-style-type: none;
    padding-left: 0;
}

#menu li {
    color: #800020;
}

#menu li::before {
    content: "► ";
    color: #800020;
    margin-right: 10px;
}

#menu a {
    color: #800020;
    text-decoration: none;
}

#EDZADa,
#EDZAD {
    display: flex;
    justify-content: center;
    align-items: center;
}

#EDZADa {
    width: calc(100vw / 9);
    height: 90%;
    z-index: 2;
}

#EDZAD {
    object-fit: contain;
    width: calc(100vw / 3);
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

#EDZAD:hover {
    transform: scale(1.08);
}

@keyframes pulse-rotate {
    0% { transform: rotate(90deg) scale(1); }
    50% { transform: rotate(90deg) scale(1.15); }
    100% { transform: rotate(90deg) scale(1); }
}

#hover-Knopf {
    width: calc(100vw / 11);
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

#Anmeldeknopf {
    object-fit: contain;
    width: 31%;
    height: auto;
    cursor: pointer;
    animation: pulse-rotate 5s infinite;
    animation-fill-mode: forwards;
    transition: transform 0.3s ease-in-out;
}

#Abmeldeknopf {
    display: none;
    object-fit: contain;
    max-width: 100%;
    max-height: 31%;
}

#hover-Knopf:hover {
    transform: scale(1.5);
}

footer {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    font-size: 0.9em;
    text-align: center;
    padding: 10px 0;
    background: none;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-legal-row {
    text-transform: uppercase;
}

.footer-legal-row a {
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
}

.marco-discover { width: min(1180px, calc(100% - 32px)); margin: 32px auto 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #292018; color: #fff3d6; border: 1px solid #edbd3c; text-align: left; }
.marco-discover-photo { min-width: 0; background: #fff; }
.marco-discover-photo img { display: block; width: 100%; height: 100%; max-height: 760px; object-fit: contain; }
.marco-discover-copy { min-width: 0; padding: clamp(24px, 4vw, 60px); align-self: center; }
.marco-discover-logo { width: 160px; max-width: 100%; height: auto; background: white; padding: 8px; }
.marco-discover-eyebrow { margin-top: 28px; color: #f0c84d; font: 600 14px/1.5 Arial,sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.marco-discover h1 { font-size: clamp(32px, 4vw, 58px); line-height: 1.1; margin: 20px 0; color: #f0c84d; overflow-wrap: anywhere; }
.marco-discover-copy > p:not(.marco-discover-eyebrow) { font: 400 17px/1.7 Arial,sans-serif; }
.marco-discover-links { display: grid; gap: 14px; margin: 28px 0; }
.marco-discover-links a { display: block; padding: 15px 18px; border: 1px solid #edbd3c; color: #f0c84d; text-decoration: none; font: 600 16px/1.5 Arial,sans-serif; overflow-wrap: anywhere; }
.marco-discover-links a.marco-discover-primary { background: #f0c84d; color: #292018; }
.marco-discover-links a:hover { background: #ffe090; color: #292018; }
.marco-discover-product { color: #fff3d6; font: 400 15px/1.7 Arial,sans-serif; text-underline-offset: 4px; }
.marco-discover a:focus-visible { outline: 3px solid #fff3d6; outline-offset: 4px; }
.marco-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) { .marco-discover { grid-template-columns: minmax(0, 1fr); } .marco-discover-photo img { max-height: 55vh; } }

.marco-highlights { width: min(1240px, calc(100% - 32px)); margin: 0 auto 64px; text-align: left; }
.marco-highlights-intro { max-width: 760px; padding: 24px 0 48px; }
.marco-highlights-intro h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.12; color: #800020; margin: 16px 0 24px; }
.marco-highlights-intro > p:last-child { color: #352923; font: 400 18px/1.8 Arial,sans-serif; }
.marco-highlights-intro .marco-discover-eyebrow { color: #800020; }
.marco-highlight { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin-bottom: 44px; border-top: 2px solid #edbd3c; background: #faf7f0; }
.marco-highlight-images { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; padding: 16px; }
.marco-highlight-images figure { min-width: 0; margin: 0; background: #fff; }
.marco-highlight-images img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
.marco-highlight-images figcaption { padding: 12px; color: #615142; font: 400 13px/1.6 Arial,sans-serif; }
.marco-highlight-copy { min-width: 0; align-self: center; padding: clamp(22px, 3vw, 44px); }
.marco-highlight-copy .marco-discover-eyebrow { margin: 0 0 18px; color: #800020; }
.marco-highlight-copy h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; color: #352923; margin: 0 0 24px; overflow-wrap: anywhere; }
.marco-highlight-copy p:not(.marco-discover-eyebrow) { color: #352923; font: 400 16px/1.8 Arial,sans-serif; }
.marco-highlight-copy a { display: block; width: fit-content; max-width: 100%; padding: 12px 0; margin-top: 18px; color: #800020; font: 700 16px/1.5 Arial,sans-serif; text-underline-offset: 6px; }
.marco-highlight-copy a.marco-highlight-local { margin-top: 0; font-weight: 400; }
.marco-highlights-source { color: #615142; font: 400 14px/1.8 Arial,sans-serif; max-width: 850px; }
.marco-highlights-source a { color: #800020; }
.marco-highlights a:focus-visible { outline: 3px solid #800020; outline-offset: 4px; }
@media (min-width: 901px) { .marco-highlight:nth-of-type(2) .marco-highlight-images { order: 2; } }
@media (max-width: 900px) { .marco-highlight { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .marco-highlight-images { padding: 8px; gap: 6px; } .marco-highlight-images figcaption { padding: 8px; font-size: 12px; } }

/* The page, rather than a nested body container, owns vertical scrolling. */
html { height: auto; min-height: 100%; overflow-y: auto; overscroll-behavior-y: auto; }
body { display: block; height: auto; max-height: none; overflow: visible; overscroll-behavior-y: auto; }
main[aria-label="Marco Antonio"] { display: block; height: auto; min-height: 0; max-height: none; overflow: visible; }
main[aria-label="Marco Antonio"] > section { flex-shrink: 0; }
header.marco-photo-header {
    background: #292018 url("BILDER/DESKTOPHINTERGRUND.png") center / cover no-repeat;
}

/* Keep burgundy menu lettering readable over the photo header. */
header.marco-photo-header #hamburg:checked + .hamburg + .topmenu {
    background: rgba(255, 248, 226, .96);
    border: 1px solid #edbd3c;
    border-radius: 8px;
    padding: 10px 18px;
    height: auto;
    max-height: calc(100% - 12px);
    overflow-y: auto;
    box-shadow: 0 8px 24px #0003;
}
header.marco-photo-header #menu { margin: 0; }
header.marco-photo-header #menu a {
    font-weight: 700;
    -webkit-text-stroke: .4px #f0c84d;
    paint-order: stroke fill;
    text-shadow: 0 1px 0 #f9df8a;
    line-height: 1.5;
}
header.marco-photo-header #menu a:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 3px;
}

/* Courtly details for the photo-header menu. */
header.marco-photo-header #hamburg:checked + .hamburg + .topmenu {
    --court-gold: #b58120;
    padding: 24px 26px 20px;
    border: 3px double #b58120;
    border-radius: 3px;
    background:
        linear-gradient(var(--court-gold), var(--court-gold)) 7px 7px / 18px 1px no-repeat,
        linear-gradient(var(--court-gold), var(--court-gold)) 7px 7px / 1px 18px no-repeat,
        linear-gradient(var(--court-gold), var(--court-gold)) right 7px top 7px / 18px 1px no-repeat,
        linear-gradient(var(--court-gold), var(--court-gold)) right 7px top 7px / 1px 18px no-repeat,
        linear-gradient(var(--court-gold), var(--court-gold)) left 7px bottom 7px / 18px 1px no-repeat,
        linear-gradient(var(--court-gold), var(--court-gold)) left 7px bottom 7px / 1px 18px no-repeat,
        linear-gradient(var(--court-gold), var(--court-gold)) right 7px bottom 7px / 18px 1px no-repeat,
        linear-gradient(var(--court-gold), var(--court-gold)) right 7px bottom 7px / 1px 18px no-repeat,
        linear-gradient(135deg, #fffaf0, #f4e5c6);
    box-shadow: inset 0 0 0 4px #fff8e8, 0 8px 24px #0003;
}
header.marco-photo-header .topmenu::before {
    content: "♛";
    display: block;
    flex-shrink: 0;
    color: #b58120;
    font: 28px/1.2 Georgia, serif;
    margin-bottom: 8px;
}
header.marco-photo-header .topmenu::after {
    content: "❧";
    display: block;
    flex-shrink: 0;
    color: #b58120;
    font: 24px/1.2 Georgia, serif;
    margin-top: 8px;
}
header.marco-photo-header #menu li::before { content: none; margin: 0; }
header.marco-photo-header #menu li + li { border-top: 1px solid #b5812033; }
header.marco-photo-header #menu a { display: block; padding: 5px 8px; }

/* The original three bars become burgundy dots with a glowing gold edge. */
header.marco-photo-header #hamburg:not(:checked) + .hamburg .line {
    background: radial-gradient(circle at center, #800020 0 1.3px, #fff0b0 1.7px, #f0c84d 2.8px, transparent 3.3px) 0 center / 13px 100% repeat-x !important;
    border: 0;
    box-sizing: border-box;
    border-radius: 999px;
    box-shadow: none !important;
    filter: drop-shadow(0 0 2px #ffe6a0) drop-shadow(0 0 6px #edbd3c99);
}
header.marco-photo-header #hamburg:not(:checked) + .hamburg .line::after {
    opacity: 0 !important;
}
@media (hover: hover) {
    header.marco-photo-header #hamburg:not(:checked) + .hamburg:hover .line {
        background: radial-gradient(circle at center, #fff3c4 0 1.3px, #f0c84d 2.8px, transparent 3.3px) 0 center / 13px 100% repeat-x !important;
        box-shadow: none !important;
        filter: drop-shadow(0 0 3px #fff3c4) drop-shadow(0 0 8px #edbd3cbb);
    }
}
header.marco-photo-header #hamburg:checked + .hamburg .line {
    background: #f0c84d !important;
    border: 0;
    box-shadow: 0 0 5px #edbd3c99 !important;
}
