﻿/* =====================================================
   Nikolai Kleuster - Personal Site
   Vanilla CSS · cream / off-black · minimal
   ===================================================== */

/* ── Local fonts ──────────────────────────────────────── */
/* Inter (400, 500, 600) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin-ext.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;
}

/* JetBrains Mono (400, 500) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrainsmono-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrainsmono-latin-ext.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;
}

::selection {
  background: #b85c38;
  color: #f6f1ea;
}
:root {
  --background: #f6f1ea;
  --foreground: #111110;
  --muted-foreground: #7a7368;
  --border: rgba(0, 0, 0, 0.1);
  --link: #111110;
  --accent: #b85c38;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --max: 800px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  min-height: 100vh;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }

/* ── Inline content links (not nav, not buttons) ─────────────────────────
   Bottom-bar technique: thin colored line at rest, fills to highlight on hover.
   Apply to all <a> inside <main>, excluding buttons and tag-btns.        */
main a[href]:not(.tag--btn):not(.filter-chip):not(.filter-clear):not(.quickfilter-btn):not(.filter-mode-btn) {
  padding:1px 5px;
  color: var(--link);
  text-decoration: none;
  background-image:
    linear-gradient(rgba(184, 92, 56, 0.15), rgba(184, 92, 56, 0.15)),
    linear-gradient(#b85c38, #b85c38);
  background-size: 100% 0%, 100% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  transition: background-size .2s ease;
}
main a[href]:not(.tag--btn):not(.filter-chip):not(.filter-clear):not(.quickfilter-btn):not(.filter-mode-btn):hover {
  background-size: 100% 100%, 100% 0%;
  color: var(--link);
}
img { max-width: 100%; display: block; }

/* ============ NAVIGATION ============ */
.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-nav .brand {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}
.site-nav .brand a { color: inherit; }
.site-nav .brand a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color .15s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .site-nav { padding-top: 24px; }
  .nav-links { gap: 16px; }
}

/* ============ EYE STRIP ============ */
#glitch-strip {
  width: 100%;
  overflow: hidden;
  background: var(--background);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  cursor: default;
  position: relative;
}
.strip-claim {
  align-self: flex-start;
  max-width: var(--max);
  width: 100%;
  margin: 6px auto 0;
  padding: 0 24px;
  font-size: 14px;
  color: var(--foreground);
  letter-spacing: 0.03em;
}
#eyes {
  margin: 0;
  white-space: pre;
  line-height: 1.08;
  letter-spacing: 0.01em;
  font-family: var(--font-mono);
  font-size: clamp(4.5px, 0.62vw, 8.5px);
  font-weight: 600;
  color: var(--foreground);
  user-select: none;
}

/* ============ PAGE CONTENT ============ */
.page-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ============ INTRO ============ */
.intro {
  padding: 64px 0 0;
}
.intro h1 {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 28px;
}
.intro p {
  color: var(--muted-foreground);
  max-width: 640px;
  margin-bottom: 16px;
}
.intro p:last-of-type { margin-bottom: 0; }
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}
.link-row a {
  font-size: 14px;
  transition: color .15s ease, background-size .2s ease;
}
.link-row a:hover { color: var(--foreground); }

/* ============ SECTION ============ */
.section {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.section h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.section h2 a {
  color: var(--foreground);
}
.section h2 a:hover { color: var(--link); }
.section > p {
  color: var(--muted-foreground);
  font-size: 15px;
  max-width: 580px;
}

/* ============ PAGE HEADER (sub-pages) ============ */
.page-head {
  padding: 64px 0 0;
  border-bottom: none;
}
.page-head h1 {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 28px;
}
.page-head p {
  color: var(--muted-foreground);
  max-width: 600px;
  font-size: 15px;
}

/* ============ PROJECT LIST ============ */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-item {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.project-item:first-child { margin-top: 48px; }
.project-item:last-child { border-bottom: none; }
.project-item h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.project-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.project-item p {
  color: var(--muted-foreground);
  font-size: 15px;
  max-width: 600px;
  margin-bottom: 16px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  background: rgba(0,0,0,0.04);
  padding: 3px 7px;
  border-radius: 2px;
}
.tag--btn {
  cursor: pointer;
  border: none;
  transition: background .15s ease, color .15s ease;
}
.tag--btn:hover {
  background: rgba(0,0,0,0.1);
  color: var(--foreground);
}
.tag--active {
  background: var(--accent);
  color: var(--background);
}
.tag--active:hover {
  background: var(--accent);
  opacity: 0.8;
}

/* ============ PROJECT FILTERS ============ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0 8px;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--background);
  background: var(--accent);
  border: none;
  border-radius: 2px;
  padding: 4px 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity .15s ease;
}
.filter-chip:hover { opacity: 0.7; }
.filter-clear {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  letter-spacing: 0.04em;
  margin-left: 4px;
  transition: color .15s ease;
}
.filter-clear:hover { color: var(--foreground); }
.filter-empty {
  padding: 48px 0;
  color: var(--muted-foreground);
  font-size: 15px;
}

/* ============ QUICK FILTERS ============ */
.quickfilter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 32px 0 0;
}
.quickfilter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-right: 4px;
  flex-shrink: 0;
}
.quickfilter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.quickfilter-btn:hover {
  border-color: var(--foreground);
  background: rgba(0,0,0,0.04);
}
.quickfilter-btn--active {
  background: var(--accent);
  color: var(--background);
  border-color: var(--accent);
}
.quickfilter-btn--active:hover {
  opacity: 0.8;
}
.filter-mode-toggle {
  display: inline-flex;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.filter-mode-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  padding: 5px 9px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.filter-mode-btn + .filter-mode-btn {
  border-left: 1px solid var(--border);
}
.filter-mode-btn:hover { color: var(--foreground); background: rgba(0,0,0,0.04); }
.filter-mode-btn--active {
  background: var(--foreground);
  color: var(--background);
}

/* ============ NOTES LIST ============ */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}
.note-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.note-item:first-child { border-top: 1px solid var(--border); }
.note-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.note-item h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.note-item p {
  font-size: 14px;
  color: var(--muted-foreground);
  max-width: 600px;
}

