/* ============================================================
   fab³ — Modern/Playful Redesign
   Aufbau:  1) Fonts  2) Variablen  3) Basis  4) Layout
            5) Header/Nav  6) Hero  7) Marquee  8) Leistungen
            9) Arbeiten  10) Prozess  11) Über mich  12) Kontakt
            13) Footer  14) Buttons  15) Rechtsseiten
            16) Animation  17) Responsive
   Texte stehen im HTML/PHP bzw. in storage/content.json.
   ============================================================ */

/* ---------- 1) FONTS (selbst gehostet, kein Google-CDN) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- 2) VARIABLEN (Brand-System) ---------- */
:root {
  --paper:   #FFFFFF;
  --paper-2: #F5F3EE;
  --ink:     #16171C;
  --ink-70:  rgba(22, 23, 28, 0.72);
  --ink-60:  rgba(22, 23, 28, 0.6);
  --coral:   #FF5A36;
  --blue:    #2FA8E8;
  --yellow:  #FFC93C;
  --line: rgba(22, 23, 28, 0.12);
  --line-on-ink: rgba(255, 255, 255, 0.16);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --wrap: 1220px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 3) BASIS ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.1rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }

sup { font-style: normal; }
.cube {
  display: inline-grid; place-items: center;
  min-width: 1em; aspect-ratio: 1 / 1; padding: 0; margin-left: 0.08em;
  border-radius: 0.22em;
  background: var(--coral); color: var(--ink);
  font-size: 0.42em; font-weight: 800; line-height: 1;
  transform: rotate(-6deg) translateY(-0.15em);
  vertical-align: top;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; font-family: var(--mono); font-size: 0.85rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 4) LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(3.6rem, 8vw, 6.5rem); position: relative; }
.section--alt { background: var(--paper-2); }

.section-head {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section-head__tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em;
  color: var(--ink-70); white-space: nowrap;
}
.section-head__tag span { color: var(--coral); font-weight: 700; }
.section-head__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head__title--tight { margin-bottom: 0.8rem; }

