/* ========================================================================== */
/*  STYLESHEET FÜR THEMES-CHOOSER                                          */
/*  Desktop-Design + Grundstyles                                             */
/* ========================================================================== */

/* Header Sektion */
.themes-chooser-header {
  color: #fff;
  padding: 40px 0;
  background-color: #2d2d2d;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
}

.themes-chooser-header h2 {
  color: #fff;
  font-size: 40px;
  line-height: 50px;
  margin-bottom: 20px;
  font-family: Georgia, serif;
  font-weight: normal;
}

.themes-chooser-header p {
  max-width: 900px;
  margin: auto;
  font-size: 1.25rem;
  line-height: 1.6em;
}

/* Container für die Themen-Auswahl */
.themes-chooser-container {
  display: flex;
  width: 100%;
  height: 600px;
  background-color: #2d2d2d;
}

/* Einzelne Column */
.tc-column {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: #2d2d2d;
  color: #fff;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}

/* Bilder */
.tc-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* Overlays auf der Column (dunkler Hintergrund bei Nicht-Hover) */
.tc-column:before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* Overlay wird transparent beim Hover oder Fokus */
.tc-column:hover:before,
.tc-column:focus-within:before {
  opacity: 0;
}

/* Überschriften in Spalten */
.tc-column h3 {
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 24px;
  margin: 20px 0;
  color: #fff;
  user-select: none;
  pointer-events: none;
}

/* Textcontainer in der Overlay-Box */
.column-inner {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  padding: 20px 30px 10px 30px;
  box-sizing: border-box;
  background-color: transparent;
  overflow: visible;
  z-index: 2;
  color: #fff;
  top: auto !important;
  transition: background-color 0.3s ease-out;
}

/* Hintergrund wird beim Hover/Fokus dunkler */
.tc-column:hover .column-inner,
.tc-column:focus-within .column-inner {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Zusatztexte (starten versteckt und leicht verschoben) */
.tc-motion-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #fff;
  position: relative;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

/* Zusatztexte werden sichtbar und angehoben beim Hover/Fokus */
.tc-column:hover .tc-motion-text,
.tc-column:focus-within .tc-motion-text {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Buttons */
.tc-button {
  color: #fff;
  display: inline-block;
  text-decoration: none;
  padding: 14px 23px;
  border: solid 1px #fff;
  transition: all 0.2s ease;
  position: relative;
  top: 0;
  font-weight: bold;
  line-height: 1.14em;
  user-select: none;
  cursor: pointer;
}

.tc-button:hover {
  background-color: #d93954;
  border-color: #d93954;
  color: #fff;
  top: -5px;
  text-decoration: none;
  outline: none;
}

.tc-button:focus {
  outline: 2px solid #d93954;
  outline-offset: 2px;
  background-color: #d93954;
  border-color: #d93954;
  color: #fff;
  top: -5px;
  text-decoration: none;
}

/* --- Responsive Desktop Anpassungen  --- */
@media (max-width: 768px) {
  .themes-chooser-header h2 {
    font-size: 1.6rem;
    line-height: 1.3em;
  }

  .themes-chooser-header p {
    font-size: 1rem;
    line-height: 1.7em;
  }
}


/* ========================================================================== */
/*  MOBILE STYLES                                                       */
/* ========================================================================== */

/* Ab 991px und kleiner: Layout wird vertikal, Overlays deaktiviert */
@media (max-width: 991px) {
  .themes-chooser-container {
    flex-direction: column;
    height: auto;
  }

  .tc-column {
    height: auto !important;
    flex: none !important;
    margin-bottom: 1.5rem;
    background-image: none !important;
    position: relative;
    overflow: visible !important;
  }

  .tc-image {
    width: 100%;
    object-fit: cover;
    margin-bottom: 0;
    display: block;
    height: auto;
  }

  /* Overlay komplett ausblenden */
  .tc-column:before,
  .tc-column:hover:before,
  .tc-column:focus-within:before {
    display: none !important;
  }

  /* Textcontainer statisch und sichtbar mit schwarzem BG */
  .column-inner {
    position: static !important;
    background-color: #000 !important;
    padding: 1rem 1.5rem !important;
    height: auto !important;
    box-sizing: border-box;
    overflow: visible !important;
    transition: none !important;
    opacity: 1 !important;
    color: #fff;
    text-align: center;
    width: 100%;
  }

  /* Zusatztext sichtbar und statisch */
  .tc-motion-text {
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
    pointer-events: auto !important;
    margin-bottom: 10px;
    transition: none !important;
    color: #fff;
    user-select: text;
  }

  /* Button Position wird zurückgesetzt */
  .tc-button {
    position: static !important;
    top: auto !important;
  }

  /* Hovereffekte deaktivieren für mobile */
  .tc-column:hover .column-inner,
  .tc-column:focus-within .column-inner {
    background-color: transparent !important;
  }

  .tc-column:hover:before,
  .tc-column:focus-within:before {
    background-color: transparent !important;
  }
}

/* Ab 767px und kleiner: weitere Anpassungen */
@media (max-width: 767px) {
  .themes-chooser-container {
    flex-direction: column;
    height: auto;
  }

  .tc-column {
    height: auto !important;
    flex: none !important;
    margin-bottom: 1rem;
  }

  .column-inner {
    position: static !important;
    height: auto !important;
    padding: 1rem 1.5rem !important;
    overflow: visible !important;
    background-color: #000 !important;
    box-sizing: border-box;
    transition: none !important;
    opacity: 1 !important;
  }

  .tc-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
  }
}