/* godlaya.de — Projektschau
   Warme Monochrom-Palette, Fraunces als Display-Serife, System-Sans für Fließtext.
   Bewegung nur an zwei Stellen: Scroll-Reveal (reveal.js) und :active-Press-Feedback. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-Variable-Latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #FAF8F4;
  --text: #17140F;
  --text-secondary: #787774;
  --accent: #B5502E;
  --hairline: rgba(23, 20, 15, 0.12);
  --hairline-strong: rgba(23, 20, 15, 0.2);
  --mono-bg: #EAE6DD;
  --mono-text: #46423B;

  --font-serif: 'Fraunces', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-sans: -apple-system, ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;

  --measure: 680px;
  --measure-wide: 760px;
  --header-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --text: #F3EFE8;
    --text-secondary: #9A968E;
    --hairline: rgba(243, 239, 232, 0.14);
    --hairline-strong: rgba(243, 239, 232, 0.24);
    --mono-bg: #26221D;
    --mono-text: #D8D2C6;
  }
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover, a:focus-visible {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

/* ---------- Kopf ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--hairline);
  z-index: 50;
}

.wordmark {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Layout ---------- */

main {
  padding-top: var(--header-h);
}

section {
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 6vw, 2.5rem);
}

.measure {
  max-width: var(--measure);
  margin: 0 auto;
}

.measure-wide {
  max-width: var(--measure-wide);
  margin: 0 auto;
}

/* ---------- Auftakt ---------- */

.intro {
  padding-top: clamp(4.5rem, 12vw, 8rem);
}

.intro-lead {
  font-family: var(--font-serif);
  font-weight: 440;
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: left;
}

.intro-byline {
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Section-Header ---------- */

.section-header {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 2.25rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.section-header--quiet {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.section-unterwegs {
  border-top: 1px solid var(--hairline);
}

/* ---------- Projektliste ---------- */

.project-list {
  display: flex;
  flex-direction: column;
}

.project {
  border-bottom: 1px solid var(--hairline);
}
.project:first-child {
  border-top: 1px solid var(--hairline);
}

.project-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
  padding: 1.15rem 0.25rem;
  border-radius: 10px;
  transition: background-color 150ms ease, transform 100ms ease;
  -webkit-tap-highlight-color: transparent;
}
.project-summary::-webkit-details-marker { display: none; }
.project-summary::marker { content: ''; }

.project-summary:hover {
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.project-summary:active {
  background: color-mix(in srgb, var(--text) 7%, transparent);
  transform: scale(0.997);
}

.project-icon {
  width: 64px;
  height: 64px;
  object-fit: cover;
  clip-path: path('M64,32 C64,9.6 54.4,0 32,0 C9.6,0 0,9.6 0,32 C0,54.4 9.6,64 32,64 C54.4,64 64,54.4 64,32 Z');
  border: 0.75px solid var(--hairline-strong);
  background: var(--bg);
}

.project-icon--mono {
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-icon--mono svg {
  width: 100%;
  height: 100%;
  clip-path: path('M64,32 C64,9.6 54.4,0 32,0 C9.6,0 0,9.6 0,32 C0,54.4 9.6,64 32,64 C54.4,64 64,54.4 64,32 Z');
}

.project-main {
  min-width: 0;
}

.project-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.project-desc {
  display: block;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.55rem;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.project-link {
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
}
.project-link:hover, .project-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.project-chevron {
  color: var(--text-secondary);
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.project[open] .project-chevron {
  transform: rotate(90deg);
}

.project-more {
  padding: 0 0.25rem 1.75rem calc(64px + clamp(0.9rem, 2.5vw, 1.5rem) + 0.25rem);
}

.project-more p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 56ch;
}

.project-shots {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.project-shots img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}

/* ---------- Wie das entsteht ---------- */

.section-entsteht p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover, .inline-link:focus-visible {
  color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem clamp(1.25rem, 6vw, 2.5rem) 3.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: var(--measure-wide);
  margin: 0 auto;
}
.site-footer a {
  color: var(--text-secondary);
}
.site-footer a:hover, .site-footer a:focus-visible {
  color: var(--accent);
}
.site-footer .sep {
  opacity: 0.5;
}

/* ---------- Bewegung ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .project-summary,
  .project-chevron {
    transition: none;
  }
}

/* ---------- Rechtsseiten (impressum/datenschutz) ---------- */

.legal-main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 8rem) clamp(1.25rem, 6vw, 2.5rem) 5rem;
}
.legal-main h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin: 0 0 0.4rem;
}
.legal-main .sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}
.legal-main h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.legal-main h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal-main p, .legal-main ul {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  line-height: 1.7;
}
.legal-main ul {
  padding-left: 1.25rem;
}
.legal-main li {
  margin-bottom: 0.4rem;
}
.legal-main address {
  font-style: normal;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.96rem;
}
.legal-main .muted {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
