/* ==========================================================================
   Hero (Startseite & Unterseiten)
   ========================================================================== */

.hero {
  position: relative;
  background: var(--color-bg);
  color: var(--color-text-on-dark);
  padding-block: var(--space-2xl) var(--space-2xl);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 85% 15%, rgba(200, 168, 95, 0.14), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.hero__content {
  max-width: 620px;
}

.hero__headline {
  margin-bottom: var(--space-sm);
}

.hero__sub {
  font-size: var(--fs-lead);
  color: var(--color-muted-on-dark);
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-weight: 700;
  color: var(--color-white);
  font-size: 1.05rem;
}

.hero__phone svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
}

.feature__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero--page {
  padding-block: var(--space-xl) var(--space-2xl);
}

.hero--page .hero__content {
  max-width: 720px;
}

.hero--page .hero__sub {
  margin-bottom: var(--space-sm);
}

.hero--page .hero__sub a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/* ==========================================================================
   Homepage Hero — full-bleed photo background (scoped to .hero--home only;
   .hero.hero--page text-only subpage heroes are completely unaffected)
   ========================================================================== */

.hero--home {
  display: flex;
  align-items: center;
  padding-block: var(--space-2xl) var(--space-xl);
  min-height: 560px;
}

.hero--home .hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% center;
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(17, 19, 21, 0.88) 0%,
    rgba(17, 19, 21, 0.72) 30%,
    rgba(17, 19, 21, 0.4) 55%,
    rgba(17, 19, 21, 0.1) 75%,
    rgba(17, 19, 21, 0) 90%
  );
}

.hero--home::after {
  z-index: 2;
}

.hero--home .container {
  position: relative;
  z-index: 3;
}

.hero--home .hero__content {
  max-width: 620px;
}

@media (min-width: 640px) {
  .hero--home {
    min-height: 78vh;
    min-height: min(78svh, 620px);
  }

  .hero--home::before {
    background: linear-gradient(
      90deg,
      rgba(17, 19, 21, 0.9) 0%,
      rgba(17, 19, 21, 0.78) 22%,
      rgba(17, 19, 21, 0.5) 42%,
      rgba(17, 19, 21, 0.18) 60%,
      rgba(17, 19, 21, 0) 74%
    );
  }

  .hero--home .hero__bg-image {
    object-position: 50% 32%;
  }
}

@media (min-width: 1024px) {
  .hero--home {
    min-height: 88vh;
    min-height: min(88svh, 820px);
  }

  .hero--home .hero__bg-image {
    object-position: 66% 35%;
  }
}

@media (min-width: 1360px) {
  .hero--home .hero__bg-image {
    object-position: 70% 38%;
  }
}

/* ==========================================================================
   Leistungsbereiche (Startseite)
   ========================================================================== */

.pillar-card {
  background: var(--color-white);
}

.pillar-card .placeholder {
  min-height: 190px;
  border-radius: 0;
}

.pillar-card__icon {
  min-height: 132px;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.pillar-card__icon svg {
  width: 56px;
  height: 56px;
  color: var(--color-accent-strong);
  stroke: currentColor;
  transition: color var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease);
}

.card:hover .pillar-card__icon svg {
  color: var(--color-accent);
  transform: translateY(-4px);
}

/* ==========================================================================
   Über uns – Portrait Sektion
   ========================================================================== */

.founder {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.founder__portrait {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.founder__meta {
  margin-top: var(--space-md);
}

.founder__name {
  font-size: 1.1rem;
  font-weight: 800;
}

.founder__role {
  color: var(--color-accent-strong);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

@media (min-width: 900px) {
  .founder {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

/* ==========================================================================
   Einsatzgebiet
   ========================================================================== */

.service-area {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.service-area__map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 35% 30%, #23262a, var(--color-bg) 70%);
  border: 1px solid var(--color-border-on-dark);
  overflow: hidden;
}

.service-area__map svg {
  width: 100%;
  height: 100%;
}

.service-area__point {
  fill: var(--color-muted-on-dark);
}

.service-area__point[data-primary="true"] {
  fill: var(--color-accent);
}

.service-area__label {
  font-size: 9px;
  fill: var(--color-muted-on-dark);
  font-family: var(--font-base);
}

@media (min-width: 900px) {
  .service-area {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-layout {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info__item {
  display: flex;
  gap: var(--space-sm);
}

.contact-info__item > div {
  min-width: 0;
  overflow-wrap: break-word;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(200, 168, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.contact-info__item h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xs);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
  margin-bottom: var(--space-2xs);
}

.legal-content ul {
  padding-left: var(--space-md);
  list-style: disc;
}

.legal-content a {
  color: var(--color-accent-strong);
  font-weight: 600;
}

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  color: var(--color-text-on-dark);
  text-align: center;
}

.error-page__code {
  font-size: clamp(4rem, 3rem + 5vw, 8rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.error-page .lead {
  color: var(--color-muted-on-dark);
}

/* ==========================================================================
   Strom- & Gasvergleich (bewusst eigenständig gestaltet)
   ========================================================================== */

.section--stromgas {
  background: var(--color-surface);
}

.stromgas-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.stromgas-teaser .eyebrow {
  color: var(--color-accent-strong);
}
