/* ── Roboto liegt in /fonts (variable Schrift, keine Verbindung zu Google) ── */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/roboto-latin-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: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/roboto-latin-ext-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: "Roboto"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/roboto-latin-italic.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: "Roboto"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/roboto-latin-ext-italic.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; }

/* ── Design-Tokens: hier Farben & Schriften zentral ändern ── */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #141414;
  --muted: #6b6b6b;
  --line: #e6e4df;
  --accent: #1f4cff;
  --display: "Roboto", system-ui, sans-serif;
  --sans: "Roboto", system-ui, sans-serif;
  --max: 1120px;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f; --surface: #181818; --text: #f2f2f0;
    --muted: #9a9a96; --line: #2a2a28; --accent: #7d9bff;
  }
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
main, .nav, .footer { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px; position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
}
.logo { font-weight: 900; letter-spacing: -.01em; text-decoration: none; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 120px 0 100px; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(42px, 7.5vw, 88px); line-height: 1.04; letter-spacing: -.03em;
}
h1 em { color: var(--muted); font-weight: 300; font-style: italic; }
.lead { max-width: 560px; margin-top: 28px; font-size: 18px; font-weight: 300; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 500; font-size: 15px;
  border: 1px solid var(--text); transition: opacity .2s;
}
.btn:hover { opacity: .8; }
.btn.ghost { background: transparent; color: var(--text); }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.01em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.filters button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Projekt-Grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { display: block; text-decoration: none; color: inherit; }
.thumb {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); display: grid; place-items: center; position: relative;
}
/* Absolut positioniert, damit das Bild wirklich die Kachel füllt: in einem Grid mit aspect-ratio
   löst height:100% sonst nicht auf, das Bild wird nur abgeschnitten und object-fit/object-position wirken nicht. */
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.thumb .ph { font-family: var(--display); font-weight: 700; font-size: 72px; color: var(--line); }
.card:hover .thumb img { transform: scale(1.03); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
/* Platzhalter-Kachel: gleiche Optik, aber kein Link */
.card-ph { cursor: default; }
.card-ph:hover h3 { text-decoration: none; }
.card-ph:hover .thumb img { transform: none; }
.card-ph .thumb .ph { font-size: 56px; }
.card-tile .thumb .ph { font-size: 56px; }
/* Flaggen und Zertifikate: klein in der Mitte statt bildfüllend */
.thumb.is-flag img { padding: 22% 26%; }
.thumb.is-icon img { padding: 28% 36%; }
/* App-Icons einheitlich: quadratisch, gleiche Größe, gleicher Radius, Rand knapp beschnitten */
.thumb.is-app img { top: 18%; bottom: 18%; left: 50%; width: auto; height: 64%; aspect-ratio: 1 / 1; transform: translateX(-50%);
  object-fit: cover; padding: 0; clip-path: inset(3% round 21%); }
.card:hover .thumb.is-app img { transform: translateX(-50%) scale(1.03); }
.case-cover.is-app img { width: 240px; height: 240px; aspect-ratio: 1 / 1; max-height: none; object-fit: cover; margin: 0 auto; clip-path: inset(3% round 21%); }
.case-cover.is-icon img { max-height: 220px; }
.case-step { scroll-margin-top: 90px; }
.case-step a { color: var(--text); border-bottom: 1px solid var(--line); text-decoration: none; }
.case-step a:hover { color: var(--accent); border-color: var(--accent); }
.meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--muted); }
.card h3 { font-size: 20px; font-weight: 700; margin-top: 4px; }
.card p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* About */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.pillars span { color: var(--accent); font-size: 13px; font-weight: 600; }
.pillars h3 { font-size: 18px; font-weight: 700; margin: 8px 0 6px; }
.pillars p { color: var(--muted); font-size: 15px; }

/* Docs */
.doclist { list-style: none; padding: 0; margin-top: 32px; }
.doclist li { border-bottom: 1px solid var(--line); }
.doclist a, .doclist .soon {
  display: flex; justify-content: space-between; padding: 18px 0; text-decoration: none; font-size: 18px;
}
.doclist a:hover { color: var(--accent); }
.doclist .soon { color: var(--muted); }

/* Footer */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

