/* Startseite / — Ausführung im Stil der Webcam-Seite */

body.fe-home {
  background: var(--md-sys-color-background);
}

/* ---- Intro (Hero + Wetter) ---- */
.fe-home-intro {
  width: 100%;
}

.fe-home-intro__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.fe-home-hero {
  padding-bottom: 48px;
}

.fe-home-hero .hero__lead {
  max-width: 36em;
}

.fe-home-hero .hero__actions {
  margin-bottom: 0;
}

/* Wetter-Panel im Intro */
.fe-home-intro__weather.fe-home-panel {
  position: relative;
  z-index: 2;
  margin: -24px 0 32px;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-extra-large);
  box-shadow: var(--md-sys-elevation-level2);
  overflow: hidden;
}

/* ---- Page shell ---- */
.fe-home-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

.fe-paid-banner {
  display: flex;
  justify-content: center;
  margin: 0 0 32px;
  overflow-x: auto;
}

.fe-paid-banner a {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.fe-paid-banner__img {
  display: block;
  max-width: min(100%, 728px);
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fe-home-panel {
  overflow: hidden;
}

.fe-home-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background: linear-gradient(
    180deg,
    var(--md-sys-color-surface-container-low) 0%,
    var(--md-sys-color-surface) 100%
  );
}

.fe-home-panel__title {
  margin: 0;
  font: 700 22px/1.2 var(--md-ref-typeface-brand);
  letter-spacing: -0.01em;
  color: var(--md-sys-color-on-surface);
}

.fe-home-panel__hint {
  margin: 6px 0 0;
  font: 400 14px/1.45 var(--md-ref-typeface-plain);
  color: var(--md-sys-color-on-surface-variant);
}

.fe-home-panel__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  font: 600 13px/1 var(--md-ref-typeface-mono);
}

/* Wetter-Widget im Panel */
.fe-home-weather__widget {
  padding: 0;
}

.fe-home-weather__widget .fe-widget-host {
  padding: 0;
}

.fe-home-weather__widget .fe-widget--home {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 20px;
}

.fe-home-weather__widget .fe-widget--loading {
  padding: 32px 20px;
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.fe-home-weather__widget .fe-widget__body {
  gap: 20px;
}

.fe-home-weather__widget .fe-widget__main {
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.fe-home-weather__widget .fe-widget__icon-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(
    165deg,
    var(--md-sys-color-surface-container-low) 0%,
    var(--md-sys-color-surface-container-high) 100%
  );
  border: 1px solid var(--md-sys-color-outline-variant);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fe-home-weather__widget .fe-widget__icon {
  width: 80px;
  height: 80px;
  max-width: none;
  object-fit: contain;
}

.fe-home-weather__widget .fe-widget__temp {
  font-size: clamp(2.75rem, 9vw, 3.5rem);
  margin: 0 0 8px;
  color: var(--md-sys-color-primary);
  letter-spacing: -0.03em;
}

.fe-home-weather__widget .fe-widget__cond {
  font-size: 15px;
  line-height: 1.45;
  max-width: 32ch;
  color: var(--md-sys-color-on-surface-variant);
}

/* Metrik-Kacheln */
.fe-home-weather__widget .fe-widget__metrics--cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fe-home-weather__widget .fe-widget__metrics--cards .fe-widget__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  min-height: 88px;
  background: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-large);
  box-shadow: none;
}

.fe-home-weather__widget .fe-widget__metric-icon {
  font-size: 22px;
  color: var(--md-sys-color-primary);
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  margin-bottom: 2px;
}

.fe-home-weather__widget .fe-widget__metric-label {
  font: 500 11px/1 var(--md-ref-typeface-plain);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
}

.fe-home-weather__widget .fe-widget__metric-value {
  margin-top: auto;
  font: 700 22px/1 var(--md-ref-typeface-brand);
  letter-spacing: -0.02em;
  color: var(--md-sys-color-on-surface);
}

.fe-home-weather__widget .fe-widget__metric-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface-variant);
}

/* ---- Abschnitte ---- */
.fe-home-block {
  margin-bottom: 56px;
}

.fe-home-block:last-child {
  margin-bottom: 0;
}