/* ---------- 5) HEADER / NAVIGATION ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem var(--pad);
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: baseline;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
}

.main-nav { display: flex; align-items: center; gap: clamp(0.4rem, 1.5vw, 0.9rem); }
.main-nav a {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.01em;
  text-decoration: none; padding: 0.5rem 0.85rem; border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.main-nav a:not(.nav-cta):hover { background: var(--paper-2); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  margin-left: 0.3rem;
}
.nav-cta:hover { background: var(--coral); color: var(--ink) !important; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; min-width: 44px; min-height: 44px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- 6) HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  background: var(--ink); color: var(--paper);
}
#content-start { display: block; }
.hero__blob {
  position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px);
  pointer-events: none;
}
.hero__blob--1 { width: 50vw; height: 50vw; background: var(--coral); opacity: 0.3; top: -12%; left: -10%; }
.hero__blob--2 { width: 42vw; height: 42vw; background: var(--blue); opacity: 0.26; bottom: -15%; right: -8%; }
.hero__blob--3 {
  width: 22vw; height: 22vw; background: var(--yellow); opacity: 0.16;
  top: 58%; left: 68%; transform: translate(-50%, -50%);
}

.hero__stage { position: relative; z-index: 1; margin-top: -3svh; }
.hero__mark {
  position: relative;
  display: block; text-align: center;
  color: var(--paper);
  font-size: clamp(4.5rem, 17vw, 13.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 0.85;
  animation: hero-reveal 0.5s var(--ease) both;
}
@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__divider { height: 1px; margin-top: clamp(1.5rem, 4vh, 2.5rem); background: rgba(255, 255, 255, 0.15); }
.hero__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(1rem, 2.5vw, 1.5rem);
}
.hero__claim {
  font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78); font-size: clamp(0.85rem, 1.4vw, 1.05rem); line-height: 1.5;
  max-width: 34ch;
}
.hero__bar .btn { flex-shrink: 0; }

.hero__scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: clamp(1.5rem, 4vw, 2.5rem); transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); color: var(--paper);
  animation: hero-bounce 2.2s ease-in-out infinite;
}
.hero__scroll-cue svg { width: 18px; height: 18px; }
.hero__scroll-cue:hover { background: rgba(255, 255, 255, 0.08); }
@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- 7) MARQUEE ---------- */
.marquee {
  overflow: hidden; background: var(--ink); color: var(--paper);
  padding-block: 0.9rem; border-block: 1px solid var(--line-on-ink);
}
.marquee__track {
  display: flex; width: max-content; gap: 2.5rem;
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap;
}
.marquee__track span::after { content: "✦"; color: var(--coral); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 8) LEISTUNGEN ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.service {
  padding: clamp(1.6rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.35s var(--bounce), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service:hover { transform: rotate(-1deg) translateY(-4px); box-shadow: 0 18px 40px rgba(22, 23, 28, 0.1); border-color: transparent; }
.service__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.3rem;
  border-radius: var(--radius-sm);
}
.service:nth-child(1) .service__icon { background: rgba(255, 90, 54, 0.14); }
.service:nth-child(2) .service__icon { background: rgba(47, 168, 232, 0.16); }
.service:nth-child(3) .service__icon { background: rgba(255, 201, 60, 0.2); }
.service__icon svg { width: 1.5rem; height: 1.5rem; }
.service__name { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 700; margin-bottom: 0.6rem; }
.service__text { color: var(--ink-70); font-size: 0.98rem; }
.badge {
  font-family: var(--mono); font-size: 0.62em; vertical-align: middle;
  border-radius: 999px; background: var(--coral); color: var(--ink); padding: 0.18em 0.6em; margin-left: 0.5em;
  letter-spacing: 0.02em; font-weight: 700;
}

/* ---------- 8b) KNOW-HOW (Skills) ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.2rem); }
.skills-group h3 {
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-60); font-weight: 500; margin-bottom: 0.9rem;
}
.skills-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skills-chips span {
  padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font-size: 0.85rem; color: var(--ink-70);
}
.skills-group:nth-child(1) .skills-chips span { border-color: rgba(255, 90, 54, 0.3); }
.skills-group:nth-child(2) .skills-chips span { border-color: rgba(47, 168, 232, 0.3); }
.skills-group:nth-child(3) .skills-chips span { border-color: rgba(255, 201, 60, 0.5); }

/* ---------- 9) ARBEITEN (Portfolio) ---------- */
.work-head__copy { max-width: 42ch; margin-bottom: clamp(2rem, 4vw, 3rem); color: var(--ink-70); font-size: clamp(1.02rem, 1.1vw, 1.15rem); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2vw, 1.6rem); }
.work { position: relative; }
.work__link {
  display: block; width: 100%; text-align: left; text-decoration: none;
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
}
.work__frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--bounce), box-shadow 0.35s var(--ease);
}
.work__link:hover .work__frame, .work__link:focus-visible .work__frame { transform: rotate(-1.5deg) scale(1.02); box-shadow: 0 18px 40px rgba(22, 23, 28, 0.16); }
.work__img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; background: var(--paper-2); }
.work__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.8rem; }
.work__title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.work__type {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-60); white-space: nowrap;
  padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--paper-2);
}
.work__soon-badge {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  transform: rotate(4deg);
}
.work__count-badge {
  position: absolute; bottom: 0.7rem; right: 0.7rem; z-index: 2;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(22, 23, 28, 0.72); color: var(--paper); backdrop-filter: blur(4px);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em;
}
.work__external {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 3;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); text-decoration: none;
  box-shadow: 0 6px 16px rgba(22, 23, 28, 0.18);
  transition: background 0.25s var(--ease), transform 0.25s var(--bounce);
}
.work__external:hover { background: var(--coral); transform: scale(1.08); }
.work__external svg { width: 16px; height: 16px; }

