/* =============================================================================
   HAWA Portal-Cross-Promo — Banner auf /mein-konto/ vor und nach Login
   Stand: 2026-05-18
   ============================================================================= */

.hawa-portal-promo {
  --pp-green: #049B4E;
  --pp-green-dark: #037A3E;
  --pp-black: #1a1a1a;
  --pp-text-light: rgba(255,255,255,0.88);
  --pp-text-muted: rgba(255,255,255,0.6);

  position: relative;
  display: grid;
  gap: 28px;
  margin: 0 0 28px 0;
  padding: 28px 32px;
  background: var(--pp-black);
  background-image:
    radial-gradient(circle at 90% 10%, rgba(4,155,78,0.18), transparent 55%),
    radial-gradient(circle at 5% 90%, rgba(4,155,78,0.10), transparent 50%);
  color: #fff;
  border-radius: 6px;
  border-left: 4px solid var(--pp-green);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  overflow: hidden;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* dezenter Glanz oben rechts */
.hawa-portal-promo::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(4,155,78,0.25), transparent 65%);
  pointer-events: none;
}

/* -----------------------------------------------------------------------------
   Hero-Variante (Dashboard, nach Login) — 2-Spalter mit Visual
----------------------------------------------------------------------------- */
.hawa-portal-promo--hero {
  grid-template-columns: 1fr;
  padding: 36px 36px;
}

@media (min-width: 820px) {
  .hawa-portal-promo--hero {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    padding: 40px 44px;
  }
}

/* -----------------------------------------------------------------------------
   Compact-Variante (Login-Page, vor Login) — Single-Row
----------------------------------------------------------------------------- */
.hawa-portal-promo--compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
}
@media (min-width: 720px) {
  .hawa-portal-promo--compact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

/* -----------------------------------------------------------------------------
   Inhalts-Blocks
----------------------------------------------------------------------------- */
.hawa-portal-promo__body { position: relative; z-index: 1; }

.hawa-portal-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--pp-green);
  color: #000 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hawa-portal-promo__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #000;
  border-radius: 50%;
  display: inline-block;
}

.hawa-portal-promo__title {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hawa-portal-promo--compact .hawa-portal-promo__title {
  font-size: clamp(17px, 1.8vw, 22px);
  margin-bottom: 4px !important;
}

.hawa-portal-promo__sub {
  margin: 0 0 22px 0;
  color: var(--pp-text-light);
  font-size: 15px;
  line-height: 1.55;
  max-width: 560px;
}
.hawa-portal-promo--compact .hawa-portal-promo__sub {
  margin-bottom: 0;
  font-size: 13.5px;
}

.hawa-portal-promo__url {
  color: var(--pp-green);
  font-weight: 600;
  white-space: nowrap;
}

/* -----------------------------------------------------------------------------
   CTAs
----------------------------------------------------------------------------- */
.hawa-portal-promo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hawa-portal-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--pp-green) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  text-decoration: none !important;
  border-radius: 4px;
  border: 0;
  transition: background 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 12px rgba(4,155,78,0.35);
}
.hawa-portal-promo__cta:hover,
.hawa-portal-promo__cta:focus {
  background: var(--pp-green-dark) !important;
  transform: translateY(-1px);
  color: #fff !important;
}
.hawa-portal-promo__cta svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.hawa-portal-promo__link {
  color: var(--pp-text-light) !important;
  font-size: 13.5px;
  text-decoration: none !important;
  border-bottom: 1px dotted rgba(255,255,255,0.35);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.hawa-portal-promo__link:hover {
  color: #fff !important;
  border-bottom-color: var(--pp-green);
}

/* -----------------------------------------------------------------------------
   Visual-Tile (Portal-Screenshot in Browser-Chrome-Mockup)
----------------------------------------------------------------------------- */
.hawa-portal-promo__visual {
  position: relative;
  z-index: 1;
  display: none;
}
@media (min-width: 820px) {
  .hawa-portal-promo--hero .hawa-portal-promo__visual {
    display: block;
  }
}

.hawa-portal-promo__browser {
  background: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.35s ease;
}
.hawa-portal-promo:hover .hawa-portal-promo__browser {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-2px);
}

.hawa-portal-promo__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #1f1f1f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hawa-portal-promo__chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
  display: inline-block;
}
.hawa-portal-promo__chrome span:nth-child(1) { background: #ff5f57; }
.hawa-portal-promo__chrome span:nth-child(2) { background: #febc2e; }
.hawa-portal-promo__chrome span:nth-child(3) { background: #28c840; }
.hawa-portal-promo__chrome .pp-url {
  margin-left: 12px;
  flex: 1;
  padding: 4px 12px;
  background: #2c2c2c;
  border-radius: 4px;
  font-size: 11px;
  color: var(--pp-text-muted);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.2px;
  width: auto;
  height: auto;
}

.hawa-portal-promo__shot {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* -----------------------------------------------------------------------------
   Compact-Mini-Visual (klein, nur als Akzent links)
----------------------------------------------------------------------------- */
.hawa-portal-promo--compact .hawa-portal-promo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: rgba(4,155,78,0.15);
  border: 1px solid rgba(4,155,78,0.35);
  border-radius: 8px;
  flex-shrink: 0;
}
.hawa-portal-promo--compact .hawa-portal-promo__icon svg {
  width: 22px; height: 22px;
  stroke: var(--pp-green);
  fill: none;
  stroke-width: 2;
}
.hawa-portal-promo--compact .hawa-portal-promo__body {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* -----------------------------------------------------------------------------
   Mobile-Polish
----------------------------------------------------------------------------- */
@media (max-width: 540px) {
  .hawa-portal-promo--hero {
    padding: 24px 22px;
  }
  .hawa-portal-promo__actions {
    gap: 10px;
  }
  .hawa-portal-promo__cta {
    width: 100%;
    justify-content: center;
  }
  .hawa-portal-promo__link {
    width: 100%;
    text-align: center;
  }
}
