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

:root {
  --bg:         #111318;
  --bg-2:       #16181f;
  --surface:    #1c1f28;
  --surface-2:  #21242f;
  --border:     #2c2f3d;
  --accent:     #5691cf;
  --accent-2:   #6c5ce7;
  --accent-dim: rgba(86,145,207,0.1);
  --text:       #edf0f7;
  --text-muted: #8b909e;
  --text-dim:   #6b7280;
  --font-d: 'Syne', sans-serif;
  --font-b: 'Karla', sans-serif;
  --font-m: 'JetBrains Mono', monospace;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,.35);
}

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

/* ───── SKIP NAVIGATION ───── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--accent); color: var(--bg);
  padding: .6rem 1.2rem; border-radius: 0 0 6px 6px;
  font-weight: 700; font-size: .875rem; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ───── SCROLL PROGRESS ───── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .1s linear;
}

/* ───── NAV ───── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, backdrop-filter .3s;
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
}
nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(17,19,24,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-logo { text-decoration: none; transition: opacity .2s; display: flex; align-items: center; }
.nav-logo:hover { opacity: .8; }
.nav-logo-img { height: 36px; width: auto; display: block; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: .85rem; font-weight: 500; letter-spacing: .02em;
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
  border-radius: 3px; color: var(--text);
}

.nav-cta {
  font-size: .8rem !important; font-weight: 600 !important;
  color: var(--accent) !important;
  border: 1px solid rgba(86,145,207,.4); padding: .4rem 1rem; border-radius: 4px;
  transition: background .2s, color .2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent) !important; color: var(--bg) !important; }
.nav-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem; z-index: 99;
  flex-direction: column; gap: 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-muted); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color .2s; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; color: var(--text); }

/* ───── HERO ───── */
#hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

/* Hero background image */
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(17,19,24,0.97) 0%, rgba(17,19,24,0.90) 40%, rgba(17,19,24,0.50) 65%, rgba(17,19,24,0.15) 100%),
    linear-gradient(to top, rgba(17,19,24,0.80) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(17,19,24,1.0) 0%, rgba(17,19,24,0.4) 15%, transparent 35%);
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: .08;
  z-index: 2;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -100px; animation: drift1 22s ease-in-out infinite alternate; }
.orb-2 { width: 450px; height: 450px; background: var(--accent-2); bottom: -80px; left: -120px; animation: drift2 28s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(-100px, 80px); } }
@keyframes drift2 { to { transform: translate(80px, -100px); } }
@keyframes drift3 { to { transform: translate(-60px, -80px) scale(1.3); } }

.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(40,42,52,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,42,52,.15) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 75% at 30% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 30% 50%, black 20%, transparent 80%);
}

.hero-content {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto;
  padding: 6rem 2.5rem 6rem; width: 100%;
}

.hero-text { max-width: 580px; }

.hero-img-wrap {
  position: relative;
}
.hero-img {
  width: 100%; border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  display: block;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s ease;
}
.hero-img-wrap:hover .hero-img {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}
.hero-img-badge {
  position: absolute; bottom: -14px; right: -14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: .55rem 1rem;
  font-family: var(--font-m); font-size: .72rem;
  color: var(--accent); letter-spacing: .04em;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-m); font-size: .7rem; letter-spacing: .06em;
  color: var(--accent); border: 1px solid rgba(86,145,207,.25);
  padding: .3rem .8rem; border-radius: 2px; margin-bottom: 1.75rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero-headline {
  font-family: var(--font-d);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800; line-height: .95; letter-spacing: -0.04em;
  margin-bottom: .6rem;
}
.hero-headline .hl { color: var(--accent); }

.hero-sub {
  font-family: var(--font-d);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400; color: var(--text-muted); letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}

