/* ==========================================================================
   DachMakler.de — Main Stylesheet
   Design System: FlächenMakler (exact match)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --brand-green: #15A066;
  --brand-green-dark: #018A52;
  --brand-green-text: #0B7D4A;
  --brand-gold: #F6C75E;
  --brand-gold-hover: #e5b94e;
  --brand-dark: #1A1A1A;
  --brand-gray-text: #5F5F5F;
  --brand-border: #E2EAE7;
  --brand-page-bg: #F9FCFA;
  --brand-footer-bg: #252525;
  --brand-footer-text: #BDBDBD;
  --brand-green-bg-light: #F3FAF7;
  --brand-green-bg: #E8F6F0;
  --brand-green-bg-dark: #DCF1E8;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--brand-dark);
  background-color: var(--brand-page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 42px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 32px);
  line-height: 1.1;
  color: var(--brand-dark);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 18px);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: 1230px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.header > .container {
  padding-top: 15px;
  padding-bottom: 15px;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 48px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 26px;
  width: auto;
}

.header__nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex: 1;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.header__link {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s;
}

.header__link:hover {
  opacity: 0.8;
}

/* Dark header variant (for magazin, article pages) */
.header--dark .header__link {
  color: var(--brand-dark);
}

.header--dark .header__link:hover {
  color: var(--brand-green);
  opacity: 1;
}

.header--dark .header__hamburger svg {
  stroke: var(--brand-dark);
}

/* Hamburger */
.header__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  margin-left: auto;
}

@media (min-width: 768px) {
  .header__hamburger {
    display: none;
  }
}

.header__hamburger svg {
  width: 24px;
  height: 24px;
}

/* Nav CTA button — display rules moved after .btn base class (see below) */

/* --------------------------------------------------------------------------
   6. Mobile Nav
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateY(0);
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--brand-border);
}

.mobile-nav__logo img {
  height: 70px;
  width: auto;
}

.mobile-nav__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 0;
}

.mobile-nav__links a {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 0;
  color: var(--brand-dark);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: color 0.2s;
}

.mobile-nav__links a:last-child {
  border-bottom: none;
}

.mobile-nav__links a svg {
  margin-left: auto;
  color: var(--brand-gray-text, #9ca3af);
}

.mobile-nav__links a:hover {
  color: var(--brand-green);
}

.mobile-nav__cta {
  padding: 0 24px 32px;
}

.btn--mobile-cta {
  width: 100%;
  height: 56px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
  text-decoration: none;
}

.btn__arrow {
  flex-shrink: 0;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn--lg {
  height: 72px;
  border-radius: 7px;
  font-size: 18px;
  padding: 0 24px;
}

.btn--primary {
  background-color: var(--brand-green);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--brand-green-dark);
}

.btn--white {
  background-color: #fff;
  color: var(--brand-green-dark);
}

.btn--white:hover {
  background-color: #f9fafb;
}

.btn--gold {
  background-color: var(--brand-gold);
  color: var(--brand-dark);
}

.btn--gold:hover {
  background-color: rgba(246, 199, 94, 0.9);
}

.btn--dark {
  background-color: var(--brand-dark);
  color: #fff;
  height: 62px;
  border-radius: 7px;
  padding: 0 32px;
  font-size: 18px;
}

.btn--dark:hover {
  background-color: rgba(26, 26, 26, 0.9);
}

.btn--dark .btn__icon {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Nav CTA button — must come after .btn base to override display */
.btn--nav {
  display: none;
  flex-shrink: 0;
  height: 48px;
  padding: 0 23px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
}

@media (min-width: 768px) {
  .btn--nav {
    display: inline-flex;
  }
}

