/* ============================================================
   components.css — Buttons, Chips, Formular, Cookie-Banner
   Gemeinsame Basisklassen nur per Modifikator variieren (Anti-Fehler C).
   ============================================================ */

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.7rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
  border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--bordeaux); color: var(--paper); }
.btn--primary:hover { background: var(--bordeaux-deep); color: var(--paper); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--gold-deep); color: var(--bordeaux); transform: translateY(-2px); }
.btn--on-dark { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.4); }
.btn--on-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; justify-content: center; }
.btn .arrow { transition: transform var(--dur-1) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ----------------------- Chips / Status-Tafel ----------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-body);
  font-size: var(--fs-chip);
  text-transform: uppercase; letter-spacing: var(--tracking-chip); font-weight: 600;
  padding: .3rem .65rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--ink-600);
  background: var(--paper-2);
}
.chip--sold { color: var(--bordeaux); border-color: var(--bordeaux); background: var(--bordeaux-tint); }
.chip--print { color: var(--gold-deep); border-color: var(--gold-deep); }
.chip--original { color: var(--ink-600); }
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ----------------------- Werk-Tafel (Museums-Schild) ----------------------- */
.tombstone { margin-top: 1rem; }
.tombstone__title {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
  line-height: 1.15; color: var(--ink-900);
}
.tombstone__meta {
  margin-top: .35rem; font-size: var(--fs-meta); color: var(--ink-600);
  line-height: 1.45;
}
.tombstone__tech { color: var(--ink-400); }
.tombstone__chips { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; }

/* ----------------------- Kontakt-Formular ----------------------- */
.form { display: grid; gap: 1.3rem; max-width: 760px; }
.form-row { display: grid; gap: 1.3rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .9rem; font-weight: 600; color: inherit; }
.field .req { color: var(--gold); }
.field input, .field textarea {
  width: 100%; padding: .95rem 1.05rem;
  background: var(--paper-2); color: var(--ink-900);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--bordeaux);
}
.field__error { font-size: .82rem; color: var(--bordeaux); min-height: 1em; }
.section--dark .field input, .section--dark .field textarea {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: var(--on-dark);
}
.section--dark .field input::placeholder, .section--dark .field textarea::placeholder { color: var(--on-dark-soft); }

.consent { display: flex; align-items: flex-start; gap: .7rem; font-size: .9rem; }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--bordeaux); flex: none; }
.consent a { text-decoration: underline; }
.section--dark .consent a { color: var(--gold); }

.form-status { font-size: .92rem; min-height: 1.4em; }
.form-status.is-ok { color: var(--gold-deep); }
.section--dark .form-status.is-ok { color: var(--gold); }

/* ----------------------- Cookie-Banner (DSGVO/TTDSG) ----------------------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: clamp(1rem, 3vw, 2rem);
  transform: translateX(-50%) translateY(140%);
  width: min(680px, calc(100% - 2rem)); z-index: var(--z-cookie);
  padding: 1.4rem 1.5rem;
  background: rgba(250, 248, 245, .98);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  transition: transform var(--dur-2) var(--ease-out);
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-banner p { font-size: .9rem; color: var(--ink-600); max-width: none; }
.cookie-banner h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.cookie-actions { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.cookie-actions .btn { padding: .65rem 1.2rem; font-size: .88rem; flex: 1 1 auto; justify-content: center; }
.cookie-actions .btn--ghost { flex: 1 1 100%; order: 3; }
@media (min-width: 520px) { .cookie-actions .btn--ghost { flex: 1 1 auto; order: 0; } }

/* ============================================================
   Werk-Karte (Exponat) + Bild-Platzhalter — GLOBAL
   Genutzt im Werk-Teaser (Startseite) UND in den Galerien.
   Deshalb hier in components.css (nicht in gallery.css).
   ============================================================ */
.work-card { break-inside: avoid; margin-bottom: var(--gap); display: block; }
.work-card__frame {
  position: relative; overflow: hidden; border-radius: 2px;
  background: var(--paper-sink); box-shadow: var(--shadow-card);
  cursor: zoom-in; border: 1px solid var(--line);
  display: block; width: 100%; padding: 0; text-align: left;
  font: inherit; color: inherit; -webkit-appearance: none; appearance: none;
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.work-card__frame:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.work-card__media { display: block; width: 100%; height: auto; }
.work-card__media img { width: 100%; height: auto; display: block; transition: transform var(--dur-3) var(--ease-out); }
.work-card__frame:hover img, .work-card__frame:focus-visible img { transform: scale(1.05); }

/* Frosted-Glass-Overlay beim Hover (Technik C, limitiert) */
.work-card__overlay {
  position: absolute; inset: auto 0 0 0; padding: 1.1rem 1.2rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border-top: 1px solid var(--glass-border);
  transform: translateY(101%);
  transition: transform var(--dur-2) var(--ease-out);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.work-card__frame:hover .work-card__overlay, .work-card__frame:focus-within .work-card__overlay { transform: translateY(0); }
.work-card__overlay-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-900); line-height: 1.15; }
.work-card__zoom { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--bordeaux); color: var(--paper); display: grid; place-items: center; }
.work-card__zoom svg { width: 18px; height: 18px; }

