/* ====================================================================
   Lennox Laemmle — Portfolio · Startseite
   Umgesetzt aus Figma "Portfolio skizze" (START_Frame)
   Design-Referenz: 1512 px breit, schwarzer Hintergrund
   ==================================================================== */

/* ===== Schrift: Inter (selbst gehostet) ===== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/inter-800.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-700-italic.woff2") format("woff2");
}

:root {
  --bg: #000;          /* dunkle Module (Kacheln, Hover) */
  --fg: #fff;          /* Text auf dunklen Modulen */
  --paper: #fff;       /* Seiten-Hintergrund */
  --ink: #000;         /* Text auf hellem Hintergrund */
  --accent: #5b9dff;   /* hellblaue Linie im Header */
  --maxw: 1512px;
  --border: 3px;
  /* Höhe einer Raster-Zelle = Spaltenbreite × (332/504), volle Breite */
  --cols: 3;
  --cell-h: calc(100vw / var(--cols) * 0.6587);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 40px;
  border-top: var(--border) solid var(--accent);
  background: var(--paper);
  color: var(--ink);
}

.header__name {
  font-weight: 700;
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 34px);
}

.nav__link {
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 19px);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

/* ===== Hero (typografisch) ===== */
.hero {
  text-align: center;
  padding: clamp(16px, 2.5vw, 36px) 40px clamp(28px, 4vw, 52px);
}

.hero__wordmark {
  margin: 0;
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.01em;
  font-size: clamp(50px, 19vw, 234px);
  color: var(--ink);
}

.hero__line { display: block; }

/* Namens-Variante: beide Zeilen exakt gleich breit
   (Buchstaben über die volle Breite verteilt) */
.hero__wordmark--split {
  width: min(90vw, 1100px);
  letter-spacing: 0;
  padding-bottom: 0.32em;
}

.hero__wordmark--split .hero__line {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hero__wordmark--split .hero__line > span { display: block; }

/* zweite Zeile vertikal gespiegelt */
.hero__line--lammle { transform: scaleY(-1); }

/* Ä-Punkte: am A verankert, im Bildschirm unter dem A (Zeile ist gespiegelt) */
.hero__a { position: relative; }

.hero__umlaut {
  position: absolute;
  left: 50%;
  bottom: 112%;
  display: flex;
  gap: 0.18em;
  transform: translateX(-50%);
}

.hero__umlaut i {
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: currentColor;
}

.hero__intro {
  max-width: 880px;
  margin: clamp(28px, 4vw, 60px) auto 0;
  font-size: clamp(19px, 2.4vw, 34px);
  line-height: 1.18;
  font-weight: 400;
}

/* ===== "more"-Button ===== */
.more {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(28px, 4vw, 52px);
  padding: 8px 8px 8px clamp(24px, 2.4vw, 40px);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(18px, 1.8vw, 26px);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}

/* Akzent-Kreis, der beim Hover vom Icon aus den ganzen Button füllt */
.more::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8px;
  top: 50%;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.more__label { transition: transform .3s ease; }

.more__icon {
  display: grid;
  place-items: center;
  width: 2.1em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92em;
  line-height: 1;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

/* Hover: Kreis füllt den Button, Lift + Schatten, Pfeil rückt nach */
.more:hover,
.more:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  outline: none;
}

.more:hover::before,
.more:focus-visible::before {
  transform: translateY(-50%) scale(22);
}

.more:hover .more__label,
.more:focus-visible .more__label { transform: translateX(2px); }

.more:hover .more__icon,
.more:focus-visible .more__icon { transform: translateX(4px); }

/* ===== aktiver Nav-Link ===== */
.nav__link--active::after {
  transform: scaleX(1);
}

/* ===== Über mich ===== */
.about {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 32px) 40px clamp(56px, 8vw, 120px);
}

.about__lead {
  margin: 0 0 clamp(32px, 5vw, 64px);
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.12;
}

.about__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.about__cols p {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
}