/* ============ ABOUT PAGE ============ */
.about-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 620px;
}
.about-body p {
  color: var(--muted-foreground);
  font-size: 16px;
}
.focus-list {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.focus-list h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 16px;
}
.focus-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.focus-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 10px;
}
.focus-list li::before {
  content: "-";
  color: var(--muted-foreground);
  font-size: 11px;
}

/* ============ CONTACT PAGE ============ */
.freizeit {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.freizeit h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}
.freizeit ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.freizeit li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 10px;
}
.freizeit li::before {
  content: "-";
  font-size: 10px;
  flex-shrink: 0;
}

/* ============ CONTACT PAGE (actual) ============ */
.contact-intro {
  padding: 0;
  max-width: 520px;
}
.contact-intro p {
  color: var(--muted-foreground);
  font-size: 16px;
  margin-bottom: 36px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-links a {
  width: fit-content;
  font-size: 15px;
  transition: color .15s ease, background-size .2s ease;
}
.contact-links a:hover { color: var(--foreground); }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .f-name {
  font-size: 13px;
  color: var(--muted-foreground);
}
.site-footer .f-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  letter-spacing: 0.08em;
}

/* ============ ANIMATIONS ============ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fade-up 0.55s cubic-bezier(0.16,1,0.3,1) both; }

/* ============ FOCUS INLINE (index) ============ */
.focus-inline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.focus-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
}
.focus-label {
  font-weight: 500;
  color: var(--foreground);
}
.focus-label::after { content: " -"; color: var(--muted-foreground); }
.focus-detail {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ============ PROJECT GRID (index featured + work) ============ */
.project-category {
  margin-top: 48px;
}
.project-category:first-child {
  margin-top: 32px;
}
.project-category-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 16px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.project-card {
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.project-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.project-card .project-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-foreground);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.project-card p {
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}
.project-card .tags {
  margin-top: auto;
}
.project-card .tag {
  font-size: 9px;
}
@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ SECTION MORE LINK ============ */
.section-more {
  margin-top: 24px;
  font-size: 13px;
}
.section-more a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color .15s ease;
}
.section-more a:hover { color: var(--foreground); }

/* ============ FOOTER LEGAL LINKS ============ */
.f-legal {
  display: flex;
  gap: 16px;
}
.f-legal a {
  font-size: 12px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color .15s ease;
}
.f-legal a:hover { color: var(--foreground); }

/* ============ ABOUT - Werdegang & Zertifizierungen ============ */
.werdegang,
.zertifizierungen {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 40px;
}
.werdegang h3,
.zertifizierungen h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}
.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 14px;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.timeline-role {
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.5;
}
.timeline-org {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-foreground);
  margin-top: 1px;
}
.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cert-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cert-list li::before {
  content: "-";
  font-size: 10px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ============ LEGAL TEXT (Impressum / Datenschutz) ============ */
.legal-text {
  border-top: none;
  padding: 0;
}
.legal-text h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 28px 0 8px;
  letter-spacing: -0.01em;
}
.legal-text h2:first-child { margin-top: 0; }
.legal-text p {
  color: var(--muted-foreground);
  font-size: 14px;
  max-width: 620px;
  line-height: 1.7;
}