/* Mobile CTA in mobile nav panel */
.btn--mobile-cta {
  width: 100%;
  height: 56px;
  border-radius: 7px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   8. Section Header
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-header__title {
  margin-bottom: 8px;
}

.section-header__subtitle {
  color: var(--brand-gray-text);
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   9. Hero — bg image with green gradient, text left, form overlapping below
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
}

.hero__bg-area {
  position: relative;
  height: 380px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero__bg-area {
    height: 650px;
  }
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(57.8deg, rgb(6, 140, 84) 7.37%, rgba(21, 160, 102, 0) 94.89%);
}

.hero__text-container {
  position: relative;
  z-index: 10;
  padding-top: 100px;
}

@media (min-width: 768px) {
  .hero__text-container {
    padding-top: 140px;
  }
}

.hero__content {
  max-width: 523px;
}

.hero__title {
  color: #fff;
  font-size: 28px;
  line-height: 34px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 42px;
    line-height: 48px;
  }
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 30px;
}

/* Overlapping form card */
.hero__form-wrapper {
  position: relative;
  z-index: 20;
  margin-top: -8px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .hero__form-wrapper {
    margin-top: -188px;
  }
}

.hero__form {
  max-width: 1230px;
  min-height: 400px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   10. Benefits Section (Icon Features)
   -------------------------------------------------------------------------- */
.benefits {
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: #fff;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 1024px) {
  .benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefits__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

/* FM IconFeatureGrid only shows description, no title */
.benefits__title {
  display: none;
}

.benefits__text {
  font-size: 16px;
  color: var(--brand-gray-text);
  line-height: 1.625;
}

/* --------------------------------------------------------------------------
   11. Steps Section ("So funktioniert's!")
   Matches FlächenMakler StepProcess.tsx exactly:
   - Desktop: 4-column grid [280px_1fr_1fr_1fr]
   - White left column with title + CTA
   - 3 gradient green step columns
   - Dashed connecting lines between step circles
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  background-color: var(--brand-green-bg-dark);
}

/* White cover for left side — desktop only */
.steps__white-cover {
  display: none;
}

@media (min-width: 768px) {
  .steps__white-cover {
    display: block;
    position: absolute;
    inset: 0;
    right: auto;
    width: calc((100% - 1230px) / 2 + 280px);
    background-color: #fff;
    z-index: 0;
  }
}

.steps__grid-outer {
  position: relative;
  z-index: 1;
}

/* Desktop grid */
.steps__desktop {
  display: none;
}

@media (min-width: 768px) {
  .steps__desktop {
    display: grid;
    grid-template-columns: 280px 1fr 1fr 1fr;
    max-width: 1230px;
    margin: 0 auto;
  }
}

.steps__intro {
  background-color: #fff;
  padding: 50px 24px 50px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 35px;
}

.steps__title {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--brand-green-dark);
}

/* Step columns — gradient green backgrounds */
.steps__step {
  padding: 0;
}

.steps__step--1 {
  background-color: var(--brand-green-bg-light);
}

.steps__step--2 {
  background-color: var(--brand-green-bg);
}

.steps__step--3 {
  background-color: var(--brand-green-bg-dark);
}

.steps__step-inner {
  padding: 50px 24px;
  position: relative;
}

.steps__number-wrapper {
  position: relative;
  margin-bottom: 30px;
  z-index: 20;
}

.steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--brand-green);
  background-color: #fff;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-green);
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

/* Dashed connecting line between step circles */
.steps__dashed-line {
  display: none;
}

@media (min-width: 768px) {
  .steps__dashed-line {
    display: block;
    position: absolute;
    top: 21px;
    left: 58px;
    right: -6px;
    border-top: 2px dashed var(--brand-green);
    z-index: 10;
  }
}

.steps__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.steps__desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-gray-text);
  line-height: 1.5;
}

/* Mobile stacked layout */
.steps__mobile {
  display: block;
  padding: 32px 16px;
  background-color: var(--brand-green-bg-light);
}

@media (min-width: 768px) {
  .steps__mobile {
    display: none;
  }
}

.steps__mobile .steps__title {
  font-size: 24px;
  margin-bottom: 24px;
}

.steps__mobile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps__mobile-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
}

