/* ==========================================================================
   Edda Swatschina – Website
   Gestaltung: warmes „Atelierpapier“, Weinrot als Akzent, große gut lesbare Schrift.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f6f2ea;
  --paper-2: #ede5d7;
  --card: #fffdf8;
  --ink: #26221e;
  --ink-2: #554c43;
  --line: #d9cebd;
  --accent: #8a2d3b;        /* Weinrot */
  --accent-dark: #6b2130;
  --accent-soft: #f3e3e2;
  --night: #2d3b54;         /* Tintenblau – erinnert an die alte Seite */
  --gold: #c9a24a;
  --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(38, 34, 30, .06), 0 10px 30px -12px rgba(38, 34, 30, .25);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.1875rem, 1.1rem + .3vw, 1.3125rem);  /* ca. 19–21 px */
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 1.9rem + 3vw, 4.4rem); }
h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.mt { margin-top: 2.2em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.eyebrow {
  font-size: .82em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .7em;
}
.lead { font-size: 1.1em; color: var(--ink); }
.lead p:last-child { margin-bottom: 0; }
.hint { color: var(--ink-2); font-size: .95em; }
.notice { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: .8em 1em; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 56px; padding: .6em 1.4em; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; letter-spacing: .01em;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .1s;
  font-size: 1.05em;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--paper); color: var(--night); }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8em; margin: 1.6em 0 0; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 234, .94);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.05; padding: .5rem 0; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.25rem); }
.brand-tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: .35em; }

.main-nav ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .55em .95em; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02em;
}
.main-nav a:hover { background: var(--paper-2); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--accent); color: #fff; }

.menu-btn {
  display: none; align-items: center; gap: .55em;
  min-height: 52px; padding: .4em 1.05em; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 1.05rem var(--sans); cursor: pointer;
}
.menu-icon { display: inline-grid; gap: 5px; width: 22px; }
.menu-icon span { height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(0,0,0,.3);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .4rem var(--gutter) 1rem; }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav a { border-radius: 0; padding: .95em .3em; font-size: 1.25rem; }
  .main-nav a[aria-current="page"] { background: transparent; color: var(--accent); }
  .main-nav a[aria-current="page"]::before { content: "● "; font-size: .7em; vertical-align: .15em; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .header-inner { min-height: 72px; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.page-top { padding-top: clamp(2rem, 5vw, 4rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0; }
.more { font-weight: 600; text-decoration: none; font-size: 1.05em; }
.more:hover { text-decoration: underline; }

/* ---------- Startseite: Bühne ---------- */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero-art figcaption { margin-top: .9rem; text-align: center; color: var(--ink-2); font-style: italic; font-family: var(--serif); font-size: 1.2em; }

/* Passepartout-Rahmen wie im Atelier */
.mat {
  display: block; background: #fff; padding: clamp(12px, 2.2vw, 26px);
  box-shadow: var(--shadow); border-radius: 2px;
  transform: rotate(-.6deg); transition: transform .4s ease;
}
.mat:hover { transform: rotate(0) scale(1.01); }
.mat img { width: 100%; }
.mat.small { padding: 10px; transform: none; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .mat { transform: none; }
}

/* ---------- Aktuelles ---------- */
.news { padding-bottom: clamp(1rem, 3vw, 2rem); }
.news-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
}
.news-card.no-image { grid-template-columns: 1fr; }
.news-body { padding: clamp(1.6rem, 4vw, 3rem); border-left: 6px solid var(--accent); }
.badge {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: .8em;
  letter-spacing: .12em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; margin-bottom: 1em;
}
.news h2 { margin-bottom: .3em; }
.news-date { font-size: 1.3em; font-weight: 700; color: var(--accent-dark); margin-bottom: .2em; }
.news-place { font-size: 1.1em; font-weight: 600; margin-bottom: .8em; }
.news-text { margin-top: 1em; }
.news-image { position: relative; display: block; background: var(--paper-2); }
.news-image img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; background: rgba(38,34,30,.82); color: #fff;
  font-size: .8em; padding: .35em .8em; border-radius: 999px;
}
@media (max-width: 820px) {
  .news-card { grid-template-columns: 1fr; }
  .news-body { border-left: 0; border-top: 6px solid var(--accent); }
  .news-image img { min-height: 0; max-height: 70vh; object-fit: contain; }
}

/* ---------- Werke-Raster ---------- */
.works {
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem) clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  margin: 1.5rem 0 2.5rem;
}
.work { margin: 0; }
.work-frame {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; background: #fff; padding: 7%;
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s;
}
.work-frame:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.work-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.work figcaption { padding: .8rem .2rem 0; }
.work-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.45em; line-height: 1.2; }
.work-meta { display: block; color: var(--ink-2); font-size: .95em; margin-top: .15em; }

