@import url("https://fonts.googleapis.com/css2?family=Marhey:wght@500&family=Xanh+Mono&display=swap");

.card-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  margin-right: 10rem;
  margin-left: 10rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.card {
  min-width: 20rem;
  width: 20rem;
  min-height: 35rem;
  position: relative;
  box-shadow: 2px 2px 8px 0 rgba(51, 51, 51, 0.15);
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  overflow: hidden; /* Ensures no overflow from children */
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding-bottom: 100%;
}

.card-image-1 {
  background-image: url("../images/products-catalogue.jpg");
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding-bottom: 100%;
}
.card-image-2 {
  background-image: url("../images/84877.jpg");
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding-bottom: 100%;
}

.card-image-3 {
  background-image: url("../images/conference-room.jpg");
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding-bottom: 100%;
}

.card-image-4 {
  background-image: url("../images/IMG_0156.jpg");
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding-bottom: 100%;
}

.card-image-news-1 {
  background-image: url("../images/HeimtextilDetex.jpg");
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding-bottom: 100%;
}

.card-image-news-2 {
  background-image: url("../images/Landing-2-img.jpg");
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding-bottom: 100%;
}

.card-content {
  padding: 20px;
  flex: 1;
  margin-bottom: auto;
}

.card-title {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-specification {
  font-size: 14px;
  color: #9999;
  margin-bottom: 10px;
}

.card-button {
  background-color: #aabfda;
  border: none;
  color: white;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 2rem;
  margin-left: 0.15rem;
  transition: background 0.4s ease;
}

.card-button:hover {
  background-color: #5b7492 !important;
}

.card-date {
  font-size: 14px;
  color: #aabfda;
  margin-bottom: 0.5rem;
}

@media (max-width: 50em) {
  .page-title {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .page-title-text {
    font-size: 36px;
  }
  .card-container {
    margin-left: 1rem;
    margin-right: 1rem;
    justify-content: center;
  }
}

@media (min-width: 1470px) {
  .card-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    margin-right: 20rem;
    margin-left: 20rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1600px) {
  .card-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    margin-right: 25rem;
    margin-left: 25rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }
}

/* ===== DetexWeb dx-* — FLEX ONLY · MODERN · NO INTERNAL SCROLL ===== */
:root {
  --dx-primary: #5b7492;
  --dx-accent: #aabfda;
  --dx-bg-soft: #ebeced;
  --dx-ink: #111;

  --dx-radius: 16px;
  --dx-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  --dx-t: 0.22s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---- Shared headings (centered) ---- */
.dx-section-head,
.dx-steps {
  text-align: center;
}

.dx-section-head h2,
.dx-steps h2 {
  margin: 0 0 0.5rem 0;
  color: var(--dx-primary);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  position: relative;
  display: inline-block;
}
.dx-section-head h2::after,
.dx-steps h2::after {
  content: "";
  display: block;
  height: 3px;
  border-radius: 999px;
  margin: 0.45rem auto 0 auto;
  width: 72px;
  background: linear-gradient(90deg, var(--dx-accent), var(--dx-primary));
  opacity: 0.45;
}
.dx-section-head p {
  margin: 0.35rem auto 0 auto;
  max-width: 780px;
  color: #444;
  font-size: 14.5px;
}

/* -------------------- Global reach (flex) -------------------- */
.dx-global {
  max-width: 1180px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid lightgrey;
  border-radius: var(--dx-radius);
  padding: 1.25rem;
  overflow: visible;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.dx-chips,
.dx-icp {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.dx-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--dx-accent);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  transition: transform var(--dx-t), box-shadow var(--dx-t),
    background var(--dx-t);
}
.dx-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.dx-chip.ghost {
  background: #fff;
  color: var(--dx-primary);
  border: 1px solid var(--dx-accent);
}

.dx-lanes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.75rem;
  overflow: visible;
}
.dx-lane {
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 100%;
  background: var(--dx-bg-soft);
  border-radius: 12px;
  padding: 0.95rem 0.95rem 1rem;
  text-align: center;
  transition: transform var(--dx-t), box-shadow var(--dx-t),
    border-color var(--dx-t);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.dx-lane:hover {
  transform: translateY(-3px);
  box-shadow: var(--dx-shadow);
  border-color: rgba(170, 191, 218, 0.75);
}
.dx-lane strong {
  display: block;
  color: #1f2d3d;
  margin-bottom: 0.15rem;
}
.dx-lane span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

/* -------------------- Steps timeline (flex, no scroll) -------------------- */
.dx-steps {
  max-width: 1180px;
  margin: 2rem auto;
}
.dx-steps-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: visible;
}
.dx-step-card {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 100%;
  background: #fff;
  border: 1px solid lightgrey;
  border-radius: var(--dx-radius);
  padding: 1rem 0.95rem 1.1rem;
  text-align: left;
  transition: transform var(--dx-t), box-shadow var(--dx-t),
    border-color var(--dx-t);
  will-change: transform;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.dx-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dx-shadow);
  border-color: rgba(170, 191, 218, 0.75);
}
.dx-step-card h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--dx-primary);
}
.dx-step-card p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.35;
}
.dx-step-num {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--dx-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ===== Heimtextil Frankfurt — Sober, Minimal, Icon Buttons ===== */
:root {
  --dx-primary: #5b7492;
  --dx-accent: #aabfda;
  --dx-bg-soft: #ebeced;
  --dx-ink: #111;

  --dx-radius: 16px;
  --dx-hairline: rgba(0, 0, 0, 0.08);
  --dx-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  --dx-t: 0.22s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Container */
.dx-fair {
  max-width: 1180px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid var(--dx-hairline);
  border-radius: var(--dx-radius);
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  overflow: visible; /* never create inner scroll */
}

/* Clean, centered header */
.dx-fair-head {
  text-align: center;
  padding: 0.25rem 0.5rem 0.75rem;
  border-bottom: 1px solid var(--dx-hairline);
}
.dx-fair-head h2 {
  margin: 0.1rem 0 0.35rem;
  color: var(--dx-primary);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
}
.dx-fair-head p {
  margin: 0;
  color: #444;
  font-size: 14.5px;
}

/* Simple meta tags */
.dx-fair-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.5rem 0.7rem;
  margin: 0;
}
.dx-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #f7f8f9;
  color: #333;
  font-size: 13px;
  border: 1px solid var(--dx-hairline);
  white-space: nowrap;
}
.dx-tag.ghost {
  background: #fff;
  color: #2d3a49;
}

