/* claudia-valer.com · nach Figma HHMjB394dRKlrp8vEcnOKX, Seite «Übersichten Malerei und Skulptur»
   Desktop ab 1101 px (Entwurf 1512 × 898), Tablet 601–1100 px (768 × 1024), Handy bis 600 px (390 × 844). */

@font-face { font-family: "Ubuntu"; font-weight: 300; font-display: swap; src: url(schriften/ubuntu-300.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 400; font-display: swap; src: url(schriften/ubuntu-400.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 500; font-display: swap; src: url(schriften/ubuntu-500.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 700; font-display: swap; src: url(schriften/ubuntu-700.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-display: swap; src: url(schriften/cormorant-300.woff2) format("woff2"); }

:root {
  --ink: #323232;
  --grau: #767676;  /* Kontrast 4.5:1 auf Weiss: Hinweise «wird ergänzt» */
  --hellgrau: #969696; /* Linkfarbe der alten Webseite rgb(150,150,150) */
  --linie: rgba(50, 50, 50, .35);
  --kopf: 64px;
  --l: 64px;        /* Inhalt links (nach der Marke) */
  --r: 108px;       /* Inhalt rechts (Werkseiten, Texte) */
  --rk: 32px;       /* Kacheln rechts (bis an die Copyright-Spalte) */
  --hm: 100vh;
  --zr: 9px;        /* Zähler rechts */
  --pfeil: 2;
}
@supports (height: 100svh) { :root { --hm: 100svh; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color: var(--ink); background: #fff; font-family: "Ubuntu", system-ui, sans-serif; font-weight: 300;
  font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
a[href], button:not([disabled]) { cursor: pointer; } /* Hand über jedem Link */
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: calc(4px + .25em); text-decoration-thickness: 1px; }
/* Aktive Seite: kein Hover. Die Oberstufe im Pfad (Malerei, Skulptur) bleibt ein Link mit Hover. */
a[aria-current]:hover { text-decoration: none; cursor: default; }
/* Navigation: Unterstreichung etwas näher am Text */
.hauptnav a:hover, .hauptnav a:focus-visible, .ort a:hover, .menue a:hover { text-underline-offset: 6px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
svg path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---------- Kopf: Navigation (Desktop und Tablet) ---------- */
.kopf { position: fixed; top: 0; left: 0; right: 0; height: var(--kopf); background: #fff; z-index: 20; }
.hauptnav { position: absolute; left: var(--l); top: 21px; }
.hauptnav ul { list-style: none; display: flex; align-items: center; gap: 48px; font-size: 20px; line-height: 23px; white-space: nowrap; }
.hauptnav .gruppe, .hauptnav .aktivpfad, .hauptnav .pfad { display: flex; align-items: center; gap: 12px; }
.hauptnav .gruppe { gap: 48px; }
.hauptnav b, .hauptnav a[aria-current] { font-weight: 700; }
.pfeil { width: 9px; height: 15px; flex: none; }
.pfeil path { stroke-width: var(--pfeil); }
.burger, .ort, .menue { display: none; }

/* ---------- Ränder: Marke links, Copyright rechts, beide hochkant ---------- */
.marke { display: block; position: fixed; left: 10px; bottom: 26px; z-index: 35; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: "Cormorant Garamond", serif; font-weight: 300; font-size: 36px; line-height: 44px; white-space: pre; letter-spacing: .01em; }
.marke b { font-weight: 600; }
.marke { transition: color .2s; }
.marke:hover, .marke:focus-visible { text-decoration: none; color: var(--hellgrau); }
.fuss { position: fixed; right: 16px; top: var(--kopf); z-index: 35; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 12px; line-height: 14px; white-space: nowrap; }
.fuss .sep { margin-inline: 10px; }
.fuss a:hover, .fuss a:focus-visible { text-underline-offset: 4px; }
.fuss a[aria-current] { font-weight: 700; }

/* ---------- Kacheln: Startseite und Übersichten ---------- */
.kacheln { height: var(--hm); padding: var(--kopf) var(--rk) 0 var(--l); display: grid; overflow: hidden; }
.s-start .kacheln { grid-template-columns: 1fr 1fr; --bw: 464px; --bh: 64px; --bf: 36px; }
.s-malerei .kacheln { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; --bw: 273px; --bh: 48px; --bf: 20px; }
.s-skulptur .kacheln { grid-template-columns: repeat(3, 1fr); --bw: 322px; --bh: 64px; --bf: 36px; }
.kachel { position: relative; display: block; overflow: hidden; min-height: 0; min-width: 0; }
.kachel picture, .kachel img { width: 100%; height: 100%; object-fit: cover; }
.kachel img { object-position: var(--fp, 50% 50%); } /* Bildpunkt je Kachel aus bauen.py */
@media (min-width: 1101px) { .s-start .kachel:first-of-type img { object-position: 73% 100%; } } /* Ausschnitt Kartoffelberg wie in Renés Rahmen */
.band { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: var(--bw); max-width: 92%;
  height: var(--bh); display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .58);
  font-weight: 500; font-size: var(--bf); line-height: 1.15; white-space: nowrap; transition: background-color .2s; border-radius: 2px; }
.kachel:hover .band, .kachel:focus-visible .band { background: rgba(255, 255, 255, .85); font-weight: 700; }
.kachel:hover, .kachel:focus-visible { text-decoration: none; }
.platzhalter::before, .platzhalter::after { content: ""; position: absolute; left: 50%; top: 50%; background: #999; }
.platzhalter::before { width: 24px; height: 1px; transform: translate(-50%, -50%); }
.platzhalter::after { width: 1px; height: 24px; transform: translate(-50%, -50%); }

/* ---------- Werkseiten: ein Werk je Bildschirm ---------- */
html.s-werke { scroll-snap-type: y mandatory; }
.werk { height: var(--hm); scroll-snap-align: start; padding: var(--kopf) var(--r) 0 var(--l); overflow: hidden;
  --maxh: calc(var(--hm) - var(--kopf)); }
.werk figure { display: flex; align-items: flex-end; }
.werk .bild { display: block; flex: none; padding: 0; cursor: zoom-in; }
.werk img { width: min(calc(100% - var(--tb)), calc(var(--maxh) * var(--r))); max-width: none; height: auto; aspect-ratio: var(--r); }
.werk .bild { width: min(calc(100% - var(--tb)), calc(var(--maxh) * var(--r))); }
.werk .bild img { width: 100%; }
.textblock { padding: 24px 0 0 24px; }
.textblock .innen { display: block; border-top: 1px solid var(--linie); padding: 24px 60px 24px 0; }
.textblock .titel { display: block; font-weight: 500; font-size: 20px; line-height: 23px; margin-bottom: 13px; }
.textblock .angaben { display: block; font-size: 16px; line-height: 24px; }
.werk .textblock { flex: none; }
.werk.breit figure { flex-direction: column; align-items: flex-start; }
.werk.breit .bild { width: min(100%, calc((var(--maxh) - 184px) * var(--r))); }
.werk.breit .textblock { padding-left: 0; }

/* Zähler: rechte Randspalte, Pfeile an fester Stelle */
.zaehler { position: fixed; right: var(--zr); bottom: 35px; z-index: 25; display: flex; flex-direction: column; align-items: center; }
.zaehler button { width: 32px; height: 28px; display: grid; place-items: center; }
.zaehler button[disabled] { opacity: .25; cursor: default; }
.zaehler svg { width: 17px; height: 10px; }
.zaehler svg path { stroke-width: var(--pfeil); }
.zaehler .zahl { height: 77px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl;
  transform: rotate(180deg); font-weight: 400; font-size: 20px; line-height: 23px; white-space: nowrap; }

/* Grosses Bild */
dialog.gross { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: #fff; }
dialog.gross::backdrop { background: #fff; }
/* Grosses Bild: ganzer Bildschirm, ganzes Bild sichtbar (René 28.11.2026) */
dialog.gross img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
dialog.gross .schliessen { width: 40px; height: 40px; left: 8px; top: 12px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .85); }
/* Einfacher Kopierschutz: kein Ziehen, kein «Bild sichern» per langem Tippen */
.werk img, .kachel img, .bio-bild img, dialog.gross img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.schliessen { position: absolute; left: 12px; top: 22px; width: 21px; height: 21px; z-index: 2; }
.schliessen svg { width: 21px; height: 21px; }
.schliessen svg path { stroke-width: 2; }

/* ---------- Textseiten ---------- */
.texte { padding: var(--kopf) var(--r) 64px calc(var(--l) - 24px); display: flex; align-items: flex-start; }
.spalte { display: flex; flex-direction: column; align-items: flex-start; }
section.textblock .innen { max-width: 620px; }
.textblock h2.titel { font-weight: 500; font-size: 20px; line-height: 23px; margin-bottom: 13px; }
.eintrag + .eintrag { margin-top: 13px; }
.eintrag h3 { font-weight: 500; font-size: 16px; line-height: 24px; }
.eintrag p { font-size: 16px; line-height: 24px; }
.textblock p a, .textblock .mail { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  color: var(--hellgrau); text-decoration-color: var(--hellgrau); transition: color .2s, text-decoration-color .2s; }
.textblock p a:hover, .textblock p a:focus-visible, .textblock .mail:hover, .textblock .mail:focus-visible { text-underline-offset: 3px; color: var(--ink); text-decoration-color: var(--ink); }
.textblock .offen { color: var(--grau); }
/* Ausstellungen: zwei gleich breite Spalten (nur Desktop) */
@media (min-width: 1101px) {
  .texte.aus > .spalte { flex: 1 1 0; min-width: 0; }
  .texte.aus section.textblock { align-self: stretch; }
  .texte.aus section.textblock .innen { max-width: none; }
}
.bio { display: flex; align-items: flex-start; padding: var(--kopf) var(--r) 64px var(--l); }
.bio-bild { flex: none; }
.bio-bild img { height: calc(var(--hm) - var(--kopf)); width: auto; aspect-ratio: var(--r); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --r: 48px; --rk: 48px; --zr: 5px; }
  .hauptnav ul, .hauptnav .gruppe { gap: 36px; } /* Desktop 48, Tablet etwas enger (René 28.11.2026) */
  .s-start .kacheln { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; --bw: 62%; }
  .s-malerei .kacheln { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); --bw: 80%; }
  .s-skulptur .kacheln { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); --bw: 50%; }
  .werk figure, .werk.breit figure { flex-direction: column; align-items: flex-start; }
  .werk .bild, .werk.breit .bild { width: min(100%, calc((var(--maxh) - 184px) * var(--r))); }
  .werk .textblock { padding-left: 0; }
  .texte { flex-direction: column; }
  .bio { flex-direction: column; padding-left: calc(var(--l) - 24px); }
  .bio-bild { margin-left: 24px; align-self: stretch; }
  /* Tablet: Bild volle Breite, halbe Bildschirmhöhe, beschnitten auf die zwei Frauen (René 28.11.2026) */
  .bio-bild img { width: 100%; height: calc((var(--hm) - var(--kopf)) / 2); aspect-ratio: auto; object-fit: cover; object-position: 50% 45%; }
}

/* ---------- Handy ---------- */
@media (max-width: 600px) {
  :root { --l: 48px; --r: 44px; --rk: 44px; --zr: 2px; --pfeil: 3; }
  .hauptnav { display: none; }
  .burger { display: block; position: absolute; left: 9px; top: 23px; width: 24px; height: 17px; }
  .burger svg { width: 24px; height: 17px; }
  .burger svg path { stroke-width: 3; }
  .ort { display: flex; position: absolute; left: var(--l); right: 8px; top: 0; height: var(--kopf); align-items: center; gap: 12px;
    font-size: 18px; line-height: 21px; white-space: nowrap; overflow: hidden; }
  .ort a[aria-current] { font-weight: 700; }
  .menue:not([hidden]) { display: block; position: fixed; inset: 0; background: #fff; z-index: 30; }
  .menue ul { list-style: none; position: absolute; left: var(--l); top: 120px; display: flex; flex-direction: column; gap: 20px;
    font-size: 28px; line-height: 32px; }
  .menue a[aria-current] { font-weight: 700; }
  .menue .schliessen { left: 12px; top: 22px; }
  .menue .schliessen svg path { stroke-width: 3; }
  .marke { left: 6px; font-size: 24px; line-height: 29px; }
  .s-start .kacheln { --bw: 62%; --bh: 48px; --bf: 24px; }
  .s-malerei .kacheln { --bw: 80%; --bh: 32px; --bf: 14px; }
  .s-skulptur .kacheln { --bh: 48px; --bf: 24px; }
  .texte { padding-right: var(--r); }
  .bio-bild img { width: 100%; height: auto; aspect-ratio: var(--r); }
  section.textblock .innen { max-width: 100%; }
}
html.menue-offen { overflow: hidden; }
html.menue-offen .kopf { z-index: 32; }

@media (prefers-reduced-motion: no-preference) { html.s-werke { scroll-behavior: smooth; } }
@media print { .kopf, .zaehler, .fuss, .marke { position: static; } }
