/*
 * FaireWolle – Single Firmenseite Styles
 * Version: 97.0 – Saubere Struktur, neue Klassen
 *
 * Neue Markup-Struktur:
 *   .fw-single-header-wrap   – relativer Container, overflow:visible
 *   .fw-single-header-img    – das Hintergrundbild (absolut)
 *   .fw-single-header-gradient – dunkler Verlauf unten (absolut)
 *   .fw-single-logo-box      – Logo, absolut positioniert mit Overlap
 *   .fw-single-grid          – Content-Grid darunter
 */

/* ── HEADER CONTAINER ────────────────────────────────────── */
.fw-single-header-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 16px;
  overflow: visible;       /* Logo darf über Rand ragen */
  margin-bottom: 0;
}

/* ── HINTERGRUNDBILD ─────────────────────────────────────── */
.fw-single-header-img {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;        /* Bild selbst geclipt */
}
.fw-single-header-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42,37,32,0.0) 40%,
    rgba(42,37,32,0.45) 100%
  );
}

/* ── GRADIENT (Overlay oben drauf, kein extra Element nötig) */
.fw-single-header-gradient { display: none; }

/* ── LOGO BOX ────────────────────────────────────────────── */
.fw-single-logo-box {
  position: absolute;
  left: 36px;
  bottom: -52px;
  width: 144px;
  height: 144px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 16px 48px rgba(42,37,32,0.18);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  overflow: hidden;
}
.fw-single-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* ── GRID: Abstand kompensiert Logo-Overlap ──────────────── */
.fw-single-page .fw-single-grid {
  margin-top: 68px;
  position: relative;
  z-index: 1;
}

/* ── TITLE + META direkt nach Grid ──────────────────────── */
.fw-main-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  font-weight: 400 !important;
  color: #2a2520 !important;
  line-height: 1.1 !important;
  margin: 0 0 12px !important;
  /* kein text-shadow – wir sind nicht mehr auf dem Bild */
}