.hero-desc {
  max-width: 480px; color: var(--text-muted);
  font-size: 1rem; line-height: 1.75; margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-p {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: var(--bg);
  padding: .75rem 1.75rem; border-radius: 4px;
  font-weight: 700; font-size: .875rem; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-p:hover { background: #6fa8e0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(86,145,207,.25); }
.btn-p:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-s {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--text);
  padding: .75rem 1.75rem; border-radius: 4px;
  border: 1px solid var(--border);
  font-weight: 500; font-size: .875rem; text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.btn-s:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.btn-s:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Scroll down arrow */
.scroll-down {
  position: absolute; bottom: 7rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-muted); text-decoration: none;
  animation: bounce 2.5s ease-in-out infinite;
  transition: color .2s;
}
.scroll-down:hover { color: var(--accent); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

.mountain-divider { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; line-height: 0; }
.mountain-divider svg { width: 100%; display: block; }

/* ───── SHARED ───── */
section { padding: 6.5rem 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

.s-tag {
  font-family: var(--font-m); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: .75rem;
}
.s-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: .9rem;
}
.s-desc { color: var(--text-muted); max-width: 540px; line-height: 1.75; font-size: 1.025rem; }
.s-head { margin-bottom: 4rem; }

.fi {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fi.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ───── SERVICES ───── */
#leistungen { background: var(--bg-2); }

.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.srv-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color .3s, transform .3s, background .3s, box-shadow .3s;
}
.srv-card:hover {
  border-color: var(--accent); transform: translateY(-5px);
  background: var(--surface-2);
  box-shadow: 0 12px 40px rgba(86,145,207,.08);
}

.srv-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 1.25rem;
  transition: transform .3s;
}
.srv-card:hover .srv-icon { transform: scale(1.1) rotate(-3deg); }
.srv-icon svg { width: 22px; height: 22px; }

.srv-card h3 {
  font-family: var(--font-d); font-size: 1.1rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: .3rem;
}
.srv-stag {
  font-family: var(--font-m); font-size: .68rem;
  color: var(--accent); letter-spacing: .04em; margin-bottom: .75rem;
}
.srv-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.65; }

.srv-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent); font-size: .83rem; font-weight: 600;
  text-decoration: none; margin-top: 1.25rem;
  transition: gap .2s;
}
.srv-link:hover { gap: .7rem; }
.srv-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

/* ───── STATS ───── */
#stats { background: var(--bg); padding: 4rem 2.5rem; }

.stats-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 3rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  position: relative; overflow: hidden;
}
.stats-wrap::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.stat-item { text-align: center; padding: .5rem; }

.stat-n {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800; color: var(--accent);
  letter-spacing: -0.05em; line-height: 1; margin-bottom: .5rem;
}
.stat-l { color: var(--text-muted); font-size: .9rem; font-weight: 500; }

/* ───── PORTFOLIO ───── */
#portfolio { background: var(--bg-2); }

.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.25rem;
}

.port-more {
  margin-top: 2rem; text-align: center;
  font-size: .875rem; color: var(--text-muted);
  font-style: italic;
}