/* ---------- 9b) LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(22, 23, 28, 0.88); backdrop-filter: blur(6px);
}
.lightbox__stage {
  position: relative; z-index: 1; width: min(90vw, 1080px); max-height: 88vh;
  display: flex; align-items: center; gap: 0.5rem;
}
.lightbox__figure {
  flex: 1; min-width: 0; display: grid; justify-items: center; gap: 0.75rem;
}
.lightbox__img {
  max-width: 100%; max-height: 74vh; width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius-sm); background: var(--paper-2);
}
.lightbox__caption { font-family: var(--mono); font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); text-align: center; }
.lightbox__close {
  position: absolute; top: -3.2rem; right: 0; z-index: 2;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 0; color: var(--paper); cursor: pointer;
  transition: background 0.25s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__nav {
  flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 0; color: var(--paper); cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--bounce);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.06); }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav[hidden] { visibility: hidden; }

@media (max-width: 760px) {
  .lightbox__stage { width: 94vw; flex-direction: column; }
  .lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
  .lightbox__nav--prev { left: 0.25rem; }
  .lightbox__nav--next { right: 0.25rem; }
  .lightbox__close { top: -2.8rem; }
}

/* ---------- 10) PROZESS ---------- */
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.process-list article { position: relative; padding-top: 4.2rem; }
.process-list span {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--ink);
}
.process-list article:nth-child(1) span { background: var(--coral); }
.process-list article:nth-child(2) span { background: var(--blue); }
.process-list article:nth-child(3) span { background: var(--yellow); }
.process-list h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 700; margin-bottom: 0.6rem; }
.process-list p { color: var(--ink-70); max-width: 34ch; }

/* ---------- 11) ÜBER MICH ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}
.about-photo {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transform: rotate(-2deg);
}
.about-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.about__text {
  font-family: var(--display); font-weight: 600;
  max-width: 640px; font-size: clamp(1.35rem, 2.2vw, 1.95rem); line-height: 1.35;
}
.about__text .hl { background: linear-gradient(transparent 60%, var(--coral) 60%); padding: 0 0.05em; }
.about-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 2.5vw, 1.7rem);
  background: var(--paper-2);
}
.about-card__label { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-60); margin-bottom: 1.1rem; }
.about-card ul { display: grid; gap: 0.7rem; list-style: none; }
.about-card li {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--ink-70); font-size: 0.95rem;
}
.about-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-card li::before { content: "✦"; color: var(--coral); font-size: 0.8em; }

/* ---------- 12) KONTAKT ---------- */
.contact-panel {
  border-radius: var(--radius); background: var(--ink); color: var(--paper);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: clamp(2rem, 4vw, 3rem); align-items: center;
  position: relative; overflow: hidden;
}
.contact-panel::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: var(--coral); opacity: 0.2; top: -100px; right: -60px; filter: blur(2px);
}
.contact-panel__title { color: var(--paper); margin-bottom: 0.9rem; }
.contact-copy { max-width: 40ch; color: rgba(255,255,255,0.78); font-size: clamp(1.05rem, 1.2vw, 1.25rem); position: relative; z-index: 1; margin-bottom: 1.6rem; }
.contact-list { list-style: none; margin: 1.6rem 0; position: relative; z-index: 1; }
.contact-list li { display: grid; gap: 0.3rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-on-ink); }
.contact-list li:first-child { border-top: 1px solid var(--line-on-ink); }
.contact-list__k { font-family: var(--mono); font-size: 0.76rem; color: rgba(255,255,255,0.5); }
.contact-list__v { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.35rem); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.contact-list__v:hover { color: var(--yellow); }

