/* style.css — Elisabeth Opletal, öffentliche Website
   Design-Tokens 1:1 aus dem Handoff (README.md) übernommen. */

/* Schriften lokal eingebunden (kein Google-Fonts-CDN) -- vermeidet, dass beim Seitenaufruf
   Besucherdaten (IP-Adresse) ohne Einwilligung an Google übertragen werden (DSGVO). */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/cormorant-garamond-300.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-400.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/karla-300.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/karla-400.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/karla-500.woff2') format('woff2'); }

:root {
  --bg: #100E0C;
  --surface: #171410;
  --img-placeholder: #1C1B1A; /* neutrales Dunkelgrau für fehlende Bilder */
  --line: #2A241E;
  --border: #3C342C;
  --border-2: #4A4137;
  --text: #F0EBE2;
  --text-2: #BDB3A5;
  --text-3: #9A8F81;
  --text-4: #8A8075;
  --text-5: #6E655B;
  --accent: #D3A375;
  --overlay: rgba(8, 7, 6, 0.94);
  --max-width: 1180px;
  --page-pad: 28px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Fehlendes Bild: ruhige dunkelgraue Fläche ohne Beschriftung (der Text bleibt nur für Screenreader) */
.img-placeholder {
  background: var(--img-placeholder);
  width: 100%;
  height: 100%;
  min-height: 120px;
}
.img-placeholder span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: .06em;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
}
.btn-primary { background: var(--accent); color: #100E0C; }
.btn-primary:hover { background: #F0EBE2; }
.btn-secondary { border-color: var(--border-2); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-line {
  border: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: .08em;
  padding: 10px 18px;
  background: none;
  color: var(--text);
  white-space: nowrap;
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* Header — bleibt beim Scrollen oben stehen, damit das Menü immer erreichbar ist */
html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  padding-bottom: 18px;
  background: rgba(16, 14, 12, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(16, 14, 12, .82); backdrop-filter: blur(8px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.site-header .brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  margin: 0;
  font-size: 30px;
  line-height: 1.0;
}
.site-header .brand:hover .brand-name { color: var(--accent); }
.nav-toggle { display: none; }

/* „Nach oben"-Knopf, erscheint nach etwas Scrollen */
.to-top {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(16, 14, 12, .9);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { border-color: var(--accent); color: var(--accent); }

.back-link { margin: 0 0 28px; font-size: 14px; letter-spacing: .04em; }
.back-link a { color: var(--text-3); }
.back-link a:hover { color: var(--accent); }

.site-header .brand .sub {
  margin-top: 4px;
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 14px;
  letter-spacing: .04em;
  padding-top: 8px;
}
.site-nav a:hover { color: var(--accent); }

/* Handy und Tablet: Menü hinter einem Knopf (unter 900px würde die Menüzeile sonst umbrechen und die Kopfzeile zu hoch machen) */
@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .site-header { padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
  .site-header .wrap { flex-wrap: nowrap; align-items: center; }
  .site-header .brand-name { font-size: 24px; }
  .site-header .brand .sub { font-size: 10px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: none;
    color: var(--text);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
    display: block;
    position: relative;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform .2s, background-color .2s, top .2s;
  }
  .nav-toggle-icon::before, .nav-toggle-icon::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-icon::before { top: -6px; }
  .nav-toggle-icon::after { top: 6px; }
  .nav-open .nav-toggle-icon { background-color: transparent; }
  .nav-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--page-pad) 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 17px; border-top: 1px solid var(--line); }
  .site-nav a:first-child { border-top: 0; }
  .to-top { width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 20px; }
  .to-top span { display: none; }
}

/* Section rhythm */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}
.section-head h2 { font-size: 40px; }

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 76px 0 90px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: end;
  gap: 48px;
}
/* Credo: jede Zeile aus dem Pflege-Bereich ist genau eine Zeile hier — links Großbuchstaben, rechts gelb.
   Leere Zeilen ergeben Abstand. Nur wenn eine Zeile wirklich nicht passt, rutscht das gelbe Wort rechtsbündig darunter. */
.hero-lines {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}
.hero-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 20px;
  line-height: 1.25;
}
.hero-line-empty { height: .8em; font-size: clamp(22px, 3.4vw, 38px); }
.hero-line .label {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 300;
  letter-spacing: .05em;
  text-align: left;
}
.hero-line .label strong { font-weight: 500; }
.hero-line .verb {
  margin-left: auto;
  text-align: right;
  font-style: italic;
  font-size: clamp(21px, 3vw, 34px);
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
}
.hero-text {
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-3);
  max-width: 46ch;
}
.hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { aspect-ratio: 4/5; background: var(--img-placeholder); overflow: hidden; }
.hero-image img, .hero-image picture img { width: 100%; height: 100%; object-fit: cover; max-width: 100%; max-height: 100%; }