.steps__mobile-cta {
  margin-top: 24px;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   12. Requirements — dark section with half-bleed image + 2x2 card grid
   Matches FlächenMakler RequirementsSection.tsx exactly
   -------------------------------------------------------------------------- */
.requirements {
  position: relative;
  background-color: #252525;
  overflow: hidden;
  padding: 64px 0;
}

/* Half-bleed background image on the right */
.requirements__bg-image {
  display: none;
}

@media (min-width: 768px) {
  .requirements__bg-image {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
  }

  .requirements__bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .requirements__bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
  }
}

.requirements__container {
  position: relative;
  z-index: 10;
}

.requirements__title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

/* 2x2 card grid */
.requirements__cards {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1010px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
  .requirements__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.requirements__card {
  padding: 40px;
  position: relative;
}

/* Gold accent bar */
.requirements__card-accent {
  position: absolute;
  left: 0;
  top: 40px;
  width: 4px;
  height: 30px;
  background-color: var(--brand-gold);
  border-radius: 0 3px 3px 0;
}

/* Checkerboard pattern */
.requirements__card--1 {
  background-color: #2f2f2f;
}

.requirements__card--2 {
  background-color: #343434;
}

.requirements__card--3 {
  background-color: #343434;
}

.requirements__card--4 {
  background-color: #2f2f2f;
}

/* Only outer corners are rounded */
@media (min-width: 640px) {
  .requirements__card--1 {
    border-top-left-radius: 10px;
  }

  .requirements__card--2 {
    border-top-right-radius: 10px;
  }

  .requirements__card--3 {
    border-bottom-left-radius: 10px;
  }

  .requirements__card--4 {
    border-bottom-right-radius: 10px;
  }
}

.requirements__card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.requirements__card-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 26px;
}

/* --------------------------------------------------------------------------
   13. Split Highlight ("Kostenlose Dachsanierung")
   Matches FlächenMakler SplitHighlight.tsx exactly:
   - 50/50 layout, full-width (NO container constraint)
   - Left: Gold bg with text + dark CTA
   - Right: Full-bleed image, min-height 580px
   -------------------------------------------------------------------------- */
.highlight {
  position: relative;
  overflow: hidden;
}

.highlight__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .highlight__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.highlight__content {
  background-color: var(--brand-gold);
  padding: 64px 32px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .highlight__content {
    padding: 96px 64px;
  }
}

.highlight__content-inner {
  max-width: 505px;
  margin-left: auto;
}

.highlight__title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .highlight__title {
    font-size: 42px;
    line-height: 52px;
  }
}

.highlight__text {
  font-size: 18px;
  line-height: 32px;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 40px;
}

.highlight__image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .highlight__image {
    min-height: 580px;
  }
}

.highlight__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   14. Projects Section (Project Carousel)
   Matches FlächenMakler ProjectCarousel.tsx
   -------------------------------------------------------------------------- */
.projects {
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: #fff;
}

.projects__carousel-wrapper {
  position: relative;
}

.projects__carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.projects__carousel::-webkit-scrollbar {
  display: none;
}

.projects__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: none;
  cursor: pointer;
  color: var(--brand-gray-text);
  transition: color 0.2s;
}

.projects__arrow:hover {
  color: var(--brand-green);
}

@media (min-width: 768px) {
  .projects__arrow {
    display: flex;
  }
}

.projects__arrow--left {
  left: -24px;
}

.projects__arrow--right {
  right: -24px;
}

/* Project card */
.projects__card {
  width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(1, 138, 82, 0.08);
  overflow: hidden;
}

.projects__card-image-wrapper {
  position: relative;
  height: 250px;
}

.projects__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark location bar at bottom of photo */
.projects__card-location-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 12px 24px;
}

.projects__card-location-bar span {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-transform: capitalize;
}

.projects__card-pin {
  filter: brightness(0) invert(1);
}

.projects__card-body {
  padding: 16px 24px 20px;
}

