/* ==========================================================================
   Lebensfreude einfach pur – statische Seite
   Masterlayout: "FireShot Capture 151" (PDF), 1:1 in CSS-Pixeln nachgemessen
   ========================================================================== */

:root {
  --bg: #f1f1f1;
  --paper: #ffffff;
  --paper-border: #d8d9db;
  --text: #444444;
  --heading: #646464;
  --heading-dark: #424242;
  --rule: #e3e3e3;
  --link: #3858e9;
  --link-hover: #183ad6;

  --page-width: 618px;      /* Außenmaß der weißen Fläche im PDF */
  --page-pad: 28px;         /* Innenabstand links/rechts im PDF  */

  --fs-body: 13px;          /* Fließtext Desktop: 13 px (Vorgabe) */
  --lh-body: 1.43;          /* ≈ 18,5 px Zeilenabstand wie im PDF */

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Oxygen-Sans,
          Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); }
a:hover, a:active, a:focus { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: #fff; padding: 6px 10px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Weiße Seitenfläche ---------- */
.page {
  max-width: var(--page-width);
  margin: 44px auto 0;
  padding: 28px var(--page-pad) 36px;
  background: var(--paper);
  border: 1px solid var(--paper-border);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

/* ---------- Header ---------- */
.site-logo { display: block; }
.site-logo img { width: 100%; }

.site-nav ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 4px 13px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.site-nav a:hover { text-decoration: underline; }

/* ---------- Überschriften ---------- */
/* Abschnittsüberschrift (im PDF grau, dünn, mit Linie) */
.h-section {
  margin: 28px 0 0;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--rule);
  color: var(--heading);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.22;
  clear: both;
}
.page-title { margin-top: 44px; }

/* Unterüberschrift (Blick von außen, Systembrett, Themenfelder …) */
.h-sub {
  margin: 21px 0 0;
  color: var(--heading-dark);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

/* große Überschrift (Meine Galerie, Denke immer daran, Kontaktiere mich) */
.h-big {
  margin: 30px 0 0;
  color: var(--heading-dark);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

/* ---------- Text ---------- */
p { margin: 21px 0; }
.h-section + p, .h-big + p { margin-top: 26px; }
.h-sub + p { margin-top: 18px; }

.yk { margin: 22px 0 21px; }

strong, b { font-weight: 700; }

ul {
  margin: 14px 0 21px;
  padding-left: 36px;
}
ul li { margin-bottom: 9px; }
ul li:last-child { margin-bottom: 0; }

/* Slider-Claims (im Original ein Slider, im PDF als Fließtext) */
.claims { margin: 26px 0 21px; padding: 0; list-style: none; }
.claims li { margin: 0; }
.claims a { white-space: nowrap; }

blockquote.motto {
  margin: 21px 0;
  padding: 0;
  font-style: normal;
}

/* ---------- Bilder ---------- */
.figure {
  margin: 21px 0;
}
.figure img { width: 100%; }
.figure--portrait img { width: 441px; max-width: 100%; }
.figure--natural img { width: auto; max-width: 100%; }
.figure a { display: block; cursor: zoom-in; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 21px 0;
  padding: 0;
  list-style: none;
}
.gallery li { margin: 0; }
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f4f4;
  cursor: zoom-in;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery a.is-document img { object-fit: contain; background: #fff; }
.gallery a::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 8px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.contact-grid .h-label {
  margin: 21px 0 0;
  color: var(--heading-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.contact-grid p { margin: 4px 0 0; }

.btn {
  display: inline-block;
  margin-top: 21px;
  padding: 7px 14px;
  border: 1px solid var(--link);
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.btn:hover { background: var(--link); color: #fff; }

.tel { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 16px var(--page-pad) 40px;
  color: #777;
  font-size: 12px;
  text-align: center;
}
.site-footer a { color: #666; margin: 0 6px; }
.site-footer a:hover { color: var(--link-hover); }

/* ---------- Unterseiten ---------- */
.legal h2 { font-size: 16px; font-weight: 600; color: var(--heading-dark); margin: 28px 0 0; }
.legal h2 + p { margin-top: 8px; }
.placeholder {
  background: #fff6d5;
  border-left: 3px solid #e0b100;
  padding: 2px 6px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 20, 20, .92);
  padding: 48px 56px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; max-height: 100%; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  margin: 0 auto;
  box-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.lightbox figcaption { color: #ddd; font-size: 13px; margin-top: 12px; }
.lightbox button {
  position: absolute;
  background: none; border: 0; color: #fff;
  font: inherit; font-size: 34px; line-height: 1;
  width: 48px; height: 48px;
  cursor: pointer; opacity: .8;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; outline: none; }
.lightbox .lb-close { top: 8px; right: 8px; font-size: 30px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; top: 18px; left: 18px; color: #bbb; font-size: 13px; }
body.lb-lock { overflow: hidden; }

/* ---------- Mobil ---------- */
@media (max-width: 680px) {
  :root { --page-pad: 16px; --fs-body: 15px; --lh-body: 1.55; }
  .page { margin: 0; border: 0; box-shadow: none; padding-top: 20px; }
  .site-logo img { width: 78%; margin: 0 auto; }
  .site-nav ul { justify-content: center; margin-top: 10px; }
  .site-nav a { font-size: 15px; padding: 8px 14px; }
  .page-title { margin-top: 24px; }
  .h-section { font-size: 22px; }
  .h-sub { font-size: 22px; }
  .h-big { font-size: 26px; }
  .claims li { margin-bottom: 4px; }
  .figure--portrait img { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .h-label { font-size: 16px; }
  .btn, .site-footer, .site-nav a { font-size: 15px; }
  .lightbox { padding: 48px 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 6px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .gallery a::after { transition: none; }
}

@media print {
  html, body { background: #fff; }
  .page { border: 0; box-shadow: none; margin: 0; max-width: none; }
  .site-nav, .lightbox, .btn { display: none !important; }
}
