/* ---------------------------------------------
   Ressourcenplaner – Landing Page Styles
--------------------------------------------- */

:root{
  --navy: #0F1E34;
  --navy-2: #16273F;
  --blue: #0475FD;
  --blue-dark: #0360D6;
  --green: #11BD81;
  --purple: #7861FC;
  --orange: #FF8A5B;

  --text: #16233A;
  --text-muted: #5B6B84;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --border: #E7ECF5;

  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
}

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

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

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3{
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 700;
}

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

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

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

ul{ margin: 0; padding: 0; list-style: none; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link{
  position: absolute;
  left: 12px; top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus{ top: 12px; }

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

::selection{
  background: rgba(4,117,253,.18);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover{ background: var(--blue-dark); }

.btn-ghost{
  background: transparent;
  border-color: #D7DEEA;
  color: var(--navy);
}
.btn-ghost:hover{ background: var(--bg-soft); }

.btn-on-dark{
  background: #fff;
  color: var(--navy);
}
.btn-on-dark:hover{ background: #E9EEF7; }

.btn-lg{
  padding: 14px 26px;
  font-size: 1rem;
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark{ border-radius: 8px; }
.brand-name{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.primary-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a:not(.btn){
  font-weight: 500;
  color: var(--text);
  font-size: .95rem;
}
.primary-nav a:not(.btn):hover{ color: var(--blue); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity: 0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}
.hero-copy h1{
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  letter-spacing: -.01em;
}
.hero-lead{
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual{
  transform: rotate(-1.4deg);
}
.hero-svg{
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 46px rgba(15,30,52,.14));
}

.dot-in, .bar-in{ opacity: 0; transform-origin: left center; }
.dot-in{ transform: scale(.5); transform-origin: center; }
.bar-in{ transform: scaleX(.4); }

@keyframes popIn{ to{ opacity: 1; transform: scale(1); } }
@keyframes growIn{ to{ opacity: 1; transform: scaleX(1); } }

.dot-in{ animation: popIn .5s ease forwards; }
.bar-in{ animation: growIn .6s cubic-bezier(.2,.7,.3,1) forwards; }
.dot-in:nth-of-type(1){ animation-delay: .05s; }
.dot-in:nth-of-type(2){ animation-delay: .15s; }
.dot-in:nth-of-type(3){ animation-delay: .25s; }
.bar-in{ animation-delay: .3s; }
.bar-d1{ animation-delay: .38s; }
.bar-d2{ animation-delay: .46s; }
.bar-d3{ animation-delay: .54s; }
.bar-d4{ animation-delay: .62s; }
.bar-d5{ animation-delay: .7s; }

/* ---------- Section intro ---------- */
.section-intro{
  padding: 8px 0 8px;
}
.eyebrow{
  color: var(--blue);
  font-weight: 600;
  font-size: .95rem;
  margin: 0 0 .4em;
}
.section-intro h2{
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 34ch;
}

/* ---------- Features ---------- */
.feature{
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.feature-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.feature--reverse .feature-inner > .feature-copy{ order: 2; }
.feature--reverse .feature-inner > .feature-visual{ order: 1; }

.feature-icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon--blue{ background: rgba(4,117,253,.09); color: var(--blue); }
.feature-icon--green{ background: rgba(17,189,129,.1); color: var(--green); }
.feature-icon--purple{ background: rgba(120,97,252,.1); color: var(--purple); }

.feature-copy h3{
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}
.feature-copy p{
  color: var(--text-muted);
  max-width: 48ch;
}
.feature-list{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li{
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: .96rem;
}
.feature-list li::before{
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 4.3-4.3L11.8 6z'/%3E%3C/svg%3E") center/10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 4.3-4.3L11.8 6z'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Shared card shell for the generated product visuals */
.demand-card,
.schedule-card,
.jira-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 24px 48px rgba(15,30,52,.08);
}

/* ---------- Demand / skills card (feature 1) ---------- */
.demand-item + .demand-item{
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.demand-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.demand-head h4{
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy);
  margin: 0;
}
.demand-tag{
  flex: 0 0 auto;
  font-size: .74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.demand-tag--blue{ background: rgba(4,117,253,.1); color: var(--blue-dark); }
.demand-tag--green{ background: rgba(17,189,129,.12); color: #0C9A69; }
.demand-tag--purple{ background: rgba(120,97,252,.12); color: #6247E0; }

.demand-bar{
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 14px;
}
.demand-fill{ height: 100%; border-radius: 999px; }

.demand-stats{
  display: flex;
  gap: 24px;
}
.demand-stats div{ display: flex; flex-direction: column; gap: 2px; }
.demand-stats strong{
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy);
}
.demand-stats span{
  font-size: .78rem;
  color: var(--text-muted);
}

/* ---------- Schedule card (feature 2) ---------- */
.schedule-grid{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.schedule-row{
  display: grid;
  grid-template-columns: 128px repeat(5, 1fr);
  gap: 8px;
  align-items: center;
}
.schedule-row--head span{
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.schedule-team{
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-cell{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
}
.day-cell.cell-free{
  background: #E7F8F0;
  color: #0C9A69;
  border: 1px solid #BFE9D5;
}
.day-cell.cell-over{
  background: #FFE3DA;
  color: #C2410C;
}
.schedule-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.schedule-legend span{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: var(--text-muted);
}
.schedule-legend i{
  width: 10px; height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ---------- Jira card (feature 3) ---------- */
.jira-item{
  display: flex;
  align-items: center;
  gap: 14px;
}
.jira-item + .jira-item{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.jira-icon{
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jira-icon--story{ background: var(--green); }
.jira-icon--bug{ background: #E5484D; }
.jira-icon--epic{ background: var(--purple); }
.jira-text{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.jira-key{
  font-size: .74rem;
  color: var(--text-muted);
  font-weight: 600;
}
.jira-title{
  font-size: .92rem;
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-pill{
  flex: 0 0 auto;
  font-size: .74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.status-pill--done{ background: rgba(17,189,129,.12); color: #0C9A69; }
.status-pill--active{ background: rgba(4,117,253,.1); color: var(--blue-dark); }
.status-pill--open{ background: var(--bg-soft); color: var(--text-muted); }

/* ---------- Reporting card (custom, no screenshot) ---------- */
.report-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 48px rgba(15,30,52,.08);
}
.report-row{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.report-label{
  flex: 0 0 150px;
  font-size: .88rem;
  color: var(--text-muted);
}
.report-track{
  position: relative;
  flex: 1;
  height: 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.report-fill{
  height: 100%;
  border-radius: 999px;
}
.report-row.is-over .report-track::after{
  content: '';
  position: absolute;
  top: 50%; right: -2px;
  width: 10px; height: 10px;
  background: #FF5A3C;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translateY(-50%);
}
.report-pct{
  flex: 0 0 42px;
  text-align: right;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
}
.report-foot{
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
}
.report-foot div{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-foot strong{
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
}
.report-foot span{
  font-size: .82rem;
  color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps{
  background: var(--bg-soft);
  padding: 88px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps h2{
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 30ch;
  margin-bottom: 48px;
}
.steps-grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.steps-grid::before{
  content: '';
  position: absolute;
  top: 20px;
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step{
  position: relative;
  z-index: 1;
}
.step-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3{ font-size: 1.15rem; margin-bottom: 8px; }
.step p{ color: var(--text-muted); font-size: .95rem; max-width: 32ch; }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 96px 0;
}
.cta-inner{
  text-align: center;
  max-width: 620px;
}
.cta-inner h2{
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}
.cta-inner p{
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.cta-note{
  margin-top: 18px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Footer ---------- */
.site-footer{
  padding: 40px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav{
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a{
  font-size: .9rem;
  color: var(--text-muted);
}
.footer-nav a:hover{ color: var(--blue); }
.footer-copy{
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero-inner{
    grid-template-columns: 1fr;
  }
  .hero-visual{
    order: -1;
    max-width: 460px;
    margin: 0 auto;
    transform: rotate(0deg);
  }
  .feature-inner{
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature--reverse .feature-inner > .feature-copy,
  .feature--reverse .feature-inner > .feature-visual{
    order: initial;
  }
  .feature-visual{ order: -1; }
  .steps-grid{
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-grid::before{ display: none; }
}

@media (max-width: 760px){
  .primary-nav{
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    gap: 16px;
  }
  .primary-nav.is-open{ display: flex; }
  .primary-nav a:not(.btn){ padding: 6px 0; }
  .nav-cta{ align-self: flex-start; }
  .nav-toggle{ display: flex; }

  .hero{ padding: 48px 0 64px; }
  .feature{ padding: 48px 0; }
  .steps{ padding: 64px 0; }
  .cta-band{ padding: 64px 0; }

  .report-label{ flex-basis: 96px; font-size: .8rem; }

  .demand-card, .schedule-card, .jira-card{ padding: 22px; }
  .demand-stats{ gap: 16px; }

  .schedule-row{
    grid-template-columns: 78px repeat(5, 1fr);
    gap: 5px;
  }
  .schedule-team{ font-size: .72rem; }
  .day-cell{ height: 30px; font-size: .68rem; border-radius: 6px; }
  .schedule-row--head span{ font-size: .68rem; }
  .schedule-legend{ gap: 12px 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .dot-in, .bar-in{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .btn, .nav-toggle span{ transition: none; }
}
