/* Coastal homepage hero. Keep the shared comparison pages' styling independent. */
.coastal-home .header .container,
.hero--coastal .container,
.hero-links .container {
  max-width: 1440px;
  padding-inline: clamp(24px, 4.45vw, 72px);
}

.coastal-home .header-inner { height: 76px; gap: 24px; }
.coastal-home .logo-text { font-size: 28px; }
.coastal-home .header-cta { display: none; }
.coastal-home .nav-link { font-size: 14px; }

.hero.hero--coastal {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 672px;
  padding: 80px 0;
  border: 0;
  background: #243b50;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  z-index: -2;
}

.hero.hero--coastal::before {
  display: block;
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgba(16, 35, 50, .87) 0%, rgba(16, 35, 50, .76) 30%, rgba(16, 35, 50, .27) 57%, rgba(16, 35, 50, .02) 80%);
  z-index: -1;
}

.hero--coastal .container { width: 100%; }
.hero--coastal .hero-content { max-width: 690px; }
.hero-eyebrow {
  margin-bottom: 22px;
  color: #dfbf82;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero--coastal .hero-title {
  margin-bottom: 28px;
  color: #fffefa;
  font-size: clamp(52px, 5.55vw, 86px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -.035em;
}
.hero--coastal .hero-sub {
  max-width: 500px;
  margin-bottom: 36px;
  color: #f1f1ed;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: .01em;
}
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 60px;
  padding: 16px 28px;
  border: 1px solid #fffefa;
  border-radius: 4px;
  background: #fffefa;
  color: #1c2f3e;
  font-size: 17px;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease;
}
.hero-primary:hover { background: #f1e7d4; border-color: #f1e7d4; }
.hero-primary .fas, .hero-secondary .fas { font-size: 17px; }
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  color: #fffefa;
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: rgba(255, 254, 250, .65);
  transition: color .2s ease;
}
.hero-secondary:hover { color: #e2d2af; }
.hero--coastal a:focus-visible { outline-color: #e2d2af; }

.hero-links { background: #fffefa; border-bottom: 1px solid #e0dcd2; }
.hero-links-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1.15fr;
  align-items: center;
  min-height: 152px;
}
.hero-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 24px;
  border-right: 1px solid #e0dcd2;
  color: #243b50;
  font-size: 16px;
  line-height: 1.5;
}
.hero-link-item:first-child { padding-left: 0; justify-content: flex-start; }
.hero-link-item:last-child { border-right: 0; padding-right: 0; }
.hero-link-icon { flex-shrink: 0; color: #a58a56; font-size: 29px; }
.hero-link-arrow { color: #a58a56; font-size: 15px; }
a.hero-link-item { transition: color .2s ease; }
a.hero-link-item:hover { color: #806334; }
.hero-icon-leaf::before { content: '\f06c'; }
.hero-icon-calendar::before { content: '\f073'; }

.coastal-home #angebote,
.coastal-home #rechner,
.coastal-home #so-funktioniert { scroll-margin-top: 96px; }
.market-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e0dcd2;
}
.market-stat { padding: 4px 20px; text-align: center; border-right: 1px solid #e0dcd2; }
.market-stat:last-child { border-right: 0; }
.market-stat-val { display: block; font: 32px/1.2 Georgia, 'Times New Roman', serif; color: #243b50; }
.market-stat-label { display: block; margin-top: 8px; color: #686963; font-size: 12px; }

@media (min-width: 1600px) {
  .hero.hero--coastal { min-height: 740px; }
}
@media (max-width: 1100px) {
  .coastal-home .logo-text { font-size: 24px; }
  .coastal-home .nav-link { padding-inline: 10px; font-size: 13px; }
  .hero.hero--coastal { min-height: 620px; }
  .hero--coastal .hero-title { font-size: 64px; }
  .hero-link-item { gap: 14px; padding-inline: 16px; font-size: 14px; }
  .hero-link-icon { font-size: 25px; }
}
@media (max-width: 768px) {
  .coastal-home .header-inner { height: 72px; }
  .coastal-home .logo-text { font-size: 23px; }
  .hero.hero--coastal { min-height: 660px; align-items: flex-end; padding-block: 170px 48px; }
  .hero-photo { object-position: 86% center; }
  .hero.hero--coastal::before {
    background: linear-gradient(0deg, rgba(16, 35, 50, .96) 0%, rgba(16, 35, 50, .85) 32%, rgba(16, 35, 50, .32) 65%, rgba(16, 35, 50, .04) 100%);
  }
  .hero--coastal .hero-content { max-width: 560px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 18px; letter-spacing: .25em; }
  .hero--coastal .hero-title { font-size: clamp(42px, 7.5vw, 58px); margin-bottom: 22px; }
  .hero--coastal .hero-sub { max-width: 380px; margin-bottom: 26px; font-size: 17px; }
  .hero-desktop-break { display: none; }
  .hero-actions { gap: 16px; }
  .hero-primary { min-height: 56px; padding-inline: 22px; font-size: 15px; gap: 24px; }
  .hero-secondary { font-size: 16px; }
  .hero-links-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 180px; padding-block: 16px; }
  .hero-link-item { justify-content: flex-start; min-height: 68px; padding: 12px 18px; gap: 14px; font-size: 13px; }
  .hero-link-item:nth-child(2n) { border-right: 0; padding-right: 0; }
  .hero-link-item:nth-child(2n + 1) { padding-left: 0; }
  .hero-link-icon { font-size: 23px; }
  .hero-link-arrow { font-size: 12px; }
  .hero-links-inner > :nth-child(-n + 2) { border-bottom: 1px solid #e0dcd2; }
  .market-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; margin-bottom: 32px; }
  .market-stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 380px) {
  .coastal-home .header .container,
  .hero--coastal .container,
  .hero-links .container { padding-inline: 20px; }
  .coastal-home .logo-text { font-size: 20px; }
  .hero--coastal .hero-title { font-size: 39px; }
  .hero-primary { width: 100%; padding-inline: 14px; gap: 14px; font-size: 14px; }
  .hero-link-item { gap: 10px; padding-inline: 12px; font-size: 12px; }
  .hero-link-icon { font-size: 21px; }
}
