/* =========================================================
   heimtexland – Erweiterung 2026
   Showroom-Seite, Hilfecenter-Flyout, Menü-Anpassung
   ========================================================= */

/* ---------- Menü: 5 Punkte sauber unterbringen ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
  #cssmenu > ul { margin-left: 30px; }
  #cssmenu > ul > li > a { font-size: 18px; padding: 11px 8px; padding-right: 12px; }
}

/* ---------- Buttons: Abstand, wenn sie umbrechen ---------- */
.accent-button {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 8px;
}

/* ---------- Showroom: allgemeine Bausteine ---------- */
.showroom-page h1 {
  margin-top: 0;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.showroom-page .sr-section { margin-top: 50px; }
.showroom-page .sr-headline {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #8cbf46;
}
.showroom-page .sr-intro { margin: 18px 0 25px; }
.showroom-page .line-dec { width: 60px; height: 2px; background-color: #595959; }

/* ---------- Abschnitt 1: geteiltes Bild ---------- */
.sr-hero {
  display: flex;
  margin-top: 30px;
  background-color: #575757;
}
.sr-hero img { display: block; width: 100%; height: auto; }
.sr-hero-left  { flex: 771 1 0; min-width: 0; }
.sr-hero-right { flex: 369 1 0; min-width: 0; }

@media (max-width: 767px) {
  .sr-hero { flex-direction: column; }
  .sr-hero-left, .sr-hero-right { flex: none; }
  .sr-hero-right img { max-width: 420px; margin: 0 auto; }
}

/* ---------- Abschnitt 2: Online entdecken ---------- */
.sr-info { display: flex; align-items: stretch; background: #fff; }
.sr-info-box {
  flex: 0 0 33%;
  background-color: #575757;
  color: #fff;
  padding: 35px 30px;
}
.sr-info-box p, .sr-info-box a { color: #fff; }
.sr-info-box a:hover, .sr-info-box a:focus { color: #b5da80; }
.sr-info-box .sr-claim {
  margin: 0 0 25px;
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: #8cbf46;
}
.sr-info-box h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: #fff; }
.sr-info-box address { margin: 25px 0 0; font-family: 'Roboto', sans-serif; font-size: 15px; line-height: 22px; }
.sr-info-image {
  flex: 0 0 24%;
  background: url(../images/showroom/gardinenstudio-showroom.jpg) center bottom / cover no-repeat;
}
.sr-info-text { flex: 1 1 auto; position: relative; padding: 30px 30px 40px 25px; }
.sr-info-text h3 { margin: 0 0 4px; font-size: 21px; font-weight: 700; color: #595959; }
.sr-info-text p { margin: 0 0 22px; }
.sr-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  padding: 18px;
  box-sizing: border-box;
  margin: 10px 0 0 auto;
  border-radius: 50%;
  background: #8cbf46;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  transform: rotate(8deg);
}

@media (max-width: 991px) {
  .sr-info { flex-wrap: wrap; }
  .sr-info-box { flex: 1 1 100%; }
  .sr-info-image { flex: 0 0 35%; min-height: 360px; }
  .sr-info-text { flex: 1 1 60%; }
}
@media (max-width: 575px) {
  .sr-info-image { flex: 1 1 100%; min-height: 260px; background-position: center 70%; }
  .sr-info-text { flex: 1 1 100%; padding: 25px 15px 30px; }
  .sr-info-box { padding: 30px 20px; }
  .sr-info-box .sr-claim { font-size: 26px; }
  .sr-badge { width: 110px; height: 110px; font-size: 15px; margin-top: 0; }
}

/* ---------- Abschnitt 3: Events ---------- */
.sr-events { list-style: none; margin: 0; padding: 0; }
.sr-event {
  display: flex;
  align-items: stretch;
  margin-bottom: 15px;
  background: #f5f5f5;
}
.sr-event-date {
  flex: 0 0 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 15px;
  background: #595959;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}
.sr-event-date .days { font-size: 22px; font-weight: 700; line-height: 1.1; }
.sr-event-date .month { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.sr-event-body { flex: 1 1 auto; padding: 16px 20px; }
.sr-event-body h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #343434; line-height: 1.3; }
.sr-event-body p { margin: 0; }
.sr-event-body .times { font-weight: 500; color: #595959; }
.sr-event-body .times i { color: #8cbf46; margin-right: 6px; }
.sr-event-body .accent-button { margin-top: 12px; }
.sr-event-body .accent-button a { font-size: 14px; padding: 8px 16px; }
.sr-event-highlight { background: #eef6e3; }
.sr-event-highlight .sr-event-date { background: #8cbf46; }
.sr-event-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 10px;
  background: #8cbf46;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sr-event.is-past { display: none; }
.sr-events-empty { display: none; }
.sr-events.all-past + .sr-events-empty { display: block; }

@media (max-width: 575px) {
  .sr-event { flex-direction: column; }
  .sr-event-date { flex: none; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; padding: 10px 15px; text-align: left; }
  .sr-event-date .days { font-size: 18px; }
  .sr-event-date .month { margin-top: 0; }
  .sr-event-body { padding: 14px 15px; }
}

/* ---------- Abschnitt 4: Hilfecenter ---------- */
#hilfecenter { scroll-margin-top: 20px; }
.sr-help { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.sr-help-item { flex: 1 1 260px; margin: 0 10px 20px; }
.sr-help-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 25px 22px;
  background: #f5f5f5;
}
.sr-help-card .icon {
  width: 54px; height: 54px; line-height: 54px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #8cbf46;
  color: #fff;
  font-size: 24px;
  text-align: center;
}
.sr-help-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #343434; }
.sr-help-card p { flex: 1 1 auto; margin: 0 0 15px; }
.sr-status {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 20px;
  background: #dcdcdc;
  color: #595959;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sr-download {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 20px;
  background: #595959;
  color: #fff !important;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: background-color .3s;
}
.sr-download:hover, .sr-download:focus { background: #8cbf46; }

/* ---------- Hilfecenter-Flyout (alle Seiten) ---------- */
.hc-flyout {
  position: fixed;
  z-index: 9990;
  right: 0;
  top: 50%;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  transition: opacity .3s ease, transform .3s ease;
  font-family: 'Roboto', sans-serif;
}
.hc-flyout.hc-hidden { opacity: 0; pointer-events: none; transform: translate(40px, -50%); }
.hc-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 11px;
  border: 0;
  background: #8cbf46;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-direction: column;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: background-color .3s;
}
.hc-tab i { font-size: 18px; }
.hc-tab-text {
  display: block;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.hc-tab:hover, .hc-tab:focus-visible, .hc-open .hc-tab { background: #595959; }
.hc-tab:focus-visible, .hc-btn:focus-visible, .hc-close:focus-visible { outline: 3px solid #343434; outline-offset: 2px; }
.hc-panel {
  max-width: 0;
  overflow: hidden;
  visibility: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  transition: max-width .45s ease, visibility 0s linear .45s;
}
.hc-open .hc-panel { max-width: 300px; visibility: visible; transition: max-width .45s ease, visibility 0s; }
.hc-panel-inner { position: relative; width: 280px; padding: 24px 22px 22px; }
.hc-panel p { margin: 0 0 16px; padding-right: 14px; color: #595959; font-size: 15px; line-height: 22px; }
.hc-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 20px;
  background: #8cbf46;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  transition: background-color .3s;
}
.hc-btn:hover, .hc-btn:focus { background: #595959; }
.hc-close {
  position: absolute;
  top: 6px; right: 8px;
  width: 30px; height: 30px;
  border: 0;
  background: none;
  color: #595959;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.hc-close:hover { color: #8cbf46; }

/* Mobil: unten am Rand */
@media (max-width: 767px) {
  .hc-flyout {
    top: auto;
    bottom: 0;
    right: auto;
    left: 50%;
    flex-direction: column;
    transform: translateX(-50%);
  }
  .hc-flyout.hc-hidden { transform: translate(-50%, 40px); }
  .hc-tab {
    flex-direction: row;
    border-radius: 8px 8px 0 0;
    padding: 9px 18px;
    font-size: 14px;
  }
  .hc-tab i { font-size: 16px; }
  .hc-tab-text { -webkit-writing-mode: horizontal-tb; writing-mode: horizontal-tb; transform: none; }
  .hc-panel { max-width: none; max-height: 0; width: 100vw; transition: max-height .45s ease, visibility 0s linear .45s; }
  .hc-open .hc-panel { max-width: none; max-height: 220px; transition: max-height .45s ease, visibility 0s; }
  .hc-panel-inner { width: auto; max-width: 420px; margin: 0 auto; padding: 20px 20px 22px; text-align: center; }
  .hc-panel p { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-flyout, .hc-panel, .hc-open .hc-panel { transition: none; }
}
