/* ============================================================
   MBO Portfolio · styles.css
   Dark, minimal, warm-orange accent
   ============================================================ */

:root {
  --bg:        #0a0a0a;
  --bg-soft:   #111111;
  --surface:   #151515;
  --surface-2: #1c1c1c;
  --border:    #262626;
  --border-2:  #333333;
  --text:      #f2f0ec;
  --muted:     #9a9794;
  --muted-2:   #6b6864;

  --accent:    #ff6a1a;
  --accent-2:  #ff8a3d;
  --accent-soft: rgba(255, 106, 26, 0.12);

  --grad: linear-gradient(120deg, #ff6a1a 0%, #ff9d4d 100%);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1140px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────── Reset / base ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(255, 106, 26, 0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255, 106, 26, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section__lead {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad);
  color: #1a0d00;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(255, 106, 26, 0.6);
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn--small { padding: 0.6rem 1.15rem; font-size: 0.9rem; }

/* ───────── Nav ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 70px;
}
.brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.1rem;
  white-space: nowrap;
}
.footer .brand__mark { font-size: 1.25rem; letter-spacing: 0.02em; }
.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  margin-right: 0.5rem;
}
.nav__links a {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0.25rem;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--border);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  padding: 0.75rem 0.25rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.nav__mobile a:last-child { border-bottom: none; }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: clamp(5rem, 14vw, 11rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.16), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner { max-width: 880px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1rem;
}
.hero__meta {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 2.4rem;
  letter-spacing: 0.01em;
}
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ───────── Stats ───────── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ───────── About ───────── */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__visual { display: flex; justify-content: center; }
.monogram {
  position: relative;
  width: 280px; height: 280px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,106,26,0.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}
.monogram > span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 2;
}
.monogram__ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  animation: spin 26s linear infinite;
}
.monogram__ring::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 2px rgba(255,106,26,0.7);
}
.monogram__ring--2 {
  inset: 36px;
  border-style: dashed;
  border-color: rgba(255,106,26,0.25);
  animation-duration: 40s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about__text p { color: var(--muted); margin-top: 1.1rem; }
.about__text p:first-of-type { color: var(--text); }
.about__list {
  list-style: none;
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.about__list li {
  padding-left: 1.6rem;
  position: relative;
  font-weight: 500;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad);
}

/* ───────── Cards (Schwerpunkte) ───────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem 2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% -30%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.card:hover::after { opacity: 1; }
.card__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0.8rem 0 0.7rem;
}
.card p { color: var(--muted); font-size: 0.98rem; }

/* ───────── Quote ───────── */
.quote { text-align: center; }
.quote__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 950px;
  margin-inline: auto;
}

/* ───────── Timeline ───────── */
.timeline {
  list-style: none;
  position: relative;
  max-width: 820px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--border) 70%);
}
.timeline__item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  position: relative;
  padding: 0 0 2.5rem 2.2rem;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(255,106,26,0.12);
}
.timeline__period {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  padding-top: 2px;
}
.timeline__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.timeline__org {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.timeline__body p:last-child { color: var(--muted); }
.timeline__body h3 .badge { vertical-align: middle; }

/* Badge (z. B. „15 Jahre", „Aufstieg in 3 Stufen") */
.badge {
  display: inline-block;
  margin-left: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 106, 26, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Weitere Stationen (kompakt) */
.more {
  margin-top: 1rem;
  max-width: 820px;
  padding-left: 2.2rem;
}
.more__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.more__list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.more__list li {
  color: var(--muted);
  font-size: 0.96rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.more__list li:last-child { border-bottom: none; }
.more__period {
  display: inline-block;
  min-width: 110px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Sprachen / Ausbildung (rating-Liste) */
.rating { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.rating li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.rating li:last-child { border-bottom: none; }
.rating__note { color: var(--muted-2); font-size: 0.88rem; font-weight: 400; text-align: right; }
.skillgroup__note { margin-top: 1.2rem; color: var(--muted); font-size: 0.92rem; }

/* ───────── Skills ───────── */
.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.skillgroup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.skillgroup__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tags li {
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.tags li:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ───────── Projects ───────── */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.project:hover { transform: translateY(-6px); border-color: var(--accent); }
.project__tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.project h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.project p { color: var(--muted); }
.project__meta {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted-2);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* ───────── Footer ───────── */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
  text-align: center;
}
.footer__glow {
  position: absolute;
  bottom: -40%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(circle, rgba(255,106,26,0.12), transparent 60%);
  pointer-events: none;
}
.footer__inner { max-width: 760px; margin-inline: auto; }
.footer__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.footer__sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.2rem; }
.footer__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer__copy { color: var(--muted-2); font-size: 0.88rem; }

/* ───────── Reveal animation ───────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ───────── Responsive ───────── */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav .btn--small { display: none; }
  .nav__toggle { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.4rem; }
  .timeline__period { padding-top: 0; }
  .footer__bottom { flex-direction: column; }
  .monogram { width: 220px; height: 220px; }
  .monogram > span { font-size: 2.6rem; }
}

/* ============================================================
   Universe / Black-Hole Warp-Hintergrund (Parallax beim Scrollen)
   ============================================================ */
html { background: #0a0a0a; }
body { background: transparent; }

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  background: #000;
}
#bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(10, 8, 6, 0.5) 0%, rgba(10, 8, 6, 0.2) 38%, rgba(6, 4, 3, 0.7) 100%);
}

/* Bänder & Karten leicht transluzent, damit der Warp dezent durchscheint
   – Text bleibt durch Blur + dunkle Tönung gut lesbar */
.stats {
  background: rgba(13, 11, 10, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.footer {
  background: rgba(11, 9, 8, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.card,
.skillgroup,
.project {
  background: rgba(21, 18, 16, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card:hover {
  background: rgba(28, 24, 20, 0.74);
}

@media (prefers-reduced-motion: reduce) {
  #bg-canvas { opacity: 0.7; }
}
