: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: hidden;
    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: hidden;
    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: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    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;
}

header.gemaelde-photo-header {
    background: #292018 url("BILDER/EDEL ZUKUNFTSAUSDRUCK HOODIE.jpg") center / cover no-repeat;
}

/* Keep the header logo distinct from the hoodie photograph in every state. */
body header.gemaelde-photo-header #EDZADa {
    background: rgba(255, 250, 237, .97);
    border: 1px solid #edbd3c;
    border-radius: 8px;
    padding: 6px 10px;
    width: clamp(100px, 24vw, 260px);
    height: 82%;
    box-sizing: border-box;
    box-shadow: 0 3px 16px #0005;
}
body header.gemaelde-photo-header #EDZAD {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 1;
}

/* Restrained gilt corner details for the logo plaque. */
body header.gemaelde-photo-header #EDZADa {
    position: relative;
    isolation: isolate;
}
body header.gemaelde-photo-header #EDZADa::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(181, 129, 32, .28);
    border-radius: 4px;
    pointer-events: none;
}
body header.gemaelde-photo-header #EDZADa::after {
    content: "";
    position: absolute;
    inset: 7px;
    pointer-events: none;
    background:
        linear-gradient(#b58120, #b58120) left top / 12px 1px no-repeat,
        linear-gradient(#b58120, #b58120) left top / 1px 9px no-repeat,
        linear-gradient(#b58120, #b58120) right top / 12px 1px no-repeat,
        linear-gradient(#b58120, #b58120) right top / 1px 9px no-repeat,
        linear-gradient(#b58120, #b58120) left bottom / 12px 1px no-repeat,
        linear-gradient(#b58120, #b58120) left bottom / 1px 9px no-repeat,
        linear-gradient(#b58120, #b58120) right bottom / 12px 1px no-repeat,
        linear-gradient(#b58120, #b58120) right bottom / 1px 9px no-repeat;
}

/* Quiet burgundy and gold controls for the paintings header. */
header.gemaelde-photo-header #hamburg:not(:checked) + .hamburg .line {
    width: clamp(36px, 5vw, 60px) !important;
    height: 6px !important;
    box-sizing: border-box;
    border: 1px solid #edbd3c;
    border-radius: 999px;
    background: #800020 !important;
    box-shadow: 0 2px 6px #0006;
    transition: background-color .2s ease, box-shadow .2s ease;
}
header.gemaelde-photo-header #hamburg:not(:checked) + .hamburg .line::after { opacity: 0 !important; }
@media (hover: hover) {
    header.gemaelde-photo-header #hamburg:not(:checked) + .hamburg:hover .line {
        background: #edbd3c !important;
        box-shadow: 0 0 8px #edbd3c66;
    }
}
header.gemaelde-photo-header :is(#Anmeldeknopf, #Abmeldeknopf) {
    filter: drop-shadow(0 0 2px #fff0ad) drop-shadow(0 0 6px #edbd3c99);
}
header.gemaelde-photo-header #hamburg:checked + .hamburg + .topmenu {
    height: auto !important;
    max-height: calc(100% - 12px) !important;
    overflow-y: auto !important;
    background: #fff8e8;
    border: 1px solid #edbd3c;
    border-radius: 6px;
    padding: 8px 16px;
    box-shadow: 0 4px 16px #0003;
}
header.gemaelde-photo-header #menu,
header.gemaelde-photo-header #menu a {
    font-family: "legitima", Georgia, serif;
    font-size: clamp(16px, 1.5vw, 21px) !important;
    font-weight: 500;
    line-height: 1.5;
}
header.gemaelde-photo-header #menu { margin: 0; }
header.gemaelde-photo-header #menu li::before { content: none; margin: 0; }
header.gemaelde-photo-header #menu a { display: block; padding: 5px 8px; color: #800020 !important; }
header.gemaelde-photo-header #menu a:hover { background: #f4e5c6; }
header.gemaelde-photo-header #menu a:focus-visible { outline: 2px solid #800020; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    header.gemaelde-photo-header #hamburg:not(:checked) + .hamburg .line { transition: none; }
}

/* A naturally scrolling gallery with uncropped artwork. */
html { height: auto; min-height: 100%; overflow-x: clip; overflow-y: auto; }
body { display: block; height: auto; max-height: none; overflow: visible; }
main[aria-label="Motivationsgemälde"] { display: block; height: auto; max-height: none; overflow: visible; }
.painting-collection { box-sizing: border-box; width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: clamp(28px, 5vw, 64px) 0; text-align: left; }
.painting-intro { max-width: 780px; margin-bottom: 36px; }
.painting-eyebrow { color: #800020; font: 700 13px/1.6 Arial,sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.painting-intro h1 { color: #800020; font-size: clamp(28px, 4vw, 50px); line-height: 1.15; margin: 14px 0 20px; overflow-wrap: anywhere; }
.painting-intro > p:last-child { color: #352923; font: 400 17px/1.8 Arial,sans-serif; }
.painting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.painting-card { min-width: 0; margin: 0; background: #211a14; border: 1px solid #b58120; box-shadow: 0 10px 30px #29201818; }
.painting-card > a { display: block; padding: 8px; background: #12151c; }
.painting-card img { display: block; width: 100%; height: auto; }
.painting-card figcaption { padding: 20px; color: #fff3d6; }
.painting-number { color: #edbd3c; font: 400 13px/1.5 Arial,sans-serif; letter-spacing: .12em; }
.painting-card h2 { color: #f0c84d; font-size: clamp(21px, 2vw, 28px); line-height: 1.3; margin: 10px 0 16px; overflow-wrap: anywhere; }
.painting-view { color: #fff3d6; font: 400 14px/1.6 Arial,sans-serif; }
.painting-card > a:hover { background: #b58120; }
.painting-card > a:focus-visible { outline: 3px solid #800020; outline-offset: 4px; }
@media (max-width: 1000px) { .painting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .painting-grid { grid-template-columns: minmax(0, 1fr); } .painting-collection { max-width: 520px; } }

/* Four works form a balanced two-column collection. */
@media (min-width: 1001px) {
    .painting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Bordeaux and gold behind the transparent self portrait. */
.painting-card-portrait > a {
    position: relative;
    padding: clamp(20px, 4vw, 42px);
    background:
        radial-gradient(ellipse at 15% 0%, #edbd3c26, transparent 60%),
        linear-gradient(145deg, #482b35, #24151c);
}
.painting-card-portrait > a:hover {
    background: radial-gradient(ellipse at 15% 0%, #edbd3c38, transparent 60%), linear-gradient(145deg, #482b35, #24151c);
}
.painting-card-portrait > a::after {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    background:
        linear-gradient(#d8b465, #d8b465) left top / 24px 1px no-repeat,
        linear-gradient(#d8b465, #d8b465) left top / 1px 24px no-repeat,
        linear-gradient(#d8b465, #d8b465) right top / 24px 1px no-repeat,
        linear-gradient(#d8b465, #d8b465) right top / 1px 24px no-repeat,
        linear-gradient(#d8b465, #d8b465) left bottom / 24px 1px no-repeat,
        linear-gradient(#d8b465, #d8b465) left bottom / 1px 24px no-repeat,
        linear-gradient(#d8b465, #d8b465) right bottom / 24px 1px no-repeat,
        linear-gradient(#d8b465, #d8b465) right bottom / 1px 24px no-repeat;
}
.painting-card-portrait img {
    box-shadow: 0 10px 28px #0005;
    outline: 1px solid #d8b46566;
}

.painting-card-portrait img { background: transparent; outline: none; box-shadow: none; filter: drop-shadow(0 8px 14px #0005); }

.painting-card .painting-inquiry-button { display: block; width: fit-content; max-width: 100%; box-sizing: border-box; margin-top: 20px; padding: 12px 18px; border: 1px solid #edbd3c; background: #f0c84d; color: #292018; font: 700 16px/1.5 Arial,sans-serif; text-decoration: none; }
.painting-card .painting-inquiry-button:hover { background: #ffe6a0; }
.painting-card .painting-inquiry-button:focus-visible { outline: 3px solid #fff3d6; outline-offset: 4px; }