.fe-home-block__head {
  margin-bottom: 24px;
}

.fe-home-block__head .section__eyebrow {
  margin-bottom: 6px;
}

.fe-home-block__head h2 {
  font: 700 clamp(1.5rem, 4vw, 1.75rem)/1.2 var(--md-ref-typeface-brand);
  letter-spacing: -0.02em;
  margin: 0;
}

.fe-home-block__head .section__sub {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  max-width: 42em;
}

/* Team / Willkommen */
.fe-home-story__layout {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

.fe-home-story__media {
  position: relative;
  margin: 0;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  border-radius: var(--md-sys-shape-corner-extra-large);
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-level1);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-high);
}

.fe-home-story__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fe-story-focal, 50% 18%);
}

.fe-home-story__body p {
  margin: 0;
  font: 400 16px/1.65 var(--md-ref-typeface-plain);
  color: var(--md-sys-color-on-surface-variant);
}

.fe-home-story__body p + p {
  margin-top: 1em;
}

/* Leistungen */
.fe-home-benefits {
  padding: 28px 24px;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-extra-large);
  box-shadow: var(--md-sys-elevation-level1);
}

.fe-home-benefits h2 {
  font: 700 20px/1.25 var(--md-ref-typeface-brand);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.fe-home-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.fe-home-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font: 400 15px/1.5 var(--md-ref-typeface-plain);
  color: var(--md-sys-color-on-surface);
}

.fe-home-checklist .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--md-sys-color-primary);
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
  margin-top: 2px;
}

.fe-home-checklist a {
  color: var(--md-sys-color-primary);
  font-weight: 600;
  text-decoration: none;
}

.fe-home-checklist a:hover {
  text-decoration: underline;
}

.fe-home-benefits__foot {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  font: 400 14px/1.55 var(--md-ref-typeface-plain);
  color: var(--md-sys-color-on-surface-variant);
}

/* USP-Karten — einheitlich neutral */
.fe-home-values {
  display: grid;
  gap: 16px;
}

.fe-home-value {
  padding: 22px 20px;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-large);
  box-shadow: var(--md-sys-elevation-level1);
}

.fe-home-value__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.fe-home-value__icon .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.fe-home-value h3 {
  font: 700 18px/1.3 var(--md-ref-typeface-brand);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.fe-home-value p {
  margin: 0;
  font: 400 14px/1.5 var(--md-ref-typeface-plain);
  color: var(--md-sys-color-on-surface-variant);
}

/* Blog */
.fe-home-block__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fe-home-blog {
  display: grid;
  gap: 16px;
}

.fe-home-post {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-extra-large);
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-level1);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

a.fe-home-post:hover {
  box-shadow: var(--md-sys-elevation-level2);
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 35%, var(--md-sys-color-outline-variant));
}

.fe-home-post__media {
  aspect-ratio: 16 / 9;
  background: var(--md-sys-color-surface-container-high);
  overflow: hidden;
}

