:root {
  --bg: #fbfaf7;
  --paper: rgba(255, 255, 255, 0.78);
  --card: #ffffff;
  --text: #181715;
  --muted: #706d67;
  --line: #ebe4da;
  --orange: #ff6a00;
  --orange-dark: #c94f00;
  --orange-soft: rgba(255, 106, 0, 0.10);
  --shadow: 0 22px 55px rgba(31, 27, 22, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ── Passwort-Gate ─────────────────────────────── */
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,106,0,.10), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255,184,92,.12), transparent 24%),
    linear-gradient(rgba(24,23,21,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,23,21,.035) 1px, transparent 1px),
    #fbfaf7;
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
  transition: opacity .5s ease, visibility .5s ease;
}
.pw-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pw-box {
  width: min(420px, calc(100% - 44px));
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(31,27,22,.10);
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(18px);
}
.pw-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
}
.pw-logo span { color: var(--orange); }
.pw-title {
  font-size: 1.9rem;
  margin: 10px 0 32px;
}
.pw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pw-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  letter-spacing: .12em;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pw-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,106,0,.12);
}
.pw-btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
}
.pw-error {
  margin: 16px 0 0;
  font-size: .85rem;
  color: #d94f00;
  opacity: 0;
  transition: opacity .3s ease;
}
.pw-error.visible { opacity: 1; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}
.pw-box.shake { animation: shake .4s ease; }

.motion-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 106, 0, 0.10), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 184, 92, 0.12), transparent 24%),
    linear-gradient(rgba(24, 23, 21, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 23, 21, 0.07) 1px, transparent 1px),
    #fbfaf7;
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
  animation: gridMove 24s linear infinite;
}
.motion-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251,250,247,.42), rgba(251,250,247,.78) 42%, rgba(251,250,247,.93));
}
@keyframes gridMove {
  to { background-position: 0 0, 0 0, 56px 56px, 56px 56px, 0 0; }
}
.section {
  position: relative;
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
  padding: 104px 0;
}

.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
  padding-bottom: 70px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.logo span { color: var(--orange); }
.hero-logo { margin-bottom: 70px; }
.hero-content { max-width: 980px; }
.eyebrow {
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 900;
  margin: 0 0 18px;
}
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
}
h1 {
  font-size: clamp(3.25rem, 8.2vw, 5.8rem);
  line-height: .92;
  letter-spacing: -0.075em;
}
h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: .98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h3 { letter-spacing: -0.025em; }

.hero-stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 2rem;
  transform: rotate(var(--r));
  animation: float 7s ease-in-out infinite;
}
.sticker-camera { --r: -10deg; left: 4%; top: 28%; }
.sticker-spark { --r: 12deg; right: 9%; top: 24%; animation-delay: -1.3s; }
.sticker-palette { --r: 8deg; left: 15%; bottom: 17%; animation-delay: -2.4s; }
.sticker-bolt { --r: -7deg; right: 18%; bottom: 22%; animation-delay: -3.2s; }
@keyframes float {
  50% { transform: translateY(-14px) rotate(var(--r)); }
}