/* Modal */
dialog {
  margin: auto; border: 0; border-radius: var(--radius); padding: 48px; max-width: 680px; width: calc(100% - 32px);
  background: var(--surface); color: var(--text);
}
dialog::backdrop { background: rgb(0 0 0 / .45); backdrop-filter: blur(4px); }
dialog .close { position: absolute; top: 16px; right: 20px; font-size: 28px; background: none; border: 0; color: var(--muted); cursor: pointer; }
dialog h2 { margin: 6px 0 16px; }
dialog img { width: 100%; border-radius: 10px; margin-bottom: 24px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tags span { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* Einblend-Animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Mobile */
@media (max-width: 760px) {
  main, .nav, .footer { padding: 0 16px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 14px; }
  .nav nav a[href="#docs"] { display: none; }
  .hero { padding: 72px 0 64px; }
  .grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 24px; }
  dialog { padding: 32px 20px; }
}

/* Rechtstexte */
.legal { border: 0; max-width: 720px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 32px 0 8px; }
.legal p { color: var(--muted); }

/* ── Projektseite (Fallstudie) ── */
.case-head { padding: 64px 0 48px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 40px; }
.back:hover { color: var(--text); }
.case-head h1 { font-size: clamp(40px, 7vw, 80px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
.case-cover { margin: 0 0 24px; }
.case-cover img, .case-cover video { width: 100%; aspect-ratio: 16 / 9; max-height: 640px; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; display: block; }
@media (max-width: 760px) { .case-cover img, .case-cover video { aspect-ratio: 4 / 3; } }
.case-step { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 56px 0; border-top: 1px solid var(--line); max-width: 900px; }
.case-step .step { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--accent); line-height: 1; }
.case-step h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 20px; }
.case-step h4 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.case-step p, .case-step li { color: var(--muted); font-size: 17px; }
.case-step p + p { margin-top: 14px; }
.case-step strong { color: var(--text); font-weight: 600; }
.case-step ul, .case-step ol { padding-left: 20px; margin: 12px 0; display: grid; gap: 8px; }
.gallery { columns: 3 260px; column-gap: 16px; padding: 40px 0; border-top: 1px solid var(--line); }
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery img, .gallery video { width: 100%; border-radius: 10px; display: block; background: var(--surface); }
.gallery img { cursor: zoom-in; }
.next { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 48px 0 80px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.next span { color: var(--muted); font-size: 14px; }
.next strong { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 40px); }
.next:hover strong { color: var(--accent); }
#lightbox { padding: 0; background: transparent; max-width: 92vw; width: auto; }
#lightbox img { max-width: 92vw; max-height: 90vh; display: block; border-radius: 8px; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .case-step { grid-template-columns: 1fr; gap: 12px; padding: 40px 0; }
  .case-step .step { font-size: 28px; }
}

/* Cover mit Screenshot oder App-Icon: ganz zeigen statt beschneiden */
.thumb.is-contain img { object-fit: contain; padding: 8% 0; }
.case-cover.is-contain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.case-cover.is-contain img { object-fit: contain; max-height: 520px; }

/* ── Bereiche (Arbeit, Hobbys, Bildung, Reisen) ── */
.area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.area-head p { color: var(--muted); max-width: 420px; }
.group + .group { margin-top: 56px; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 20px; }
.group-title span { font-size: 12px; letter-spacing: 0; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; }
.placeholder { color: var(--muted); padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.nav nav { overflow-x: auto; scrollbar-width: none; }
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .nav { gap: 16px; }
  .nav nav { gap: 14px; }
}
/* Bereiche: je Gruppe EINE Reihe, die seitlich scrollt (wie am Handy), mit Pfeilen für die Maus */
.area .grid { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.area .grid::-webkit-scrollbar { display: none; }
.area .grid .card { flex: 0 0 calc((100% - 48px) / 3.15); scroll-snap-align: start; }
.area .card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.row-nav { display: flex; justify-content: flex-end; gap: 8px; margin: -36px 0 12px; }
.row-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; cursor: pointer; }
.row-nav button:hover { border-color: var(--text); }
.row-nav button:disabled { opacity: .3; cursor: default; }
@media (min-width: 1000px) {
  .area .card h3 { font-size: 18px; }
}
@media (min-width: 761px) and (max-width: 999px) {
  .area .grid .card { flex-basis: calc((100% - 24px) / 2.15); }
}
@media (max-width: 760px) {
  .row-nav { display: none; }
}





/* Links im Hero (LinkedIn, GitHub) */
.hero-links { display: contents; }
.btn span { color: var(--muted); font-weight: 400; }

