/* Oliver Hauser Photography – statischer Nachbau der Adobe-Portfolio-Vorschau.
   Werte (Größen, Farben, Raster, Breakpoints 932px / 540px) aus der Original-Vorschau übernommen. */

/* Nunito (SIL Open Font License 1.1, Lizenztext in fonts/OFL.txt), lokal eingebunden statt über Google Fonts */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/nunito-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/nunito-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/nunito-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/nunito-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/nunito-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/nunito-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #1c1c1c;
  --accent: #7d0000;      /* Logo */
  --hover: #6a6a6a;
  --muted: #757575;       /* Jahreszahl */
  /* Original: Clone Rounded (Adobe Fonts). Fallback: Nunito (Google Fonts) */
  --font: "clone-rounded", "Clone Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: relative;            /* wie im Original: Header scrollt mit */
  display: flex; align-items: center;
  height: 120px; padding: 0 3%;
}

.site-header .nav-container { flex: 1; font-size: 16px; line-height: 24px; text-transform: uppercase; }
.nav-container a, .responsive-nav nav a { text-decoration: none; color: var(--ink); }
.nav-container a { display: inline-block; padding-right: 20px; }
.nav-container a:last-child { padding-right: 0; }
@media (min-width: 1201px) { .site-header .nav-container { white-space: nowrap; } }
.nav-container a:hover, .responsive-nav nav a:hover { color: var(--hover); }
.nav-container a.active, .responsive-nav nav a.active { font-weight: 700; }

.logo-wrap { width: 30%; max-width: 100%; margin: 0 auto; }
.logo {
  padding: 0 5%; text-align: center;
  font-size: 28px; line-height: 32px; font-weight: 700; text-transform: uppercase;
}
.logo a { color: var(--accent); text-decoration: none; }
.logo a:hover { color: var(--hover); }

.social { flex: 1; text-align: right; }
.social ul { margin: 0; padding: 0; list-style: none; }
.social li { display: inline-block; vertical-align: top; }
.social li + li { margin-left: 10px; }
.social a { display: block; }
.social .icon { display: block; width: 30px; height: 30px; fill: var(--ink); }
.social a:hover .icon { fill: var(--hover); }

.hamburger { display: none; background: none; border: 0; padding: 12px 0 12px 12px; cursor: pointer; }
.hamburger i { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }

/* Mobiles Menü */
.responsive-nav {
  position: fixed; inset: 0; z-index: 20; background: #fff;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  text-align: center;
}
.responsive-nav.open { display: flex; }
.responsive-nav nav a { display: block; margin: 12px 0; font-size: 22px; line-height: 22px; text-transform: uppercase; }
.responsive-nav .social { flex: none; text-align: center; }
.responsive-nav .close { position: absolute; top: 28px; right: 5%; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.responsive-nav .close::before, .responsive-nav .close::after {
  content: ""; position: absolute; left: 8px; top: 19px; width: 24px; height: 2px; background: var(--ink); transform: rotate(45deg);
}
.responsive-nav .close::after { transform: rotate(-45deg); }

/* ---------- Work-Raster ---------- */
.work { padding: 160px 3% 40px; }       /* Masthead-Abstand unter dem 120px-Header */
.project-covers { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 15px; }

.project-cover { position: relative; display: block; margin-bottom: 15px; text-decoration: none; color: inherit; }
.cover-image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f2f2f2; }
.cover-image img { width: 100%; height: 100%; object-fit: cover; }
.cover-image::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity .15s ease; pointer-events: none; }

