/* ============================================
   REGION PAGES STYLES
   ============================================ */

/* Region Hero Section */
.region-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-20));
  padding-bottom: var(--space-24);
  background: linear-gradient(135deg, var(--color-neutral-50) 0%, white 100%);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Background Image Support */
.region-hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark Overlay für bessere Lesbarkeit bei Hintergrundbild */
.region-hero[style*="background-image"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* Decorative Background Element */
.region-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: linear-gradient(135deg, var(--color-primary-subtle) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.6;
}

/* Wenn Hintergrundbild, verstecke das Decorative Element */
.region-hero[style*="background-image"]::before {
  display: none;
}

.region-hero__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .region-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.region-hero__content {
  max-width: 600px;
}

/* Weiße Textfarbe bei Hintergrundbild */
.region-hero[style*="background-image"] .region-hero__content * {
  color: white !important;
}

.region-hero__label {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.region-hero__title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  margin-bottom: var(--space-6);
  line-height: 1.1;
  font-weight: 800;
}

.region-hero__text {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* Hero Stats */
.region-hero__stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.region-hero[style*="background-image"] .region-hero__stats {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.region-hero__stat {
  text-align: center;
  min-width: 100px;
}

.region-hero__stat-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.region-hero[style*="background-image"] .region-hero__stat-value {
  color: white;
}

.region-hero__stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.region-hero[style*="background-image"] .region-hero__stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Map Placeholder - ICON ZENTRIERT */
.region-hero__map {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  background: linear-gradient(135deg, var(--color-neutral-100) 0%, var(--color-neutral-200) 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-neutral-300);
}

.map-placeholder {
  text-align: center;
  color: var(--text-secondary);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-placeholder__icon {
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder__icon [data-lucide] {
  width: 80px;
  height: 80px;
  stroke-width: 1.5;
}

.map-placeholder p {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service Link Cards */
.service-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-200);
  text-decoration: none;
  transition: all var(--transition-base);
}

.service-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.service-link__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.service-link:hover .service-link__icon {
  background: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

.service-link__icon [data-lucide] {
  width: 28px;
  height: 28px;
}

.service-link__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.service-link__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Districts Section */
.districts-section {
  background: var(--color-neutral-50);
  padding: var(--space-20) 0;
}

.districts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.district-tag {
  padding: var(--space-3) var(--space-5);
  background: var(--surface-card);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-200);
  transition: all var(--transition-base);
  cursor: default;
}

.district-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

/* CTA Banner - NUR FARBLICH ANGEPASST */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.cta-banner * {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.cta-banner__text {
  font-size: var(--text-lg);
  opacity: 0.95;
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-inline: auto;
  color: white;  /* ← Hinzufügen */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .region-hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-16);
  }

  .region-hero__stats {
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .cta-banner {
    padding: var(--space-10);
  }
}