/* Bild-Platzhalter (Passepartout), falls reale URL nicht lädt */
.art-ph {
  position: relative; display: grid; place-items: center; text-align: center;
  aspect-ratio: var(--ph-ar, 1 / 1);
  background: linear-gradient(135deg, var(--paper-2), var(--paper-sink));
  color: var(--ink-400);
}
.art-ph__mono { width: 54px; height: auto; opacity: .5; margin-bottom: .6rem; }
.art-ph__title { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink-600); padding-inline: 1rem; }
.art-ph__hint { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); margin-top: .4rem; }

/* ============================================================
   Timeline / CV — Gold-Faden-Leitmotiv (Ausstellungen + Weiterbildung)
   ============================================================ */
.timeline { position: relative; max-width: 980px; }
.timeline__item {
  position: relative;
  display: grid; grid-template-columns: 92px 1fr;
  gap: clamp(.8rem, 2vw, 1.4rem);
  padding: clamp(1.1rem, 2vw, 1.7rem) 0 clamp(1.1rem, 2vw, 1.7rem) 2rem;
  border-left: 1px solid var(--line);
}
.timeline__item::before {
  content: ""; position: absolute; left: -5px; top: calc(clamp(1.1rem,2vw,1.7rem) + .35rem);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--paper);
}
.timeline__item:hover::before { background: var(--bordeaux); }
.timeline__year {
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: var(--bordeaux); line-height: 1.2;
}
.timeline__year span { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--ink-400); margin-top: .25rem; }
.timeline__body { padding: clamp(1.15rem, 2vw, 1.7rem) clamp(1.35rem, 2.5vw, 2rem); }
.timeline__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-900); line-height: 1.25; margin: 0 0 .55rem; }
.timeline__date { color: var(--ink-900); font-size: .95rem; margin: .15rem 0; }
.timeline__ort  { color: var(--ink-600); font-size: .92rem; margin: .15rem 0; }
.timeline__text { color: var(--ink-600); font-size: .95rem; line-height: 1.5; margin: .6rem 0 0; }
.timeline__place { color: var(--ink-600); margin-top: .35rem; font-size: .95rem; }
.timeline__chips { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }

@media (max-width: 680px) {
  .timeline__item { grid-template-columns: 1fr; gap: .35rem; padding-left: 1.6rem; }
  .timeline__year { color: var(--bordeaux); }
}

/* Eigenständige Seiten-Intro (für Unterseiten ohne Galerie/Hero) */
.page-hero { padding-block: clamp(3rem, 7vw, 6rem) var(--block-y); }
.page-hero__title { font-size: var(--fs-h2); margin-top: .7rem; }
.page-hero__lead { margin-top: 1.1rem; color: var(--ink-600); font-size: var(--fs-lead); line-height: 1.6; }

/* Legal / Prosa-Seiten */
.prose { max-width: 75ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.4rem; margin-bottom: .8rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-900); }
.prose address { font-style: normal; color: var(--ink-900); margin-bottom: 1rem; line-height: 1.7; }
.prose a { text-decoration: underline; word-break: break-word; }
.prose ul.dash { margin: 0 0 1rem; }
.prose ul.dash li { position: relative; padding-left: 1.2rem; margin-bottom: .4rem; color: var(--ink-600); }
.prose ul.dash li::before { content: "—"; position: absolute; left: 0; color: var(--gold-deep); }
.prose .small { font-size: .85rem; color: var(--ink-400); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--section-y); }
.notfound__mono { width: 120px; height: auto; margin-inline: auto; margin-bottom: 1.5rem; }
.notfound__code { font-family: var(--font-display); font-size: clamp(3.5rem, 12vw, 7rem); line-height: 1; color: var(--ink-900); }
.notfound__text { color: var(--ink-600); margin: 1rem auto 2rem; max-width: 44ch; }
