/* Extracted from ________fallbeispiele.html */
/* ===== FALLBEISPIELE OVERVIEW PAGE ===== */

/* Hero */
.fb-hero {
  padding: 160px 40px 100px;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.fb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
  pointer-events: none;
}
.fb-hero__video-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  opacity: 0.20;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}
.fb-hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fb-hero__content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.fb-hero__text {
  /* Text-Spalte links */
}
.fb-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #dbeafe;
  color: #1a1a1a;
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.02em;
}
.fb-hero__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: #111827;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}
.fb-hero__title span {
  color: #66ff7e;
}
.fb-hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 32px;
  max-width: 540px;
  font-family: 'Manrope', sans-serif;
}
.fb-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.fb-hero__counter {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}
.fb-hero__counter-item {
  text-align: left;
}
.fb-hero__counter-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}
.fb-hero__counter-label {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 4px;
  font-family: 'Manrope', sans-serif;
}
.fb-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.fb-hero__trust-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #111;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
}
.fb-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-hero__icon {
  width: 100%;
  max-width: 400px;
}
.fb-hero__icon img {
  width: 100%;
  height: auto;
}

/* ===== CASE STUDY TEASERS ===== */
.fb-cases {
  padding: 80px 40px;
  background: #f8faf9;
}

/* Abwechselnde Sektions-Hintergründe: kariert und plain */
.fb-teaser:nth-of-type(odd) {
  position: relative;
}
.fb-teaser:nth-of-type(odd)::after {
  content: '';
  position: absolute;
  inset: -20px -40px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 20px;
  z-index: 0;
  pointer-events: none;
}
.fb-teaser:nth-of-type(odd) > * {
  position: relative;
  z-index: 1;
}
.fb-teaser:nth-of-type(even) {
  position: relative;
}
.fb-cases__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.fb-cases__header {
  text-align: center;
  margin-bottom: 64px;
}
.fb-cases__header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.fb-cases__header h2 span { color: #66ff7e; }
.fb-cases__header p {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Manrope', sans-serif;
}

/* Single Teaser Row */
.fb-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid #e5e7eb;
}
.fb-teaser:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
/* Reverse layout for even items */
.fb-teaser--reverse .fb-teaser__image-wrap { order: 2; }
.fb-teaser--reverse .fb-teaser__content { order: 1; }

/* Image Side */
.fb-teaser__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
/* Grüne Fläche hinter dem Bild – versetzt sichtbar */
.fb-teaser__image-wrap {
  position: relative;
  padding: 14px 14px 0 0;
}
.fb-teaser__image-wrap::before {
  content: '';
  position: absolute;
  inset: 14px 0 -14px 14px;
  background: #66ff7e;
  border-radius: 16px;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.fb-teaser:hover .fb-teaser__image-wrap::before {
  transform: translate(4px, 4px);
}
/* Reversed: Fläche spiegeln */
.fb-teaser--reverse .fb-teaser__image-wrap {
  padding: 14px 0 0 14px;
}
.fb-teaser--reverse .fb-teaser__image-wrap::before {
  inset: 14px 14px -14px 0;
}
.fb-teaser--reverse:hover .fb-teaser__image-wrap::before {
  transform: translate(-4px, 4px);
}
/* Bild über der Fläche */
.fb-teaser__image-wrap .fb-teaser__image {
  position: relative;
  z-index: 1;
}
.fb-teaser__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fb-teaser:hover .fb-teaser__image img {
  transform: scale(1.03);
}
.fb-teaser__image-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #66ff7e;
  color: #000;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: opacity 0.3s ease;
}
.fb-teaser:hover .fb-teaser__image-badge {
  opacity: 1;
}


/* Hover Overlay – weiße Fläche mit Pfeil */
.fb-teaser__image-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
}
.fb-teaser__image-overlay::before {
  content: '';
  position: absolute;
  bottom: -100%;
  right: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0.96) 100%);
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1), right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50% 0 0 0;
}
.fb-teaser:hover .fb-teaser__image-overlay::before {
  bottom: -50%;
  right: -50%;
}
.fb-teaser__image-overlay-content {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.fb-teaser:hover .fb-teaser__image-overlay-content {
  opacity: 1;
  transform: translateY(0);
}
.fb-teaser__image-overlay-content svg {
  width: 22px;
  height: 22px;
  stroke: #111;
  stroke-width: 2.5;
  fill: none;
}
/* Content Side */
.fb-teaser__content {
  padding: 0 16px;
}
.fb-teaser__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #dbeafe;
  color: #1a1a1a;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: 'Manrope', sans-serif;
}
.fb-teaser__type img {
  width: 16px;
  height: 16px;
}
.fb-teaser__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.fb-teaser__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.fb-teaser__title a:hover { color: #66ff7e; }
.fb-teaser__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 20px;
  font-family: 'Manrope', sans-serif;
}
.fb-teaser__meta {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 20px;
  font-family: 'Manrope', sans-serif;
}
.fb-teaser__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.fb-teaser__meta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* KPI Cards */
.fb-teaser__kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.fb-kpi {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.fb-kpi::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: #66ff7e;
  border-radius: 50%;
  opacity: 0.10;
  pointer-events: none;
}
.fb-kpi__value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}
.fb-kpi__label {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 4px;
  font-family: 'Manrope', sans-serif;
}

/* Read More Link */
.fb-teaser__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid #111827;
  transition: gap 0.3s, color 0.3s;
}
.fb-teaser__link:hover {
  gap: 12px;
  color: #66ff7e;
  border-color: #66ff7e;
}
.fb-teaser__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s;
}
.fb-teaser__link:hover svg {
  transform: translateX(2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .fb-hero {
    padding: 120px 20px 60px;
  }
  .fb-hero__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .fb-hero__visual {
    display: none;
  }
  .fb-hero__video-bg {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    opacity: 0.15;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
  }
  .fb-hero__counter {
    gap: 24px;
    flex-wrap: wrap;
  }
  .fb-cases {
    padding: 60px 20px;
  }
  .fb-teaser {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 48px;
  }
  .fb-teaser--reverse .fb-teaser__image-wrap { order: 0; }
  .fb-teaser--reverse .fb-teaser__content { order: 0; }
  .fb-teaser__image img {
    height: 240px;
  }
  .fb-teaser__content {
    padding: 0;
  }
  .fb-teaser__kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