.details-wrap {
  position: absolute; top: 0; left: 0; right: 0; height: calc(100% - 15px);
  display: flex; align-items: center; justify-content: center;
  padding: 0 8% 8%; opacity: 0; transition: opacity .15s ease; text-align: center;
}
.project-cover:hover .details-wrap, .project-cover:focus-within .details-wrap { opacity: 1; }
.project-cover:hover .cover-image::after { opacity: .97; }
.details-inner { width: 100%; }
.title { font-size: 17px; line-height: 22px; font-weight: 600; text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.date { font-size: 14px; line-height: 18px; padding-top: 12px; color: var(--muted); }

/* ---------- Textseiten (About, Contact, Imprint, Datenschutz) und Projektseiten ---------- */
.text-page, .project { padding: 0 3% 80px; }
.page-header { max-width: 750px; margin: 0 auto; padding: 40px 0 90px; }
.page-header h1 { margin: 0; padding-bottom: 25px; text-align: center; font-size: 24px; line-height: 30px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.rich-text { max-width: 800px; margin: 0 auto; text-align: center; font-size: 18px; line-height: 24px; color: var(--ink); }
.rich-text > div { padding: 10px 0; }
.rich-text a { color: var(--ink); text-decoration: underline; }
.rich-text { overflow-wrap: anywhere; }
.underline { text-decoration: underline; }

/* Projekt-Module */
.module.text { max-width: 800px; margin: 0 auto; padding: 20px 0 40px; }
.module.text .rich-text { max-width: none; }
.module.text.align-left .rich-text { text-align: left; }
.module.text.align-right .rich-text { text-align: right; }
.module.image { padding-bottom: 20px; }
.img-wrap { width: 100%; margin: 0 auto; }
.module img { display: block; width: 100%; height: auto; }
.module.grid { padding-bottom: 20px; overflow-x: clip; }
/* Justified Grid: Breite = Seitenverhältnis x Zielzeilenhöhe (skaliert mit der Viewport-Breite, wie im Original) */
.grid-main { --rh: 20.8vw; display: flex; flex-wrap: wrap; margin: 0 -4px; }
.grid-item { box-sizing: border-box; padding: 4px; flex: var(--ar) 1 calc(var(--ar) * (var(--rh) - 8px) + 8px); min-width: 0; }
.grid-fill { position: relative; height: 0; }
.grid-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.module.tree { display: flex; gap: 0; }
.module.tree.valign-middle { align-items: center; }
.module.tree.valign-bottom { align-items: flex-end; }
.tree-child { min-width: 0; }
/* 4px Einzug zur Mittelkante: ergibt 8px Abstand zwischen Spalten, wie im Original */
.tree-child:not(:last-child) > .module { margin-right: 4px; }
.tree-child:not(:first-child) > .module { margin-left: 4px; }
.module.embed { padding: 0 0 20px; }
.embed-box { margin: 0 auto; }
.embed-ratio { position: relative; height: 0; }
.embed-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.back { margin: 40px 0 0; text-align: center; font-size: 14px; text-transform: uppercase; }
.back a { text-decoration: none; }
.back a:hover { color: var(--hover); }

.contact-form { max-width: 560px; margin: 0 auto; font-size: 14px; line-height: 19px; }
.form-input { margin-bottom: 18px; }
.form-input label { display: block; margin-bottom: 6px; }
.form-input input, .form-input textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 0; background: #fff; font: inherit; color: var(--ink);
}
.form-input textarea { min-height: 160px; resize: vertical; }
.form-input input:focus, .form-input textarea:focus { outline: 0; border-color: var(--ink); }
.submit-button { padding: 10px 24px; border: 0; border-radius: 0; background: var(--ink); color: #fff; font: inherit; cursor: pointer; }
.submit-button:hover { background: var(--hover); }

/* ---------- Tablet (<= 932px): 2 Spalten, Hamburger ---------- */
@media (max-width: 932px) {
  .site-header { padding: 0 5%; }
  .site-header .nav-container, .site-header .social { display: none; }
  .logo-wrap { width: auto; flex: 1; margin: 0; }
  .logo { padding: 0 5%; }
  .hamburger { display: block; }
  .work { padding: 76px 0 30px; }       /* Raster läuft auf Tablet/Mobil randlos wie im Original */
  .project-covers { grid-template-columns: repeat(2, 1fr); }
  .cover-image { margin-bottom: 11px; }
  .project-cover { margin-bottom: 0; }
  .details-wrap { height: calc(100% - 11px); }
  .title { font-size: 14px; line-height: 18px; }
  .date { line-height: 20px; padding-top: 10px; }
  .text-page { padding: 0 5% 60px; }
  .text-page .page-header { padding: 20px 0 44px; }
  /* Projektseiten und About: Original läuft hier randlos, Abstände sitzen in Header und Textmodul */
  .project { padding: 0 0 60px; }
  .project .page-header { padding: 20px 5% 44px; }
  .page-header h1 { padding-bottom: 15px; font-size: 18px; line-height: 23px; }
  .rich-text { font-size: 14px; line-height: 19px; }
  .rich-text > div { padding: 8px 0; }
  .module.text { padding: 14px 5% 20px; }
  .module.image { padding-bottom: 14px; }
  .grid-main { --rh: 25vw; }
}

/* ---------- Mobil (<= 540px): 1 Spalte ---------- */
@media (max-width: 540px) {
  .project .page-header { padding: 18px 5% 39px; }
  .page-header h1 { padding-bottom: 14px; font-size: 15px; line-height: 19px; }
  .module.text { padding: 13px 5% 18px; }
  .module.text .rich-text { line-height: 20px; }
  .module.image { padding-bottom: 13px; }
  .module.tree { flex-wrap: wrap; }
  .tree-child { flex: 0 0 100% !important; }
  .tree-child > .module { margin-left: 0 !important; margin-right: 0 !important; }
  .project-covers { grid-template-columns: 1fr; }
  .cover-image { margin-bottom: 10px; }
  .details-wrap { height: calc(100% - 10px); }
}
