/* ===========================
   VERTRÄGE - MODERNES DESIGN
   Angepasst an das bestehende Design-System
   Mobile-optimiert, Hochformat-Poster
   =========================== */

/* HERO */
.vertraege-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  padding: 220px 24px 60px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.vertraege-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,102,255,0.03) 0%, rgba(0,102,255,0.08) 100%);
  border-radius: 0 0 0 100px;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,102,255,0.1);
  padding: 10px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #0066FF;
}

.hero-badge img {
  width: 32px;
  height: auto;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #0066FF;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.title-highlight {
  color: #0066FF;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.trust-item svg {
  color: #0066FF;
  flex-shrink: 0;
}

/* POSTER GALLERY */
.poster-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 650px;
  margin: 0 auto;
}

.poster-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.poster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.poster-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 210 / 297;
  background: #f5f5f5;
}

.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.poster-card:hover .poster-wrapper img {
  transform: scale(1.05);
}

.poster-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  font-size: 16px;
}

/* BENTO FEATURES */
.bento-section {
  padding: 80px 24px;
  background: #fff;
}

.section-header {
  text-align: left;
  max-width: 100%;
  margin: 0 0 48px 0;
}

.section-label {
  display: inline-block;
  background: #0066FF;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #0066FF;
  border-radius: 2px;
}

.section-description {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  max-width: 700px;
  text-align: left;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  background: #f8f9fa;
  padding: 32px 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.bento-card:hover {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.bento-card.bento-large {
  grid-column: span 1;
}

.bento-card.bento-accent {
  background: linear-gradient(135deg, rgba(0,102,255,0.05) 0%, rgba(0,102,255,0.1) 100%);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,102,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  color: #0066FF;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* SHOWCASE ANGEBOTE */
.showcase-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.showcase-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: translateY(-8px);
}

.card-visual {
  position: relative;
  display: block;
  aspect-ratio: 210 / 297;
  background: #f5f5f5;
  overflow: hidden;
}

.visual-wrapper {
  width: 100%;
  height: 100%;
}

.visual-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-card:hover .visual-wrapper img {
  transform: scale(1.08);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-card:hover .visual-overlay {
  opacity: 1;
}

.overlay-cta {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.card-content {
  padding: 32px 24px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.card-description {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1a1a1a;
}

.feature svg {
  color: #0066FF;
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* PROCESS */
.process-section {
  padding: 80px 24px;
  background: #fff;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 48px;
  align-items: start;
}

.timeline-item {
  text-align: center;
}

.item-number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0066FF 0%, #0047B3 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(0,102,255,0.3);
}

.timeline-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.timeline-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.timeline-connector {
  display: none;
}

.process-cta {
  text-align: center;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #0066FF 0%, #0047B3 100%);
  color: #fff;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,102,255,0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab.fab-visible {
  opacity: 1;
  transform: translateY(0);
}

.fab:hover {
  box-shadow: 0 12px 40px rgba(0,102,255,0.5);
  transform: translateY(-4px);
}

.fab-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fab-logo {
  width: 32px;
  height: auto;
}

.fab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.2;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #0066FF 0%, #0047B3 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,102,255,0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0,102,255,0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #0066FF;
  border: 2px solid #0066FF;
}

.btn-secondary:hover {
  background: rgba(0,102,255,0.1);
}

.btn-ghost {
  background: transparent;
  color: #666;
  border: 2px solid #e0e0e0;
}

.btn-ghost:hover {
  border-color: #0066FF;
  color: #0066FF;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 14px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-indicator svg {
  opacity: 0.6;
}

/* MOBILE */
@media (max-width: 768px) {
  .vertraege-hero {
    padding: 60px 0 40px;
  }

  .vertraege-hero::before {
    width: 100%;
    border-radius: 0 0 0 50px;
  }

  .hero-container {
    padding: 0 20px;
  }

  .hero-content {
    margin-bottom: 32px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .poster-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bento-section,
  .showcase-section,
  .process-section {
    padding: 60px 20px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .bento-grid,
  .showcase-grid,
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
  }

  .fab {
    bottom: 16px;
    right: 16px;
    padding: 12px 20px;
  }

  .fab-text {
    font-size: 12px;
  }

  .scroll-indicator {
    display: none;
  }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
  .poster-gallery,
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* DESKTOP LARGE - Laptops (kompakte Version) */
@media (min-width: 1200px) and (max-width: 1599px) {
  .hero-container {
    display: grid;
    grid-template-columns: 1fr 650px;
    gap: 50px;
    align-items: center;
  }

  .hero-content {
    margin-bottom: 0;
  }

  .poster-gallery {
    margin: 0;
    max-width: 650px;
  }

  .process-timeline {
    grid-template-columns: repeat(5, 1fr);
  }

  .timeline-connector {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0066FF 0%, transparent 100%);
    margin-top: 32px;
  }
}

/* EXTRA LARGE DESKTOP - Monitore (großzügige Original-Version) */
@media (min-width: 1600px) {
  .vertraege-hero {
    padding: 100px 24px 60px !important;
    min-height: auto;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1fr 800px;
    gap: 60px;
    align-items: center;
  }

  .hero-content {
    margin-bottom: 0;
  }

  .hero-badge {
    padding: 12px 20px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(36px, 8vw, 56px);
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
  }

  .hero-cta {
    gap: 16px;
    margin-bottom: 32px;
  }

  .hero-trust {
    gap: 24px;
    padding-top: 24px;
  }

  .poster-gallery {
    max-width: 800px;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .process-timeline {
    grid-template-columns: repeat(5, 1fr);
  }

  .timeline-connector {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0066FF 0%, transparent 100%);
    margin-top: 32px;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid #0066FF;
  outline-offset: 2px;
}
