/* ============================================================
   Stefan Popp – Personal Website  |  style.css
   ============================================================ */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fafaf8;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ── */
.container { max-width: 1040px; margin: 0 auto; padding: 0 2rem; }

/* ── Type ── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: #0f0f0e;
}
em { font-style: italic; }

/* ── Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between; height: 56px;
}
.nav-name { font-size: 15px; font-weight: 500; color: #0f0f0e; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { font-size: 14px; color: #666; transition: color .15s; }
.nav-links a:hover { color: #0f0f0e; }
.nav-burger { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: #0f0f0e; }

/* ── Hero ── */
.hero { padding: 5rem 0 4rem; background: #fafaf8; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 4rem; align-items: start;
}
.hero-content { padding-top: 0.5rem; }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: #888; margin-bottom: .8rem;
}
.hero-name {
  font-size: clamp(28px, 5.5vw, 58px);
  font-weight: 400; line-height: 1.05;
  color: #0f0f0e; margin-bottom: .4rem; letter-spacing: -.02em;
}
.hero-name em { font-style: italic; }
.hero-sub { font-size: 16px; color: #666; margin-bottom: 1rem; font-weight: 300; }
.hero-intro { font-size: 17px; color: #3a3a3a; line-height: 1.75; margin-bottom: 2rem; max-width: 520px; }

/* ── KPIs ── */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 2rem; }
.kpi { background: #f2f1ed; border-radius: 10px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: 4px; }
.kpi-num { font-size: 22px; font-weight: 500; color: #0f0f0e; line-height: 1; letter-spacing: -.02em; }
.kpi-label { font-size: 12px; color: #777; line-height: 1.3; }

/* ── Buttons ── */
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: opacity .15s, background .15s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: #0f0f0e; color: #fafaf8; border-color: #0f0f0e; }
.btn-primary:hover { opacity: .82; }
.btn-outline { background: transparent; color: #0f0f0e; border-color: rgba(0,0,0,.25); }
.btn-outline:hover { background: rgba(0,0,0,.05); }
.btn-light { background: #fafaf8; color: #0f0f0e; border-color: rgba(250,250,248,.4); }
.btn-light:hover { opacity: .85; }
.btn-outline-light { background: transparent; color: #fafaf8; border-color: rgba(250,250,248,.4); }
.btn-outline-light:hover { background: rgba(250,250,248,.1); }

.contact-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Hero Photo ── */
.hero-photo-wrap { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: center 12%;
  border-radius: 14px; display: block;
}

/* ── Section shells ── */
.section        { padding: 5rem 0; background: #fafaf8; }
.section-light  { padding: 4.5rem 0; background: #f5f4f0; }
.section-warm   { padding: 4.5rem 0; background: #f0ede6; }
.section-blue   { padding: 4.5rem 0; background: #eef2f7; }
.section-dark   { padding: 5rem 0; background: #0f0f0e; color: #fafaf8; }

.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: #888; margin-bottom: 1rem;
}
.section-label-light { color: rgba(250,250,248,.45); }

.section-heading { font-size: clamp(26px, 3.5vw, 36px); color: #0f0f0e; margin-bottom: 1rem; }
.section-heading-light { color: #fafaf8; }
.section-intro { font-size: 16px; color: #555; line-height: 1.75; max-width: 680px; margin-bottom: 3rem; }
.section-intro-light { color: rgba(250,250,248,.65); }

/* ── Lead Quote ── */
.lead-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 400; font-style: normal; line-height: 1.65; color: #1a1a1a;
  border-left: 3px solid #0f0f0e; padding-left: 1.5rem; max-width: 720px;
}

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.tags span {
  font-size: 12px; padding: 4px 10px; border-radius: 100px;
  border: 0.5px solid rgba(0,0,0,.15); color: #555; background: #fafaf8;
}
.tags-light span {
  border-color: rgba(250,250,248,.2);
  color: rgba(250,250,248,.7); background: rgba(250,250,248,.07);
}

/* ── Expertise Cards ── */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card {
  background: #fff; border: 0.5px solid rgba(0,0,0,.08);
  border-radius: 14px; padding: 1.5rem 1.75rem;
}
.card-num { font-size: 12px; color: #bbb; font-weight: 500; letter-spacing: .05em; display: block; margin-bottom: .5rem; }
.card-title { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500; color: #0f0f0e; margin-bottom: .6rem; }
.card-text { font-size: 14px; color: #555; line-height: 1.65; }

/* ── AI Grid ── */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ai-card {
  border: 0.5px solid rgba(250,250,248,.12);
  border-radius: 12px; padding: 1.25rem 1.5rem;
  background: rgba(250,250,248,.05);
}
.ai-title { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; color: #fafaf8; margin-bottom: .5rem; }
.ai-text { font-size: 13.5px; color: rgba(250,250,248,.6); line-height: 1.6; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 0 2.5rem; padding: 2.5rem 0;
  border-bottom: 0.5px solid rgba(0,0,0,.07);
}
.tl-item:first-child { padding-top: 0; }
.tl-item:last-child { border-bottom: none; padding-bottom: 0; }
.tl-meta { padding-top: 3px; }
.tl-year { font-size: 12px; color: #888; line-height: 1.5; display: block; }
.tl-org { font-size: 12px; color: #aaa; display: block; margin-top: .3rem; line-height: 1.4; }
.tl-role { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 500; color: #0f0f0e; margin-bottom: .5rem; }
.tl-desc { font-size: 14px; color: #555; line-height: 1.65; margin-bottom: .75rem; max-width: 580px; }
.tl-wins { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 5px; margin-bottom: .5rem; }
.tl-wins li { font-size: 13.5px; color: #1a1a1a; line-height: 1.55; padding-left: 1.2rem; position: relative; }
.tl-wins li::before { content: "↗"; position: absolute; left: 0; font-size: 11px; color: #bbb; top: 2px; }

/* ── Community ── */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.community-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.community-card {
  background: #fff; border: 0.5px solid rgba(0,0,0,.07);
  border-radius: 12px; padding: 1.5rem;
}
.community-icon { font-size: 24px; display: block; margin-bottom: .75rem; }
.community-title { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; color: #0f0f0e; margin-bottom: .2rem; }
.community-role { font-size: 12px; color: #888; margin-bottom: .6rem; }
.community-text { font-size: 13.5px; color: #555; line-height: 1.6; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-heading { font-size: clamp(26px, 4vw, 40px); color: #fafaf8; margin-bottom: .75rem; letter-spacing: -.01em; }
.contact-links { display: flex; flex-direction: column; }
.contact-link {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .9rem 0;
  border-bottom: 0.5px solid rgba(250,250,248,.1);
  transition: opacity .15s;
}
.contact-link:first-child { border-top: 0.5px solid rgba(250,250,248,.1); }
.contact-link:hover { opacity: .65; }
.contact-link-label {
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(250,250,248,.4); flex-shrink: 0;
}
.contact-link-value { font-size: 14px; color: #fafaf8; text-align: right; }

/* ── Footer ── */
.site-footer { background: #0f0f0e; border-top: 0.5px solid rgba(250,250,248,.07); padding: 1.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }
.site-footer span, .site-footer a { font-size: 13px; color: rgba(250,250,248,.3); }
.site-footer a:hover { color: rgba(250,250,248,.7); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .ai-grid { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 120px 1fr; gap: 0 1.5rem; }
  .community-grid-3 { grid-template-columns: 1fr !important; }
}

@media (max-width: 720px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 2rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero-intro { font-size: 15px; margin-bottom: 1.25rem; }
  .hero-photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    order: -1;
  }
  .hero-photo {
    width: 120px;
    height: 120px;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 50%;
    float: none;
    margin: 0;
  }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: rgba(250,250,248,.97); border-bottom: 0.5px solid rgba(0,0,0,.08); padding: 1rem 2rem; gap: 1rem; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .site-header { position: relative; }
  .card-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tl-item { grid-template-columns: 1fr; gap: .3rem; }
  .section, .section-light, .section-warm, .section-blue, .section-dark { padding: 2.5rem 0; }
  .section-heading { font-size: 24px; }
  .lead-quote { font-size: 17px; }
  .scope-grid { grid-template-columns: 1fr; }
  .ownership-statements { margin-bottom: 1.25rem; }
  .ownership-item { font-size: 14px; }
  .kpi-num { font-size: 18px; }
  .cta-row { gap: 8px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 30px; }
  .hero-name br { display: none; }
  .hero-sub { font-size: 13px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: .75rem .8rem; }
  .kpi-num { font-size: 17px; }
  .kpi-label { font-size: 11px; }
  .community-grid-3 { grid-template-columns: 1fr; }
  .contact-link { flex-direction: column; align-items: flex-start; gap: 2px; }
  .contact-link-value { text-align: left; }
  .tl-role { font-size: 15px; }
  .process-grid { grid-template-columns: 1fr; }
  .btn { font-size: 13px; padding: 9px 16px; }
}

/* ── Ownership Statements (Hero) ── */
.ownership-statements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.75rem;
}
.ownership-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.5;
}
.ownership-check {
  color: #0f0f0e;
  font-weight: 500;
  flex-shrink: 0;
}

/* ── Scope / Verantwortungsbereich ── */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}
.scope-item {
  padding: 1.4rem 1.6rem;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,.08);
  border-radius: 12px;
  border-top: 3px solid #0f0f0e;
}
.scope-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0f0f0e;
  margin-bottom: .6rem;
  line-height: 1.3;
}
.scope-text {
  font-size: 13.5px;
  color: #555;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .scope-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .scope-grid { grid-template-columns: 1fr; }
}


.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.focus-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 0.5px solid rgba(0,0,0,.07);
}
.focus-item:nth-child(odd) { padding-right: 2rem; }
.focus-item:nth-child(even) { padding-left: 2rem; border-left: 0.5px solid rgba(0,0,0,.07); }
.focus-icon {
  font-size: 14px;
  color: #bbb;
  flex-shrink: 0;
  line-height: 1.55;
}
.focus-text {
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.55;
}

/* ── So arbeite ich ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.process-step {
  padding: 1.5rem 0 0;
  border-top: 2px solid #0f0f0e;
}
.process-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0f0f0e;
  margin-bottom: .6rem;
  line-height: 1.3;
}
.process-text {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-item:nth-child(odd) { padding-right: 0; }
  .focus-item:nth-child(even) { padding-left: 0; border-left: none; }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .cta-row, .site-footer { display: none; }
  .hero-photo-wrap { float: right; width: 180px; margin-left: 1.5rem; }
  body { background: white; color: black; }
  .section-dark { background: #eee; color: black; }
}
