/* ===================================================
   commercial-real-estate.css
   Styles exclusively for the Gewerbeimmobilien page.
   Depends on the global CSS variables defined in index.css.
   =================================================== */

/* ===== HERO ===== */
.cre-hero {
  position: relative;
  background: var(--main-color);
  overflow: hidden;
  padding: 80px 0 0;
}

.cre-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cre-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(90, 160, 240, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 90, 200, 0.15) 0%, transparent 40%),
    linear-gradient(135deg, rgba(1, 52, 133, 0) 0%, rgba(0, 20, 60, 0.6) 100%);
}

/* Subtle grid lines */
.cre-hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cre-hero-inner {
  position: relative;
  z-index: 2;
}

.cre-hero-label {
  margin-bottom: 20px;
}

.cre-chip {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(144, 200, 244, 0.2);
  border: 1px solid rgba(144, 200, 244, 0.4);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #90c8f4;
}

.cre-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 720px;
}

.cre-hero-title em {
  font-style: italic;
  color: #90c8f4;
}

.cre-hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.cre-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* KPI Bar */
.cre-kpi-bar {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 8px;
}

.cre-kpi {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cre-kpi:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.cre-kpi-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #ffffff;
  line-height: 1;
}

.cre-kpi-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.cre-kpi-divider {
  display: none;
}


/* ===== SHARED SECTION HELPERS ===== */
.cre-section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.cre-section-tag--light {
  color: rgba(255, 255, 255, 0.6);
}

.cre-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  color: var(--main-color);
  margin-bottom: 14px;
}

.cre-section-title--light {
  color: #ffffff;
}

.cre-intro-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
}

.cre-section-head {
  margin-bottom: 44px;
}

.cre-section-head--light .cre-intro-text {
  color: rgba(255, 255, 255, 0.7);
}


/* ===== BUTTONS ===== */
.cre-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--alt-color);
  color: #fff;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(201, 35, 35, 0.3);
  text-decoration: none;
}

.cre-btn-primary:hover {
  background: #a81c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 35, 35, 0.4);
}

.cre-btn-primary--large {
  padding: 16px 32px;
  font-size: 16px;
}

.cre-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.cre-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cre-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--main-color);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid var(--main-color);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.cre-btn-outline:hover {
  background: var(--main-color);
  color: #fff;
}


/* ===== WHY SECTION ===== */
.cre-why {
  padding: 80px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.cre-why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.cre-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}

.cre-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.55;
}

.cre-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent-light);
  border-radius: 50%;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

/* Bar chart */
.cre-why-chart {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 20px;
}

.cre-chart-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 20px;
}

.cre-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cre-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cre-bar-label {
  font-size: 13px;
  color: var(--text-light);
  width: 140px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cre-bar-track {
  flex: 1;
  background: rgba(1, 52, 133, 0.08);
  border-radius: 6px;
  height: 28px;
  overflow: hidden;
}

.cre-bar {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--main-color), #3178c6);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left;
}

.cre-bar.animate-in {
  animation: barGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes barGrow {
  from { width: 0; }
  to { width: var(--w); }
}

.cre-chart-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 14px;
  opacity: 0.7;
}


/* ===== SEGMENTS ===== */
.cre-segments {
  padding: 80px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.cre-seg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Last item (7th) centered if odd */
.cre-seg-grid > article:last-child:nth-child(3n+1) {
  grid-column: 2 / 3;
}

.cre-seg-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.cre-seg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cre-seg-card--büro::before    { background: #013485; }
.cre-seg-card--gastro::before  { background: #c92323; }
.cre-seg-card--logistik::before{ background: #1558a8; }
.cre-seg-card--rendite::before { background: #2a7fd4; }
.cre-seg-card--park::before    { background: #3a9e6e; }
.cre-seg-card--freizeit::before{ background: #e07b1a; }
.cre-seg-card--land::before    { background: #6a8c3a; }

.cre-seg-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cre-seg-icon-wrap {
  margin-bottom: 16px;
}

.cre-seg-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid var(--border);
}

.cre-seg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cre-seg-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.cre-seg-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.cre-seg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.cre-seg-tags li {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-light);
  white-space: nowrap;
}

.cre-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--main-color);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  align-self: flex-start;
}

.cre-seg-btn:hover {
  background: #1558a8;
  transform: translateX(2px);
}

/* Stat pill – top-right of card */
.cre-seg-stat {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 130px;
}

.cre-seg-stat-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--main-color);
  line-height: 1.2;
}

.cre-seg-stat-lbl {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.2;
}


/* ===== FOR WHOM ===== */
.cre-for-whom {
  padding: 80px 0;
  background: var(--main-color);
}

.cre-forwho-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cre-fw-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s;
}

.cre-fw-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(144, 200, 244, 0.4);
  transform: translateY(-3px);
}

