@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: dark;
  --ink: #0a0a09;
  --panel: #141412;
  --gold: #c9a875;
  --gold-soft: #e8c995;
  --muted: #a39e94;
  --text: #ebe7df;
  --focus: #f0d9a8;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  background: var(--gold);
  color: #15130f;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.font-display {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

.navlink {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.navlink:hover,
.navlink[aria-current="page"] {
  color: var(--gold-soft);
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #f5f2eb;
}

.page-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f5f2eb;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 36rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--gold);
  color: #15130f;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  min-height: 44px;
  transition: background 0.2s ease;
}
.btn-gold:hover {
  background: var(--gold-soft);
}
.btn-gold:focus-visible {
  outline-offset: 4px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(201, 168, 117, 0.4);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 117, 0.1);
}

.page-hero {
  padding: clamp(4rem, 12vw, 6.5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(201, 168, 117, 0.09), transparent 55%),
    var(--ink);
}

.work-card img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: no-preference) {
  .work-card:hover img {
    transform: scale(1.03);
  }
}

.prose-dark {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #c9c3b9;
}
.prose-dark p + p {
  margin-top: 1.15rem;
}
.prose-dark h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  color: #f0ebe3;
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.prose-dark h2:first-child {
  margin-top: 0;
}
.prose-dark a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-dark a:hover {
  color: #f0d9a8;
}
.prose-dark ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin-top: 0.75rem;
}
.prose-dark li + li {
  margin-top: 0.4rem;
}

#menuBtn {
  min-width: 44px;
  min-height: 44px;
}
#mobileNav .navlink {
  width: 100%;
  padding: 0.65rem 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .page-hero {
    padding: 4.5rem 0 2.5rem;
  }
}


/* Responsive and accessibility refinements */
html { overflow-x: clip; }
body { min-width: 320px; overflow-wrap: break-word; }
a { text-underline-offset: 0.18em; }
a:not(.btn-gold):not(.btn-outline):hover { text-decoration-thickness: 2px; }
button, a { touch-action: manipulation; }
main { min-height: 60vh; }
section, article { scroll-margin-top: 5.5rem; }
::selection { background: #c9a875; color: #15130f; }

@media (max-width: 640px) {
  .page-title { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .lead { font-size: 1rem; line-height: 1.65; }
  .prose-dark { font-size: 1rem; line-height: 1.75; }
  .eyebrow { letter-spacing: .18em; }
  #mobileNav { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
}
@media (forced-colors: active) {
  .btn-gold, .btn-outline { border: 1px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
}

/* Ruhiger Bildwechsel mit dezenter Parallax-Bewegung auf der Startseite */
.hero-slider { isolation: isolate; }
.hero-visual { overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: -4% 0 0;
  width: 100%;
  height: 108%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035) translate3d(0, 0, 0);
  transition: opacity 1.4s ease, transform 8s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: .43; transform: scale(1.07) translate3d(0, 0, 0); }
.hero-motion-toggle {
  min-height: 44px;
  padding: .35rem .8rem;
  border: 1px solid rgba(243, 235, 221, .28);
  border-radius: 999px;
  color: rgba(243, 235, 221, .78);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(10, 10, 9, .25);
}
.hero-motion-toggle:hover { color: #f3ebdd; border-color: rgba(243, 235, 221, .65); }

/* Tastaturbedienbare Bild-Lightbox */
.work-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}
.work-image-trigger img { transition: transform .45s ease; }
.work-image-trigger:hover img { transform: scale(1.025); }
.lightbox-dialog {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1rem;
  color: #f3ebdd;
  background: #0a0a09;
  overflow: hidden;
}
.lightbox-dialog::backdrop { background: rgba(0,0,0,.91); backdrop-filter: blur(5px); }
.lightbox-layout { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: 94dvh; }
.lightbox-image-wrap { position: relative; display: grid; place-items: center; min-height: 0; padding: 3.5rem 1rem 1rem; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(94dvh - 8rem); width: auto; height: auto; object-fit: contain; }
.lightbox-caption { padding: .85rem 1.25rem 1.1rem; text-align: center; color: #d6d0c5; font-size: .9rem; }
.lightbox-controls { position: absolute; inset: .65rem .65rem auto; display: flex; justify-content: space-between; gap: .5rem; }
.lightbox-controls button { min-width: 44px; min-height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(20,20,18,.9); color: #f3ebdd; font-size: 1.2rem; }
.lightbox-controls button:disabled { opacity: .3; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .work-image-trigger img { transition: none !important; }
  .hero-slide.is-active { transform: none; }
}