/* ── META-ROW (Tags unter Titel) ─────────────────────────── */
.fw-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}
.fw-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}
.fw-meta-item.cat {
  background: #e8f0eb;
  color: #3a5c47;
  font-weight: 600;
}
.fw-meta-item.cat:hover { background: #3a5c47; color: #fff; }
.fw-meta-item.highlight {
  background: #ede5d8;
  color: #6b5f54;
  border: 1px solid #d6c9b4;
}
.fw-meta-item.highlight i { color: #3a5c47; }
.fw-meta-item.highlight:hover { border-color: #3a5c47; color: #3a5c47; }
.fw-meta-item.edit {
  background: transparent;
  color: #9c8e82;
  border: 1px solid #d6c9b4;
}
.fw-meta-item.edit:hover { color: #3a5c47; border-color: #3a5c47; }

/* ── VERIFIED BADGE ──────────────────────────────────────── */
.fw-verified-row { margin: 0 0 12px; }
.fw-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3a5c47, #4d7a5f);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── MODULE CHIPS ────────────────────────────────────────── */
.fw-module-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}
.fw-module-chip--outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid #3a5c47;
  border-radius: 6px;
  background: transparent;
  color: #3a5c47;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.fw-module-chip--outline:hover {
  background: #3a5c47;
  color: #fff;
}

/* ── SECTION CONTAINERS ──────────────────────────────────── */
.fw-section-container {
  background: #fff;
  border: 1px solid #ede5d8;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(42,37,32,0.05);
}
.fw-section-title {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #9c8e82 !important;
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #ede5d8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.fw-section-title i { color: #3a5c47; }

/* Beschreibungs-Text */
.fw-description-section .fw-details-body {
  font-family: 'Jost', sans-serif;
  font-size: 0.97rem;
  color: #6b5f54;
  line-height: 1.78;
}

/* ── DETAILS (Nachhaltigkeit, Besonderheiten) ────────────── */
.fw-details {
  background: #fff;
  border: 1px solid #ede5d8;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.fw-details-green { border-left: 3px solid #3a5c47; }
.fw-details-gold  { border-left: 3px solid #b85c38; }

.fw-details-summary {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5f54;
  padding: 16px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  transition: background 0.2s;
}
.fw-details-summary:hover { background: #f7f3ee; }
.fw-details-summary i { color: #3a5c47; font-size: 0.9rem; }
.fw-details-green .fw-details-summary i { color: #3a5c47; }
.fw-details-gold  .fw-details-summary i { color: #b85c38; }

.fw-details .fw-details-body {
  padding: 0 22px 18px;
  font-size: 0.93rem;
  color: #6b5f54;
  line-height: 1.75;
}

/* ── EVENTS AUF SINGLE ───────────────────────────────────── */
.fw-events-section { margin-top: 24px; }
.fw-single-event-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #ede5d8;
}
.fw-single-event-row:last-child { border-bottom: none; }
.fw-single-event-date {
  min-width: 48px;
  text-align: center;
  background: #e8f0eb;
  border-radius: 8px;
  padding: 8px 6px;
  line-height: 1.2;
  flex-shrink: 0;
}
.fw-single-event-day {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #3a5c47;
  line-height: 1;
  display: block;
}
.fw-single-event-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #9c8e82;
  letter-spacing: 0.08em;
  display: block;
}
.fw-single-event-info { flex: 1; min-width: 0; }
.fw-single-event-type {
  display: inline-block;
  background: #e8f0eb;
  color: #3a5c47;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.fw-single-event-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #2a2520;
  margin-bottom: 2px;
}
.fw-single-event-dates { font-size: 0.78rem; color: #9c8e82; }
.fw-single-event-link {
  flex-shrink: 0;
  padding: 7px 14px;
  background: #3a5c47;
  color: #fff !important;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s;
}
.fw-single-event-link:hover { background: #4d7a5f; }

/* ── ÄHNLICHE FIRMEN ─────────────────────────────────────── */
.fw-similar-firms-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,48px) 48px;
}

/* ── SOCIAL BUTTONS ──────────────────────────────────────── */
.fw-single-social-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.fw-social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #ede5d8;
  border: 1px solid #d6c9b4;
  display: flex; align-items: center; justify-content: center;
  color: #6b5f54;
  font-size: 0.88rem;
  transition: all 0.2s;
  text-decoration: none;
}
.fw-social-btn:hover { background: #3a5c47; color: #fff; border-color: #3a5c47; }

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fw-single-header-wrap {
    height: 260px;
    border-radius: 0;
    margin-left: calc(-1 * clamp(16px, 4vw, 48px));
    margin-right: calc(-1 * clamp(16px, 4vw, 48px));
    width: calc(100% + 2 * clamp(16px, 4vw, 48px));
  }
  .fw-single-header-img { border-radius: 0; }
  .fw-single-logo-box {
    left: 16px;
    bottom: -36px;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    padding: 6px;
  }
  .fw-single-logo-box img { border-radius: 8px; }
  .fw-single-page .fw-single-grid { margin-top: 48px; }
  .fw-main-title { font-size: 1.7rem !important; }
  .fw-section-container { padding: 18px; }
}

/* ═══════════════════════════════════════════════════════════
   SINGLE HEADER – Responsive v97.1
   ═══════════════════════════════════════════════════════════ */

/* Desktop */
.fw-single-header-wrap { height: 440px; }

/* Tablet */
@media (max-width: 1024px) {
  .fw-single-header-wrap { height: 360px; }
  .fw-single-logo-box {
    width: 120px !important;
    height: 120px !important;
    bottom: -44px !important;
    left: 28px !important;
  }
  .fw-single-page .fw-single-grid { margin-top: 56px !important; }
}

/* Mobile */
@media (max-width: 768px) {
  .fw-single-header-wrap {
    height: 240px;
    border-radius: 0 !important;
    /* Full-bleed: über den Container-Rand */
    margin-left: calc(-1 * clamp(16px,4vw,48px));
    margin-right: calc(-1 * clamp(16px,4vw,48px));
    width: calc(100% + 2 * clamp(16px,4vw,48px));
  }
  .fw-single-header-img { border-radius: 0 !important; }
  .fw-single-logo-box {
    left: 16px !important;
    bottom: -34px !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px !important;
    padding: 6px !important;
  }
  .fw-single-logo-box img { border-radius: 7px !important; }
  .fw-single-page .fw-single-grid { margin-top: 44px !important; }
  .fw-main-title { font-size: 1.6rem !important; }
}

/* Sehr kleine Phones */
@media (max-width: 400px) {
  .fw-single-header-wrap { height: 180px; }
  .fw-single-logo-box {
    width: 64px !important;
    height: 64px !important;
    bottom: -28px !important;
    border-radius: 8px !important;
  }
  .fw-single-page .fw-single-grid { margin-top: 36px !important; }
}