/* Galerie */
.group {
  border-top: 1px solid var(--line);
}
.group-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 2px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
}
.group-toggle:hover .group-name,
.group-toggle:hover .group-count { color: var(--accent); }
.group-toggle-left { display: flex; align-items: baseline; gap: 18px; }
.group-num { font-family: 'Karla', sans-serif; font-size: 12px; letter-spacing: .14em; color: var(--text-4); min-width: 28px; }
.group-name { font-size: 30px; font-family: 'Cormorant Garamond', serif; }
.group-toggle-right { display: flex; align-items: center; gap: 18px; }
.group-count { font-size: 13px; color: var(--text-4); }
.group-sign { font-size: 22px; color: var(--accent); width: 18px; text-align: center; }

.group-content { padding: 0 2px 34px; }
.group-note { font-size: 15px; line-height: 1.7; color: var(--text-3); max-width: 56ch; margin: 0 0 24px; }
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.artwork { cursor: zoom-in; }
.artwork-frame { aspect-ratio: 1/1; background: var(--img-placeholder); overflow: hidden; }
.artwork-frame img { width: 100%; height: 100%; object-fit: cover; }
.artwork-caption { margin-top: 10px; font-size: 13px; color: var(--text-4); }
.artwork.sold .artwork-caption .sold-tag { color: var(--accent); }

.group-more { margin-top: 28px; text-align: center; }
.group-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.group-footer .hint { font-size: 13px; color: var(--text-4); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--overlay);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-imgwrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 92vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-imgwrap img {
  max-height: 100%;
  max-width: 92vw;
  height: auto;
  width: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  cursor: default;
}
.lightbox-controls button { white-space: nowrap; }
.lightbox-hint {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-5);
  text-transform: uppercase;
  text-align: center;
}
.lightbox-hint .hint-touch { display: none; }
.lightbox-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(16, 14, 12, .7);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
}
.lightbox-close:hover, .lightbox-close:focus-visible { border-color: var(--accent); color: var(--accent); }
.lightbox-imgwrap { touch-action: pinch-zoom; }
.lightbox-imgwrap img { will-change: transform; user-select: none; -webkit-user-drag: none; }

