/* Brenaud — Acrylmalerei
   Startseite. Reines CSS, mobile-first, ein Schriftpaar (Newsreader / Hanken Grotesk).
   Die Bilder sind das stärkste visuelle Element; Weißraum rahmt sie, dominiert nicht. */

/* --- Schriften: lokal ausgeliefert (SIL Open Font License 1.1, siehe fonts/OFL-*.txt).
   Variable Fonts; Unicode-Bereiche wie bei Google Fonts (latin / latin-ext). --- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-ext-opsz-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f0e7;
  --ink: #22201d;
  --ink-soft: #6d665b;
  --rule: #d8d0be;
  --link-line: #8a8273; /* gedämpfte Unterstreichung, ca. 3,4:1 zum Hintergrund */
  --placeholder: #e7e1d4;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", var(--font-serif); /* nur für den Namen */
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 34rem;
  --page-x: clamp(1.5rem, 6vw, 6rem);
  --shell: 78rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
}
.skip-link:focus {
  left: var(--page-x);
  top: 0.75rem;
  z-index: 10;
}

/* --- Shared shell width --- */
.site-header,
main,
.site-footer {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--page-x);
}

/* --- Header --- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding-block: clamp(1.25rem, 3.5vw, 2.25rem);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase; /* im HTML bleibt „Anna Brenaud“ */
  margin-right: -0.15em;     /* Sperrung nach dem letzten Buchstaben ausgleichen */
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}
.site-nav a { color: var(--ink-soft); transition: color 0.2s ease; }
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); }

/* --- Hero: ein großes Werk trägt die Seite --- */
.hero {
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 8vw, 5.5rem);
}

.hero-figure { margin: 0; }

.hero-figure img {
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  margin-inline: auto;
  background: var(--placeholder);
}

.hero-caption {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.hero-caption-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.3;
}
.hero-caption-title em { font-style: italic; }

/* --- Section headings --- */
.section-heading {
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.works,
.about { padding-block: clamp(2.75rem, 7vw, 5rem); }

/* Über ist die letzte Sektion: großzügiger Ausklang vor dem Footer. */
.about { padding-bottom: clamp(4rem, 10vw, 7rem); }

/* --- Selected works: kuratierte Gruppe, editorial, keine Cards --- */
.works-list { list-style: none; margin: 0; padding: 0; }

.work { margin-top: clamp(1.5rem, 5vw, 2.25rem); }
.work:first-child { margin-top: 0; }
/* Zickzack-Satz (Startseite + Frühere Werke): mehr Luft zwischen den Werken
   (Desktop-Werte weiter unten). */
.works-list--zigzag .work + .work { margin-top: clamp(3rem, 12vw, 4.5rem); }
/* Frühere Werke (kleinere Formate): auch mobil schmaler, abwechselnd rechts / links. */
.works-list--earlier .work { width: 80%; }
.works-list--earlier .work:nth-child(odd) { margin-left: auto; }
.works-list--earlier .work--5 { width: 100%; }

.work figure { margin: 0; }
.work img { width: 100%; background: var(--placeholder); }

.work figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.8rem;
  font-size: 0.875rem;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.4;
}
.work-title em { font-style: italic; }

.work-meta {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Leiser Verweis unter einer Werkliste (Startseite → Frühere Werke und zurück). */
.works-more {
  max-width: 68rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}
.works-more a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--link-line);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.works-more a:hover,
.works-more a:focus-visible { color: var(--ink); text-decoration-color: currentColor; }

/* Hinweis zu den Preisen (Kleinunternehmerin, § 19 UStG) – leise, direkt unter der Werkliste. */
.works-note {
  max-width: 68rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.works-note + .works-more { margin-top: 1rem; }

/* Unterseite „Frühere Werke“: Abstand oben wie bei den Rechtsseiten. */
.works--page { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 10vw, 7rem); }

/* --- About: zweispaltig --- */
.about-grid { display: grid; gap: clamp(1.5rem, 5vw, 2.5rem); }

.about-body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.72;
}
.about-body p { margin: 0; max-width: var(--measure); }
.about-body p + p { margin-top: 1.2em; }

/* Schlusssatz des Statements: etwas abgesetzt, kursiv — bewusst zurückhaltend. */
.about-body .about-close {
  margin-top: 2em;
  font-style: italic;
  font-size: 1.0556em; /* ca. 1.1875rem */
}

.about-figure { margin: 0; max-width: 30rem; }
.about-figure img { width: 100%; background: var(--placeholder); }

/* --- Künstlerischer Werdegang (vorbereitet; Abschnitt ist bis zur Befüllung hidden) --- */
.cv { padding-bottom: clamp(4rem, 10vw, 7rem); }
.cv-list { margin: 0; max-width: var(--measure); }
.cv-entry {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.cv-entry dt { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cv-entry dd { margin: 0; }

/* --- Footer --- */
.site-footer {
  margin-top: 0;
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(2.5rem, 5vw, 3rem);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 1.5rem;
  font-size: 0.8125rem;
}
.footer-contact p { margin: 0 0 0.4rem; }
.footer-contact a,
.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--link-line);
  transition: text-decoration-color 0.2s ease;
}
.footer-contact a:hover,
.footer-legal a:hover,
.footer-contact a:focus-visible,
.footer-legal a:focus-visible { text-decoration-color: currentColor; }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-colophon { margin: 0; color: var(--ink-soft); }

/* --- Rechtstexte (impressum.html, datenschutz.html) --- */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 10vw, 7rem); }