.page-nav {
  width: min(var(--max), calc(100% - 44px));
  margin: -18px auto 42px;
  padding: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(31, 27, 22, 0.06);
}
.page-nav a {
  color: var(--muted);
  padding: 10px 17px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 750;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.page-nav a:hover {
  color: var(--text);
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.section-title {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-note {
  margin: 20px auto 0;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 840px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
  text-align: left;
}
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quick-facts div,
.skill-card,
.process-line div,
.timeline-item {
  text-align: left;
}

.quick-facts div, .skill-card, .process-line div, .timeline-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(31, 27, 22, 0.055);
}
.quick-facts div {
  padding: 20px;
  display: grid;
  gap: 9px;
}
.quick-facts strong, .process-line strong, .year { color: var(--orange-dark); }

.skills-grid, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.skill-card {
  padding: 34px;
  min-height: 210px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.skill-card:hover { transform: translateY(-5px); border-color: rgba(255,106,0,.35); background: #fff; }
.skill-card h3 { font-size: 1.65rem; margin-bottom: 16px; }
.skill-card p { color: var(--muted); line-height: 1.8; margin: 0; }

.project-card {
  position: relative;
  min-height: 300px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(24,23,21,.08);
  cursor: pointer;
  background: var(--card);
  text-align: left;
  color: #fff;
  padding: 0;
  box-shadow: 0 16px 45px rgba(31, 27, 22, 0.075);
  transition: transform .28s ease, box-shadow .28s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .45s ease, filter .45s ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,.58), rgba(18,18,18,.12) 55%, transparent);
}
.project-card::before {
  content: "Projekt öffnen →";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: rgba(255,255,255,.92);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 850;
  font-size: .82rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.project-card:hover::before { opacity: 1; transform: translateY(0); }
.project-card:hover .project-image { transform: scale(1.06); filter: saturate(1.08); }
.project-info {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
}
.project-info small { color: #ffb178; font-weight: 950; letter-spacing: .14em; }
.project-info h3 { margin-top: 8px; font-size: 1.8rem; }

.process-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.process-line div {
  padding: 24px 18px;
  display: grid;
  gap: 10px;
  text-align: center;
}
/* ── Warum ADVANCE ─────────────────────────────── */
.why-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why-statement {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  padding: 40px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(31,27,22,.055);
  position: relative;
}
.why-statement::before {
  content: '"';
  position: absolute;
  top: -18px;
  left: 44px;
  font-size: 5rem;
  line-height: 1;
  color: var(--orange);
  font-family: 'Space Grotesk', sans-serif;
}
.why-text {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
  max-width: 680px;
  align-self: center;
}

/* Volltext-Motivationsschreiben */
.why-letter {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(31,27,22,.055);
  padding: 48px 56px;
  max-width: 820px;
  width: 100%;
  align-self: stretch;
  position: relative;
}
.why-letter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 56px;
  right: 56px;
  height: 3px;
  background: linear-gradient(to right, var(--orange), transparent);
  border-radius: 0 0 4px 4px;
}
.why-letter p {
  font-size: 1.04rem;
  line-height: 1.95;
  color: var(--muted);
  margin: 0 0 22px;
}
.why-letter p:last-child { margin-bottom: 0; }
.why-letter-list {
  margin: -8px 0 22px 0;
  padding-left: 1.4em;
  list-style: none;
}
.why-letter-list li {
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--muted);
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 6px;
}
.why-letter-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: .9em;
}
.why-letter-intro {
  font-size: 1.1rem !important;
  color: var(--text) !important;
  font-weight: 500;
}
.why-letter-sign {
  margin-top: 32px !important;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--text) !important;
  font-size: .98rem !important;
  line-height: 1.7 !important;
}
.why-letter-sign strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

/* PDF-Download-Button */
.why-pdf-btn {
  gap: 10px;
  padding: 16px 28px;
  font-size: .97rem;
  align-self: center;
}
.why-pdf-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .why-letter { padding: 36px 28px; }
  .why-letter::before { left: 28px; right: 28px; }
}

/* ── Zahlen & Fakten ───────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(31,27,22,.055);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,106,0,.35);
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.04em;
}
.stat-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Timeline: Linie hinter grossen Boxen ─────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertikale Linie — hinter den Cards */
.timeline::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--line) 3%, var(--line) 97%, transparent);
  z-index: 0;
}

/* Grosse Card — Punkt + Jahr + Inhalt in einer Box */
.timeline-item {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: column !important;
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: 26px !important;
  box-shadow: 0 14px 40px rgba(31,27,22,.07) !important;
  padding: 26px 32px 28px 80px !important;
  overflow: hidden !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.timeline-item:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255,106,0,.3) !important;
  box-shadow: 0 26px 58px rgba(31,27,22,.11) !important;
}

/* Oranger Punkt — links, auf der Linie */
.timeline-item::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  left: 36px !important;
  top: 26px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: var(--orange) !important;
  border: 3px solid #fff !important;
  box-shadow: 0 0 0 2px var(--orange) !important;
  z-index: 3 !important;
}

/* Jahreszahl — rechts vom Punkt, vor dem Text */
.year {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 14px;
}

/* Inhalt */
.timeline-card {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Highlight-Eintrag (ADVANCE) */
.timeline-item--highlight {
  border-color: rgba(255,106,0,.35) !important;
  background: linear-gradient(135deg, rgba(255,106,0,.06), var(--paper)) !important;
}
.timeline-item--highlight::before {
  background: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(255,106,0,.25) !important;
  width: 20px !important;
  height: 20px !important;
  left: 34px !important;
}
.timeline-item--highlight .year {
  font-size: 1.1rem;
}
.timeline-item--highlight h3 {
  font-size: 1.35rem;
  color: var(--orange);
}

@media (max-width: 600px) {
  .timeline::before { display: none; }
  .timeline-item {
    padding: 22px 24px 24px 24px !important;
  }
  .timeline-item::before { display: none !important; }
}

.timeline-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 999px;
  font-size: .70rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.timeline-card h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.timeline-card p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  font-size: .95rem;
}