.projects__card-value {
  font-size: 16px;
  color: var(--brand-gray-text);
  line-height: 24px;
  margin-bottom: 8px;
}

.projects__card-stats {
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}

.projects__card-stat {
  flex: 1;
}

.projects__card-stat-label {
  display: block;
  font-size: 16px;
  color: var(--brand-gray-text);
  line-height: 24px;
}

.projects__card-stat-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-green);
}

.projects__card-divider {
  width: 1px;
  height: 42px;
  background-color: var(--brand-border);
  margin: 0 16px;
  flex-shrink: 0;
}

.projects__cta {
  text-align: center;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   15. Reviews Section
   -------------------------------------------------------------------------- */
.reviews {
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: var(--brand-green-bg);
}

/* --------------------------------------------------------------------------
   16. Magazin Section
   Matches FlächenMakler BlogCard.tsx:
   - No dates
   - "Weiterlesen" link with arrow at bottom
   -------------------------------------------------------------------------- */
.magazin {
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: var(--brand-green-bg-light);
}

.magazin__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .magazin__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .magazin__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.magazin__card {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(1, 138, 82, 0.08);
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.magazin__card:hover {
  box-shadow: 0 8px 25px rgba(1, 138, 82, 0.12);
}

.magazin__card-image-link {
  display: block;
  overflow: hidden;
}

.magazin__card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.magazin__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.magazin__card:hover .magazin__card-image {
  transform: scale(1.05);
}

.magazin__card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.magazin__card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.3;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.magazin__card:hover .magazin__card-title {
  color: var(--brand-green);
}

.magazin__card-excerpt {
  font-size: 14px;
  color: var(--brand-gray-text);
  margin-top: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.magazin__card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-green-dark);
  margin-top: 16px;
  transition: color 0.2s;
}

.magazin__card-link:hover {
  color: var(--brand-green);
}

.magazin__card-link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   17. FAQ Accordion
   Matches FlächenMakler FAQAccordion.tsx:
   - Questions 18px, weight 600
   - Open question text turns green
   - Plus/minus icon in a 20px circle with border
   - No default details marker
   - Items separated by border-bottom
   -------------------------------------------------------------------------- */
.faq {
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: #fff;
}

.faq__list {
  max-width: 1230px;
  margin: 0 auto;
}

.faq__item {
  /* No border here - borders are on summary and answer */
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
  gap: 16px;
  border-bottom: 1px solid var(--brand-border);
}

/* Remove default browser markers */
.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  display: none;
  content: "";
}

.faq__question-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  transition: color 0.2s;
  flex: 1;
}

.faq__item[open] .faq__question-text {
  color: var(--brand-green);
}

/* Plus/minus icon circle */
.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(95, 95, 95, 0.4);
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--brand-gray-text);
}

.faq__icon-plus {
  display: inline;
}

.faq__icon-minus {
  display: none;
}

.faq__item[open] .faq__icon-plus {
  display: none;
}

.faq__item[open] .faq__icon-minus {
  display: inline;
}

.faq__answer {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--brand-border);
  color: var(--brand-gray-text);
  line-height: 1.65;
  font-size: 16px;
}

.faq__answer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   18. CTA Section
   Matches FlächenMakler CtaSection.tsx:
   - Full-width green bg
   - White centered text
   - Large white button with green arrow
   -------------------------------------------------------------------------- */
.cta {
  background-color: var(--brand-green);
  padding: 64px 0;
  text-align: center;
}

.cta__title {
  color: #fff;
  margin-bottom: 16px;
}

.cta__subtitle {
  color: #fff;
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 576px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   19. Footer
   Matches FlächenMakler Footer.tsx:
   - Category headings WHITE, 16px, uppercase, weight 700
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--brand-footer-bg);
  color: #fff;
}

.footer .container {
  padding-top: 90px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: inline-block;
}

.footer__logo img {
  height: 22px;
  width: auto;
}

.footer__company {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 700;
  text-transform: capitalize;
}

