/* =========================================================
   each.Moments Fotografie – Stylesheet
   Farben und Schriften zentral hier oben anpassbar.
   Keine externen Schriften (DSGVO-freundlich).
   ========================================================= */

:root {
  --hintergrund: #fbf9f6;   /* warmes Off-White */
  --flaeche:     #f3eee7;   /* leicht abgesetzte Abschnitte */
  --text:        #2a2622;
  --text-leise:  #6b635b;
  --akzent:      #a8683a;   /* warmes Karamell */
  --akzent-dunkel: #87512a;
  --linie:       #e8e1d8;
  --radius:      10px;
  --breite:      1200px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent-dunkel); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

.container { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 249, 246, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-size: 1.4rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--text-leise); font-size: .8em; margin-left: .15em; }

nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
nav a { color: var(--text); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--akzent); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--hintergrund);
    border-bottom: 1px solid var(--linie);
    padding: 8px 20px 16px;
  }
  nav ul.offen { display: flex; }
  nav li a { display: block; padding: 12px 0; font-size: 1.1rem; }
}

/* ---------- Knöpfe ---------- */
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf-reihe.zentriert { justify-content: center; }
.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--akzent); color: #fff;
  text-decoration: none; font-weight: 500;
  border: 1px solid var(--akzent);
  transition: background-color .2s;
}
.knopf:hover, .knopf:focus-visible { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf-hell { background: transparent; color: var(--akzent-dunkel); }
.knopf-hell:hover, .knopf-hell:focus-visible { background: var(--flaeche); }

/* ---------- Start ---------- */
.hero { padding-top: 24px; }
.hero-bild {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 720px) { .hero-bild { height: 55vh; } }
.hero-text { max-width: 640px; padding: 36px 0 12px; }
.hero-text p { font-size: 1.15rem; color: var(--text-leise); margin: 0 0 24px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 72px 20px; }
.abschnitt.container { padding-left: 20px; padding-right: 20px; }
.abschnitt-flaeche { background: var(--flaeche); }

/* ---------- Galerie ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter button {
  font: inherit; font-size: .95rem;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--linie);
  background: #fff; color: var(--text);
  cursor: pointer;
}
.filter button:hover { border-color: var(--akzent); }
.filter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }

.galerie { columns: 3 300px; column-gap: 14px; }
.galerie-item {
  display: block; width: 100%;
  margin: 0 0 14px; padding: 0;
  border: 0; background: var(--flaeche);
  border-radius: 6px; overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
}
.galerie-item img { width: 100%; transition: opacity .2s; }
.galerie-item:hover img, .galerie-item:focus-visible img { opacity: .88; }
.galerie-item:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* ---------- Über mich ---------- */
.ueber-mich { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.ueber-mich img { border-radius: var(--radius); }
.coco-karte {
  margin-top: 28px; padding: 22px 26px;
  background: var(--hintergrund);
  border-left: 4px solid var(--akzent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.coco-karte p { margin: 0; }
@media (max-width: 820px) {
  .ueber-mich { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ueber-mich img { max-width: min(480px, 100%); }
}

/* ---------- Kontakt ---------- */
.kontakt { text-align: center; }
.kontakt p { color: var(--text-leise); margin: 0 auto 28px; max-width: 520px; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--linie); padding: 28px 0; font-size: .9rem; color: var(--text-leise); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-inner a { color: var(--text-leise); }

/* ---------- Großansicht (Lightbox) ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(251, 249, 246, .98);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(251, 249, 246, .98); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 140px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); width: auto; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { margin-top: 12px; color: var(--text-leise); font-size: .95rem; text-align: center; }
.lb-zaehler { opacity: .7; }

.lb-knopf {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--linie);
  background: #fff; color: var(--text);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
}
.lb-knopf:hover, .lb-knopf:focus-visible { border-color: var(--akzent); color: var(--akzent); }
.lb-schliessen { top: 16px; right: 16px; font-size: 1.1rem; }
.lb-zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-weiter  { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .lightbox figure { max-width: 100vw; padding: 0 8px; }
  .lb-zurueck, .lb-weiter { top: auto; bottom: 16px; transform: none; }
}

/* ---------- Unterseiten (Impressum, Datenschutz, Teilen) ---------- */
.textseite { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.textseite h2 { font-size: 1.4rem; margin-top: 2em; }
.hinweis {
  background: #fff6e0; border: 1px solid #f0d9a0;
  padding: 14px 18px; border-radius: var(--radius);
  font-size: .95rem;
}

/* Vom Downloadseiten-Tool erzeugte Seiten */
.download-titelbild {
  width: 100%; max-height: 65vh; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 32px;
}
.knopf-gross { font-size: 1.1rem; padding: 16px 30px; margin: 12px 0 4px; }
.knopf-zusatz { font-weight: 400; font-size: .85em; opacity: .85; }
.leise { color: var(--text-leise); font-size: .95rem; }

.download-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 28px 0; }
.download-item { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.download-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.download-item a { display: block; padding: 10px 14px; text-decoration: none; font-size: .95rem; }