.timeline-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 850;
  border: 1px solid var(--line);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(31, 27, 22, 0.07); }
.primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.secondary { background: rgba(255,255,255,.72); color: var(--text); }

.contact {
  text-align: center;
  padding-bottom: 80px;
}

/* Referenzen */
.references {
  text-align: center;
  padding-bottom: 120px;
}
.references-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.reference-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 36px;
  box-shadow: 0 8px 28px rgba(31,27,22,.05);
  min-width: 280px;
  text-align: left;
  transition: box-shadow .25s ease, transform .25s ease;
}
.reference-card:hover {
  box-shadow: 0 16px 44px rgba(31,27,22,.10);
  transform: translateY(-3px);
}
.reference-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.reference-info h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.reference-role {
  font-size: .92rem;
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.5;
}
.reference-phone {
  font-size: .92rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}
.reference-phone:hover {
  text-decoration: underline;
}

.contact-top-btn {
  display: block;
  width: fit-content;
  margin: 36px auto 0;
}

.contact-icons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.contact-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 180px;
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 16px 45px rgba(31,27,22,.055);
  color: var(--text);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.contact-icon-btn:hover {
  transform: translateY(-6px);
  border-color: rgba(255,106,0,.35);
  box-shadow: 0 26px 58px rgba(31,27,22,.11);
  color: var(--orange);
}
.contact-icon-btn svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.contact-icon-btn span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .contact-icon-btn { width: 140px; }
  .contact-icon-btn svg { width: 42px; height: 42px; }
}

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23,23,23,.52); backdrop-filter: blur(12px); }
.modal-content {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: sticky;
  top: 18px;
  float: right;
  margin: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 14px 36px rgba(31, 27, 22, 0.07);
}
.modal-media { min-height: 420px; background: #f4efe8; }
.modal-media img, .modal-media video { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.modal-body { padding: 36px; }
.modal-body p { color: var(--muted); line-height: 1.8; }
.modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.modal-details div { background: #fbfaf7; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 8px; }
.modal-details strong { color: var(--orange-dark); }
.modal-details span { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  .section { padding: 86px 0; }
  .hero { min-height: 72vh; }
  .skills-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr 1fr; }
  .sticker { width: 62px; height: 62px; font-size: 1.55rem; border-radius: 20px; }
  .sticker-camera { left: 1%; top: 22%; }
  .sticker-spark { right: 2%; top: 22%; }
  .sticker-palette { left: 8%; bottom: 12%; }
  .sticker-bolt { right: 9%; bottom: 12%; }
}
@media (max-width: 560px) {
  .section, .page-nav { width: min(100% - 28px, var(--max)); }
  .hero { min-height: 68vh; padding-top: 58px; }
  .hero-logo { margin-bottom: 54px; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.2rem); }
  .project-card { min-height: 260px; }
  .process-line, .modal-details { grid-template-columns: 1fr; }
  .timeline::before, .timeline-item::before { display: none; }
  .page-nav { border-radius: 28px; }
  .sticker-palette, .sticker-bolt { display: none; }
}


.about-layout{
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 40px;
  max-width: 1020px;
  margin: 0 auto;
}
.about-image{
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.about-image img{
  width: 100%;
  max-width: 506px;
  max-height: 674px;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(65px) translateY(calc(-20% + 100px));
  -webkit-mask-image: radial-gradient(ellipse 80% 82% at 47% 40%, black 38%, transparent 92%);
  mask-image: radial-gradient(ellipse 80% 82% at 47% 40%, black 38%, transparent 92%);
  transition: transform .5s cubic-bezier(.34,1.2,.64,1), filter .5s ease;
}
.about-content{
  text-align: left;
}
.about-image img:hover {
  transform: translateX(65px) translateY(calc(-20% + 100px)) scale(1.04);
  filter: brightness(1.05) saturate(1.1);
}

.about-name{
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 20px;
}
.about-role{
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 44px;
}
.about-text{
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 480px;
}

@media(max-width:820px){
  .about-layout{ grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about-image{ justify-content: center; }
  .about-image img{ max-width: 260px; max-height: 360px; }
  .about-content{ text-align: center; }
  .about-text{ margin: 0 auto; }
  .about-role{ margin-bottom: 28px; }
}


/* Dezente Sticker in allen Sections */
.section-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.sticker-sm {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  font-size: 1.65rem;
  opacity: 0.68;
  animation-duration: 9s;
}

/* About — relativ zur section */
.s-about-cam  { --r: 7deg;  top: 12%;  right: 2%; animation-delay: -1.1s; }

/* Skills */
.s-skills-l   { --r: -9deg; left: -8px;  top: 46%;    animation-delay: -2.3s; }
.s-skills-r   { --r: 6deg;  right: -8px; bottom: 8%;  animation-delay: -4.1s; }

/* Portfolio */
.s-portfolio  { --r: -7deg; right: 1%;  top: 6%;     animation-delay: -0.7s; }

/* Process */
.s-process    { --r: 10deg; left: 1%;   top: 18%;    animation-delay: -3.4s; }

/* Timeline */
.s-timeline   { --r: -5deg; right: 1%;  top: 10%;    animation-delay: -1.9s; }

/* Contact */
.s-contact    { --r: 8deg;  left: 2%;   top: 16%;    animation-delay: -2.8s; }

@media (max-width: 820px) {
  .s-skills-l { left: 0; }
  .s-skills-r { right: 0; }
}
@media (max-width: 560px) {
  .sticker-sm { display: none; }
}

/* Kompetenz-Section: reduzierte Listen-Optik statt grosse Boxen */
.skills-title{
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.skills-list{
  max-width: 980px;
  margin: 56px auto 0;
  border-top: 1px solid var(--line);
}

.skill-row{
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: transform .25s ease, padding-left .25s ease;
}

.skill-row:hover{
  transform: translateX(8px);
}

.skill-number{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  font-weight: 800;
  color: var(--orange-dark);
  letter-spacing: .16em;
}

.skill-main h3{
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  margin-bottom: 8px;
}

.skill-main p{
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.skill-tag{
  justify-self: end;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 820px){
  .skill-row{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px 0;
  }

  .skill-tag{
    justify-self: start;
  }
}

/* ── Tool-Cards ────────────────────────────────── */
.tools-label {
  text-align: center;
  margin: 48px 0 20px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 40px auto 0;
}
.tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(31,27,22,.055);
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,106,0,.3);
  box-shadow: 0 26px 58px rgba(31,27,22,.10);
}
.tool-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.tool-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: .02em;
}

@media (max-width: 600px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

.skills-list{position:relative;}
.skills-stickers{position:relative;height:0}
.skill-cam,.skill-pencil{
position:absolute;
display:grid;
place-items:center;
width:68px;height:68px;border-radius:22px;
background:rgba(255,255,255,.8);
border:1px solid var(--line);
box-shadow:var(--shadow);
font-size:1.8rem;
animation: float 7s ease-in-out infinite;
}
.skill-cam{left:-40px;top:60px;transform:rotate(-8deg)}
.skill-pencil{right:-40px;top:260px;transform:rotate(9deg)}




/* Projekt-Detail: 9:16 Medien-Carousel + Instagram-Link */
.project-media-grid{ display:none !important; }

.project-media-carousel{
  position:relative;
  margin-top:30px;
}

.carousel-track{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:4px 4px 18px;
  scrollbar-width:thin;
}

.carousel-item{
  flex: 0 0 auto;
  height: 420px;
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(31,27,22,.055);
}

.carousel-item video{
  height: 100%;
  width: auto;
  display: block;
}

.carousel-item img{
  height: 100%;
  width: auto;
  max-width: 560px;
  object-fit: contain;
  display: block;
  background: var(--paper);
}

.carousel-btn{
  position:absolute;
  top:50%;
  z-index:3;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.9);
  box-shadow:0 12px 30px rgba(31, 27, 22, 0.10);
  transform:translateY(-50%);
  cursor:pointer;
  font-size:2rem;
  line-height:1;
}

.carousel-prev{ left:-12px; }
.carousel-next{ right:-12px; }

.project-instagram-link{
  display:inline-flex;
  width:auto;
  min-height:54px;
  gap:12px;
  padding:0 18px;
  margin:28px auto 0;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.82);
  box-shadow:0 14px 34px rgba(31, 27, 22, 0.07);
  transition:transform .22s ease, box-shadow .22s ease;
  font-weight:800;
  color:var(--text);
}

.project-instagram-link:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 42px rgba(31, 27, 22, 0.10);
}

