/* =====================================================
   Bewerbung Patrick Spannhoff — Stylesheet
   Modern Redesign (Plus Jakarta Sans & Lato)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Lato:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --petrol:        #0e5e63;
  --petrol-dark:   #083d40;
  --petrol-light:  #f0f7f7;
  --orange:        #e8a13d;
  --orange-light:  #fdf6ec;
  --text:          #222222;
  --muted:         #5a5a5a;
  --white:         #ffffff;
  --bg:            #f8fafc;
  --radius:        4px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, .nav-brand, .section-label, .pillar-title, .card-title, .timeline-role, .doc-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

::selection {
  background: rgba(14, 94, 99, 0.1);
  color: var(--petrol);
}

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
}

/* ── Login ───────────────────────────────────────────── */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem;
}

.login-card {
  background: var(--white);
  width: 100%;
  max-width: 420px;
  padding: 3.5rem;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(14, 94, 99, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 40%, var(--petrol) 40%);
}

.login-header {
  margin-bottom: 2.5rem;
}

.login-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.login-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--petrol);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.login-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.login-input {
  width: 100%;
  border: 1px solid rgba(14, 94, 99, 0.15);
  padding: 1rem 1rem 1rem 3rem;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  background: var(--white);
  outline: none;
  color: var(--text);
  transition: all 0.25s;
  border-radius: var(--radius);
}

.login-input:focus {
  border-color: var(--petrol);
  box-shadow: 0 0 0 4px rgba(14, 94, 99, 0.05);
}

.login-input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.4;
}

.login-button {
  width: 100%;
  background: var(--petrol);
  color: var(--white);
  border: none;
  padding: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
}

.login-button:hover {
  background: var(--petrol-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 94, 99, 0.2);
}

.login-footer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: #ccc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-input.error {
  border-color: #C0392B;
}

.login-submit {
  display: none;
}

/* ── Navigation ──────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.nav::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 40%, var(--petrol) 40%);
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--petrol);
  text-decoration: none;
}

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

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--petrol);
}

.nav-logout {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.nav-logout:hover {
  color: var(--petrol);
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  background: var(--white);
  color: var(--text);
  padding: 8rem 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-photo-wrap {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(14, 94, 99, 0.1);
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(var(--orange) 40%, var(--petrol) 40%);
  opacity: 0.8;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.hero-text {
  min-width: 0;
}

.hero-overline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--petrol);
}

.hero-name em {
  font-style: normal;
  font-weight: 400;
  color: var(--text);
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-quote {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  font-style: italic;
}

.hero-meta {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.hero-meta-link:hover {
  color: var(--petrol);
}

/* ── Sections ────────────────────────────────────────── */

.section {
  padding: 7rem 3rem;
}

.section--cream {
  background: var(--white);
}

.section--white {
  background: var(--white);
}

.section--teal-light,
.section--cream-deep {
  background: var(--petrol-light);
}

.section--teal,
.section--teal-dark {
  background: var(--petrol);
  color: var(--white);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Section Headers ─────────────────────────────────── */

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--petrol);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title--on-teal,
.section--teal .section-title,
.section--teal-dark .section-title {
  color: var(--white);
}

/* ── Über mich ───────────────────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.about-lead-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--petrol);
  line-height: 1.5;
  position: sticky;
  top: calc(80px + 2rem);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 400;
  color: var(--text);
}

/* ── Leitungsverständnis ─────────────────────────────── */

.pillar-lead {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  padding: 1.5rem 2rem;
  margin-bottom: 3.5rem;
  border-radius: var(--radius);
  font-style: italic;
}

.pillars {
  display: grid;
  gap: 2rem;
}

.pillar {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(14, 94, 99, 0.1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(14, 94, 99, 0.08);
}

.pillar-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--petrol);
  margin-bottom: 0.75rem;
}

.pillar-content p {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--muted);
}

/* ── Timeline ────────────────────────────────────────── */

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.timeline-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.timeline-year {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.05em;
  padding-top: 0.25rem;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--petrol);
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.timeline-desc {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text);
}

.timeline-origin-note {
  color: var(--orange);
  font-weight: 700;
}

/* ── Innovation ──────────────────────────────────────── */

.innovation-intro {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--petrol-light);
  border-left: 4px solid var(--petrol);
  padding: 1.5rem 2rem;
  margin-bottom: 3.5rem;
  border-radius: var(--radius);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  background: transparent;
}

.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(14, 94, 99, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(14, 94, 99, 0.08);
  background: var(--white);
}

.card-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--petrol);
  margin-bottom: 1rem;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Warum Lebenshilfe ───────────────────────────────── */

.warum-layout {
  background: var(--petrol-dark);
  padding: 4rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.warum-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--orange);
}

.warum-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

/* ── Dokumente ───────────────────────────────────────── */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(14, 94, 99, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.2s ease;
}

.doc-card:not(.doc-card--placeholder):hover {
  border-color: var(--petrol);
  background: var(--petrol-light);
}

.doc-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--petrol);
}

.doc-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.doc-card-arrow {
  color: var(--orange);
  font-weight: 800;
}

/* ── Kontakt ─────────────────────────────────────────── */

.kontakt-intro {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3rem;
}

.contact-item {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
}

.contact-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--orange);
}

.contact-link, .contact-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
  background: var(--petrol-dark);
  padding: 3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

/* ── Scroll-Reveal ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays */
.pillars .pillar:nth-child(2).reveal { transition-delay: 0.12s; }
.pillars .pillar:nth-child(3).reveal { transition-delay: 0.24s; }

.cards .card:nth-child(2).reveal { transition-delay: 0.1s; }
.cards .card:nth-child(3).reveal { transition-delay: 0.2s; }
.cards .card:nth-child(4).reveal { transition-delay: 0.3s; }

.contact-item:nth-child(2).reveal { transition-delay: 0.1s; }
.contact-item:nth-child(3).reveal { transition-delay: 0.2s; }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 760px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-lead-text {
    position: static;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 1.5rem;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 3.5rem 1.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-photo-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .hero-photo-wrap::after {
    width: 15px;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .timeline-year {
    font-size: 0.7rem;
  }

  .pillar {
    grid-template-columns: 2rem 1fr;
  }

  .footer {
    padding: 1.25rem 1.5rem;
  }
}
