/* =========================================================
   Lukas Kleeber — Lightweight Portfolio (Vanilla)
   Theme: Midnight Blue + subtle Neon Teal
   No tracking, no cookies.
   ========================================================= */

/* ---- CSS Reset (minimal) ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

/* ---- Theme Variables ---- */
:root {
  /* Colors */
  --midnight-950: #060913;
  --midnight-900: #0a1022;
  --midnight-800: #111a33;
  --slate-50: #f6f7fb;
  --slate-100: #eceef6;
  --slate-200: #d6daea;
  --slate-600: #4b556b;
  --slate-800: #1f2a44;

  --teal-400: #2ee8c8;
  /* neon teal (subtle use) */
  --teal-500: #18cdb0;

  --shadow: 0 14px 44px rgba(0, 0, 0, 0.30);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);

  --radius: 14px;
  --radius-sm: 10px;

  --maxw: 1120px;
  --pad: clamp(16px, 3vw, 28px);

  --grid-opacity: 0.08;
  /* subtle */
  --scan-opacity: 0.05;
  /* very subtle */
  --glow-opacity: 0.25;
  /* subtle glow */
}

/* Dark */
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: var(--midnight-950);
  --bg-elev: rgba(10, 16, 34, 0.65);
  --bg-card: rgba(17, 26, 51, 0.60);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: rgba(245, 247, 252, 0.92);
  --muted: rgba(245, 247, 252, 0.68);

  --accent: var(--teal-400);
  --accent-2: var(--teal-500);

  --link: rgba(46, 232, 200, 0.92);
}

/* Light */
html[data-theme="light"] {
  color-scheme: light;

  --bg: var(--slate-50);
  --bg-elev: rgba(255, 255, 255, 0.70);
  --bg-card: rgba(255, 255, 255, 0.82);
  --border: rgba(31, 42, 68, 0.12);
  --border-strong: rgba(31, 42, 68, 0.16);

  --text: rgba(10, 16, 34, 0.92);
  --muted: rgba(31, 42, 68, 0.68);

  --accent: rgba(24, 205, 176, 0.95);
  --accent-2: rgba(24, 205, 176, 0.80);

  --link: rgba(24, 205, 176, 0.95);
}

/* ---- Base Layout ---- */
body {
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  position: relative;
  padding: clamp(46px, 6vw, 78px) 0;
}

.section__head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.section__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0));
}

html[data-theme="light"] .site-header {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px var(--pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.brand:hover,
.brand:focus-visible {
  border-color: var(--border);
  text-decoration: none;
}

.brand__mark {
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(46, 232, 200, var(--glow-opacity)));
}

.brand__text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: auto;
  scrollbar-width: none;
}

.nav__links::-webkit-scrollbar {
  display: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  border-color: var(--border);
  color: var(--text);
  text-decoration: none;
}

.nav__link.is-active {
  color: var(--text);
  border-color: rgba(46, 232, 200, 0.22);
  box-shadow: 0 0 0 1px rgba(46, 232, 200, 0.10) inset;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid rgba(46, 232, 200, 0.45);
  outline-offset: 2px;
}

.btn--primary {
  border-color: rgba(46, 232, 200, 0.25);
  background: linear-gradient(180deg, rgba(46, 232, 200, 0.14), rgba(46, 232, 200, 0.06));
  box-shadow: 0 0 18px rgba(46, 232, 200, var(--glow-opacity));
}

