/* =============================================================
   simoncrins.de — Executive Dark/Obsidian/Glass
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Farben */
  --obsidian-deep:   #0a0c10;
  --obsidian:        #11141a;
  --obsidian-rise:   #181c24;
  --carbon:          #1f242e;
  --steel:           #2a3140;
  --mist:            rgba(255, 255, 255, 0.06);
  --mist-strong:     rgba(255, 255, 255, 0.10);
  --line:            rgba(255, 255, 255, 0.08);
  --line-strong:     rgba(255, 255, 255, 0.14);

  --text:            #e8eaef;
  --text-soft:       #b5bac4;
  --text-mute:       #7a8090;
  --text-dim:        #545a68;

  --accent:          #c9a36b;    /* warmes Bronze */
  --accent-bright:   #e6c08a;
  --accent-deep:     #8a6f47;
  --accent-glow:     rgba(201, 163, 107, 0.18);

  /* Typo */
  --font-display:    'Fraunces', Georgia, serif;
  --font-body:       'Inter Tight', system-ui, sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, monospace;

  /* Spacing & Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Glass */
  --glass-bg:        rgba(24, 28, 36, 0.55);
  --glass-bg-light:  rgba(31, 36, 46, 0.45);
  --glass-blur:      blur(20px) saturate(110%);
  --glass-border:    1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow:    0 1px 0 rgba(255, 255, 255, 0.04) inset,
                     0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

/* ============== Reset ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--obsidian-deep);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

/* ============== Background atmosphere ============== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 12% -10%, rgba(201, 163, 107, 0.10), transparent 55%),
    radial-gradient(ellipse 900px 500px at 88% 110%, rgba(70, 90, 120, 0.12), transparent 55%),
    linear-gradient(180deg, var(--obsidian-deep) 0%, var(--obsidian) 60%, var(--obsidian-deep) 100%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  /* Grid noise/grain overlay */
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

/* ============== Typography ============== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 500;
}

h4 {
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 500;
}

p {
  margin: 0 0 1.1em 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 500; }
em { font-style: italic; color: var(--accent-bright); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}

/* Mono labels */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.mono-accent { color: var(--accent); }

/* ============== Layout ============== */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============== Top bar ============== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  border: none;
}

.brand__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-soft);
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: all 0.18s ease;
}

.nav a:hover,
.nav a.is-current {
  color: var(--text);
  background: var(--mist);
  border-color: var(--line);
}

/* ============== Glass card ============== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  position: relative;
}

.glass--inset {
  padding: 1.5rem;
  border-radius: var(--r-md);
  background: var(--glass-bg-light);
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--mist);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--mist-strong);
  border-color: var(--accent-deep);
  color: var(--text);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--obsidian-deep);
}
.btn--primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--obsidian-deep);
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}

.btn svg { flex-shrink: 0; }

/* ============== Hero ============== */
.hero {
  padding: 5rem 0 3rem 0;
  position: relative;
}

