@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #999999;
  --border: #e8e8e8;
  --font: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 56px;
}

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

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-title {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: color 0.2s;
}

nav a:hover,
nav a.active { color: var(--muted); }

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ── Social Links ── */
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.social-links a:hover { color: var(--text); }

/* ── Main ── */
main { margin-top: var(--nav-h); }

/* ── Hero ── */
.hero {
  position: relative;
  margin: 40px 40px 3px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f2f2f2;
  cursor: pointer;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.hero:hover img { opacity: 0.88; }

@media (max-width: 768px) {
  .hero { margin: 20px 20px 3px; }
}


/* ── Photo Grid (Homepage) ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 40px 40px;
}

@media (max-width: 768px) {
  .photo-grid { padding: 0 20px 20px; }
}

.photo-item {
  aspect-ratio: 3 / 2;
  background: #f2f2f2;
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.03);
  opacity: 0.88;
}

/* ── Page Layout (About, Blog, Kontakt) ── */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 40px 80px;
}

.page-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ── About ── */
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 48px;
  background: #f2f2f2;
}

.about-lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font);
  letter-spacing: 0.08em;
  color: #999;
  padding: 0;
}
.lang-btn.active {
  color: #111;
  font-weight: 600;
}
.lang-divider {
  font-size: 11px;
  color: #ccc;
}

.about-contact-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 13px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
}
.about-contact-link:hover {
  color: #999;
  border-color: #999;
}

.about-photo-credit {
  font-size: 11px;
  color: #999;
  margin-top: -40px;
  margin-bottom: 48px;
  text-align: right;
}

.about-text h1 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.about-text .subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 20px;
}

/* ── Blog ── */
.blog-list { list-style: none; }

.blog-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.blog-item:first-child { border-top: 1px solid var(--border); }

/* Überschrift + Datum über dem Bild */
.blog-item-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.blog-item .post-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.blog-item .post-title {
  font-size: 17px;
  font-weight: 400;
  transition: color 0.2s;
}

.blog-item a:hover .post-title { color: var(--muted); }

/* Bild 3:2 */
.blog-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f2f2f2;
  cursor: pointer;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.blog-image:hover img {
  transform: scale(1.02);
  opacity: 0.88;
}

/* Caption + Excerpt unter dem Bild */
.blog-item-footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-item .post-caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.blog-item .post-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Post Image ── */
.post-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: 12px;
  cursor: pointer;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.post-image:hover img { opacity: 0.88; }

.post-image-caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ── Single Post ── */
.post-header { margin-bottom: 48px; }
.post-header .post-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.post-header h1 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.post-body {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
}

.post-body p { margin-bottom: 24px; }
.post-body h2 { font-size: 18px; font-weight: 500; margin: 40px 0 16px; }
.post-body img { width: 100%; margin: 32px 0; }
.post-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.back-link {
  display: inline-block;
  margin-top: 60px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.back-link:hover { color: var(--text); border-color: var(--text); }

/* ── Kontakt ── */
.contact-intro {
  font-size: 15px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 48px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.form-group { margin-bottom: 28px; }

.form-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-family: var(--font);
  font-size: 14px;
  background: transparent;
  outline: none;
  transition: border-color 0.25s;
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--text); }

.form-group textarea {
  resize: none;
  min-height: 120px;
}

.form-submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 24px;
}

button[type="submit"] {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 13px 36px;
  cursor: pointer;
  transition: opacity 0.2s;
}

button[type="submit"]:hover { opacity: 0.65; }

.form-message {
  font-size: 12px;
  color: var(--muted);
}
.form-message.success { color: #4a9a6a; }
.form-message.error { color: #c0392b; }

/* ── Footer ── */
footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

footer .footer-links { display: flex; gap: 24px; }
footer a { transition: color 0.2s; }
footer a:hover { color: var(--text); }

.footer-copy { display: flex; flex-direction: column; gap: 4px; }
.footer-rights { font-size: 10px; color: #bbb; }
.footer-links { display: flex; gap: 24px; }
footer .social-links { gap: 14px; }

/* ── Copyright Toast ── */
#copyright-toast {
  position: fixed;
  z-index: 999;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  padding: 8px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

#copyright-toast.visible { opacity: 1; }

img { -webkit-user-drag: none; user-select: none; }

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

#lightbox.open { display: flex; }

#lb-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#lb-img {
  max-height: 80vh;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

#lb-meta {
  width: 100%;
  max-width: 680px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#lb-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

#lb-caption {
  font-size: 13px;
  color: #bbb;
  line-height: 1.6;
}

#lb-date {
  font-size: 11px;
  color: #666;
  letter-spacing: 0.05em;
}

#lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

#lb-close:hover { color: #fff; }

/* ── Impressum ── */
.impressum h2 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 40px 0 10px;
}

.impressum h2:first-child { margin-top: 0; }

.impressum p {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
}

.impressum a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Splash Screen ── */
#splash {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.7s ease;
  pointer-events: all;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash .splash-name {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  opacity: 0;
  animation: splashFade 0.7s ease 0.2s forwards;
}

#splash .splash-title {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0;
  animation: splashFade 0.7s ease 0.5s forwards;
}

@keyframes splashFade {
  to { opacity: 1; }
}

/* ── Kunden Nav-Button ── */
.nav-kunden {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 5px 14px;
  transition: background 0.2s, color 0.2s;
}

.nav-kunden:hover {
  background: var(--text);
  color: var(--bg) !important;
}

/* ── Kunden-Seite ── */
.kunden-page { max-width: 520px; }

.kunden-content h1 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.kunden-content p {
  font-size: 15px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 32px;
}

.kunden-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--text);
  color: var(--bg);
  padding: 13px 32px;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-bottom: 24px;
}

.kunden-btn:hover { opacity: 0.7; }

.kunden-hint {
  font-size: 12px !important;
  color: var(--muted) !important;
  margin-bottom: 0 !important;
}

.kunden-hint a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  flex-direction: column;
  gap: 24px;
  z-index: 99;
}

.mobile-menu.open { display: flex; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}

.mobile-menu .social-links { gap: 20px; }
.mobile-menu .social-links a svg { width: 20px; height: 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  header { padding: 0 20px; }
  .header-right { display: none; }
  .hamburger { display: flex; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .page { padding: 56px 20px 60px; }

  .contact-form .form-row { grid-template-columns: 1fr; }

  footer { padding: 24px 20px; flex-direction: column; gap: 16px; text-align: center; }
  footer .footer-links { gap: 16px; justify-content: center; }
  footer .social-links { justify-content: center; }
  footer .footer-copy { align-items: center; }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
  .site-title { font-size: 13px; }
}
