/* janniktoosbuy.de – gemeinsames Stylesheet
   Monochrom: Hellgrau und Schwarz, keine Akzentfarbe. Systemschrift (SF Pro auf Apple, Segoe UI
   auf Windows, Roboto auf Android) in Gewicht 400 und 500.
   Light/Dark über prefers-color-scheme. */

:root {
  --bg: #f4f4f2;
  --surface: #fafaf9;
  --ink: #111111;
  --body: #3f3f3c;
  --muted: #6b6b67;
  --line: #dcdcd8;
  --accent: #111111;
  --accent-ink: #f4f4f2;
  --portrait: #e4e4e0;
  --portrait-ink: #8a8a85;
  --ph-bg: #ffe8a3;
  --ph-ink: #4a3800;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .28);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --r: 6px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --surface: #181818;
    --ink: #ededeb;
    --body: #c4c4c0;
    --muted: #9a9a96;
    --line: #2a2a2a;
    --accent: #ededeb;
    --accent-ink: #0f0f0f;
    --portrait: #1c1c1c;
    --portrait-ink: #6b6b67;
    --ph-bg: #5a4708;
    --ph-ink: #ffe9a8;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: .5rem;
}
.skip:focus { top: 1rem; }

/* Platzhalter: gelb markiert, damit nichts davon live geht */
.ph {
  background: var(--ph-bg); color: var(--ph-ink);
  padding: .05em .35em; border-radius: .3em;
  font-size: .9em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Kopf ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 4.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: -.01em;
  white-space: nowrap;
}
.brand .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--ink); flex: none; }
.brand .app-mark { width: 1.75rem; height: 1.75rem; border-radius: 22%; flex: none; }
.nav { display: flex; gap: 2rem; font-size: .9rem; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Hero: ein kurzer Satz, eine Zeile darunter, zwei Textlinks ---------- */
.hero .wrap {
  padding-top: clamp(4rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 11vw, 8rem);
}
.hero-title {
  margin: 0;
  max-width: 14em;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-sub {
  margin: 1.5rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
}
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 2.25rem 0 0; }
.hero-links a { text-decoration-color: var(--muted); }
.hero-links a:hover { color: var(--muted); }

.page-head .wrap { padding-top: clamp(3.5rem, 10vw, 7rem); padding-bottom: clamp(1rem, 3vw, 2rem); }

/* ---------- Abschnitte: kleine Beschriftung über einer Linie ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.label {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  padding-top: .9rem;
  border-top: 1px solid var(--ink);
  font-size: .95rem;
  font-weight: 500;
}

/* ---------- Was ich mache: drei Spalten ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.service h3 { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.service p { margin: 0 0 1.25rem; color: var(--body); }
.service ul { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.service li { padding: .5rem 0; border-top: 1px solid var(--line); }
.service li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Über mich: Foto links, Text rechts ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.portrait { margin: 0; }
.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--portrait);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-ph { width: 100%; height: 100%; display: grid; place-items: end start; padding: .75rem; }
.about-text { max-width: 34rem; }
.about-text p { margin: 0 0 1rem; color: var(--body); }
.about-text .about-name { margin: 0; font-size: 1.3rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.about-text .about-role { margin: 0 0 1.75rem; color: var(--muted); }
.about-text a { color: var(--ink); }

/* Studium: Logos in einer Reihe, einfarbig gedämpft */
.unis {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem;
  margin: 2.25rem 0 0; padding: 1.25rem 0 0; list-style: none;
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.unis li { display: flex; align-items: center; gap: .6rem; }
/* multiply/screen blenden den weißen Logo-Hintergrund in den Seitenhintergrund ein */
.unis img { height: 3.25rem; width: auto; filter: grayscale(1); opacity: .8; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .unis img { filter: grayscale(1) invert(1); mix-blend-mode: screen; } }

/* ---------- Kontakt ---------- */
.contact { padding-bottom: clamp(4rem, 10vw, 7rem); }
.contact-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.03em;
}
.contact-sub { margin: .75rem 0 1.75rem; color: var(--muted); }
.mail { font-size: clamp(1.15rem, 2vw, 1.4rem); text-decoration-color: var(--muted); }
.mail:hover { color: var(--muted); }
.contact .ph-line { margin: 1rem 0 0; }

/* ---------- Projekte-Seite: eine Zeile pro Produkt ---------- */
.projects { margin: 0; padding: 0; list-style: none; }
.project-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-icon { width: 3.5rem; height: 3.5rem; border-radius: 22%; }
.project-row h2 { margin: 0 0 .25rem; font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.project-row p { margin: 0; color: var(--body); max-width: 34rem; }
.project-link { font-size: .95rem; }

/* ---------- Fuß ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  padding-top: 1.75rem; padding-bottom: 2.25rem;
}
.site-footer p { margin: 0; max-width: 40rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--ink); }
.footer-nav a[aria-current="page"] { color: var(--muted); }

/* ---------- Rechtstexte ---------- */
.legal .wrap { padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.doc { max-width: 42rem; }
.doc h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05; font-weight: 300; letter-spacing: -.04em;
}
.doc .sub { margin: 0 0 2.5rem; color: var(--muted); }
.doc h2 {
  margin: 2.25rem 0 .5rem;
  font-size: 1.15rem; line-height: 1.3; font-weight: 500;
}
.doc address { font-style: normal; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: .2rem 0; }

/* ---------- Bewegung: ein ruhiges Einblenden beim Laden ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-sub, .hero-links { animation: fade .8s ease-out both; }
  .hero-sub { animation-delay: .08s; }
  .hero-links { animation-delay: .14s; }
  @keyframes fade { from { opacity: 0; translate: 0 .5rem; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Schmal ---------- */
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 14rem; }
  .project-row { grid-template-columns: 3rem minmax(0, 1fr); gap: .5rem 1rem; align-items: start; }
  .project-icon { width: 3rem; height: 3rem; }
  .project-link { grid-column: 2; }
  .nav { gap: .9rem; font-size: .85rem; }
  .brand { font-size: .9rem; gap: .45rem; }
  .brand .dot { width: .55rem; height: .55rem; }
}