.project-instagram-link svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  flex:0 0 auto;
}

.project-instagram-link span{
  font-size:.92rem;
}

@media (max-width:760px){
  .carousel-btn{ display:none; }
  .carousel-item{ height: 300px; }
}








/* Freestyle WM Thumbnail — vollflächig, Close-Button über dem Bild */
.modal-content:has(img[src*="FSWM_THUMBNAIL"]) .modal-close {
  position: absolute !important;
  float: none !important;
  top: 18px !important;
  right: 18px !important;
  margin: 0 !important;
  z-index: 10;
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(8px);
}

.modal-content:has(img[src*="FSWM_THUMBNAIL"]) .modal-media,
.modal-content:has(img[src*="FSWM_THUMBNAIL"]) #modalMedia {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  background: #000 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.modal-media img[src*="FSWM_THUMBNAIL"],
#modalMedia img[src*="FSWM_THUMBNAIL"] {
  width: 100% !important;
  height: clamp(380px, 52vw, 640px) !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Seaside Festival Thumbnail — vollflächig, Close-Button über dem Bild */
.modal-content:has(img[src*="SEASIDE_THUMBNAIL"]) .modal-close {
  position: absolute !important;
  float: none !important;
  top: 18px !important;
  right: 18px !important;
  margin: 0 !important;
  z-index: 10;
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(8px);
}

