/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #6BBFB5;
  --teal-bg:     rgba(107, 191, 181, 0.20);
  --teal-border: rgba(107, 191, 181, 0.55);
  --dark:        #0D1216;
  --navy:        #4A6C87;
  --text:        #0D1216;
  --text-mid:    #555555;
  --bg-light:    #F6F6F6;
  --white:       #FFFFFF;
  --border:      #DEDEDE;
  --max-w:       1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Italic accent – same font, just italic bold, with teal underline via background */
.italic-accent {
  font-style: italic;
  font-weight: 800;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: left bottom;
}

/* ===== HEADER ===== */
header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  justify-content: center;
}
header img.logo {
  height: auto;
  max-height: 30px;
  width: auto;
  max-width: 210px;
  filter: brightness(0) invert(1);
}

/* ===== 1. HERO (VIDEO) ===== */
.hero {
  position: relative;
  height: 72vh;
  min-height: 520px;
  max-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(10,20,40,0.38) 0%,
    rgba(10,20,40,0.22) 40%,
    rgba(10,20,40,0.05) 70%,
    rgba(10,20,40,0.00) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
.hero-badge {
  display: inline-block;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 4px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  max-width: 680px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero p.sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  line-height: 1.75;
}

/* ===== 2. LOGO LEISTE ===== */
.logos {
  background: var(--white);
  padding: 44px 48px;
  border-bottom: 1px solid #ECECEC;
}
.logos-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}
.logo-item img {
  height: auto;
  max-height: 38px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
}
.logo-item img[alt="evoila"] {
  max-height: 30px;
  max-width: 120px;
}
.logo-item img[alt="IB.SH Ihre Förderbank"] {
  max-height: 44px;
  max-width: 110px;
}
.logo-ibsh {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.logo-ibsh-main {
  font-size: 1.1rem;
  font-weight: 900;
  color: #4A6C87;
  letter-spacing: -0.02em;
}
.logo-ibsh-sub {
  font-size: 0.58rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.01em;
}

/* ===== 3. PERFECT MATCH ===== */
.match {
  background: var(--bg-light);
  padding: 100px 48px;
}
.match-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.match-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.match-text p {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.78;
  margin-bottom: 28px;
}
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.check-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.match-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.13);
}
.match-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* ===== 4. STATS ===== */
.stats {
  position: relative;
  padding: 80px 48px;
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.stats-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(20,45,80,0.60) 0%,
    rgba(30,55,95,0.55) 100%);
}
.stats-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: 14px;
  padding: 40px 28px;
  text-align: center;
}
.stat-number {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ===== 5 & 8. LEISTUNGEN (Unternehmen & Kandidaten) ===== */
.leistungen {
  padding: 100px 48px;
}
.leistungen.bg-white { background: var(--white); }
.leistungen.bg-light { background: var(--bg-light); }

.leistungen-header {
  max-width: var(--max-w);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  align-items: start;
}
.section-icon {
  width: 140px;
  height: 140px;
  background: #EEF5F4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title p {
  color: var(--text-mid);
  line-height: 1.76;
  font-size: 0.96rem;
}
.services-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.services-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.service-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.service-item:nth-child(odd)  { padding-right: 56px; }
.service-item:nth-child(even) { padding-left: 56px; }
.service-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.service-item p {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.services-grid .service-item:last-child,
.services-grid .service-item:nth-last-child(2) {
  border-bottom: none;
}
.services-grid .service-item:empty {
  border: none !important;
  padding: 0 !important;
}
.section-cta {
  max-width: var(--max-w);
  margin: 44px auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.section-cta p {
  font-size: 0.93rem;
  color: var(--text-mid);
}
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn:hover { background: #3a5870; transform: translateY(-1px); }

/* ===== 6. PROBLEM / LÖSUNG ===== */
.problem {
  background: var(--bg-light);
  padding: 100px 48px;
}
.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.problem h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.prob-table {
  width: 100%;
  border-collapse: collapse;
}
.prob-table thead th {
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
}
.prob-table thead th:first-child { width: 44%; }
.prob-table thead th.col-arrow  { width: 52px; }
.prob-table thead th:last-child  { padding-left: 20px; }
.prob-table tbody td {
  vertical-align: top;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--text-mid);
}
.prob-table tbody td.col-arrow {
  text-align: center;
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: 28px;
}
.prob-table tbody td:last-child {
  padding-left: 20px;
  color: var(--text);
  font-weight: 500;
}
.prob-table tbody tr:last-child td { border-bottom: none; }

/* ===== 7. TESTIMONIALS ===== */
.testimonials {
  position: relative;
  padding: 96px 48px;
  overflow: hidden;
}
.test-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.test-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(20,45,80,0.63) 0%,
    rgba(30,55,95,0.58) 100%);
}
.test-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.test-placeholder {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.test-placeholder-quote {
  font-size: 5rem;
  line-height: 0.75;
  color: var(--teal);
  font-weight: 800;
  margin-bottom: 32px;
  display: block;
}
.test-placeholder-slogan {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 28px;
}
.test-placeholder-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}
.test-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}
.test-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.test-dash {
  width: 22px;
  height: 2px;
  background: var(--navy);
  flex-shrink: 0;
}
.test-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  max-width: 120px;
}
.test-logo[alt="evoila"] {
  height: 20px;
  max-width: 80px;
}
.test-logo[alt="CITTI"] {
  height: 42px;
  max-width: 70px;
}
.test-logo-text {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111;
}
.test-card blockquote {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.72;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 20px;
}
.test-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid #ECECEC;
  padding-top: 14px;
}

