:root {
    --bg-1: #1A1F22;
    --bg-2: #20282B;
    --bg-3: #262F33;
    --text: #DEDBD6;
    --text-muted: #9BA6A8;
    --petrol: #1F5C5C;
    --petrol-light: #3B8585;
    --copper: #C1633B;
    --copper-light: #D97D52;
    --paper: #EFE6D8;
    --ink: #23282B;
    --line: rgba(222, 219, 214, 0.14);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-1);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }

  h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.15;
  }

  .eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper-light);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }
  .eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--copper-light);
    display: inline-block;
  }

  a { color: inherit; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.95rem 1.8rem;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .btn-primary {
    background: var(--petrol);
    color: var(--paper);
    border-color: var(--petrol);
  }
  .btn-primary:hover {
    background: var(--copper);
    border-color: var(--copper);
    transform: translateY(-2px);
  }
  .btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
  }
  .btn-ghost:hover {
    border-color: var(--copper-light);
    color: var(--copper-light);
  }

  /* Trail */

  #trail {
    position: fixed;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 5;
    pointer-events: none;
    display: none;
  }
  #trail::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 2px;
    background-image: linear-gradient(var(--line) 60%, transparent 40%);
    background-size: 2px 14px;
  }
  #trail-marker {
    position: absolute;
    left: -7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--copper);
    box-shadow: 0 0 0 4px rgba(193, 99, 59, 0.18), 0 0 14px rgba(193, 99, 59, 0.5);
    transition: top 0.05s linear;
  }
  @media (min-width: 900px) {
    #trail { display: block; }
  }

  section {
    position: relative;
    padding: 8rem .5rem;
    scroll-margin-top: 84px;
  }

  .container {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 3rem;
  }
  @media (max-width: 899px) {
    .container { padding-left: 0; }
  }

  /* Navigation */
  #site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    background: rgba(26, 31, 34, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-logo {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text);
  }
  .nav-logo span { color: var(--copper-light); }
  #nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
  }
  #nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
  }
  #nav-links a:hover { color: var(--copper-light); }

  #nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  #nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  #nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  #nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 720px) {
    #nav-toggle { display: flex; }
    #nav-links {
      position: fixed;
      top: 64px;
      right: 0;
      left: 0;
      background: var(--bg-1);
      border-bottom: 1px solid var(--line);
      flex-direction: column;
      gap: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    #nav-links.is-open { max-height: 320px; }
    #nav-links li { border-top: 1px solid var(--line); }
    #nav-links a { display: block; padding: 1.1rem 1.5rem; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero */
  #hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    background: var(--bg-1);
    background-image:
      radial-gradient(circle at 85% 15%, rgba(31,92,92,0.35), transparent 55%),
      radial-gradient(circle at 10% 90%, rgba(193,99,59,0.12), transparent 45%);
  }
  #hero .container { width: 100%; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  }
  .hero-name {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    margin: 1rem 0 1.4rem;
  }
  .hero-name em {
    color: var(--petrol-light);
    font-style: italic;
  }
  .hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2.4rem;
  }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

  .photo-frame {
    position: relative;
    aspect-ratio: 4/5;
    border: 1px dashed var(--line);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
    color: var(--text-muted);
    text-align: center;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
  }
  .photo-frame .placeholder-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
  }
  .photo-frame .placeholder-label i { font-size: 1.6rem; display: block; margin-bottom: 0.8rem; color: var(--copper-light); }

  /* About */
  #about { background: var(--bg-2); }
  .about-text {
    font-size: 1.15rem;
    max-width: 640px;
    color: var(--text);
  }
  .about-text p { margin-bottom: 1.4rem; }
  .about-text p:first-of-type::first-letter {
    font-family: 'Fraunces', serif;
    font-size: 3.2rem;
    float: left;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.3rem;
    color: var(--copper-light);
  }

  /* Patches */
  #patches { background: var(--bg-3); }
  .patches-intro { max-width: 600px; margin-bottom: 4rem; }
  .patch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
  }
  .patch {
    background: var(--paper);
    color: var(--ink);
    border-radius: 6px;
    padding: 2.2rem 1.8rem;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
  .patch::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1.5px dashed rgba(35,40,43,0.28);
    border-radius: 3px;
    pointer-events: none;
  }
  .patch:nth-child(even) { transform: rotate(-1.4deg); }
  .patch:nth-child(odd) { transform: rotate(1.1deg); }
  .patch:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  }
  .patch-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--petrol);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  .patch h3 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
    color: var(--ink);
  }
  .patch .patch-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--copper);
    display: block;
    margin-bottom: 0.9rem;
  }
  .patch p {
    font-size: 0.95rem;
    color: #46504f;
  }

  /* Spruch */
  #antrieb {
    background: var(--bg-1);
    text-align: center;
  }
  #antrieb blockquote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    max-width: 800px;
    margin: 0 auto;
    color: var(--text);
  }
  #antrieb blockquote span { color: var(--copper-light); font-style: normal; }
  #antrieb .container { padding-left: 0; }

  /* Kontakt */
  #kontakt { background: var(--bg-2); }
  .kontakt-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid var(--line);
    padding-top: 3rem;
  }
  .kontakt-box h2 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 560px; }
  .socials { display: flex; gap: 1rem; }
  .socials a {
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
  }
  .socials a:hover { border-color: var(--copper-light); color: var(--copper-light); transform: translateY(-3px); }

  footer {
    background: var(--bg-1);
    padding: 2rem 1.5rem;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
  }

  ::selection { background: var(--copper); color: var(--paper); }
  :focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transition: none; opacity: 1; transform: none; }
    #trail-marker { transition: none; }
  }

/*  Galerie  */
#galerie { background: var(--bg-1); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
}

.photo-grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bg-3);
}
.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.photo-grid-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.05);
}