.footer__address {
  margin-top: 4px;
  font-size: 16px;
  opacity: 0.7;
  line-height: 26px;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

/* Footer headings — WHITE, not green */
.footer__heading {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

.footer__links a {
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 42px;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
}

.footer__social a {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__social a:hover {
  opacity: 1;
}

.footer__social svg,
.footer__social img {
  width: 24px;
  height: 24px;
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  font-size: 14px;
  opacity: 0.7;
}

.footer__top-link {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__top-link:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   20. Article Hero (green header section on article pages)
   -------------------------------------------------------------------------- */
/* White spacer behind absolute header on article pages */
.article-spacer {
  height: 108px;
  background-color: #fff;
}

.article-hero {
  background-color: var(--brand-green);
  color: #fff;
  padding-top: 40px;
  padding-bottom: 160px;
}

.article-hero .breadcrumbs {
  margin-bottom: 16px;
  font-size: 14px;
}

.article-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.article-hero .breadcrumbs a:hover {
  color: #fff;
}

/* Current page breadcrumb text */
.article-hero .breadcrumbs > span:not(.breadcrumbs__separator) {
  color: #d1d5db;
  max-width: 400px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-hero .breadcrumbs__separator {
  color: #9ca3af;
}

.article-hero__title {
  font-size: clamp(1.75rem, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  max-width: 768px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   21. Prose / Article Styles (for blog pages)
   -------------------------------------------------------------------------- */
.article-content {
  padding-top: 48px;
  padding-bottom: 48px;
}

.prose {
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}

.prose p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--brand-gray-text);
}

.prose h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--brand-border);
}

.prose h2:first-child,
.prose > p:first-child + h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 32px;
}

.prose h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: revert;
  color: var(--brand-gray-text);
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.prose p strong,
.prose li strong {
  font-weight: 700;
  color: var(--brand-dark);
  background: linear-gradient(to top, var(--brand-green-bg) 40%, transparent 40%);
  padding: 0 2px;
}

.prose a {
  color: var(--brand-green-text);
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: var(--brand-green-dark);
}

.prose img {
  border-radius: 8px;
  margin: 24px 0;
}

/* Prose heading anchors — remove link styling from autolinked headings */
.prose h2 a,
.prose h3 a {
  color: inherit;
  text-decoration: none;
}

.prose h2 a:hover,
.prose h3 a:hover {
  color: inherit;
  text-decoration: none;
}

.prose blockquote {
  border-left: 4px solid var(--brand-green);
  background-color: var(--brand-green-bg-light);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 5px 5px 0;
  font-style: normal;
}

.prose blockquote p {
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 0;
}

/* Prose tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.prose th,
.prose td {
  border: 1px solid var(--brand-border);
  padding: 12px 16px;
  text-align: left;
}

.prose th {
  background-color: var(--brand-green-bg-light);
  font-weight: 600;
}

.prose tbody tr:nth-child(even) {
  background-color: var(--brand-green-bg-light);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 14px;
  color: var(--brand-gray-text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--brand-green-dark);
  text-decoration: underline;
}

.breadcrumbs__separator {
  color: var(--brand-gray-text);
}

/* Impressum / Legal page styles */
.legal-content {
  padding-top: 120px;
  padding-bottom: 64px;
}

/* --------------------------------------------------------------------------
   Summary & Highlight Components (matching FM globals.css)
   -------------------------------------------------------------------------- */

/* "Das Wichtigste in Kuerze" summary box */
.summary-box {
  border-left: 4px solid var(--brand-green);
  background: var(--brand-green-bg-light);
  border-radius: 0 5px 5px 0;
  padding: 24px 32px;
  margin: 32px 0;
}

.summary-box .summary-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.summary-box .summary-box-title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand-green);
}

.summary-box ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}

.summary-box ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--brand-gray-text);
  line-height: 1.65;
}

.summary-box ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand-green);
  font-weight: 700;
}

.summary-box ul li strong {
  color: var(--brand-dark);
}

