/*
  Marcel Ruse Onepager
  Hinweis: Inter ist lokal vorbereitet. Fontdateien aus Lizenz-/Dateigründen bitte selbst in /assets/fonts/ ablegen:
  InterVariable.woff2 und InterVariable-Italic.woff2
*/
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f2f0eb;
  --text: #2e302f;
  --muted: #73716b;
  --line: #ded9cf;
  --orange: #ff914d;
  --blue: #353a90;
  --shadow: 0 24px 80px rgba(46, 48, 47, 0.08);
  --radius-xl: 2rem;
  --radius-lg: 1.2rem;
  --container: min(1120px, calc(100vw - 2rem));
  --header-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 145, 77, 0.10), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(53, 58, 144, 0.08), transparent 30rem),
    var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: rgba(255, 145, 77, 0.22); }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: 999px;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100vw - 1.25rem));
  margin: .6rem auto 0;
  padding: .55rem .65rem .55rem 1rem;
  border: 1px solid rgba(222, 217, 207, .72);
  border-radius: 999px;
  background: rgba(251, 250, 247, .78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(46, 48, 47, .055);
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 42px rgba(46, 48, 47, .08);
}
.brand {
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: -.02em;
}
.brand::after {
  content: "";
  display: inline-block;
  width: .44rem;
  height: .44rem;
  margin-left: .46rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  vertical-align: .04rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  font-size: .82rem;
  color: var(--muted);
}
.main-nav a {
  padding: .55rem .72rem;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible {
  background: rgba(255, 145, 77, .11);
  color: var(--text);
}

.hero {
  min-height: 100svh;
  width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-height) + 2rem) 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  position: relative;
}
.eyebrow, .section__label, .project-card__meta {
  margin: 0 0 1rem;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin: 0;
  font-size: clamp(4.4rem, 11vw, 9.8rem);
  line-height: .86;
  letter-spacing: -.08em;
  font-weight: 720;
}
.hero__claim {
  max-width: 680px;
  margin: 1.55rem 0 0;
  font-size: clamp(1.25rem, 2.7vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  color: #444642;
}
.hero__image {
  margin: 0;
  border-radius: clamp(1.4rem, 3vw, 2.4rem);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-soft);
  transform: translateY(1.2rem);
}
.hero__image img {
  width: 100%;
  height: min(76svh, 760px);
  object-fit: cover;
  object-position: center;
}
.scroll-hint {
  position: absolute;
  bottom: 2.4rem;
  left: 0;
  font-size: .77rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: "";
  display: inline-block;
  height: 3rem;
  width: 1px;
  margin-top: .7rem;
  background: linear-gradient(var(--orange), transparent);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.section__intro {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 690;
}
p { font-size: clamp(1.02rem, 1.35vw, 1.18rem); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .64fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}
.about__text p {
  max-width: 700px;
  color: #4b4d49;
  margin: 1.35rem 0 0;
}
.about__image {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}
.about__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.project-card {
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(222, 217, 207, .72);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 52px rgba(46, 48, 47, .055);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 72px rgba(46, 48, 47, .10);
  border-color: rgba(255, 145, 77, .28);
}
.project-card img {
  width: 100%;
  height: clamp(250px, 36vw, 460px);
  object-fit: cover;
}
.project-card__body { padding: clamp(1.25rem, 3vw, 2rem); }
.project-card__meta { margin-bottom: .65rem; color: var(--blue); }
.project-card h3, .thought h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.project-card p:last-child, .thought p {
  margin: .8rem 0 0;
  color: #555752;
}

.philosophy {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.thoughts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.thought {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(222, 217, 207, .72);
}
.thought:first-child { box-shadow: inset 4px 0 0 rgba(255,145,77,.55); }
.thought:nth-child(2) { box-shadow: inset 4px 0 0 rgba(53,58,144,.32); }
.thought:nth-child(3) { box-shadow: inset 4px 0 0 rgba(255,145,77,.30); }

.insight-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  grid-auto-rows: 260px;
  gap: 1rem;
}
.insight {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: 0 16px 52px rgba(46, 48, 47, .055);
}
.insight--large { grid-row: span 2; }
.insight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact {
  width: min(920px, calc(100vw - 2rem));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.contact__inner {
  border-radius: calc(var(--radius-xl) + .6rem);
  padding: clamp(2rem, 6vw, 5rem);
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(242,240,235,.8));
  border: 1px solid rgba(222,217,207,.82);
  box-shadow: var(--shadow);
}
.contact p { color: #555752; max-width: 620px; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .82rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(222,217,207,.9);
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255,145,77,.45);
  background: rgba(255,145,77,.08);
}
.contact-links span {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  color: var(--blue);
  font-weight: 700;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin: 0; font-size: .9rem; }
.site-footer nav { display: flex; gap: 1rem; }
.site-footer a:hover { color: var(--text); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .22s; }

@media (max-width: 900px) {
  :root { --header-height: 62px; }
  .site-header { width: calc(100vw - 1rem); overflow-x: auto; scrollbar-width: none; }
  .site-header::-webkit-scrollbar { display: none; }
  .main-nav { min-width: max-content; }
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2rem;
    padding-top: calc(var(--header-height) + 1.6rem);
  }
  .hero__image {
    transform: none;
    max-width: 520px;
    justify-self: end;
  }
  .hero__image img { height: min(52svh, 620px); }
  .scroll-hint { display: none; }
  .about__grid, .project-grid, .thoughts { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .insight--large { grid-column: span 2; }
}

@media (max-width: 620px) {
  :root { --container: min(100vw - 1rem, 1120px); }
  .site-header {
    border-radius: 1.1rem;
    height: auto;
    padding: .55rem;
    align-items: flex-start;
    gap: .4rem;
  }
  .brand { padding: .52rem .3rem .52rem .4rem; }
  .main-nav { gap: .05rem; font-size: .78rem; }
  .main-nav a { padding: .52rem .55rem; }
  .hero h1 { font-size: clamp(4rem, 21vw, 6.2rem); }
  .hero__claim { font-size: 1.35rem; }
  .hero__image { justify-self: stretch; }
  .section { padding: 4.6rem 0; }
  .project-card img { height: 340px; }
  .insight-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .insight--large { grid-column: auto; grid-row: auto; }
  .contact { width: var(--container); }
  .contact-links { flex-direction: column; align-items: stretch; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.legal-page {
  width: min(860px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 4rem 0 8rem;
}
.legal-page h1 {
  margin-top: 4rem;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .9;
  letter-spacing: -.07em;
}
.legal-page p { max-width: 680px; color: #555752; }
