/* aninacaracas.de V1 — nah am Original (Themeco Pro): weiße Box auf grauem Grund mit Strichzeichnung, Open Sans, Violett */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/open-sans-regular.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/open-sans-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/open-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/open-sans-700.woff2') format('woff2'); }

:root {
    --violett: #a546a5;
    --violett-dunkel: #873787;
    --text: #1a1a1a;
    --grau: #5e5e5e;
    --titel: #616161;
    --grund: #f3f3f3;
    --linie: rgba(0, 0, 0, .5);
    --box: 75rem;
    --innen: clamp(1rem, 5vw, 3.75rem);
    --schrift: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--schrift);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--grund) url('/bilder/hintergrund01-1400.webp') center top / 1400px auto repeat-y;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violett); text-decoration: none; }
a:hover, a:focus-visible { color: var(--violett-dunkel); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--violett); outline-offset: 2px; }

.skip-link { position: absolute; left: 1rem; top: -100%; z-index: 1000; padding: .5rem 1rem; background: var(--violett); color: #fff; }
.skip-link:focus { top: .5rem; color: #fff; }

/* Box wie im Original: 1200 px weiß, Inhalt 1080 px */
.seite { max-width: var(--box); margin: 0 auto; background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.inhalt { flex: 1; padding: 1.5rem var(--innen) 4rem; }

/* Kopf */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.75rem var(--innen) 2rem; }
.logo img { width: clamp(11rem, 30vw, 18.75rem); height: auto; }
.nav-toggle {
    width: 2.75rem; height: 2.75rem; padding: .7rem; border: 0; border-radius: 50%;
    background: #fff; color: var(--violett); cursor: pointer;
    box-shadow: 0 .15em .6em rgba(0, 0, 0, .25);
}
.nav-toggle svg, .nav-zu svg { width: 100%; height: 100%; display: block; }

/* Ausklappmenü rechts */
.hauptnav {
    position: fixed; inset: 0 0 0 auto; z-index: 200; width: min(24rem, 100%);
    padding: 4.5rem 2rem 2rem; overflow-y: auto; background: #fff;
    box-shadow: -.5rem 0 2rem rgba(0, 0, 0, .15);
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
}
.nav-offen .hauptnav { transform: none; visibility: visible; }
.nav-schleier { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .35); }
.nav-zu { position: absolute; top: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; padding: .55rem; border: 0; background: none; color: var(--grau); cursor: pointer; }
.nav-liste, .nav-liste ul { list-style: none; margin: 0; padding: 0; }
.nav-liste > li > a { display: block; padding: .55rem 0; font-size: 1.25rem; font-weight: 600; color: var(--titel); }
.nav-liste ul { padding: 0 0 .5rem 1rem; border-left: 1px solid #ddd; margin-left: .25rem; }
.nav-liste ul a { display: block; padding: .3rem 0; color: var(--grau); }
.nav-liste a[aria-current="page"] { color: var(--violett); }
.nav-liste a:hover { color: var(--violett); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .hauptnav { transition: none; } }

/* Typografie */
h1, h2, h3, h4 { font-weight: 600; color: var(--titel); line-height: 1.15; margin: 2.5rem 0 1rem; }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p, ul, ol { margin: 0 0 1rem; }
.text ul { padding-left: 1.25rem; }
.text li { margin-bottom: .15rem; }
hr { border: 0; border-top: 2px solid var(--linie); margin: 2.5rem 0; }
.einleitung { color: var(--grau); margin-bottom: 2rem; }

/* Spalten aus dem Baukasten */
.spalten { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.5rem; align-items: start; }
@media (min-width: 48em) { .spalten { grid-template-columns: var(--spalten); gap: 2.5rem; } }
.spalte > :first-child { margin-top: 0; }
.bild { margin: 0 0 1.5rem; }
.bild img { width: 100%; }

/* Galerien (The Grid, quadratisch) */
.galerie { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40em) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.galerie--4 { }
@media (min-width: 64em) { .galerie--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.galerie figure { margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; background: #eee; }
.galerie a { display: block; height: 100%; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galerie figcaption {
    position: absolute; inset: auto 0 0; padding: .6rem .8rem; font-size: .875rem; font-weight: 600; line-height: 1.3;
    color: #fff; background: rgba(22, 22, 22, .65); opacity: 0; transition: opacity .3s; pointer-events: none;
}
.galerie figure:hover figcaption, .galerie a:focus-visible + figcaption { opacity: 1; }
.galerie figure:hover img { transform: scale(1.04); }
/* Touch-Geräte: keine Titel über dem Bild (Wunsch Andreas Wolf 02.11.2026); der Titel steht im Großbild-Modal */
@media (hover: none) { .galerie figcaption { display: none; } }

/* Video per Klick */
.video { position: relative; margin: 1.5rem 0; aspect-ratio: 16 / 9; background: #222; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-knopf { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; width: 100%; border: 0; background: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); padding: 1rem; }
.video-knopf svg { width: 4.25rem; }
.video-knopf:hover svg path:first-child { fill: #c00; fill-opacity: 1; }
.video-hinweis { position: absolute; inset: auto 0 0; margin: 0; padding: .4rem .8rem; font-size: .75rem; line-height: 1.4; color: #fff; background: rgba(0, 0, 0, .6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Karte */
.karte { height: 26rem; background: #eee; margin: 0 0 .5rem; }
.karte-hinweis { padding: 1rem; color: var(--grau); }
.karte-links { font-size: .875rem; margin-bottom: 2rem; }
.maplibregl-popup-content p { margin: .25rem 0 0; }

/* Werkkatalog */
.werke { list-style: none; margin: 1rem 0 2.5rem; padding: 0; display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40em) { .werke { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .werke { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.werk a { display: block; color: var(--text); }
.werk a:hover { text-decoration: none; }
.werk-bild { display: block; aspect-ratio: 1; overflow: hidden; background: #eee; margin-bottom: .6rem; }
.werk-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.werk a:hover .werk-bild img { transform: scale(1.04); }
.werk-art, .werk-kuenstler { display: block; font-size: .8rem; color: var(--grau); line-height: 1.4; }
.werk-name { display: block; font-weight: 600; color: var(--titel); line-height: 1.35; }
.werk a:hover .werk-name { color: var(--violett); }

.werk-detail { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) { .werk-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.werk-hauptbild { margin: 0 0 .75rem; }
.werk-bilder { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.werk-bilder img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.werk-meta { color: var(--grau); }
.werk-schlagworte { font-size: .875rem; color: var(--grau); }
.werk-anfrage { padding: 1rem 1.25rem; background: var(--grund); }

/* Archiv, Beiträge */
.archiv ul { list-style: none; padding: 0; }
.archiv li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #e3e3e3; }
.archiv-jahr { color: var(--grau); }
.beitrag-datum { color: var(--grau); font-size: .875rem; margin-bottom: .5rem; }
.zurueck, .hinweis-weiter { margin-top: 2rem; }

/* Fuß wie im Original: weiße Box mit Schatten, zentriert */
.fuss { padding: 2.25rem var(--innen); text-align: center; font-size: .8125rem; line-height: 1.6; color: #000; background: #fff; box-shadow: 0 .5em 2em rgba(0, 0, 0, .12); position: relative; }
.fuss p { margin: 0; }
.fuss-adresse { margin-top: .5rem !important; color: var(--grau); }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.modal::backdrop { background: rgba(0, 0, 0, .85); }
.modal--foto { width: 100vw; height: 100vh; display: none; align-items: center; justify-content: center; }
.modal--foto[open] { display: flex; }
.modal--foto figure { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.modal--foto img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.modal--foto figcaption { color: #fff; padding: .75rem 1rem 0; text-align: center; }
.modal-zu { position: fixed; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: #fff; color: #222; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.modal-pfeil { position: fixed; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #222; font-size: 2rem; line-height: 1; cursor: pointer; }
.modal-zurueck { left: 1rem; }
.modal-weiter { right: 1rem; }
.modal--einzeln .modal-pfeil { display: none; }

@media print {
    body { background: none; }
    .kopf .nav-toggle, .hauptnav, .video, .karte, .karte-links { display: none; }
    .fuss { box-shadow: none; }
}
