/* Schreinerei Freymark – Einwilligung für externe Inhalte */

.fm-consent {
  position: fixed;
  z-index: 99999;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 46rem;
  margin-inline: auto;
  background: #ffffff;
  color: #3b2d14;
  border: 1px solid #e2d9c4;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(59, 45, 20, .25);
  font-family: inherit;
}

.fm-consent[hidden] { display: none; }

.fm-consent-innen { padding: 1.4rem 1.5rem; }

.fm-consent-titel {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #3b2d14;
}

.fm-consent-text {
  margin: 0 0 1.1rem;
  font-size: .88rem;
  line-height: 1.55;
  color: #4a3c22;
}

.fm-consent-text a,
.fm-platzhalter-link {
  color: #3b2d14;
  text-decoration: underline;
}

.fm-consent-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
}

.fm-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: .6rem 1.2rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.fm-btn-primaer {
  background: #3b2d14;
  color: #ffea98;
}

.fm-btn-primaer:hover,
.fm-btn-primaer:focus-visible {
  background: #574319;
  color: #ffea98;
}

.fm-btn-sekundaer {
  background: #ffffff;
  color: #3b2d14;
  border-color: #b8a982;
}

.fm-btn-sekundaer:hover,
.fm-btn-sekundaer:focus-visible {
  background: #fdf8e8;
  border-color: #3b2d14;
}

.fm-btn:focus-visible {
  outline: 2px solid #3b2d14;
  outline-offset: 2px;
}

/* Platzhalter anstelle des externen Inhalts */
.fm-platzhalter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 240px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fdf8e8;
  border: 1px dashed #c9b98d;
  border-radius: 6px;
  color: #3b2d14;
}

.fm-platzhalter[hidden] { display: none; }

.fm-platzhalter-titel {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.fm-platzhalter-text {
  margin: 0;
  max-width: 34rem;
  font-size: .88rem;
  line-height: 1.55;
}

.fm-platzhalter-link { font-size: .82rem; }

.fm-platzhalter-kde { min-height: 160px; }

@media (max-width: 575.98px) {
  .fm-consent-innen { padding: 1.15rem; }
  .fm-consent-btns { justify-content: stretch; }
  .fm-btn { flex: 1 1 auto; }
}
