/* =========================================================
   Art by Vesna – statische Website
   Farben, Schrift und Abstände nach dem Original (Avada-Theme),
   Kontraste und Schriftgrößen für Barrierefreiheit (WCAG 2.2 AA) angepasst.
   ========================================================= */

:root {
  --c-text: #4a4e57;        /* Fließtext (Original) */
  --c-heading: #212934;     /* Überschriften & Links (Original) */
  --c-black: #000;          /* Hauptmenü (Original) */
  --c-accent: #c400a6;      /* "View More" – Original #e000be, für Kontrast 4.5:1 leicht abgedunkelt */
  --c-hover: #b0008f;
  --c-pink: #e67fb9;        /* Primärfarbe des Themes */
  --c-footer: #63676b;      /* Original #83888c, abgedunkelt für lesbare weiße Schrift */
  --c-line: #e2e2e2;
  --c-focus: #212934;

  --font: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", "Noto Serif", serif;

  /* Fließtext: 17 px auf dem Handy bis 19 px auf großen Bildschirmen, skaliert mit Browser-Zoom */
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-nav: clamp(1.0625rem, 1rem + 0.1vw, 1.125rem);
  --fs-h1: clamp(2rem, 1.55rem + 1.6vw, 2.5rem);          /* 32–40 px */
  --fs-hero: clamp(2.25rem, 1.6rem + 2.6vw, 3rem);         /* 36–48 px */
  --fs-tile: clamp(1.625rem, 1.35rem + 1vw, 1.875rem);     /* 26–30 px */
  --fs-small: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);

  --site-width: 1200px;
  --gutter: clamp(1.25rem, 0.5rem + 2.5vw, 1.875rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: #fff;
}

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

a { color: var(--c-heading); text-decoration: none; }
a:hover { color: var(--c-pink); }
main a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
main a:hover { color: var(--c-hover); }
main .tile a { text-decoration: none; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 400;
  color: var(--c-heading);
  line-height: 1.16;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem); margin-top: 1.4em; font-weight: 700; }

p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 1000;
  background: var(--c-heading);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-body);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--site-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Kopfbereich ---------- */
.site-header { padding-top: 0.5rem; }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.social { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--c-heading);
}
.social a:hover { color: var(--c-pink); }
.social svg { width: 20px; height: 20px; }

.logo {
  display: block;
  width: 150px;
  margin: 0.75rem auto clamp(2rem, 1rem + 3vw, 3.5rem);
}
.logo img { width: 150px; height: auto; }

/* Hauptnavigation */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  margin-left: -10px;
  padding: 0;
  background: none; border: 0;
  color: var(--c-heading);
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; margin-left: -20px; }
.main-nav li { position: relative; margin: 0; }
.main-nav a {
  display: block;
  padding: 10px 20px;
  font-size: var(--fs-nav);
  line-height: 1.6;
  color: var(--c-black);
}
.main-nav a:hover { color: var(--c-pink); }
/* Pink ist als Textfarbe zu kontrastarm – aktueller Menüpunkt daher dunkel mit pinker Unterstreichung */
.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--c-pink);
  text-decoration-thickness: 2px;
}