.port-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.port-card:hover {
  border-color: rgba(86,145,207,.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

.port-head {
  height: 180px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tw { background: linear-gradient(135deg, #091822 0%, #112840 55%, #081e14 100%); }
.ta { background: linear-gradient(135deg, #130d22 0%, #221040 55%, #0c1535 100%); }
.taw { background: linear-gradient(135deg, #08201e 0%, #122e2e 55%, #201e08 100%); }
.tad { background: linear-gradient(135deg, #102008 0%, #1e3010 55%, #081020 100%); }

/* Screenshot image */
.port-screenshot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: .8;
  transition: opacity .35s, transform .5s ease;
}
.port-card:hover .port-screenshot { opacity: 1; transform: scale(1.04) translateY(-2px); }

.port-head-glow {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 25% 50%, rgba(86,145,207,.06) 0%, transparent 55%),
    radial-gradient(circle at 75% 50%, rgba(67,97,238,.06) 0%, transparent 55%);
  pointer-events: none;
}

.port-icon {
  position: relative; z-index: 1;
  width: 50px; height: 50px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
}
.port-icon svg { width: 24px; height: 24px; }

.port-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }

.port-badge {
  display: inline-block;
  font-family: var(--font-m); font-size: .62rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 3px; margin-bottom: .75rem;
}
.bw { background: rgba(86,145,207,.08); color: var(--accent); border: 1px solid rgba(86,145,207,.18); }
.ba { background: rgba(67,97,238,.08); color: #7b9bff; border: 1px solid rgba(67,97,238,.2); }
.ban { background: rgba(61,184,113,.08); color: #3db871; border: 1px solid rgba(61,184,113,.2); }

.port-body h3 {
  font-family: var(--font-d); font-size: 1rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: .55rem;
}
.port-body p { color: var(--text-muted); font-size: .875rem; line-height: 1.65; flex: 1; }

.port-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border);
}

.port-link {
  display: inline-flex; align-items: center; gap: .38rem;
  font-size: .78rem; font-weight: 600; color: var(--accent);
  text-decoration: none; transition: gap .2s;
}
.port-link:hover { gap: .65rem; }
.port-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.port-link-na { color: var(--text-dim); font-size: .78rem; }

/* ───── ABOUT ───── */
#ueber-mich { background: var(--bg); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

.about-photo-wrap {
  margin-bottom: 1.75rem;
}
.about-photo {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover; object-position: center top;
  border: 3px solid var(--accent);
  display: block;
}

.about-text p {
  color: var(--text-muted); line-height: 1.8; margin-bottom: 1.2rem; font-size: 1.025rem;
}
.hl-t { color: var(--text); font-weight: 600; }

.hobbies { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.hob {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border);
  padding: .32rem .85rem; border-radius: 20px;
  font-size: .82rem; color: var(--text-muted);
  transition: border-color .2s, color .2s, transform .2s;
}
.hob:hover { border-color: rgba(86,145,207,.3); color: var(--text); transform: translateY(-2px); }

.tl-head {
  font-family: var(--font-m); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); margin-bottom: 2rem;
}

.tl { list-style: none; position: relative; }
.tl::before {
  content: ''; position: absolute;
  left: 0; top: 6px; bottom: 6px; width: 1px;
  background: var(--border);
}

.tl-item { padding-left: 1.75rem; padding-bottom: 2rem; position: relative; }
.tl-item::before {
  content: ''; position: absolute; left: -4px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  transition: box-shadow .3s;
}
.tl-item:hover::before { box-shadow: 0 0 0 4px rgba(86,145,207,.2); }

.tl-year {
  font-family: var(--font-m); font-size: .68rem;
  color: var(--accent); letter-spacing: .05em; margin-bottom: .3rem;
}
.tl-item h4 {
  font-family: var(--font-d); font-size: .95rem; font-weight: 700; margin-bottom: .25rem;
}
.tl-item p { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }

/* ───── ABOUT BANNER ───── */
.about-banner {
  position: relative; margin-top: 4rem;
  border-radius: 14px; overflow: hidden;
  height: 240px; border: 1px solid var(--border);
}
.about-banner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  display: block;
  filter: brightness(.45) saturate(.8);
  transition: filter .5s, transform .6s ease;
}
.about-banner:hover img {
  filter: brightness(.55) saturate(.9);
  transform: scale(1.03);
}
.about-banner-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 2rem 2.5rem;
  background: linear-gradient(to top, rgba(18,23,42,.7) 0%, transparent 60%);
}
.about-banner-tag {
  font-family: var(--font-m); font-size: .7rem;
  color: var(--accent); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .4rem;
}
.about-banner-overlay p {
  font-family: var(--font-d); font-size: 1.4rem;
  font-weight: 700; letter-spacing: -.02em;
  color: var(--text); line-height: 1.2;
  margin: 0;
}

/* ───── SAVINGS CALLOUT ───── */
.savings-callout {
  padding: 0 2rem 5rem;
}
.savings-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 100%);
  border: 1px solid var(--accent);
  border-radius: 16px; padding: 1.75rem 2rem;
}
.savings-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--accent-dim); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.savings-icon svg { width: 22px; height: 22px; }
.savings-text {
  flex: 1; font-size: .9rem; color: var(--text-muted); line-height: 1.65;
}
.savings-text strong { color: var(--text); display: block; margin-bottom: .3rem; font-size: .95rem; }
.savings-cta {
  flex-shrink: 0; white-space: nowrap;
  display: inline-flex; align-items: center;
  padding: 0 1.25rem; height: 42px; border-radius: 10px;
  background: var(--accent); color: #000;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.savings-cta:hover { opacity: .88; transform: translateY(-1px); }
@media (max-width: 768px) {
  .savings-inner { flex-direction: column; text-align: center; }
  .savings-cta { width: 100%; justify-content: center; }
}

/* ───── SKILLS ───── */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.skill-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color .2s;
}
.skill-cat:hover { border-color: var(--accent); }
.skill-cat-head {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.1rem;
}
.skill-cat-head svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.skill-cat-head h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.skill-tags {
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.skill-tags span {
  font-size: .75rem; font-family: 'JetBrains Mono', monospace;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: .25rem .6rem;
  color: var(--text-muted);
}
.skill-desc {
  font-size: .88rem; color: var(--text-muted); line-height: 1.65;
  margin: 0 0 1rem;
}
.skill-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .45rem;
}
.skill-list li {
  font-size: .85rem; color: var(--text-muted);
  padding-left: 1.1rem; position: relative; line-height: 1.5;
}
.skill-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-size: .8rem;
}

/* ───── CONTACT ───── */
.contact-promise {
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  margin-top: 1.75rem; justify-content: center;
}
.promise-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--text-muted);
}
.promise-item svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
#kontakt { background: var(--bg-2); }

.con-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}

.con-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.con-card:hover {
  border-color: rgba(86,145,207,.3); transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.con-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 1.25rem;
  transition: transform .3s;
}
.con-card:hover .con-icon { transform: scale(1.1); }
.con-icon svg { width: 20px; height: 20px; }

