*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --sand:#EADDCA; --creme:#F7F3EE; --dark:#3A3A3A; --mid:#6E6E6E; --olive:#556B2F; --terra:#C27A50; --hover-bg:#F0E8E1; --white:#FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root { --sand:#1A1612; --creme:#221E1A; --dark:#F0EBE3; --mid:#B0A898; --olive:#7A9A45; --terra:#D4926A; --hover-bg:#2A2420; --white:#2E2924; }
  nav, footer { background: #1E1A16 !important; }
}
body { font-family: 'Lato', sans-serif; background: var(--sand); color: var(--dark); font-size: 16px; line-height: 1.7; }
h1, h2 { font-family: 'Playfair Display', serif; }
a { color: var(--olive); text-decoration: none; }
nav { background: var(--white); border-bottom: 1px solid var(--hover-bg); padding: 1rem 1.5rem; }
.nav-inner { max-width: 720px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--dark); font-weight: 600; text-decoration: none; }
.nav-back { font-size: 0.875rem; color: var(--mid); }
.nav-back:hover { color: var(--olive); }
main { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; }
h1 { font-size: 2rem; margin-bottom: 2rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; color: var(--dark); }
p { color: var(--mid); margin-bottom: 0.5rem; }
ul { color: var(--mid); padding-left: 1.5rem; margin-bottom: 0.5rem; }
ul li { margin-bottom: 0.25rem; }
footer { background: var(--white); border-top: 1px solid var(--hover-bg); padding: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--mid); margin-top: 3rem; }
footer a { color: var(--mid); margin: 0 0.75rem; }
footer a:hover { color: var(--olive); }

/* anfragen.html */
.sub { color: var(--mid); font-size: 0.95rem; margin-bottom: 2.5rem; }
.tally-wrap { background: var(--creme); border-radius: 2px; padding: 0.5rem; }

/* Projekt-Seiten */
.project-meta { font-size: 0.8rem; color: var(--terra); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
h1.project-title { margin-bottom: 0.4rem; }
.project-tagline { font-style: italic; color: var(--mid); margin-bottom: 2rem; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 0 0 2rem; }
.project-gallery.single { grid-template-columns: 1fr; }
.project-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; display: block; }
.project-gallery.wide img { aspect-ratio: 4/3; }
.project-body { margin-bottom: 2rem; }
.project-body p { margin-bottom: 0.75rem; }
.project-cta { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--hover-bg); }
.project-cta p { margin-bottom: 1rem; }
@media (max-width: 640px) {
  .project-gallery { grid-template-columns: 1fr; }
}

/* Karussell */
.carousel { position: relative; overflow: hidden; border-radius: 2px; margin: 0 0 2rem; background: var(--hover-bg); }
.carousel-track { display: flex; transition: transform 0.35s ease; }
.carousel-track img { min-width: 100%; max-width: 100%; height: 320px; object-fit: contain; display: block; flex-shrink: 0; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.35); border: none; color: #fff; font-size: 2.5rem; line-height: 1; padding: 0.25rem 0.75rem; cursor: pointer; transition: background 0.2s; z-index: 1; }
.carousel-btn:hover { background: rgba(0,0,0,0.6); }
.carousel-prev { left: 0; border-radius: 0 2px 2px 0; }
.carousel-next { right: 0; border-radius: 2px 0 0 2px; }
.carousel-dots { position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.25); cursor: pointer; transition: background 0.2s; }
.carousel-dot.active { background: var(--olive); }
/* Desktop: Karussell standardmäßig ausblenden */
.mobile-only { display: none; }

/* Mobil: Grid ausblenden, Karussell einblenden */
@media (max-width: 640px) {
  .project-gallery.desktop-only { display: none; }
  .carousel.mobile-only { display: block; }
  .carousel-track img { height: 260px; }
}

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; border-radius: 2px; cursor: default; }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; color: #fff; font-size: 2.25rem; line-height: 1; cursor: pointer; opacity: 0.8; }
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 3.5rem; line-height: 1; cursor: pointer; padding: 0 1rem; opacity: 0.7; user-select: none; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-counter { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.85rem; opacity: 0.7; font-family: 'Lato', sans-serif; }
