/* ===== Thomas Mosbach – Startseite (tm-*) ===== */
/* Dark-theme (twentytwentyone, bg #141414). Text default ist hell/off-white. */

/* ---- Hero ---- */
.tm-hero {
  position: relative;
  color: #f5efe6;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(154,107,63,0.30), transparent 60%),
    linear-gradient(165deg, #171009 0%, #221510 45%, #0f0c09 100%);
  padding: 76px 24px 84px;
  text-align: center;
  overflow: hidden;
}
.tm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(100deg, transparent 0 120px, rgba(0,0,0,0.12) 120px 124px, transparent 124px 260px),
    repeating-linear-gradient(78deg, transparent 0 200px, rgba(154,107,63,0.06) 200px 206px, transparent 206px 340px);
  pointer-events: none;
}
.tm-hero .wp-block-group__inner-container { position: relative; z-index: 1; }
.tm-eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c8a273;
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
}
.tm-hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: #f6f1e8;
  margin-bottom: 1.2rem;
}
.tm-hero-sub {
  color: #d8cfc2;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}
.tm-cta-primary .wp-block-button__link { font-weight: 600; }
.tm-cta-ghost .wp-block-button__link {
  background: transparent;
  border: 1px solid rgba(246,241,232,0.55);
  color: #f6f1e8;
}
.tm-cta-ghost .wp-block-button__link:hover {
  background: rgba(255,255,255,0.10);
  border-color: #f6f1e8;
}
.tm-hero .wp-block-button__link { padding: 16px 30px; }
/* Hero-Buttons mittig ausrichten (flex-Container bricht text-align) */
.tm-hero .wp-block-buttons { justify-content: center; align-items: center; }
.tm-hero .wp-block-button__link { display: inline-block; }

/* ---- Section titles (dark theme -> hell) ---- */
.tm-section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #f6f1e8;
}

/* ---- Materials strip ---- */
.tm-materials {
  padding: 26px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.tm-materials .wp-block-columns { margin-bottom: 0; }
.tm-material-col { text-align: center; padding: 8px 10px; }
.tm-material-title {
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8a273;
  margin-bottom: 0.2rem;
}
.tm-material-desc {
  font-size: 0.9rem;
  color: #b6aa99;
  line-height: 1.5;
  margin: 0;
}

/* ---- Worlds (two cover columns) ---- */
.tm-worlds { padding: 48px 0 40px; }
.tm-world-card { display: flex; }
.tm-world-cover {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px -22px rgba(0,0,0,0.75);
}
/* Schwke Umrandung f�r wei�e Schrift �ber Bildern (Lesbarkeit auf verschiedenen Hintergr�nden) */
.tm-world-name,
.tm-world-tag,
.tm-cat-name,
.tm-cat-name a {
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.95),
     1px -1px 0 rgba(0,0,0,0.95),
    -1px  1px 0 rgba(0,0,0,0.95),
     1px  1px 0 rgba(0,0,0,0.95),
     0px  2px 4px rgba(0,0,0,0.65);
}
.tm-world-name { font-weight: 400; font-size: 1.9rem; color: #fff; margin-bottom: 0.4rem; hyphens: none; -webkit-hyphens: none; }
.tm-world-tag { color: #fff; font-size: 0.95rem; margin-bottom: 1.3rem; }
.tm-world-btn .wp-block-button__link {
  background: rgba(10,8,5,0.25);
  border: 1px solid rgba(255,255,255,0.75);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.tm-world-btn .wp-block-button__link:hover { background: #fff; color: #1b130c; }
/* Buttons auf den Cover-Karten mittig ausrichten */
.tm-world-cover .wp-block-buttons,
.tm-world-cover .wp-block-button {
  justify-content: center;
  text-align: center;
}
.tm-world-cover .tm-world-btn .wp-block-button__link {
  margin-inline: auto;
}

/* ---- Category grid ---- */
.tm-cats { padding: 40px 0 48px; }
/* Grid: Modulwände (Hauptprodukt) oben in voller Breite (1 / -1),
   übrige Kategorien darunter gleichmäßig 2-spaltig. Alle Bilder quadratisch (1:1).
   Titel sitzen als Overlay mittig ÜBER dem Bild. */
.tm-catgrid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px;
}
.tm-catgrid > .tm-cat {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  position: relative;              /* Anker für den Overlay-Titel */
}
/* Modulwände (letzte Karte im HTML): volle Breite, ganz oben */
.tm-catgrid > .tm-cat:last-child {
  order: -1 !important;
  grid-column: 1 / -1 !important;
}
.tm-catgrid > .tm-cat:last-child .tm-cat-name,
.tm-catgrid > .tm-cat:last-child .tm-cat-name a { font-size: clamp(1.6rem, 3vw, 2.2rem); }
/* Alle Vorschaubilder quadratisch und frei von Inline-Mindesthöhe */
.tm-cat-cover {
  border-radius: 10px;
  overflow: hidden;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
}
.tm-cat-cover .wp-block-cover__image-background,
.tm-cat-cover .wp-block-cover__background { object-fit: cover; width: 100%; height: 100%; }
/* Titel als Overlay mittig über dem Bild */
.tm-cat-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-weight: 400;
  font-size: 1.35rem;
  color: #fff;
  text-align: center;
  margin: 0;
  hyphens: none; -webkit-hyphens: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.6);  /* Lesbarkeit auf hellem Bild */
}
.tm-cat-name a { color: #fff; text-decoration: none; display: block; }
.tm-cat-name a:hover { color: #f3d9a4; }
@media (min-width: 782px) and (max-width: 1100px) {
  .tm-cat-name { font-size: 1.2rem; }
}
@media (max-width: 781px) {
  .tm-catgrid { grid-template-columns: 1fr !important; }
  .tm-cat-name { font-size: 1.25rem; white-space: normal; }
  .tm-catgrid > .tm-cat:last-child .tm-cat-name,
  .tm-catgrid > .tm-cat:last-child .tm-cat-name a { font-size: 1.5rem; }
}

/* ---- Final CTA (hell für Kontrast) ---- */
.tm-cta-make {
  margin-top: 16px;
  background-color: #f3ecdf;
  color: #241811;
  padding: 62px 24px;
  text-align: center;
  border-radius: 14px;
}
.tm-cta-make-title {
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  color: #241811;
  margin-bottom: 0.8rem;
}
.tm-cta-make-sub {
  color: #5c5144;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 1.9rem;
  line-height: 1.7;
}
/* fill button on light bg -> dunkel */
.tm-cta-make .tm-cta-primary .wp-block-button__link {
  background: #241811;
  color: #f3ecdf;
}

/* ---- Startseite: WooCommerce-Seitentitel ausblenden (nur Frontpage) ---- */
body.home .woocommerce-products-header__title.page-title,
body.page-id-743 .woocommerce-products-header__title.page-title {
  display: none;
}

/* ---- Responsive ---- */
@media (max-width: 781px) {
  .tm-hero { padding: 50px 18px 58px; }
  .tm-world-cover { min-height: 300px !important; }
}