/* Body layout — flex only */
.dx-fair-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
  padding: 0.25rem 0.5rem 0.75rem;
}

.dx-fair-copy {
  flex: 2 1 420px;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--dx-hairline);
  border-radius: 12px;
  padding: 1rem;
}
.dx-fair-copy p {
  margin: 0.25rem 0 0.5rem;
  color: #333;
}
.dx-fair-list {
  padding-left: 1rem;
  margin: 0.25rem 0 0;
}
.dx-fair-list li {
  margin: 0.15rem 0;
  font-size: 14px;
  color: #445;
}

/* Icon actions — round buttons with labels below (no bars) */
.dx-fair-actions {
  flex: 1 1 320px;
  min-width: 280px;
  border: 1px solid var(--dx-hairline);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0.9rem;
  justify-content: center;
  align-items: flex-start;
}
.dx-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 88px; /* consistent column width; wraps via flex */
}
.dx-icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #2b3a4b;
  border: 1px solid var(--dx-hairline);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform var(--dx-t), box-shadow var(--dx-t),
    background var(--dx-t), color var(--dx-t), border-color var(--dx-t),
    filter var(--dx-t);
  text-decoration: none;
}
.dx-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Hover style: subtle lift + brand color fill */
.dx-icon-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--dx-shadow);
  border-color: rgba(170, 191, 218, 0.7);
}

/* Brand accents on hover/focus — sober by default, color on interaction */
.dx-icon-btn.wa:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.dx-icon-btn.wc:hover {
  background: #1aad19;
  color: #fff;
  border-color: #1aad19;
}
.dx-icon-btn.ig:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: #fff;
  border-color: transparent;
}
.dx-icon-btn.em:hover {
  background: #f8f9fb;
  color: #1f2d3d;
  border-color: rgba(170, 191, 218, 0.7);
}

.dx-icon-label {
  font-size: 12.5px;
  color: #2d3a49;
}

/* Responsive (flex tuning only) */
@media (max-width: 1024px) {
  .dx-fair-copy,
  .dx-fair-actions {
    flex: 1 1 320px;
  }
}
@media (max-width: 640px) {
  .dx-fair-copy,
  .dx-fair-actions {
    flex: 1 1 100%;
    min-width: 0;
  }
  .dx-icon {
    width: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