.fe-home-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-home-post__body {
  min-width: 0;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.fe-home-post__date {
  font: 500 12px/1 var(--md-ref-typeface-mono);
  color: var(--md-sys-color-on-surface-variant);
}

.fe-home-post__title {
  font: 700 20px/1.3 var(--md-ref-typeface-brand);
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--md-sys-color-on-surface);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fe-home-post--lead .fe-home-post__title {
  -webkit-line-clamp: 2;
}

.fe-home-post__excerpt {
  margin: 4px 0 0;
  font: 400 15px/1.55 var(--md-ref-typeface-plain);
  color: var(--md-sys-color-on-surface-variant);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.fe-home-post__more {
  margin-top: auto;
  padding-top: 12px;
  font: 600 14px/1 var(--md-ref-typeface-plain);
  color: var(--md-sys-color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fe-home-post__more .material-symbols-outlined {
  font-size: 18px;
}

.fe-home-post--compact {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  min-height: 112px;
}

.fe-home-post--compact .fe-home-post__media {
  aspect-ratio: 1;
  width: 112px;
  min-height: 112px;
  max-height: 112px;
}

.fe-home-post--compact .fe-home-post__body {
  padding: 14px 16px;
  gap: 6px;
}

.fe-home-post--compact .fe-home-post__title {
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}

.fe-home-post--compact .fe-home-post__more {
  display: none;
}

.fe-home-post--compact:not(:has(.fe-home-post__media)) {
  grid-template-columns: 1fr;
}

.fe-home-post--lead:not(:has(.fe-home-post__media)) {
  grid-template-columns: 1fr;
}

/* Paket-CTA */
.fe-home-cta {
  text-align: center;
  padding: 40px 28px;
  background: linear-gradient(
    165deg,
    var(--md-sys-color-primary-container) 0%,
    color-mix(in srgb, var(--md-sys-color-primary-container) 70%, var(--md-sys-color-surface) 30%) 100%
  );
  border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 18%, transparent);
  border-radius: var(--md-sys-shape-corner-extra-large);
  box-shadow: var(--md-sys-elevation-level1);
}

.fe-home-cta .section__eyebrow {
  color: var(--md-sys-color-on-primary-container);
  opacity: 0.75;
}

.fe-home-cta h2 {
  font: 700 clamp(1.5rem, 4vw, 1.875rem)/1.15 var(--md-ref-typeface-brand);
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
  color: var(--md-sys-color-on-primary-container);
}

.fe-home-cta > p {
  margin: 0 auto 24px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--md-sys-color-on-primary-container);
  opacity: 0.88;
}

.fe-home-cta__tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 24px;
}

.fe-home-cta__tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--md-sys-shape-corner-full);
  background: color-mix(in srgb, var(--md-sys-color-surface) 55%, transparent);
  font: 500 14px/1 var(--md-ref-typeface-plain);
  color: var(--md-sys-color-on-primary-container);
}

.fe-home-cta__tier strong {
  font-family: var(--md-ref-typeface-brand);
  font-weight: 700;
}

.fe-home-cta .m3-btn--filled {
  background: var(--md-sys-color-primary);
}

/* ---- Responsive ---- */
@media (min-width: 600px) {
  .fe-home-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .fe-home-weather__widget .fe-widget__metrics--cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .fe-home-story__layout {
    grid-template-columns: minmax(280px, 42%) 1fr;
    gap: 32px;
    align-items: start;
  }

  .fe-home-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .fe-home-post--lead {
    grid-template-columns: minmax(280px, 44%) 1fr;
  }

  .fe-home-post--lead .fe-home-post__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

@media (min-width: 905px) {
  .fe-home-intro {
    padding: 16px 16px 0;
    margin-bottom: 48px;
  }

  .fe-home-intro__inner {
    max-width: none;
    padding: 0;
    background: var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-extra-large);
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-level2);
  }

  .fe-home-hero {
    margin: 0;
    padding: 48px 40px 32px;
    border-radius: 0;
    background: transparent;
  }

  .fe-home-intro__weather.fe-home-panel {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--md-sys-color-surface);
  }

  .fe-home-intro__weather .fe-home-panel__head {
    border-top-left-radius: var(--md-sys-shape-corner-large);
    border-top-right-radius: var(--md-sys-shape-corner-large);
  }

  .fe-home-wrap {
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 72px;
    max-width: 1180px;
  }

  .fe-home-weather__widget .fe-widget__main {
    grid-template-columns: 140px 1fr;
    padding-bottom: 24px;
  }

  .fe-home-weather__widget .fe-widget--home {
    padding: 24px 28px;
  }

  .fe-home-values {
    grid-template-columns: repeat(3, 1fr);
  }

  .fe-home-blog {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .fe-home-post--lead {
    grid-column: 1 / -1;
  }

  .fe-home-cta__tiers {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    gap: 10px;
  }

  .fe-home-cta__tier {
    flex: 0 1 auto;
    min-width: 180px;
  }
}

@media (min-width: 1200px) {
  .fe-home-intro__inner {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    align-items: stretch;
  }

  .fe-home-hero {
    padding: 56px 40px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .fe-home-intro__weather.fe-home-panel {
    border-top: none;
    border-left: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    flex-direction: column;
  }

  .fe-home-intro__weather .fe-home-panel__head {
    border-top-left-radius: 0;
  }

  .fe-home-intro__weather .fe-home-weather__widget {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