/* Notizen */
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); max-width: 900px; }
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes time { color: var(--muted); font-size: 14px; padding-top: 4px; }
.notes h3 { font-size: 20px; font-weight: 700; }
.notes p { color: var(--muted); margin-top: 6px; }
.notes a { display: inline-block; margin-top: 10px; font-size: 15px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.notes a:hover { color: var(--accent); border-color: var(--accent); }
.notes a span { color: var(--muted); }
@media (max-width: 760px) {
  .notes li { grid-template-columns: 1fr; gap: 6px; }
  .nav nav a[href="#notizen"] { display: none; }
}

/* ── Handy-Ansicht „Reihen“ (Entscheidung 02.11.2026, Mockup 2): nur unter 760 px ── */
.tabbar, .hero-photo { display: none; }
@media (max-width: 760px) {
  .nav { height: 56px; }
  body.has-tabbar .nav nav { display: none; }      /* Startseite: Navigation ist die Leiste unten */
  .hero { padding: 28px 0 28px; }
  h1 { font-size: 34px; line-height: 1.05; }
  .lead { font-size: 15.5px; margin-top: 12px; }
  .hero-actions { margin-top: 18px; gap: 8px; }
  .btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
  .hero-photo:not([hidden]) { display: block; margin: 26px 0 0; }
  .hero-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; display: block; }
  .section { padding: 40px 0; }
  h2 { font-size: 28px; }
  .area-head { margin-bottom: 18px; gap: 6px; }
  .area-head p { font-size: 14.5px; }
  .group + .group { margin-top: 30px; }
  .group-title { margin-bottom: 12px; }

  /* Reihen: Karten nebeneinander, am Rand angeschnitten, Einrasten beim Wischen */
  .area .grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px 6px; }
  .area .grid::-webkit-scrollbar { display: none; }
  .area .grid .card { flex: 0 0 76%; scroll-snap-align: start; }
  .thumb { border-radius: 16px; }
  .meta { margin-top: 12px; font-size: 12px; }
  .card h3 { font-size: 17px; margin-top: 2px; }
  .card p { font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }


  .pillars { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
  .pillars h3 { font-size: 16px; }
  .pillars p { font-size: 14px; }
  .notes li { padding: 18px 0; }
  .notes h3 { font-size: 17px; }
  .doclist a, .doclist .soon { font-size: 16px; padding: 14px 0; }
  body.has-tabbar main { padding-bottom: 24px; }
  body.has-tabbar .footer { padding-bottom: 96px; }

  /* Feste Leiste unten */
  body.has-tabbar .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-between;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 12.5px; font-weight: 500; padding: 9px 4px; border-radius: 10px; }
  .tabbar a.active { color: var(--text); background: var(--surface); }
}

/* ── Handy-Bühne für die Apps: ein Telefon, darin wischbare Bildschirme ── */
.phone-stage { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.phone { width: 300px; aspect-ratio: 9 / 19; border-radius: 42px; padding: 12px; background: #111; border: 1px solid #333;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px #000; position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #000; z-index: 3; }
.phone-screens { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.phone-screens::-webkit-scrollbar { display: none; }
.phone-screen { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; background: var(--surface); }
.phone-screen .screen-img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone-screen .screen-badge { position: absolute; top: 56px; left: 16px; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); z-index: 2; }
.phone-screen .screen-empty { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #1b1b1b, #2a2a2a); }
.phone-screen .screen-icon-big { width: 128px; height: 128px; border-radius: 28px; object-fit: cover; }
.phone-caption { min-width: 0; }
.phone-dots { display: flex; gap: 8px; margin-bottom: 20px; }
.phone-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--muted); background: transparent; cursor: pointer; }
.phone-dots button.active { background: var(--text); border-color: var(--text); }
.phone-text { display: none; }
.phone-text.active { display: block; }
.phone-text .meta { margin: 0 0 8px; }
.phone-text h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.phone-text p { color: var(--muted); margin-top: 10px; font-size: 16px; max-width: 480px; }
.phone-text a { display: inline-block; margin-top: 18px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.phone-text a:hover { color: var(--accent); border-color: var(--accent); }
.phone-text a span { color: var(--muted); }
@media (max-width: 760px) {
  .phone-stage { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .phone { width: min(280px, 78vw); }
  .phone-caption { width: 100%; }
  .phone-dots { justify-content: center; margin-bottom: 14px; }
  .phone-text { text-align: center; }
  .phone-text .meta { justify-content: center; gap: 12px; }
  .phone-text p { margin-left: auto; margin-right: auto; font-size: 15px; }
}
