/* ============================================================
   AURORA — Portfolio Theme for Felix Tschörner
   Dark aurora-mesh + glassmorphism. Single source of truth
   shared by the Grav theme and the standalone preview.
   ============================================================ */

/* Self-hosted fonts (DSGVO: no third-party CDN request) */
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* base */
  --bg:        #07080d;
  --bg-2:      #0b0d16;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);

  /* text */
  --text:    #eceefc;
  --muted:   #9aa0bd;
  --faint:   #646a8a;

  /* aurora accents */
  --teal:    #34e3c4;
  --violet:  #9d7bff;
  --coral:   #ff6f9c;
  --blue:    #5aa2ff;

  --grad: linear-gradient(110deg, var(--teal), var(--blue) 40%, var(--violet) 72%, var(--coral));

  /* type */
  --display: "Clash Display", "Satoshi", ui-sans-serif, sans-serif;
  --body:    "Satoshi", ui-sans-serif, system-ui, sans-serif;

  /* layout */
  --maxw: 1180px;
  --gap:  clamp(1rem, 2.5vw, 2rem);
  --radius: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--violet); color: #fff; }

/* ---------- animated aurora background ---------- */
.aurora-bg {
  position: fixed;
  inset: -20vh -20vw;
  z-index: -2;
  filter: blur(60px) saturate(140%);
  pointer-events: none;
}
.aurora-bg span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: drift 26s var(--ease) infinite alternate;
}
.aurora-bg .a { width: 46vw; height: 46vw; left: -6vw;  top: -4vh;  background: radial-gradient(circle, var(--teal),   transparent 62%); animation-duration: 24s; }
.aurora-bg .b { width: 50vw; height: 50vw; right: -8vw; top: 2vh;   background: radial-gradient(circle, var(--violet), transparent 62%); animation-duration: 30s; }
.aurora-bg .c { width: 42vw; height: 42vw; left: 18vw;  bottom: -12vh; background: radial-gradient(circle, var(--coral),  transparent 62%); animation-duration: 34s; }
.aurora-bg .d { width: 38vw; height: 38vw; right: 12vw; bottom: -8vh;  background: radial-gradient(circle, var(--blue),   transparent 62%); animation-duration: 28s; }

@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(4vw, 5vh, 0) scale(1.15) rotate(8deg); }
  100% { transform: translate3d(-3vw, -4vh, 0) scale(0.95) rotate(-6deg); }
}

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* subtle grid lines for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 5vw, 3rem); }

section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }

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

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(7, 8, 13, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.55rem; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 16px var(--teal); }
.nav-links { display: flex; gap: 0.4rem; align-items: center; }
.nav-links a {
  font-size: 0.93rem; color: var(--muted); padding: 0.5rem 0.9rem; border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  border: 1px solid var(--border-2) !important;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--teal) !important; box-shadow: 0 0 24px -8px var(--teal); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 12px; width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.4rem 0.9rem;
  background: var(--surface);
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,227,196,0.5);} 70% { box-shadow: 0 0 0 10px rgba(52,227,196,0);} 100% { box-shadow: 0 0 0 0 rgba(52,227,196,0);} }

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 1.6rem;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  max-width: 60ch; margin-top: 1.7rem; font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--muted); line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn-primary { background: var(--grad); color: #06070c; background-size: 180% 180%; animation: shift 8s ease infinite; box-shadow: 0 14px 40px -16px var(--violet); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -14px var(--violet); }
@keyframes shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--teal); background: var(--surface-2); }

/* hero stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 4rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); }
.stats .cell { background: rgba(11,13,22,0.6); backdrop-filter: blur(8px); padding: 1.5rem 1.4rem; }
.stats .num { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }

/* ---------- section heads ---------- */
.shead { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.8rem; flex-wrap: wrap; }
.shead .idx { font-family: var(--display); color: var(--faint); font-size: 1rem; letter-spacing: 0.1em; }
.shead h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
.shead .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-2), transparent); align-self: center; min-width: 40px; }

