
/* ==========================================================================
   DESIGN TOKENS
   Farben sind Platzhalter (siehe Chat) — hier zentral änderbar.
   ========================================================================== */
:root {
  /* Farben — Tiefschwarz + Logo-Grün */
  --color-bg: #000000;
  --color-bg-alt: #0a0a0a;
  --color-bg-alt-2: #121212;
  --color-text: #f2f0ec;
  --color-text-muted: #8a8783;
  --color-accent: #96c991;
  --color-accent-soft: rgba(150, 201, 145, 0.14);
  --color-accent-dark: #83A380;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-select: #b0b7c9;

  /* Typografie */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 84px;
  --radius: 4px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

button { cursor: pointer; }

::selection { background: var(--color-select); color: var(--color-bg); }

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Sichtbarer Fokus-Zustand (Barrierefreiheit) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

/* Logo — immer ganz links, unabhängig vom Namen */
.nav-logo {
  display: flex;
  align-items: center;
  height: 36px;
}
.nav-logo img { height: 72px; width: auto; }
.nav-logo .logo-placeholder {
  width: 36px; height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-accent);
}

/* Name — Desktop: direkt neben Logo | Mobile/Tablet: zentriert (per Grid) */
.nav-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
  justify-self: start;
}

/* Menüpunkte Desktop */
.nav-links {
  display: flex;
  gap: 40px;
  justify-self: end;
}
.nav-links a {
  font-size: 15px;
  color: var(--color-accent-dark);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-accent); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--color-accent);
}

/* Hamburger — nur Mobile/Tablet sichtbar */
.nav-toggle {
  display: none;
  justify-self: end;
  background: none;
  border: none;
  width: 32px; height: 32px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Dropdown */
.nav-dropdown {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 90;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s var(--ease);
}
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown a {
  display: block;
  padding: 14px 32px;
  font-size: 17px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s var(--ease);
}
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.04); }
.nav-dropdown a:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-name { justify-self: center; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-primary {
  background: var(--color-accent);
  color: #000000;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary:hover,
.btn-primary:active { background: var(--color-accent-dark); color: var(--color-text); }
.btn-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-text);
}
.btn-outline:hover,
.btn-outline:active { color: var(--color-accent); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.92)),
    linear-gradient(135deg, #141414, #000000 60%);
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(120px);
  will-change: transform;
}
.hero::before {
  background:
    radial-gradient(circle at 12% 28%, var(--color-accent) 0%, rgba(150, 201, 145, 0) 20%),
    radial-gradient(circle at 85% 60%, var(--color-accent-dark) 0%, rgba(131, 163, 128, 0) 20%);
  opacity: 0.42;
  animation: hero-orbit-a 18s ease-in-out infinite;
}
.hero::after {
  background:
    radial-gradient(circle at 80% 15%, var(--color-accent-dark) 0%, rgba(131, 163, 128, 0) 20%),
    radial-gradient(circle at 18% 85%, var(--color-accent) 0%, rgba(150, 201, 145, 0) 20%);
  opacity: 0.36;
  animation: hero-orbit-b 22s ease-in-out infinite;
}
@keyframes hero-orbit-a {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { transform: translate(16%, 18%) rotate(18deg) scale(1.3); }
  50%  { transform: translate(-12%, 26%) rotate(-14deg) scale(0.75); }
  75%  { transform: translate(-20%, -14%) rotate(22deg) scale(1.25); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
@keyframes hero-orbit-b {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { transform: translate(-16%, -13%) rotate(-20deg) scale(1.25); }
  50%  { transform: translate(13%, -24%) rotate(15deg) scale(0.78); }
  75%  { transform: translate(20%, 16%) rotate(-18deg) scale(1.2); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
.hero-content { max-width: 760px; position: relative; z-index: 1; }
.hero-eyebrow {
  color: var(--color-accent);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 24px;
}
.hero-divider {
  width: 64px; height: 2px;
  background: var(--color-accent);
  margin: 24px 0;
}
.hero p {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 40px; left: 32px;
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex; align-items: center; gap: 10px;
  z-index: 1;
}
.scroll-hint::before {
  content: "";
  width: 1px; height: 32px;
  background: var(--color-text-muted);
}

@media (max-width: 640px) {
  .scroll-hint { display: none; }
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section { padding: 120px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 620px; margin-bottom: 56px; }
.section-eyebrow {
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.section-header p { color: var(--color-text-muted); font-size: 17px; }

/* ==========================================================================
   PROJEKTE — Kategorie + Grid (Referenz: pxmedia)
   ========================================================================== */
.category-block { margin-bottom: 112px; }
.category-title {
  background: var(--color-bg-alt-2);
  padding: 22px 32px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Projekt-Bilder brechen aus dem .container aus und laufen bis an den echten Bildschirmrand */
.container .project-grid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.project-tile {
  position: relative;
  flex: 0 0 25%;
  max-width: 25%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #141414, #000000);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (max-width: 960px) { .project-tile { flex-basis: 50%; max-width: 50%; } }
@media (max-width: 560px) { .project-tile { flex-basis: 100%; max-width: 100%; } }
.project-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.5s var(--ease);
}
.project-tile:hover img { transform: scale(1.06); }

.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.project-tile:hover::after,
.project-tile:focus-within::after { opacity: 1; }

.project-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--color-text);
  transition: opacity 0.3s var(--ease);
}
.project-tile:hover .project-tile-overlay,
.project-tile:focus-within .project-tile-overlay { opacity: 0; pointer-events: none; }

.project-tile-info {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
  text-align: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.project-tile:hover .project-tile-info,
.project-tile:focus-within .project-tile-info { opacity: 1; transform: translateY(0); }

.project-tile-name { font-family: var(--font-display); font-size: 18px; }
.project-tile-type { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent); margin-top: 4px; }

/* ==========================================================================
   DESKTOP MOCKUP mit scrollbarem Inhalt (MacBook-PNG mit transparentem Screen-Ausschnitt)
   ========================================================================== */
.mockup {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.mockup-device {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.mockup-screen {
  position: absolute;
  z-index: 1;
  left: 10.83%;
  top: 10.76%;
  width: 78.17%;
  height: 64.98%;
  overflow-y: scroll;
  background: #0a0a0a;
  scrollbar-width: thin;
}
.mockup-screen img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   SKILLS / LEISTUNGEN CARDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--color-text-muted); font-size: 15px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-social { display: none; gap: 20px; }
.footer-social a { color: var(--color-accent-dark); font-size: 14px; }
.footer-social a:hover { color: var(--color-accent); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--color-accent-dark); font-size: 14px; }
.footer-legal a:hover { color: var(--color-accent); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-legal { justify-content: center; }
}

/* ==========================================================================
   TIMELINE — Werdegang (Über mich)
   ========================================================================== */
.timeline {
  position: relative;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
}
.timeline-period {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 4px;
}
.timeline-place {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.timeline-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .timeline::before { left: 5px; }
  .timeline-item { padding-left: 28px; margin-bottom: 36px; }
  .timeline-marker { width: 12px; height: 12px; top: 4px; }
}

.skills-block { margin-top: 88px; }
.skills-heading {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 20px;
}
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
}
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.skill-name {
  font-size: 15px;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .skills-row { flex-direction: column; gap: 16px; }
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
.page-header {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 60px;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-header p { color: var(--color-text-muted); margin-top: 16px; max-width: 560px; }
.page-header .btn { margin-top: 28px; }