/* ---------- Galerie-Übersicht ---------- */
.gallery-list {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: clamp(1rem, 2.5vw, 1.8rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.gallery-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: var(--ink); transition: box-shadow .25s, transform .25s;
}
.gallery-card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.gallery-thumb { display: block; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-card:hover .gallery-thumb img { transform: scale(1.04); }
.gallery-title { font-family: var(--serif); font-weight: 600; font-size: 2rem; padding: .7rem 1.1rem 0; line-height: 1.1; }
.gallery-count { color: var(--ink-2); padding: .1rem 1.1rem 1rem; font-size: .95em; }

.back { margin-bottom: 1rem; }
.back a { font-weight: 600; text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; font-size: 1.05em; }
.back a:hover { text-decoration: underline; }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 2rem; }

/* ---------- Über mich / Lebenslauf ---------- */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.portrait {
  width: clamp(150px, 22vw, 240px); aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 999px 999px 8px 8px; border: 8px solid #fff; box-shadow: var(--shadow);
}
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; justify-items: start; } }

.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose h3 { margin-top: 1.2em; }

.bio-intro { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; margin: 1.5rem 0 1rem; }
@media (max-width: 640px) { .bio-intro { grid-template-columns: 1fr; } }
.bio-section { border-top: 1px solid var(--line); padding-top: 1.8rem; margin-top: 2.2rem; }
.bio-section h2 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); }
.photo-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.photo-row figure { margin: 0; }
.photo-row img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-row figcaption { margin-top: .6rem; color: var(--ink-2); font-size: .95em; }

/* ---------- Kontakt ---------- */
.contact-band { background: var(--night); color: #fff; }
.contact-band h2 { color: #fff; margin-bottom: .2em; }
.contact-band p { margin: 0; color: rgba(255,255,255,.88); }
.contact-band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.contact-band .btn-row { margin: 0; }

.contact-cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 2rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.4rem;
  color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.contact-card:hover { color: var(--ink); box-shadow: var(--shadow); border-color: var(--accent); transform: translateY(-2px); }
.cc-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: .6rem; }
.cc-label { font-size: .82em; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.cc-value { font-size: 1.2em; font-weight: 600; word-break: break-word; }
.cc-action { margin-top: .6rem; color: var(--accent); font-weight: 700; }
.cc-action::after { content: " →"; }

/* ---------- Fußzeile ---------- */
.site-footer { background: #221e1b; color: #e9e2d6; padding: 3rem 0 1.5rem; font-size: .95em; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .4em; }
.footer-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: #fff; }
.footer-grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer .muted { color: #bfb5a6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid #3c3530; color: #bfb5a6; font-size: .85em; }
.site-footer .admin-link { color: #bfb5a6; }

/* ---------- Großansicht (Lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: #141210; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; padding: max(10px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lb-count { font-size: 1.05rem; padding-left: .4rem; color: #ddd; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: .6rem 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; touch-action: pan-y pinch-zoom; }
.lb-figure figcaption { text-align: center; margin-top: .9rem; max-width: 900px; }
.lb-title { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1.2; }
.lb-meta { display: block; color: #d6d0c8; font-size: 1.05rem; }
.lb-nav { display: flex; justify-content: center; gap: 1rem; }
.lb-btn {
  min-height: 56px; min-width: 56px; padding: .5em 1.3em; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.75); background: rgba(255,255,255,.08); color: #fff;
  font: 600 1.15rem var(--sans); cursor: pointer;
}
.lb-btn:hover { background: #fff; color: #111; }
.lb-btn[disabled] { opacity: .3; cursor: default; background: transparent; color: #fff; }
.lb-nav .lb-btn { flex: 1; max-width: 240px; }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .mat { transform: none; }
}
@media print {
  .site-header, .site-footer, .btn, .lightbox { display: none !important; }
}