.legal-body {
  max-width: var(--measure);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.legal-body h2 {
  margin: 2.4rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { margin: 0 0 0.9rem; }
.legal-body address { font-style: normal; }
.legal-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--link-line);
  transition: text-decoration-color 0.2s ease;
}
.legal-body a:hover,
.legal-body a:focus-visible { text-decoration-color: currentColor; }

.legal-updated {
  margin-top: 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* --- Kontakt: Formular + Rückmeldeseiten --- */
.contact { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 10vw, 7rem); }
.contact-grid { display: grid; gap: clamp(2rem, 6vw, 3rem); }

.contact-intro,
.contact-status {
  max-width: var(--measure);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.contact-intro p,
.contact-status p { margin: 0 0 0.9rem; }
.contact-status ul { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.contact-intro a,
.contact-status a,
.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--link-line);
  transition: text-decoration-color 0.2s ease;
}
.contact-intro a:hover,   .contact-intro a:focus-visible,
.contact-status a:hover,  .contact-status a:focus-visible,
.form-note a:hover,       .form-note a:focus-visible { text-decoration-color: currentColor; }
.contact-status .works-more { margin: 2rem 0 0; font-family: var(--font-sans); }

.contact-form { max-width: 32rem; }
.field { margin-bottom: 1.6rem; }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.field-optional { color: var(--ink-soft); }

.field input,
.field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid var(--link-line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Honeypot: für Menschen unsichtbar, für Screenreader ausgeblendet. */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0 0 1.6rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.form-submit {
  appearance: none;
  margin: 0;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.form-submit:hover { background: var(--ink); color: var(--bg); }
.form-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* --- Desktop --- */
@media (min-width: 52rem) {
  .hero-figure {
    display: flex;
    align-items: flex-end;
    gap: clamp(2rem, 5vw, 4rem);
  }
  /* Bild behält sein natürliches Seitenverhältnis:
     Querformat läuft in die Breite, Hochformat in die Höhe. */
  .hero-figure img {
    flex: 0 1 auto;
    width: auto;
    height: auto;
    max-width: 68%;
    max-height: min(82vh, 52rem);
    margin-inline: 0;
  }
  .hero-caption {
    margin-top: 0;
    padding-bottom: 0.4rem;
    max-width: 16rem;
  }

  /* Editoriale Anordnung: zwei Doppelseiten (1+2, 3+4), Werk 5 breit allein.
     Enge Zeilenabstände + begrenzte Breite: die fünf wirken als kuratierte Gruppe. */
  .works-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 6%;
    row-gap: clamp(1.75rem, 4.25vw, 3.25rem);
    max-width: 68rem;
    margin-inline: auto;
  }
  .work { margin-top: 0; }
  .work--1 { width: 56%; }
  .work--2 { width: 30%; margin-left: auto; margin-top: 5rem; }
  .work--3 { width: 44%; margin-left: 6%; }
  .work--4 { width: 32%; margin-left: auto; margin-top: 3rem; }
  .work--5 { width: 78%; margin-left: 8%; }

  /* Kontakt: Einleitung links, Formular rechts. */
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); column-gap: clamp(3rem, 8vw, 7rem); }

  /* Zickzack-Satz: jedes Werk steht allein in seiner Reihe, abwechselnd
     rechts / links, mit viel Luft dazwischen. */
  .works-list--zigzag { display: block; }
  .works-list--zigzag .work + .work { margin-top: clamp(5rem, 9vw, 8rem); }

  /* Startseite */
  .works-list--start .work--1 { width: 40%; margin-left: auto; margin-right: 4%; }  /* rechts */
  .works-list--start .work--2 { width: 34%; margin-left: 8%; }                       /* links  */
  .works-list--start .work--3 { width: 38%; margin-left: auto; margin-right: 10%; } /* rechts */
  .works-list--start .work--4 { width: 38%; margin-left: 3%; }                       /* links  */
  .works-list--start .work--5 { width: 26%; margin-left: auto; margin-right: 14%; } /* rechts */

  /* Frühere Werke: kleinere Formate (Quadrate 40 × 40 cm), gleiches Prinzip. */
  .works-list--earlier .work--1 { width: 26%; margin-left: auto; margin-right: 6%; }  /* rechts: Vangard */
  .works-list--earlier .work--2 { width: 22%; margin-left: 12%; }                      /* links:  Xerastamos */
  .works-list--earlier .work--3 { width: 26%; margin-left: auto; margin-right: 14%; } /* rechts: Ohne Titel */
  .works-list--earlier .work--4 { width: 24%; margin-left: 4%; }                       /* links:  Dens */
  .works-list--earlier .work--5 { width: 52%; margin-left: auto; margin-right: 4%; }  /* rechts: Lavin (Querformat) */
  .works-list--earlier .work--6 { width: 22%; margin-left: 14%; }                      /* links:  Meravil */

  .work figcaption { font-size: 0.8125rem; }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-legal { justify-self: end; }
  .footer-colophon { grid-column: 1 / -1; }
}

/* --- Über: Text + Atelierbild nebeneinander erst, wenn die volle Lesebreite Platz hat.
   Darunter (Smartphone, Tablet) steht das Bild unter dem Text. --- */
@media (min-width: 64rem) {
  .about-grid {
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .about-figure {
    max-width: none;
    position: sticky;
    top: 2rem;
  }
}

/* --- Subtle reveal (opacity only) ---
   Progressive enhancement: Die Klasse .js setzt erst script.js. Lädt das Script
   nicht, bleiben alle Werke sichtbar. */
.js [data-reveal] { opacity: 0; transition: opacity 1s ease; }
.js [data-reveal].is-visible { opacity: 1; }

@media print {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; }
}