.has-sub { display: flex; align-items: center; }
.main-nav .has-sub > a { padding-right: 4px; }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 44px;
  padding: 0; margin-right: 8px;
  background: none; border: 0;
  color: var(--c-black);
  cursor: pointer;
}
.sub-toggle svg { width: 12px; height: 12px; transition: transform 0.2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%; left: 0;
  z-index: 50;
  min-width: 220px;
  padding: 0.5rem 0 !important;
  background: #fff;
  border-top: 3px solid var(--c-pink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: none;
}
.submenu.is-open { display: block; }
.submenu a { padding: 8px 20px; white-space: nowrap; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 56px;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { display: block; margin: 0; padding: 0.5rem 0; }
  .main-nav li { border-bottom: 1px solid var(--c-line); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { padding: 12px var(--gutter); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 48px; height: 48px; margin-right: calc(var(--gutter) - 12px); }
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-top: 1px solid var(--c-line);
    padding: 0 !important;
  }
  .submenu li { border-bottom: 0; }
  .submenu a { padding-left: calc(var(--gutter) + 1.25rem); }
  .site-header { position: relative; }
}

/* ---------- Inhalt ---------- */
main { display: block; }
.page { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.page--text { max-width: 900px; }

/* Startseite */
.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.16;
  color: var(--c-text);
  text-align: center;
  margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  list-style: none;
  margin: 0; padding: 0;
}
.tile { margin: 0; }
.tile__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4em;
  font-size: var(--fs-tile);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.tile__title a { color: var(--c-heading); }
.tile__title a:hover { color: var(--c-hover); }
.tile__more {
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--c-accent) !important;
  text-decoration: none;
}
main .tile__more:hover { text-decoration: underline; color: var(--c-hover) !important; }
.tile__img { display: block; background: #8a9097; }
.tile__img img { width: 100%; aspect-ratio: 900 / 730; object-fit: cover; }
.tile__img:hover img { opacity: 0.92; }
@media (max-width: 800px) {
  .tiles { grid-template-columns: 1fr; }
}

/* Editions-Seiten */
.edition-header { text-align: center; margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.edition-header h1 { margin-bottom: 0; }

.works { list-style: none; margin: 0; padding: 0; }
.work {
  max-width: 900px;
  margin: 0 auto clamp(3.5rem, 2.5rem + 3vw, 6rem);
}
.work__caption {
  max-width: 830px;
  margin: 1.25rem auto 0;
}
.work__title { font-size: inherit; font-weight: 700; color: var(--c-text); margin: 0; line-height: 1.6; }
.work__caption p { margin: 0; }
.work__buy { display: inline-block; margin-top: 0.15em; padding: 0.35em 0; }

/* Bildergalerie (ersetzt den Slider) */
.gallery { position: relative; background: #8a9097; }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  margin: 0; padding: 0;
  overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -3px; }
.gallery__slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery__slide img { width: 100%; aspect-ratio: 900 / 730; object-fit: cover; }

.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(33, 41, 52, 0.75);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery__btn:hover { background: rgba(33, 41, 52, 0.95); }
.gallery__btn:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--c-focus); }
.gallery__btn[disabled] { opacity: 0.35; cursor: default; }
.gallery__btn svg { width: 18px; height: 18px; }
.gallery__btn--prev { left: 12px; }
.gallery__btn--next { right: 12px; }
.gallery__count {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(33, 41, 52, 0.75);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.6;
}
.no-js .gallery__btn, .no-js .gallery__count { display: none; }

/* Künstlerin */
.artist {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.artist__media { margin: 0; position: sticky; top: 1.5rem; }
.artist__media img { width: 100%; }
@media (max-width: 800px) {
  .artist { grid-template-columns: 1fr; }
  .artist__media { order: -1; position: static; }
}

.contact-block { font-style: normal; margin: 0 0 1.25em; }

/* ---------- Fußbereich ---------- */
.site-footer {
  background: var(--c-footer);
  color: #fff;
  padding: 60px 0 64px;
  font-size: var(--fs-small);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.footer-menu a {
  display: block;
  padding: 10px 10px 10px 12px;
  color: #fff;
}
.footer-menu a::before { content: "›"; display: inline-block; margin-right: 8px; }
.footer-menu a:hover { text-decoration: underline; color: #fff; }
.footer-menu a[aria-current="page"] { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
@media (max-width: 800px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* Nach oben */
.to-top {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 4px 4px 0 0;
  background: #333c4e;
  color: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.to-top.is-visible { opacity: 0.9; visibility: visible; }
.to-top:hover { opacity: 1; color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* Druckansicht */
@media print {
  .site-header nav, .nav-toggle, .social, .to-top, .gallery__btn, .gallery__count, .site-footer { display: none !important; }
  .gallery__track { overflow: visible; flex-wrap: wrap; }
  body { font-size: 12pt; color: #000; }
}