.hero__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.hero__head .mono { margin: 0; }
.hero__pulse {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}
.hero__pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero h1 {
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero__sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__sub span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__sub .sep {
  width: 4px; height: 4px;
  background: var(--accent-deep);
  border-radius: 50%;
}

.hero__lede {
  max-width: 680px;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero__cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ============== Sections ============== */
section { padding: 3.5rem 0; position: relative; }

.section__head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section__head .mono { flex-shrink: 0; padding-bottom: 0.5rem; }

.section__head h2 { flex: 1; }

/* ============== Theme grid (3 themes) ============== */
.themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.theme {
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.theme::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.theme:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.theme:hover::before { opacity: 1; }

.theme__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--mist);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.theme h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 1rem;
}

.theme__body {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.theme__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
}
.theme__link:hover { color: var(--accent-bright); border: none; }
.theme__link svg { transition: transform 0.2s ease; }
.theme__link:hover svg { transform: translateX(3px); }

/* ============== Book teaser ============== */
.book {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.book__cover {
  background: linear-gradient(135deg, var(--carbon), var(--obsidian-rise));
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px var(--line);
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.book__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.6rem;
}

.book h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.book__subtitle {
  color: var(--text-mute);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.book__isbn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.book__links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ============== About / Werdegang ============== */
.lede {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 3rem;
  letter-spacing: -0.015em;
  max-width: 760px;
}

.bio p { margin-bottom: 1.4rem; font-size: 1.04rem; }

/* Stationen / Timeline */
.stations {
  display: grid;
  gap: 0;
  margin-top: 1rem;
}

.station {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.station:first-of-type { border-top: 1px solid var(--line); }

.station__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

.station__title {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.station__org {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-mute);
}

/* Two-col compact list (Zertifizierungen) */
.compact-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.compact-list:first-of-type { border-top: 1px solid var(--line); }
.compact-list .date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
}

/* ============== Kompetenzen ============== */
.competency {
  margin-bottom: 4rem;
}

.competency__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.competency__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--mist);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.competency__head h2 { margin: 0; }

.competency__body { font-size: 1.04rem; }
.competency__body p { margin-bottom: 1.3rem; }

.competency__concrete {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.competency__concrete .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}
.competency__concrete p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ============== Publikationen ============== */
.pub {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.pub:first-of-type { border-top: 1px solid var(--line); }

.pub__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
}

.pub h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.pub h3 a {
  color: var(--text);
  border: none;
}
.pub h3 a:hover { color: var(--accent); border: none; }

.pub__sub {
  color: var(--text-mute);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.7rem;
}

.pub p { margin: 0; font-size: 0.97rem; }

/* Article list (kompakter) */
.article-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.article-row:first-of-type { border-top: 1px solid var(--line); }
.article-row .date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.article-row a {
  color: var(--text);
  font-size: 0.98rem;
  border: none;
}
.article-row a:hover { color: var(--accent); border: none; }

/* ============== Contact ============== */
.contact-card {
  padding: 2.5rem;
  text-align: center;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.contact-card p {
  max-width: 520px;
  margin: 0 auto 1.8rem auto;
}
.contact-card .btn-group {
  display: inline-flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============== Footer ============== */
.footer {
  margin-top: 5rem;
  padding: 2.5rem 0 1.5rem 0;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.footer a { color: var(--text-mute); border: none; }
.footer a:hover { color: var(--accent); border: none; }

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

/* ============== Scroll animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============== Mobile ============== */
@media (max-width: 800px) {
  .wrap, .wrap-narrow { padding: 0 1.2rem; }
  .topbar__inner { padding: 0.85rem 1.2rem; gap: 1rem; }
  .nav { gap: 0.15rem; }
  .nav a { padding: 0.45rem 0.65rem; font-size: 0.82rem; }
  .hero { padding: 3rem 0 2rem 0; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .book { grid-template-columns: 1fr; gap: 1.5rem; }
  .book__cover { max-width: 180px; margin: 0 auto; }
  .station { grid-template-columns: 1fr; gap: 0.2rem; }
  .station__date { margin-bottom: 0.1rem; }
  .compact-list { grid-template-columns: 1fr; gap: 0.2rem; }
  .article-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .glass { padding: 1.5rem; }
  .section__head { flex-wrap: wrap; gap: 0.5rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  .lede { font-size: 1.15rem; }
}

/* ============== Reduced motion ============== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Typography Fixes v2 */
.hero h1 { font-family: var(--font-display); font-weight: 400; }
.hero h1 em { font-style: normal; color: inherit; font-weight: inherit; font-family: inherit; }

.section__head {
  display: block; /* Overrides original flex layout */
  margin-top: 4rem;
  margin-bottom: 2.0rem;
  padding-bottom: 0;
  border-bottom: none;
}
.section__head .mono {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem; 
  padding-bottom: 0;
}
.section__head h2 {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

@media (max-width: 800px) {
  .section__head { gap: 0; display: block; }
  .section__head .mono { margin-bottom: 0.8rem; }
  .section__head h2 { font-size: 1.5rem; }
}

.lede {
  font-family: inherit;
  font-size: 1.02rem; 
  font-weight: 600;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.4rem;
  letter-spacing: 0;
}
.hero__lede {
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.book__cover img {
  border-radius: var(--r-sm);
  box-shadow: 0 0 45px var(--accent-glow);
  width: 100%; height: auto;
}
.portrait-wrapper {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  border: 1px solid var(--line);
}
.portrait-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.5s ease;
}
.portrait-wrapper:hover img {
  filter: grayscale(0%) contrast(1);
}