.modal-content:has(img[src*="SEASIDE_THUMBNAIL"]) .modal-media,
.modal-content:has(img[src*="SEASIDE_THUMBNAIL"]) #modalMedia {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  background: #000 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.modal-media img[src*="SEASIDE_THUMBNAIL"],
#modalMedia img[src*="SEASIDE_THUMBNAIL"] {
  width: 100% !important;
  height: clamp(380px, 52vw, 640px) !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Chill Out Thumbnail — vollflächig, Close-Button über dem Bild */
.modal-content:has(img[src*="CHILL_OUT_THUMBNAIL"]) .modal-close {
  position: absolute !important;
  float: none !important;
  top: 18px !important;
  right: 18px !important;
  margin: 0 !important;
  z-index: 10;
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(8px);
}

.modal-content:has(img[src*="CHILL_OUT_THUMBNAIL"]) .modal-media,
.modal-content:has(img[src*="CHILL_OUT_THUMBNAIL"]) #modalMedia {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  background: #000 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.modal-media img[src*="CHILL_OUT_THUMBNAIL"],
#modalMedia img[src*="CHILL_OUT_THUMBNAIL"] {
  width: 100% !important;
  height: clamp(380px, 52vw, 640px) !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Swiss Olympic Thumbnail — vollflächig, Close-Button über dem Bild */
.modal-content:has(img[src*="SWISS_OLYMPIC_THUMBNAIL"]) .modal-close {
  position: absolute !important;
  float: none !important;
  top: 18px !important;
  right: 18px !important;
  margin: 0 !important;
  z-index: 10;
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(8px);
}

.modal-content:has(img[src*="SWISS_OLYMPIC_THUMBNAIL"]) .modal-media,
.modal-content:has(img[src*="SWISS_OLYMPIC_THUMBNAIL"]) #modalMedia {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  background: #000 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.modal-media img[src*="SWISS_OLYMPIC_THUMBNAIL"],
#modalMedia img[src*="SWISS_OLYMPIC_THUMBNAIL"] {
  width: 100% !important;
  height: clamp(380px, 52vw, 640px) !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}


/* Skischule Thumbnail — vollflächig, Close-Button über dem Bild */
.modal-content:has(img[src*="SKISCHULE_THUMBNAIL"]) .modal-close {
  position: absolute !important;
  float: none !important;
  top: 18px !important;
  right: 18px !important;
  margin: 0 !important;
  z-index: 10;
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(8px);
}

.modal-content:has(img[src*="SKISCHULE_THUMBNAIL"]) .modal-media,
.modal-content:has(img[src*="SKISCHULE_THUMBNAIL"]) #modalMedia {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  background: #000 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.modal-media img[src*="SKISCHULE_THUMBNAIL"],
#modalMedia img[src*="SKISCHULE_THUMBNAIL"] {
  width: 100% !important;
  height: clamp(380px, 52vw, 640px) !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