.cre-fw-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.cre-fw-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cre-fw-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}


/* ===== STATS / VISUALIZATION ===== */
.cre-stats {
  padding: 80px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.cre-stats-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.cre-stats-numbers {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cre-stat-big {
  padding: 22px 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--main-color);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cre-stat-big-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--main-color);
  line-height: 1;
}

.cre-stat-big-label {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.4;
}

/* Donut chart */
.cre-stats-visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cre-donut-wrap {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.cre-donut {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.cre-donut text {
  transform: rotate(90deg);
  transform-origin: center;
}

.cre-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cre-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.cre-legend-item span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cre-advantage-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cre-adv-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.cre-adv-item:hover {
  border-color: var(--accent-color);
}

.cre-adv-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cre-adv-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 3px;
}

.cre-adv-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}


/* ===== PROCESS ===== */
.cre-process {
  padding: 80px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.cre-process-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
}

.cre-step {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s;
}

.cre-step:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.cre-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 1.4rem;
  color: var(--border);
  flex-shrink: 0;
  margin-top: 28px; /* visual centering with card */
}

.cre-step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--border);
  line-height: 1;
}

.cre-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-color);
  line-height: 1.3;
}

.cre-step-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}


/* ===== CTA BANNER ===== */
.cre-cta-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, #011f55 0%, #013485 60%, #1558a8 100%);
  position: relative;
  overflow: hidden;
}

.cre-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 50%, rgba(90, 160, 240, 0.12) 0%, transparent 50%);
}

.cre-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cre-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.cre-cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  max-width: 560px;
}

.cre-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cre-cta-banner .cre-btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cre-cta-banner .cre-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}


/* ===== CONTACT ===== */
.cre-contact {
  padding: 80px 0;
  background: var(--bg-light);
}

.cre-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.cre-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.cre-contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cre-cd-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cre-cd-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 2px;
}

.cre-cd-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--main-color);
}

/* Form */
.cre-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.cre-form-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 24px;
}

.cre-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cre-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.cre-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.cre-form-input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color 0.2s;
  width: 100%;
}

.cre-form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(30, 111, 201, 0.08);
}

textarea.cre-form-input {
  resize: vertical;
  min-height: 110px;
}

.cre-form-select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text-light);
  background: var(--bg-white);
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s;
}

.cre-form-select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.cre-form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}


/* ===== FADE-IN ANIMATION ===== */
.cre-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.cre-fade:nth-child(2) { transition-delay: 0.08s; }
.cre-fade:nth-child(3) { transition-delay: 0.16s; }
.cre-fade:nth-child(4) { transition-delay: 0.24s; }
.cre-fade:nth-child(5) { transition-delay: 0.32s; }
.cre-fade:nth-child(6) { transition-delay: 0.40s; }
.cre-fade:nth-child(7) { transition-delay: 0.48s; }


/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .cre-seg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cre-seg-grid > article:last-child:nth-child(3n+1) {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .cre-why-layout,
  .cre-stats-layout,
  .cre-contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cre-forwho-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cre-process-steps {
    flex-direction: column;
    gap: 16px;
  }

  .cre-step-arrow {
    transform: rotate(90deg);
    margin-top: 0;
    padding: 0;
    height: 24px;
  }

  .cre-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cre-kpi-bar {
    flex-wrap: wrap;
  }

  .cre-kpi {
    min-width: 50%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .cre-kpi:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.1);
  }

  .cre-kpi:nth-child(even) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .cre-seg-grid,
  .cre-forwho-grid {
    grid-template-columns: 1fr;
  }

  .cre-form-row {
    grid-template-columns: 1fr;
  }

  .cre-hero-title {
    font-size: 1.9rem;
  }

  .cre-donut-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .cre-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cre-bar-label {
    width: 110px;
    font-size: 12px;
  }
}