.about__cols a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .about { padding-inline: 20px; }
  .about__cols { grid-template-columns: 1fr; }
}

/* ===== Arbeiten ===== */
.section-title {
  margin: 0;
  padding: 0 40px clamp(20px, 2.5vw, 36px);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 30px);
  text-transform: lowercase;
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: var(--cell-h);
  gap: 0;
}

.tile {
  position: relative;
  display: block;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

/* Bild-Ebene */
.tile__img {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity .35s ease;
}

/* Text-Ebene (schwarze Fläche), liegt unter dem Bild und wird beim Hover sichtbar */
.tile__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.8vw, 28px) clamp(20px, 2vw, 30px);
  opacity: 0;
  transition: opacity .35s ease;
  font-size: clamp(15px, 1.45vw, 22px);
  line-height: 1.18;
}

.tile__title { font-weight: 700; }
.tile__client { font-weight: 400; }
.tile__type { font-weight: 400; margin-top: 1.5em; }

/* Hover / Fokus: Bild ausblenden -> schwarze Fläche + Text */
.tile:hover .tile__img,
.tile:focus-visible .tile__img { opacity: 0; }

.tile:hover .tile__info,
.tile:focus-visible .tile__info { opacity: 1; }

.tile:focus-visible { outline: none; }

/* Explizite Platzierung — exakt wie im Figma (3 Spalten × 6 Zeilen) */
.tile--genuss   { grid-column: 1; grid-row: 1 / 3; }
.tile--ape      { grid-column: 2; grid-row: 1; }
.tile--bluek    { grid-column: 3; grid-row: 1; }
.tile--mcd      { grid-column: 2; grid-row: 2; }
.tile--redface  { grid-column: 3; grid-row: 2 / 4; }
.tile--eyes     { grid-column: 1; grid-row: 3; }
.tile--gif      { grid-column: 2; grid-row: 3 / 5; }
.tile--su       { grid-column: 1; grid-row: 4 / 6; }
.tile--gefangen { grid-column: 3; grid-row: 4; }
.tile--arm      { grid-column: 2; grid-row: 5; }
.tile--num95    { grid-column: 3; grid-row: 5 / 7; }
.tile--wurm     { grid-column: 2; grid-row: 6; }

/* ===== Footer ===== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 24px;
  min-height: 60px;
  border-top: var(--border) solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 17px);
}

.footer__contact { font-style: normal; line-height: 1.3; }
.footer__contact a:hover { text-decoration: underline; }

.footer__top {
  display: grid;
  place-items: center;
  padding: 8px;
}
.footer__chevron { width: 30px; height: auto; display: block; transition: transform .2s ease; }
.footer__top:hover .footer__chevron { transform: translateY(-4px); }

.footer__copy { margin: 0; text-align: right; line-height: 1.3; }

/* ====================================================================
   Responsive
   ==================================================================== */

/* Tablet: 2 Spalten, automatischer Fluss, hohe Kacheln über 2 Zeilen */
@media (max-width: 900px) {
  :root { --cols: 2; }
  .grid { grid-auto-flow: dense; }
  .tile { grid-column: auto !important; grid-row: auto !important; }
  .tile--genuss,
  .tile--redface,
  .tile--gif,
  .tile--su,
  .tile--num95 { grid-row: span 2 !important; }
}

/* Mobil: 1 Spalte */
@media (max-width: 560px) {
  :root { --cols: 1; }
  .header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
  }
  .hero { padding: 8px 20px 48px; }
  .hero__wordmark { font-size: clamp(40px, 15vw, 90px); }
  .hero__intro { max-width: 100%; }
  .section-title { padding-inline: 20px; }
  .footer { flex-wrap: wrap; padding: 16px 20px; }
  .footer__top { order: 3; flex: 1 0 100%; }
  .tile--genuss,
  .tile--redface,
  .tile--gif,
  .tile--su,
  .tile--num95 { grid-row: span 2 !important; }
}
