:root {
  --black: #000;
  --white: #f7f7f5;
  --soft-black: #101010;
  --display: "Libre Baskerville", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: var(--display); margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--white); outline-offset: 7px; }

.home { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding: 48px 24px 56px; text-align: center; }
.intro { align-items: center; display: flex; flex-direction: column; gap: 10px; }
.name { font-size: clamp(24px, 3vw, 34px); margin: 0; }
h1, h2 { font-size: clamp(34px, 5vw, 57px); font-style: italic; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; margin: 5px 0 10px; }
.tagline { font-size: clamp(14px, 1.6vw, 18px); line-height: 1.45; margin: 0; max-width: 760px; }
.enter-link { background: var(--white); border: 1px solid rgba(0, 0, 0, .08); border-radius: 999px; box-shadow: 0 12px 28px rgba(0, 0, 0, .12); color: var(--black); font-size: 14px; font-weight: 700; letter-spacing: .04em; margin-top: 18px; padding: 13px 28px; transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.enter-link span { display: inline-block; margin-left: 5px; transition: transform 180ms ease; }
.enter-link:hover { background: #d8d8d5; box-shadow: 0 16px 32px rgba(0, 0, 0, .14); transform: translateY(-2px); }
.enter-link:hover span { transform: translateX(3px); }
.social-links { display: flex; gap: 14px; margin-top: 42px; }
.social-links a { align-items: center; background: #1c1c1c; border-radius: 50%; display: flex; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; height: 40px; justify-content: center; letter-spacing: .04em; transition: background 180ms ease, transform 180ms ease; width: 40px; }
.social-links a:hover { background: #333; transform: translateY(-2px); }

.work { background: var(--white); color: var(--black); min-height: 100svh; padding: 32px clamp(24px, 6vw, 88px) 80px; }
.work-header { align-items: center; display: flex; justify-content: space-between; }
.wordmark { font-size: 20px; }
.work-header nav { display: flex; font-size: 14px; gap: 22px; }
.work-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.work-intro { margin: clamp(90px, 15vh, 180px) auto 60px; max-width: 1100px; text-align: center; }
.work-intro .name { font-size: clamp(22px, 3vw, 34px); }
.work-intro h2 { font-size: clamp(30px, 4vw, 52px); margin-top: 10px; }
.project-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 1100px; }
.project-media { aspect-ratio: 1.45; background: #deded9; border: 1px solid rgba(0, 0, 0, .06); border-radius: 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .08); color: inherit; cursor: zoom-in; display: block; overflow: hidden; padding: 0; position: relative; width: 100%; }
.custom-video-player { margin: 0 auto; max-width: 1100px; position: relative; }
.custom-video-player video { aspect-ratio: 16 / 9; background: #000; display: block; object-fit: cover; width: 100%; }
.video-controls { display: flex; justify-content: flex-end; margin-top: 10px; }
.video-controls button { background: rgba(17, 17, 17, .9); border: 0; color: var(--white); cursor: pointer; font: inherit; letter-spacing: .08em; padding: 8px 16px; text-transform: uppercase; }
.video-controls button:hover { background: rgba(17, 17, 17, 1); }
.project-media img, .project-media video { display: block; height: 100%; object-fit: cover; transition: filter 250ms ease, transform 250ms ease; width: 100%; }
.project { overflow: hidden; }
.project-media:not(.video-cover) img, .project-media:not(.video-cover) video { filter: saturate(.8); }
.project:hover .project-media img, .project:hover .project-media video { filter: saturate(1); transform: scale(1.02); }
.project:hover .video-cover { transform: scale(1.02); }
.video-cover { transition: transform 250ms ease, filter 250ms ease; }
.video-placeholder { align-items: center; background: rgba(0, 0, 0, .3); color: var(--white); display: flex; font-family: Arial, sans-serif; font-size: 13px; gap: 10px; inset: 0; justify-content: center; position: absolute; }
.video-placeholder span { align-items: center; border: 1px solid var(--white); border-radius: 50%; display: inline-flex; font-size: 18px; height: 27px; justify-content: center; width: 27px; }
.video-cover::before { display: none; }
.video-cover .video-placeholder { display: none; }
.golf-cover { background-image: url("../media/Golf%208R/Golf%208R%2016.08.2026%20V.2.jpg"); background-size: cover; background-position: center; }
.forest-cover { background-image: url("../media/Tief%20im%20Wald/Tief%20im%20Wald%202026%20Part%201(1).jpg"); background-size: cover; background-position: center; }
.project-title { display: block; font-size: 20px; padding-top: 16px; }
.project-title small { color: #777; font-size: 14px; margin-left: 5px; }
.contact { border-top: 1px solid #c7c7c3; margin: 110px auto 0; max-width: 1100px; padding-top: 30px; }
.contact .name { font-size: 22px; margin-bottom: 12px; }
.contact a { font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.media-viewer { align-items: center; background: rgba(0, 0, 0, .94); display: flex; inset: 0; justify-content: center; padding: 28px; position: fixed; z-index: 20; }
.media-viewer[hidden] { display: none; }
.media-viewer-content { max-height: 90vh; max-width: min(1200px, 94vw); position: relative; width: 100%; }
.media-viewer img, .media-viewer video { display: block; max-height: 86vh; max-width: 100%; margin: auto; object-fit: contain; width: auto; }
.media-viewer video { height: auto; width: min(1200px, 94vw); }
.media-viewer-close { background: transparent; border: 0; color: var(--white); cursor: pointer; font-size: 32px; line-height: 1; padding: 8px; position: absolute; right: -8px; top: -46px; }
.media-viewer-close:hover { opacity: .65; }
body.viewer-open { overflow: hidden; }

.project-page { background: var(--white); color: var(--black); min-height: 100svh; padding: 32px clamp(24px, 6vw, 88px) 80px; }
.project-page .work-header { margin-bottom: clamp(90px, 15vh, 180px); }
.project-heading { margin: 0 auto 58px; max-width: 1100px; }
.project-heading .name { font-size: clamp(22px, 3vw, 34px); }
.project-heading h1 { font-size: clamp(36px, 6vw, 74px); margin: 8px 0 12px; }
.project-heading p:last-child { color: #666; font-family: Arial, sans-serif; font-size: 15px; margin: 0; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 1100px; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 1.35; display: block; height: 100%; object-fit: cover; width: 100%; }
.gallery figure:first-child { grid-column: span 2; }
.gallery figure:first-child img { aspect-ratio: 2.1; }
.back-link { display: inline-block; font-size: 14px; margin-top: 74px; text-decoration: underline; text-underline-offset: 5px; }
.back-link:hover { opacity: .6; }
.impressum-content { margin: 0 auto; max-width: 1100px; }
.impressum-content h2 { font-size: clamp(26px, 4vw, 42px); margin-top: 40px; margin-bottom: 16px; }
.impressum-content h3 { font-size: clamp(20px, 3vw, 28px); margin-top: 32px; margin-bottom: 12px; }
.impressum-content p { line-height: 1.6; margin: 0 0 12px 0; font-size: 15px; }
.car-info { margin: 60px auto 60px; max-width: 1100px; }
.info-section { margin-bottom: 48px; }
.info-section h3 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 12px 0; }
.info-section p { line-height: 1.7; font-size: 15px; color: #333; margin: 0; }
.specs-list { list-style: none; padding: 0; margin: 0; }
.specs-list li { padding: 8px 0; font-size: 15px; line-height: 1.6; }
.specs-list strong { display: inline-block; min-width: 120px; }
.car-cta { background: #f7f7f5; padding: 48px; text-align: center; margin: 60px auto; max-width: 1100px; border-radius: 4px; }
.car-cta h3 { font-size: clamp(26px, 4vw, 42px); margin: 0 0 16px 0; }
.car-cta p { font-size: 15px; color: #333; margin: 0 0 24px 0; line-height: 1.6; }
.cta-button { display: inline-block; background: var(--black); color: var(--white); padding: 14px 32px; text-decoration: none; font-size: 15px; transition: background 180ms ease, transform 180ms ease; }
.cta-button:hover { background: #333; transform: translateY(-2px); }

@media (max-width: 600px) {
  .home { padding-top: 32px; }
  .tagline br { display: none; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .work-header nav { gap: 12px; font-size: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .contact { margin-top: 76px; }
  .project-page { padding-top: 24px; }
  .project-page .work-header { margin-bottom: 90px; }
  .project-heading { margin-bottom: 38px; }
  .gallery { gap: 10px; grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; }
  .gallery figure:first-child img, .gallery img { aspect-ratio: 1.2; }
  .car-info { margin: 40px auto; }
  .info-section { margin-bottom: 32px; }
  .car-cta { padding: 32px 20px; margin: 40px auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