/* Touch-Geräte: Wisch-Hinweis statt Klick-Hinweis */
@media (hover: none) {
  .lightbox-hint .hint-desktop { display: none; }
  .lightbox-hint .hint-touch { display: inline; }
}
@media (max-width: 640px) {
  .lightbox { padding: 64px 10px calc(18px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .lightbox-imgwrap { width: 100%; }
  .lightbox-imgwrap img { max-width: 100%; }
  .lightbox-controls { width: 100%; justify-content: space-between; gap: 10px; }
  .lightbox-controls .lb-label { display: none; }
  .lightbox-controls button { padding: 10px 16px; font-size: 18px; }
  #lightbox-caption { flex: 1; text-align: center; font-size: 12px; }
  .lightbox-hint { font-size: 10px; }
}

/* Über mich */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
}
.about-portrait { aspect-ratio: 3/4; max-width: 420px; background: var(--img-placeholder); overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { font-size: 17px; line-height: 1.8; color: var(--text-2); max-width: 52ch; margin: 0 0 20px; }
.about-dl { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.about-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-4); }
.about-dl dd { margin: 2px 0 0; color: var(--text-2); }

/* Aktuelles
   Computer/Tablet: Datum (+ kleiner Status) | Text | Bild daneben. Handy: alles untereinander in voller Breite. */
.news-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-areas: "meta text";
  gap: 14px 34px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.news-item.has-image {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  grid-template-areas: "meta text image";
}
.news-meta { grid-area: meta; }
.news-text { grid-area: text; }
.news-date { font-family: 'Cormorant Garamond', serif; font-size: 23px; line-height: 1.15; color: var(--accent); }
.news-status {
  margin-top: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-4);
}
.news-status.status-geplant { color: var(--accent); }
.news-title { font-size: 19px; font-weight: 500; line-height: 1.35; margin-bottom: 8px; }
.news-body { font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 56ch; }
/* Bild zum Termin: vollständig (ohne Beschnitt) als Vorschau, Klick öffnet die Lightbox */
.news-image { grid-area: image; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; }
/* Größe kommt aus width/height (bereits auf max. 300×420 verkleinert), height:auto hält das Seitenverhältnis */
.news-image img { max-width: 100%; height: auto; transition: opacity .2s; }
.news-image:hover img { opacity: .88; }
.news-image:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

@media (max-width: 900px) {
  .news-item { grid-template-columns: 110px minmax(0, 1fr); gap: 12px 24px; }
  .news-item.has-image { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 220px); }
  .news-date { font-size: 20px; }
}
@media (max-width: 640px) {
  .news-item, .news-item.has-image {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "meta" "text" "image";
    gap: 6px;
    padding: 24px 0 28px;
  }
  .news-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  .news-date { font-size: 20px; }
  .news-status { margin-top: 0; font-size: 10px; }
  .news-title { font-size: 18px; margin-bottom: 4px; }
  .news-body { max-width: none; }
  .news-image { width: 100%; margin-top: 12px; }
  .news-image img { width: 100%; }
}

/* Making of */
.makingof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.makingof-card-img { aspect-ratio: 1/1; background: var(--img-placeholder); overflow: hidden; margin-bottom: 14px; }
.makingof-card-img img { width: 100%; height: 100%; object-fit: cover; }
.makingof-card p { font-size: 14px; line-height: 1.65; color: var(--text-2); margin: 0; }
.makingof-card .lead { font-weight: 500; color: var(--text); }

/* Bilder kaufen */
.buying-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.buying-text p { font-size: 17px; line-height: 1.8; color: var(--text-2); max-width: 48ch; }
.buying-box { background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.buying-box dl { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.buying-box dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-4); }
.buying-box dd { margin: 2px 0 0; color: var(--text-2); }

/* Atelierbesuch */
.studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: center; gap: 48px; }
.studio-text p { font-size: 17px; line-height: 1.8; color: var(--text-2); max-width: 48ch; }
.studio-image { aspect-ratio: 3/2; background: var(--img-placeholder); overflow: hidden; }
.studio-image img { width: 100%; height: 100%; object-fit: cover; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.contact-text p { font-size: 17px; line-height: 1.8; color: var(--text-2); max-width: 48ch; }
.contact-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--text-2); }
.contact-form { background: var(--surface); border: 1px solid var(--line); padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); display: flex; flex-direction: column; gap: 8px; }
.contact-form input, .contact-form textarea {
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-5); }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { font-size: 13px; color: var(--text-4); margin: 0; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #c97b6b; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 60px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-4);
}

/* Statische Textseiten (Impressum/Datenschutz) */
.plain-page { padding: 90px 0; }
.plain-page h1 { font-size: 36px; margin-bottom: 24px; }
.plain-page p, .plain-page li { font-size: 16px; line-height: 1.7; color: var(--text-2); }

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 50px 0 60px; }
  .section-head h2 { font-size: 32px; }
}