/* ---------- glass cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, transparent 40%, var(--teal), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.card:hover::after { opacity: 1; }

/* ---------- probleme (pain points) ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pain-card { display: flex; flex-direction: column; }
.pain-q { position: relative; font-family: var(--display); font-weight: 500; font-size: 1.16rem; line-height: 1.4; letter-spacing: -0.01em; padding-top: 1.6rem; }
.pain-q::before { content: "\201C"; position: absolute; top: -0.35rem; left: -0.1rem; font-family: var(--display); font-size: 3rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.85; }
.pain-fix { margin-top: auto; padding-top: 1.1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; border-top: 1px solid var(--border); }
.pain-fix::before { content: "→ "; color: var(--teal); font-weight: 600; }
.pain-fix + .pain-fix { margin-top: 0; }
.pain-bridge { margin-top: 2.8rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
.pain-bridge p { max-width: 56ch; color: var(--text); font-size: 1.05rem; line-height: 1.5; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: start; }
.about-lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.3; letter-spacing: -0.01em; }
.about-lead em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-body { color: var(--muted); }
.about-body p + p { margin-top: 1rem; }
/* Profilkarte: nur das Foto */
.about-col { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 28px 60px -28px rgba(0,0,0,0.65); }
.about-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2) 0%, rgba(11,13,22,0) 42%); pointer-events: none; }
/* Infozeilen: eigenständige, zweispaltige Meta-Liste unter dem Fließtext */
.about-side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.4rem; margin: 2.2rem 0 0; border-top: 1px solid var(--border); }
.about-side .row { background: transparent; padding: 0.85rem 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--border); }
.about-side .row .k { margin: 0; color: var(--faint); font-size: 0.86rem; }
.about-side .row .v { margin: 0; font-weight: 600; font-size: 0.95rem; text-align: right; }

/* ---------- expertise ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.exp-card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 1.1rem; font-size: 1.3rem; }
.exp-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.exp-card p { color: var(--muted); font-size: 0.96rem; margin-top: 0.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; justify-content: center; }
.chip {
  font-size: 0.88rem; color: var(--muted); border: 1px solid var(--border); background: var(--surface);
  padding: 0.45rem 0.95rem; border-radius: 999px; transition: 0.25s;
}
.chip:hover { color: var(--text); border-color: var(--teal); transform: translateY(-2px); }

/* ---------- work ---------- */
.work-list { display: grid; gap: 1.1rem; }
.work-item {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 1.5rem;
  padding: 1.6rem 1.8rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: 0.35s var(--ease); cursor: default;
}
.work-item:hover { background: var(--surface-2); border-color: var(--border-2); transform: translateX(6px); }
.work-item .yr { font-family: var(--display); color: var(--faint); font-size: 0.95rem; }
.work-item h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.work-item p { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }
.work-item .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; max-width: 240px; }
.work-item .tags span { font-size: 0.78rem; color: var(--faint); border: 1px solid var(--border); padding: 0.25rem 0.6rem; border-radius: 999px; }

/* ---------- notes ---------- */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.note .meta { font-size: 0.82rem; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.note h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-top: 0.7rem; line-height: 1.25; letter-spacing: -0.01em; }
.note p { color: var(--muted); font-size: 0.93rem; margin-top: 0.6rem; }
.note .more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-weight: 600; font-size: 0.9rem; color: var(--teal); }

/* ---------- contact / cta ---------- */
.cta {
  border: 1px solid var(--border); border-radius: 32px; padding: clamp(2.5rem, 6vw, 5rem);
  background: var(--surface); backdrop-filter: blur(16px); text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: -50% -10% auto; height: 120%;
  background: radial-gradient(ellipse at 50% 0%, rgba(157,123,255,0.25), transparent 60%);
  pointer-events: none;
}
.cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.025em; line-height: 1.02; }
.cta p { color: var(--muted); max-width: 48ch; margin: 1.2rem auto 0; font-size: 1.1rem; }
.cta .hero-actions { justify-content: center; margin-top: 2.4rem; }
.cta .links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; }
.cta .links a { display: inline-flex; gap: 0.5rem; align-items: center; transition: color 0.25s; }
.cta .links a:hover { color: var(--text); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: 0.9rem; }
.foot a:hover { color: var(--text); }

/* ---------- prose (markdown content pages) ---------- */
.prose { max-width: 70ch; }
.prose h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.05; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; margin-top: 2.4rem; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-top: 1.8rem; }
.prose p { color: var(--muted); margin-top: 1rem; }
.prose ul, .prose ol { color: var(--muted); margin-top: 1rem; padding-left: 1.3rem; }
.prose li { margin-top: 0.4rem; }
.prose a { color: var(--teal); border-bottom: 1px solid transparent; transition: 0.2s; }
.prose a:hover { border-color: var(--teal); }
.prose strong { color: var(--text); }

/* ---------- reveal on load / scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.revealed { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

/* staggered hero load */
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .hero-actions,
.hero .stats { opacity: 0; transform: translateY(24px); animation: rise 0.9s var(--ease) forwards; }
.hero h1          { animation-delay: 0.08s; }
.hero .lead       { animation-delay: 0.18s; }
.hero .hero-actions { animation-delay: 0.28s; }
.hero .stats      { animation-delay: 0.38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .exp-grid, .notes-grid, .pain-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(7,8,13,0.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    padding: 1rem; gap: 0.3rem;
  }
  .nav-links.open a { width: 100%; }
  .nav-toggle { display: block; }
  .exp-grid, .notes-grid, .pain-grid { grid-template-columns: 1fr; }
  .about-side { grid-template-columns: 1fr; column-gap: 0; }
  .work-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .work-item .tags { justify-content: flex-start; max-width: none; }
  .work-item:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