/* Stat callout */
.stat-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--brand-green-bg-light);
  border-radius: 5px;
  padding: 20px 32px;
  margin: 32px 0;
}

.stat-callout .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--brand-green);
  white-space: nowrap;
  line-height: 1.1;
}

.stat-callout .stat-label {
  font-size: 16px;
  color: var(--brand-gray-text);
  line-height: 1.5;
}

.stat-callout .stat-label strong {
  color: var(--brand-dark);
}

/* Info / note alert box */
.info-box {
  background: rgba(246, 199, 94, 0.3);
  border-radius: 5px;
  padding: 24px 32px 24px 40px;
  margin: 32px 0;
  position: relative;
}

.info-box .info-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.info-box .info-box-header h3 {
  margin: 0;
  font-size: 21px;
}

.info-box .info-box-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-box p {
  color: var(--brand-gray-text);
  margin-bottom: 0;
}

.info-box p strong {
  color: var(--brand-dark);
}

/* In-article CTA block */
.article-cta {
  display: flex;
  align-items: stretch;
  border-radius: 5px;
  overflow: hidden;
  background: var(--brand-green);
  margin: 32px 0;
  min-height: 240px;
}

.article-cta-inline {
  text-align: center;
  margin: 40px 0;
  padding: 32px;
  background-color: var(--brand-green-bg-light);
  border-radius: 8px;
}

/* Article cover image (overlaps green hero) */
.article-cover {
  margin-top: -96px;
  margin-bottom: 32px;
}

.article-cover__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  .article-cover__image {
    height: 400px;
  }
}

@media (min-width: 768px) {
  .article-cover__image {
    height: 550px;
  }
}

/* Article CTA button (simple green) */
.article-cta-wrap {
  text-align: center;
  margin: 32px 0;
}

.prose .article-button,
.article-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  background: var(--brand-green);
  color: white !important;
  text-decoration: none !important;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.prose .article-button:hover,
.article-button:hover {
  background: var(--brand-green-dark);
  color: white !important;
  text-decoration: none !important;
}

.article-cta .article-cta-image {
  flex-shrink: 0;
  width: 300px;
  position: relative;
}

.article-cta .article-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.article-cta .article-cta-content {
  flex: 1;
  padding: 32px 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-cta .article-cta-content h3,
.article-cta .article-cta-content .article-cta-title {
  color: white;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 700;
}

.article-cta .article-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.65;
}

.prose .article-cta .article-cta-content a,
.article-cta .article-cta-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  background: var(--brand-gold);
  color: var(--brand-dark) !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  width: fit-content;
  transition: background-color 0.2s;
}

.prose .article-cta .article-cta-content a:hover,
.article-cta .article-cta-content a:hover {
  background: #e5b94e;
  color: var(--brand-dark) !important;
}

/* CTA button within article text */
.prose .article-button,
.article-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  background: var(--brand-green);
  color: white !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  margin: 24px 0;
  transition: background-color 0.2s;
}

.prose .article-button:hover,
.article-button:hover {
  background: var(--brand-green-dark);
  color: white !important;
}

@media (max-width: 768px) {
  .article-cta {
    flex-direction: column;
  }

  .article-cta .article-cta-image {
    width: 100%;
    height: 200px;
  }

  .stat-callout {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   21. Blog Card (shared reusable component)
   -------------------------------------------------------------------------- */
.blog-card {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(1, 138, 82, 0.08);
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 8px 25px rgba(1, 138, 82, 0.12);
}

.blog-card__image-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.blog-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.05);
}

.blog-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--brand-green-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  z-index: 2;
}

.blog-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-top: 0;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card__title {
  color: var(--brand-green);
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--brand-gray-text);
  margin-top: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-green-dark);
  margin-top: 16px;
  transition: color 0.2s;
}

.blog-card__link:hover {
  color: var(--brand-green);
}

/* --------------------------------------------------------------------------
   22. Magazin Listing Grid (standalone page)
   -------------------------------------------------------------------------- */
.magazin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .magazin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .magazin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