.con-card h3 {
  font-family: var(--font-d); font-size: 1rem; font-weight: 700; margin-bottom: .3rem;
}
.con-sub { color: var(--text-muted); font-size: .8rem; margin-bottom: .75rem; }
.con-val {
  color: var(--accent); font-family: var(--font-m);
  font-size: .85rem; text-decoration: none; word-break: break-all;
}
.con-val:hover { text-decoration: underline; }

/* ───── FOOTER ───── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 3.5rem 2.5rem 2rem;
}

.foot-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}

.foot-brand { font-family: var(--font-d); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.foot-brand span { color: var(--accent); }
.foot-desc { color: var(--text-muted); font-size: .875rem; line-height: 1.65; max-width: 230px; }

.foot-col h4 {
  font-family: var(--font-m); font-size: .63rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); margin-bottom: 1rem;
}
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: .6rem; }
.foot-col ul a { color: var(--text-muted); text-decoration: none; font-size: .875rem; transition: color .2s; }
.foot-col ul a:hover { color: var(--text); }

.socials { display: flex; gap: .65rem; }
.soc {
  width: 36px; height: 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.soc:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); }
.soc svg { width: 16px; height: 16px; }

.con-cta {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2.5rem;
}
.btn-li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 0 1.25rem; height: 44px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none; font-size: .875rem;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.btn-li svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-li:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); }

.foot-region {
  max-width: 1200px; margin: 0 auto 1.25rem;
  padding-top: 1.25rem;
}
.foot-region-text {
  font-size: .75rem; color: var(--text-muted); line-height: 1.6; text-align: center;
}
.foot-region-text strong { color: var(--text-subtle, var(--text-muted)); }

.foot-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: .78rem;
}
.foot-bottom a { color: var(--text-muted); text-decoration: none; margin-left: 1.5rem; transition: color .2s; }
.foot-bottom a:hover { color: var(--text); }

/* ───── BACK TO TOP ───── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 42px; height: 42px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, border-color .2s, color .2s;
  transform: translateY(10px);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ───── LEGAL PAGES ───── */
.legal-page {
  min-height: 100vh;
  padding-top: 64px;
}

.legal-header {
  background: var(--bg-2);
  padding: 4rem 2.5rem 3rem;
  border-bottom: 1px solid var(--border);
}
.legal-header .back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent); text-decoration: none;
  font-family: var(--font-m); font-size: .75rem; letter-spacing: .06em;
  margin-bottom: 1.5rem;
  transition: gap .2s;
}
.legal-header .back-link:hover { gap: .8rem; }
.legal-header h1 {
  font-family: var(--font-d); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -.03em;
}
.legal-header p { color: var(--text-muted); margin-top: .5rem; font-size: .9rem; }

.legal-content {
  max-width: 780px; margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
}
.legal-content h2 {
  font-family: var(--font-d); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.02em; margin: 2.5rem 0 .75rem;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 {
  font-family: var(--font-d); font-size: 1rem; font-weight: 700;
  margin: 1.5rem 0 .5rem; color: var(--text);
}
.legal-content p {
  color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: .95rem;
}
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content ul {
  color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1rem; font-size: .95rem; line-height: 1.8;
}
.legal-content ul li { margin-bottom: .3rem; }
.legal-address {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  font-family: var(--font-m); font-size: .85rem;
  color: var(--text-muted); line-height: 1.9;
  margin: 1rem 0 1.5rem;
}
.legal-address strong { color: var(--text); }

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .con-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-wrap { grid-template-columns: repeat(2, 1fr); padding: 1.75rem; gap: 1rem; }
  .stat-n { font-size: clamp(2rem, 5vw, 3rem); }
}
@media (max-width: 600px) {
  section { padding: 4.5rem 1.25rem; }
  .hero-content { padding: 6.5rem 1.25rem 4rem; }
  .port-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .foot-bottom { flex-direction: column; gap: .6rem; text-align: center; }
  .foot-bottom a { margin-left: .75rem; }
  nav { padding: 0 1.25rem; }
  .legal-content { padding: 2.5rem 1.25rem 4rem; }
  .legal-header { padding: 3rem 1.25rem 2rem; }
  .scroll-down { bottom: 5rem; }
  #stats { padding: 3rem 1.25rem; }
  .stats-wrap { grid-template-columns: 1fr; gap: 0; padding: 1.25rem 1.5rem; }
  .stat-item { display: flex; align-items: center; gap: 1.25rem; text-align: left; padding: .875rem 0; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .stat-n { font-size: clamp(1.75rem, 9vw, 2.5rem); min-width: 72px; text-align: center; margin-bottom: 0; flex-shrink: 0; }
  .stat-l { font-size: .875rem; }
}

/* ───── WCAG: prefers-reduced-motion ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fi { opacity: 1; transform: none; }
  .orb-1, .orb-2 { animation: none; }
  .scroll-down svg { animation: none; }
}