.btn--primary:hover {
  border-color: rgba(46, 232, 200, 0.35);
  box-shadow: 0 0 22px rgba(46, 232, 200, calc(var(--glow-opacity) + 0.05));
  text-decoration: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .btn--ghost {
  background: rgba(31, 42, 68, 0.03);
}

.btn--compact {
  padding: 10px 12px;
}

.btn--small {
  padding: 8px 10px;
  border-radius: 12px;
}

.btn__icon {
  opacity: 0.9;
}

.btn__text {
  font-weight: 650;
}

/* ---- Hero ---- */
.hero {
  padding-top: clamp(42px, 6vw, 76px);
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(16px, 3vw, 24px);
  align-items: start;
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__terminal {
    order: 2;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(46, 232, 200, var(--glow-opacity));
}

.hero__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero__role {
  margin: 10px 0 0 0;
  color: var(--muted);
  font-weight: 600;
}

.hero__pitch {
  margin-top: 16px;
  max-width: 72ch;
}

.hero__pitch p {
  margin: 0 0 10px 0;
  color: var(--text);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.meta-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .meta-chip {
  background: rgba(31, 42, 68, 0.03);
}

.meta-chip__label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-chip__value {
  color: var(--link);
  font-weight: 650;
}

/* Hero background cyberpunk accents (subtle) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(to right, rgba(46, 232, 200, var(--grid-opacity)) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 232, 200, var(--grid-opacity)) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: translate3d(0, 0, 0);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent 70%);
  opacity: 0.9;
}

.scanlines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, var(--scan-opacity)) 1px, transparent 1px);
  background-size: 100% 10px;
  opacity: 0.9;
}

/* ---- Terminal Card ---- */
.hero__terminal {
  position: relative;
  z-index: 2;
}

.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.terminal__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .terminal__top {
  background: rgba(31, 42, 68, 0.03);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.terminal__title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.terminal__body {
  padding: 14px 14px 16px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--text);
}

.terminal__line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 10px;
}

.terminal__prompt {
  color: var(--accent);
}

.terminal__cmd {
  color: var(--text);
}

.terminal__out {
  margin-top: 6px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(46, 232, 200, 0.20);
  background: rgba(46, 232, 200, 0.08);
  color: var(--text);
  margin-right: 6px;
  margin-top: 6px;
}

/* ---- Cards / Content ---- */
.cards {
  display: grid;
  gap: 14px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1020px) {
  .cards--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {

  .cards--3,
  .cards--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.card__header {
  padding: 16px 16px 0 16px;
}

.card__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card__meta {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card__body {
  padding: 14px 16px 16px 16px;
}

/* Skills section: padding consistent with other content cards */
.card--skills .card__body {
  padding: 18px 18px 18px 18px;
  /* entspricht dem "normalen" card__body Gefühl */
}

@media (max-width: 520px) {
  .card--skills .card__body {
    padding: 16px;
  }
}

.card--prose {
  padding: 6px 16px 2px 16px;
}

.card--prose p {
  margin: 12px 0;
  color: var(--text);
}

.card--prose p:first-child {
  margin-top: 10px;
}

.card--project {
  position: relative;
  overflow: hidden;
}

.card--project::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 10% 10%, rgba(46, 232, 200, 0.12), transparent 45%);
  opacity: 0.9;
  pointer-events: none;
}

html[data-theme="light"] .card--project::before {
  background: radial-gradient(circle at 10% 10%, rgba(24, 205, 176, 0.10), transparent 45%);
}

.kv {
  display: grid;
  gap: 12px;
}

.kv__k {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kv__v {
  color: var(--text);
}

.callout {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(46, 232, 200, 0.22);
  color: var(--muted);
}

/* ---- Chips ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
}

html[data-theme="light"] .chip {
  background: rgba(31, 42, 68, 0.03);
}

/* ---- Timeline ---- */
.timeline {
  padding: 8px 14px 14px 14px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 14px 6px;
}

.timeline__item+.timeline__item {
  border-top: 1px solid var(--border);
}

.timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  background: rgba(46, 232, 200, 0.26);
  border: 1px solid rgba(46, 232, 200, 0.25);
  box-shadow: 0 0 18px rgba(46, 232, 200, var(--glow-opacity));
}

html[data-theme="light"] .timeline__dot {
  box-shadow: 0 0 0 transparent;
}

.timeline__top {
  display: grid;
  gap: 6px;
}

.timeline__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.timeline__meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sep {
  opacity: 0.55;
}

.timeline__bullets {
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: var(--text);
}

.timeline__bullets li {
  margin: 6px 0;
}

/* ---- Contact ---- */
.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

@media (max-width: 520px) {
  .contact-item {
    grid-template-columns: 1fr;
  }
}

.contact-item__k {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-item__v a {
  color: var(--link);
  font-weight: 650;
}

/* Contact: email + copy button inline */
.contact-item__v--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.copy-status {
  font-size: 13px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.stack {
  display: grid;
  gap: 10px;
}

/* ---- Utilities ---- */
.muted {
  color: var(--muted);
}

.h3,
.h4 {
  margin: 0 0 10px 0;
}

.h4 {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.bullets {
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: var(--text);
}

.bullets li {
  margin: 8px 0;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 26px 0;
  background: var(--bg-elev);
}

.footer__grid {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer__line {
  margin: 0;
}

.footer__small {
  margin: 8px 0 0 0;
  max-width: 80ch;
}

.footer__right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer__link {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.footer__link:hover,
.footer__link:focus-visible {
  border-color: var(--border);
  color: var(--text);
  text-decoration: none;
}

/* ---- Reduce motion & hover preference ---- */
@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

/* ---- Small screens nav spacing ---- */
@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* === Brand logo: hard lock sizing === */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__logo-wrap{
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 2px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  filter: drop-shadow(0 0 10px rgba(46,232,200,var(--glow-opacity)));
}

html[data-theme="light"] .brand__logo-wrap{
  filter: drop-shadow(0 0 6px rgba(24,205,176,0.18));
}

.brand__logo{
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
  display: block !important;
}

/* kill any global image scaling inside brand */
.brand img{
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}