@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
  --ink: #282522;
  --muted: #77716b;
  --cream: #f8f5f0;
  --rose: #b77e76;
  --line: #e8e1d9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: 'DM Sans', sans-serif; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
.hero { min-height: 490px; position: relative; display: grid; place-items: center; overflow: hidden; color: white; background: linear-gradient(120deg, #5c514b, #a18a7d 55%, #c2a99a); }
.hero::before, .hero::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; width: 500px; height: 500px; }
.hero::before { left: -160px; top: -250px; }
.hero::after { right: -130px; bottom: -350px; width: 700px; height: 700px; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,25,22,.45), rgba(30,25,22,.08), rgba(30,25,22,.35)); }
.hero-content { position: relative; z-index: 1; padding: 70px 20px; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .2em; color: var(--rose); }
.hero .eyebrow { color: #f2d9ce; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.1; margin: 14px 0 18px; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); color: rgba(255,255,255,.88); margin-bottom: 30px; }
.hero-button { border-radius: 100px; padding: 13px 25px; border: 0; color: var(--ink); font-size: .9rem; }
.hero-button span { margin-left: 8px; }
.intro-section { padding-top: 84px; padding-bottom: 72px; max-width: 760px; }
.intro-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 18px; }
.intro-copy { color: var(--muted); max-width: 560px; margin: auto; line-height: 1.8; }
.gallery-section { padding-bottom: 90px; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.gallery-toolbar h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.photo-count { font: 500 .9rem 'DM Sans', sans-serif; color: var(--muted); white-space: nowrap; }
.gallery-actions { display: flex; gap: 10px; align-items: center; }
.search-box { width: 220px; }
.search-box .form-control, .search-box .input-group-text { border-color: var(--line); background: var(--cream); }
.search-box .form-control:focus { box-shadow: 0 0 0 .2rem rgba(183,126,118,.18); border-color: var(--rose); }
.gallery-actions .btn { white-space: nowrap; font-size: .82rem; border-radius: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.photo-card { display: block; position: relative; padding: 0; border: 0; border-radius: 5px; overflow: hidden; background: #e9e3dd; aspect-ratio: 4 / 3; cursor: zoom-in; text-align: left; }
.photo-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.photo-card:hover img, .photo-card:focus-visible img { transform: scale(1.055); }
.photo-card:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.photo-overlay { position: absolute; inset: auto 0 0; padding: 32px 12px 12px; display: flex; align-items: end; justify-content: space-between; gap: 8px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.62)); opacity: 0; transition: opacity .25s ease; }
.photo-card:hover .photo-overlay, .photo-card:focus-visible .photo-overlay { opacity: 1; }
.photo-title { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom-icon { font-size: 1.2rem; flex: 0 0 auto; }
.photo-grid.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.photo-grid.compact .photo-card { aspect-ratio: 1 / 1; }
.empty-state { padding: 70px 24px; text-align: center; border: 1px dashed #d8cbc1; background: var(--cream); border-radius: 12px; }
.empty-icon { font-size: 3rem; color: var(--rose); margin-bottom: 12px; }
.empty-state h3 { font-size: 1.8rem; }
.empty-state p { color: var(--muted); max-width: 560px; margin: 10px auto 0; line-height: 1.7; }
.no-results { text-align: center; color: var(--muted); padding: 40px; }
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; }
.footer-inner span:last-child { color: var(--ink); }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 64px 76px 82px; background: rgba(17,15,14,.96); color: #fff; }
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: min(100%, 1400px); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-figure img { display: block; max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; box-shadow: 0 15px 60px rgba(0,0,0,.35); }
.lightbox-figure figcaption { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; color: rgba(255,255,255,.82); font-size: .85rem; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; color: white; background: rgba(255,255,255,.1); cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 20px; right: 25px; width: 44px; height: 44px; font-size: 2rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 8px; font-size: 3rem; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-hint { position: absolute; bottom: 18px; left: 20px; right: 20px; text-align: center; color: rgba(255,255,255,.5); font-size: .75rem; margin: 0; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 991.98px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .photo-grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); } .gallery-toolbar { align-items: start; flex-direction: column; } .gallery-actions { width: 100%; } .search-box { flex: 1; width: auto; } }
@media (max-width: 575.98px) { .hero { min-height: 430px; } .intro-section { padding-top: 60px; padding-bottom: 52px; } .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .photo-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; } .photo-overlay { opacity: 1; padding: 25px 8px 8px; } .photo-title { font-size: .72rem; } .gallery-actions { flex-wrap: wrap; } .search-box { flex-basis: 100%; } .gallery-actions .btn { flex: 1; } .lightbox { padding: 60px 12px 78px; } .lightbox-figure img { max-height: calc(100vh - 180px); } .lightbox-nav { width: 38px; height: 50px; font-size: 2.4rem; background: rgba(0,0,0,.35); } .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; } .lightbox-close { top: 10px; right: 10px; } .lightbox-hint { font-size: .68rem; bottom: 12px; } .footer-inner { flex-direction: column; text-align: center; } }

/* Bildunterschriften innerhalb der Fotos */
.photo-caption{font-family:'Playfair Display',Georgia,serif;font-size:clamp(.9rem,1.5vw,1.12rem);line-height:1.3;font-weight:500;letter-spacing:.01em;text-shadow:0 1px 3px rgba(0,0,0,.25)}
.photo-card:has(.photo-caption) .photo-overlay{opacity:1;padding:48px 14px 14px;background:linear-gradient(transparent,rgba(20,16,14,.78))}
.photo-card:has(.photo-caption) .photo-caption{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.admin-footer-link{color:inherit;text-decoration:none;opacity:.7}.admin-footer-link:hover{color:var(--rose);opacity:1;text-decoration:underline}