.contact-form { position: relative; z-index: 1; display: grid; gap: 1rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label {
  display: grid; gap: 0.4rem; font-family: var(--mono); font-size: 0.78rem; color: rgba(255, 255, 255, 0.6);
}
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06); padding: 0.75rem 0.9rem; font: inherit; color: var(--paper);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--coral); background: rgba(255, 255, 255, 0.1); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { justify-self: start; }
.form-status { font-family: var(--mono); font-size: 0.88rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.form-status--ok { background: rgba(47, 168, 232, 0.14); color: var(--paper); border-left: 3px solid var(--blue); }
.form-status--error { background: rgba(255, 90, 54, 0.16); color: var(--coral); }

/* ---------- 13) FOOTER ---------- */
.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); }
.footer__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.footer__mark { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.footer__links { display: flex; gap: 1.3rem; }
.footer__links a { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-60); text-decoration: none; }
.footer__links a:hover { color: var(--coral); }
.footer__copy { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-60); }

/* ---------- 14) BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--bounce), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(0) rotate(0); }
.btn--orange { background: var(--coral); color: var(--ink); }
.btn--orange:hover { box-shadow: 0 14px 30px rgba(255, 90, 54, 0.35); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }

/* ---------- kleines Easteregg ---------- */
.fab-egg {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 220;
  display: grid; gap: 0.35rem; min-width: min(420px, calc(100vw - 2rem));
  padding: 0.95rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--paper);
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
  transform: translate(-50%, 1rem) rotate(-1deg); opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--bounce);
  pointer-events: none; overflow: hidden;
}
.fab-egg.is-visible { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }
.fab-egg__k { font-family: var(--mono); font-size: 0.75rem; color: var(--coral); letter-spacing: 0.04em; }
.fab-egg__v { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 1.25; }
.fab-egg__bit {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
  left: var(--x); top: var(--y); opacity: 0;
  animation: egg-bit 0.9s var(--ease) forwards;
}
@keyframes egg-bit {
  0% { opacity: 0; transform: translateY(10px) scale(0.3); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-42px) scale(1); }
}

/* ---------- 15) Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { max-width: 720px; }
.legal .section-head__tag { display: inline-flex; margin-bottom: 1.2rem; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 700; margin: 2.4rem 0 0.75rem; }
.legal h2:first-of-type { margin-top: 1rem; }
.legal h3 { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-60); margin: 1.5rem 0 0.4rem; }
.legal p { margin-bottom: 1rem; max-width: 65ch; color: var(--ink-70); }
.legal ul { max-width: 65ch; margin: 0 0 1rem 1.1rem; }
.legal li { margin-bottom: 0.6rem; padding-left: 0.3rem; color: var(--ink-70); }
.legal a { color: var(--coral); }
.legal .back {
  font-family: var(--mono); font-size: 0.85rem; text-decoration: none; display: inline-block; margin-bottom: 1.5rem;
}
.legal .back:hover { color: var(--coral); }
.legal-credit { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-60); margin-top: 2.5rem; }

/* ---------- 16) SCROLL-REVEAL (dezent) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation: none !important; }
  .fab-egg, .fab-egg__bit, .marquee__track { transition: none; animation: none; }
}

/* ---------- 17) RESPONSIVE ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .hero__stage { margin-top: 0; }
  .hero__blob--1, .hero__blob--2 { width: 70vw; height: 70vw; }
  .hero__blob--3 { opacity: 0.14; }
  .main-nav { gap: 0.3rem; }
  .main-nav a { padding: 0.4rem 0.55rem; font-size: 0.78rem; }
  .services, .process-list { grid-template-columns: 1fr 1fr; }
  .services > :nth-child(3), .process-list > :nth-child(3) { grid-column: 1 / -1; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; margin-inline: auto; }
}

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

@media (max-width: 760px) {
  .site-header { padding-block: 0.7rem; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0.25rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--pad) 1.25rem;
    transform: translateY(-130%); transition: transform 0.35s var(--ease);
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 0.8rem 0.9rem; font-size: 1rem; }
  .main-nav .nav-cta { margin-left: 0; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__bar { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .hero__claim { max-width: none; text-align: center; }
  .hero__bar .btn { justify-content: center; max-width: 320px; margin-inline: auto; }

  .services, .process-list { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .footer__row { align-items: flex-start; flex-direction: column; }
}