/* ===== 9. TEAM ===== */
.team {
  background: var(--bg-light);
  padding: 100px 48px;
}
.team-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
.team-photos {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 16px;
}
.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.team-avatar.fabian img {
  object-position: 5% 22%;
}
.team-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.team-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.team-text p {
  font-size: 0.96rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 18px;
}
.team-text p:last-child { margin-bottom: 0; }
.team-text strong { color: var(--text); font-weight: 700; }

/* ===== FOOTER ===== */
footer {
  background: #0F2341;
  padding: 28px 48px;
  text-align: center;
}
footer img.footer-logo {
  height: auto;
  max-height: 24px;
  width: auto;
  max-width: 180px;
  margin: 0 auto 24px;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.50);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ===== RESPONSIVE – TABLET (≤960px) ===== */
@media (max-width: 960px) {
  header { padding: 20px 24px; }

  .hero-content { padding: 0 24px; }
  .hero h1 span { white-space: normal !important; }
  .hero p.sub   { max-width: 100%; }
  .hero-badge   { font-size: 0.9rem; }
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(10,20,40,0.52) 0%,
      rgba(10,20,40,0.28) 65%,
      rgba(10,20,40,0.08) 100%);
  }

  .logos        { padding: 32px 24px; }
  .logos-inner  { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .logo-item    { height: 36px; }
  .logo-item img { max-height: 32px; max-width: 130px; }
  .logo-item img[alt="evoila"] { max-height: 26px; max-width: 110px; }
  .logo-item img[alt="IB.SH Ihre Förderbank"] { max-height: 36px; max-width: 100px; }

  .match        { padding: 72px 24px; }
  .match-inner  { display: flex; flex-direction: column; gap: 0; }
  .match-text   { display: contents; }
  .match-image    { order: 1; width: 100%; margin-bottom: 28px; border-radius: 12px; overflow: hidden; }
  .match-text h2  { order: 2; margin-bottom: 20px; }
  .match-body     { order: 3; }
  .match-image img { height: 240px; object-position: center 20%; }

  .stats        { padding: 64px 24px; }
  .stats-inner  { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-card    { padding: 32px 24px; }

  .leistungen   { padding: 72px 24px; }
  .leistungen-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .section-icon { width: 72px; height: 72px; }
  .services-grid         { grid-template-columns: 1fr; }
  .services-grid::before { display: none; }
  .service-item:nth-child(odd)  { padding-right: 0; }
  .service-item:nth-child(even) { padding-left: 0; }
  .services-grid .service-item  { border-bottom: 1px solid var(--border); }
  .services-grid .service-item:last-child,
  .services-grid .service-item:nth-last-child(2) { border-bottom: none; }
  .section-cta  { flex-direction: column; align-items: center; gap: 14px; }
  .section-cta p { text-align: center; }

  .problem      { padding: 72px 24px; }
  .prob-table,
  .prob-table thead,
  .prob-table tbody,
  .prob-table tr,
  .prob-table th,
  .prob-table td { display: block; }
  .prob-table thead { display: none; }
  .prob-table tbody tr {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  }
  .prob-table tbody td           { border-bottom: none; padding: 14px 18px; }
  .prob-table tbody td.col-arrow { display: none; }
  .prob-table tbody td:first-child {
    background: #EAEAEA;
    font-size: 0.87rem;
  }
  .prob-table tbody td:first-child::before {
    content: "Situation";
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    margin-bottom: 5px;
  }
  .prob-table tbody td:last-child {
    padding-left: 18px;
    color: var(--text);
  }
  .prob-table tbody td:last-child::before {
    content: "mit connecting dots";
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--teal);
    margin-bottom: 5px;
  }
  .prob-table tbody tr:last-child td { border-bottom: none; }

  .testimonials { padding: 64px 24px; }
  .test-inner   { grid-template-columns: 1fr; gap: 16px; }

  .team         { padding: 72px 24px; }
  .team-inner   { display: flex; flex-direction: column; gap: 0; }
  .team-text    { display: contents; }
  .team-text h2   { order: 1; margin-bottom: 28px; }
  .team-photos    { order: 2; margin-bottom: 32px;
                    flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .team-body      { order: 3; }
  .team-member  { flex-direction: column; text-align: center; }
  .team-avatar  { width: 80px; height: 80px; }

  footer        { padding: 24px 24px; }
  .footer-links { gap: 24px; }
}

/* ===== RESPONSIVE – SMARTPHONE (≤480px) ===== */
@media (max-width: 480px) {
  .hero         { height: 85vh; min-height: 460px; max-height: none; }
  .hero h1      { font-size: 2.25rem; line-height: 1.15; }
  .hero h1 span { white-space: normal !important; }
  .hero-badge   { font-size: 0.78rem; padding: 5px 10px; letter-spacing: 0.03em; }

  .logos-inner  { gap: 12px 16px; }
  .logo-item    { flex: 0 0 30%; height: 32px; display: flex; align-items: center; justify-content: center; }
  .logo-item img                              { max-height: 26px; max-width: 100px; }
  .logo-item img[alt="evoila"]                { max-height: 22px; max-width: 85px; }
  .logo-item img[alt="IB.SH Ihre Förderbank"] { max-height: 30px; max-width: 80px; }

  .match-image    { width: 100%; border-radius: 12px; }
  .match-image img { height: 210px; object-position: center 20%; }

  .stats-inner  { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
  .stat-number  { font-size: 2.8rem; }

  .team-text h2 { font-size: 1.6rem; }

  footer        { padding: 20px 20px; }
  .footer-links { flex-direction: column; gap: 12px; align-items: center; }
}
