/* Fatmir Shukaj architecture – statische Seite, kein Framework */
:root {
  --bg: #f6f6f6;
  --bg-alt: #eeeeee;
  --text: #212529;
  --muted: #6c757d;
  --accent: #1e73be;
  --card-radius: 14px;
  --header-h: 56px;
  --gutter: clamp(16px, 2vw, 28px);
  --font: "League Spartan", "Spartan", "Century Gothic", "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #121212;
  --bg-alt: #1b1b1b;
  --text: #e9e9e9;
  --muted: #9aa0a6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --bg-alt: #1b1b1b;
    --text: #e9e9e9;
    --muted: #9aa0a6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
  backdrop-filter: blur(8px);
}
.logo { grid-column: 2; display: block; height: 32px; }
.logo img { height: 100%; width: auto; }
.logo .logo-dark { display: none; }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
}
.header-tools { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 14px; }
.icon-btn {
  background: none; border: 0; color: inherit; cursor: pointer;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-switch {
  width: 34px; height: 16px; border-radius: 8px; border: 0; padding: 0; cursor: pointer;
  background: color-mix(in srgb, var(--text) 25%, transparent); position: relative;
}
.theme-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); transition: transform .2s;
}
:root[data-theme="dark"] .theme-switch::after { transform: translateX(18px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-switch::after { transform: translateX(18px); }
}

/* ---------- Overlay (Menü + Suche) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px; overflow: auto;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.overlay.open { opacity: 1; visibility: visible; }
.overlay .close { position: absolute; top: 10px; right: var(--gutter); }
.overlay nav a, .overlay .result a {
  display: block; text-decoration: none; font-size: clamp(28px, 5vw, 56px); line-height: 1.2; padding: 6px 0;
}
.overlay nav a:hover, .overlay .result a:hover { color: var(--accent); }
.overlay nav .sub { font-size: clamp(18px, 2.5vw, 26px); color: var(--muted); padding-left: 2px; }
.overlay input[type="search"] {
  width: 100%; max-width: 900px; font: inherit; font-size: clamp(24px, 4vw, 44px);
  background: none; border: 0; border-bottom: 2px solid var(--text); color: inherit; padding: 8px 0; outline: none;
}
.overlay .result a { font-size: clamp(20px, 3vw, 32px); }
.overlay .result small { color: var(--muted); font-size: .6em; margin-left: .6em; }

/* ---------- Startseite: Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--gutter);
  padding: var(--gutter); align-items: start;
}
.hero h1 {
  font-weight: 400; font-size: clamp(26px, 3.1vw, 40px); line-height: 1.15; margin: 0;
  position: sticky; top: calc(var(--header-h) + var(--gutter));
}
.slider { position: relative; border-radius: var(--card-radius); overflow: hidden; background: var(--bg-alt); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1170 / 756; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #000; color: #fff; border-radius: 12px; padding: 4px 14px; font-size: 28px; line-height: 1.2; min-width: 48px; text-align: center;
}
.slider-nav { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 2; }
.slider-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 18px; line-height: 1;
}
.slider-nav button:hover { background: rgba(0,0,0,.8); }

/* ---------- Projekt-Raster ---------- */
.grid {
  list-style: none; margin: 0; padding: var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter);
}
.card { position: relative; display: block; aspect-ratio: 1; border-radius: var(--card-radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--bg-alt); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 55%); }
.card:hover img, .card:focus-visible img { transform: scale(1.06); }
.card .label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.15; }
.card .label small { display: block; font-size: .6em; opacity: .85; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.card .label span { display: inline; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.card:hover .label span { background-size: 100% 2px; }

/* ---------- Projektseite ---------- */
.work-stage { position: relative; }
.work-track {
  display: flex; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--gutter); height: calc(100vh - var(--header-h)); min-height: 440px; scrollbar-width: none;
}
.work-track::-webkit-scrollbar { display: none; }
.work-cell { flex: 0 0 auto; scroll-snap-align: start; border-radius: var(--card-radius); overflow: hidden; height: 100%; }
.work-info {
  width: min(860px, 88vw); background: var(--accent); color: #fff; padding: clamp(20px, 3vw, 44px);
  overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
}
.work-head { display: flex; gap: 18px; align-items: flex-start; }
.work-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.work-info h1 { font-size: 24px; font-weight: 500; margin: 0; line-height: 1.2; }
.work-info .subtitle { margin: 4px 0 0; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.work-info .cat { margin: 0 0 2px; font-size: 13px; text-transform: uppercase; opacity: .85; letter-spacing: .06em; }
.work-meta { display: grid; grid-template-columns: max-content 1fr; gap: 2px 28px; margin: 0; font-size: 14px; text-transform: uppercase; }
.work-meta dt { font-weight: 700; }
.work-meta dd { margin: 0; }
.work-text { font-size: 15px; line-height: 1.7; }
.work-text p { margin: 0 0 14px; }
.work-text h2 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.work-img { background: #000; margin: 0; min-width: min(70vw, 760px); }
.work-img img { height: 100%; width: auto; max-width: none; cursor: zoom-in; }
.work-nav { position: absolute; right: calc(var(--gutter) + 8px); bottom: calc(var(--gutter) + 8px); display: flex; gap: 8px; z-index: 2; }
.work-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; }
.work-nav button:hover { background: rgba(0,0,0,.8); }
.work-pager { display: flex; justify-content: space-between; gap: 16px; padding: 0 var(--gutter) var(--gutter); font-size: 18px; }
.work-pager a { text-decoration: none; } .work-pager a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 14px; line-height: 1; }
.lightbox .lb-close { top: 8px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: 14px; }

/* ---------- Textseiten ---------- */
.page { max-width: 820px; margin: 0 auto; padding: calc(var(--gutter) * 2) var(--gutter) 80px; }
.page h1 { font-weight: 400; font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 0 0 28px; }
.page h2 { font-size: 22px; font-weight: 500; margin: 34px 0 8px; }
.page p, .page li { font-size: 17px; }
.page .lead { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; }
.page .todo { background: color-mix(in srgb, #ffb300 22%, transparent); padding: 0 4px; border-radius: 3px; }
.contact-list { list-style: none; padding: 0; font-size: 22px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid currentColor; }
.btn { display: inline-block; margin-top: 12px; padding: 12px 26px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; font-size: 16px; }
.btn:hover { background: var(--accent); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); padding: 36px var(--gutter) 28px; margin-top: 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.site-footer h2 { font-size: 16px; font-weight: 500; margin: 0 0 10px; }
.site-footer p, .site-footer ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legal { margin-top: 28px; font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { position: static; font-size: clamp(24px, 6vw, 32px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-track { height: auto; min-height: 0; flex-direction: column; overflow: visible; scroll-snap-type: none; }
  .work-cell { height: auto; }
  .work-info { width: 100%; }
  .work-img img { width: 100%; height: auto; }
  .work-nav { display: none; }
}
@media (max-width: 480px) {
  .site-header { grid-template-columns: 1fr auto 1fr; padding: 0 8px; }
  .header-tools { gap: 2px; }
  .grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
