/* ============================================================
   Felix Kempf – Persönliche Website
   style.css
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --bg:           #F6F3EF;
  --bg-alt:       #EDEAE4;
  --text:         #1C1A17;
  --text-light:   #6B6760;
  --text-faint:   #A09C97;
  --accent:       #4B6B5B;
  --accent-dark:  #3A5548;
  --accent-soft:  #EDF1EE;
  --border:       #DDD9D3;
  --white:        #FFFFFF;

  --serif:  'Lora', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:  1100px;
  --pad-x:  2rem;
  --nav-h:  4rem;

  --radius:    4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.09);

  --ease: 0.18s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--accent-dark); }

ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* --- Accessibility ---------------------------------------- */
.skip-link {
  position: absolute;
  top: -200%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* --- Container -------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(246, 243, 239, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
  transition: color var(--ease);
}
.nav-logo:hover { color: var(--accent); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.main-nav a {
  font-size: 0.8125rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
  transition: color var(--ease);
}
.main-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--ease);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 5.5rem 0 5rem; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 5.5vw, 5.25rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.hero-body {
  font-size: 1.0625rem;
  color: var(--text-light);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.75rem;
}
.hero-tag {
  font-size: 0.8125rem;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.875rem;
  letter-spacing: 0.02em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
  transition: color var(--ease), gap var(--ease);
}
.link-arrow:hover { color: var(--accent-dark); gap: 0.625rem; }

/* Photo */
.hero-photo-outer {
  display: flex;
  justify-content: flex-end;
}

.hero-photo-wrap {
  position: relative;
  width: 340px;
  flex-shrink: 0;
}

.hero-photo {
  width: 340px;
  height: 425px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Offset-border decorative element */
.hero-photo-deco {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 340px;
  height: 425px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  pointer-events: none;
}

/* ============================================================
   Section Layout
   ============================================================ */
.section { padding: 5.5rem 0; }
.section--alt { background-color: #EDEBE6; }

.section-inner {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 4rem;
  align-items: start;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 0.75rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  line-height: 1.4;
}

.section-head {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2.25rem;
}

/* --- Prose ------------------------------------------------ */
.prose {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.prose p { max-width: 600px; }
.prose p + p { margin-top: 1rem; }

/* ============================================================
   Profile Cards (stacked)
   ============================================================ */
.card-stack {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  background: var(--white);
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.card:last-child { border-bottom: none; }

.card-num {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.card h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 520px;
}

/* ============================================================
   Pull Statement
   ============================================================ */
.pull-statement {
  border-left: 2px solid var(--accent);
  padding: 1rem 1.75rem;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-statement p {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 2rem;
  padding: 1.875rem 0;
  border-top: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: 1px solid var(--border); }

.tl-date {
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.5;
  padding-top: 0.15rem;
}

.tl-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.35rem;
}

.tl-body h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.tl-org {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.tl-desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 520px;
}

/* ============================================================
   Reference Cards
   ============================================================ */
.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ref-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.ref-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.ref-source {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ref-year {
  font-size: 0.875rem;
  color: var(--text-faint);
}

.ref-body { padding: 1.75rem; flex: 1; }

.ref-body h3 {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.ref-dept {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.ref-quote {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.75;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin: 0 0 1.25rem;
}

.ref-note {
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.65;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-list {
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background var(--ease);
}
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: var(--accent-soft); }

.contact-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  min-width: 115px;
  flex-shrink: 0;
}

.contact-value {
  font-size: 0.9375rem;
  color: var(--text);
  flex: 1;
  text-align: right;
  margin-right: 0.75rem;
}

.contact-item--primary .contact-value { color: var(--accent); }

.contact-arrow {
  font-size: 0.875rem;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform var(--ease), color var(--ease);
}
.contact-item:hover .contact-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer p,
.site-footer a {
  font-size: 0.8125rem;
  color: var(--text-faint);
}
.site-footer a:hover { color: var(--accent); }

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

/* ============================================================
   Responsive – Tablet (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero { padding: 3.5rem 0 4rem; }

  .hero-photo-outer {
    order: -1;
    justify-content: flex-start;
  }
  .hero-photo-wrap { width: 240px; }
  .hero-photo { width: 240px; height: 300px; }
  .hero-photo-deco { width: 240px; height: 300px; top: 10px; left: 10px; }

  .section-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .section-label { position: static; }

  .ref-grid { grid-template-columns: 1fr; }

  .tl-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ============================================================
   Responsive – Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --pad-x: 1.25rem; }

  .section { padding: 3.5rem 0; }

  /* Mobile nav */
  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem var(--pad-x) 2rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .main-nav a { font-size: 1rem; color: var(--text); }
  .nav-toggle { display: flex; }

  .hero-name { font-size: 3rem; }

  .contact-item {
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  .contact-value { text-align: left; margin-right: 0; flex: none; width: 100%; }
  .contact-arrow { margin-left: auto; }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
