/*
Theme Name:   Confin Child
Theme URI:    https://www.alexhacker.de/
Description:  Child-Theme für Confin. Enthält zwei Korrekturen: Zoom-Freigabe auf Mobilgeräten (WCAG 1.4.4) und Seitentitel im Banner als H1 statt H2.
Author:       Fastenwandern Alex Hacker
Template:     confin
Version:      1.0.0
Text Domain:  confin-child
*/

/* Eigene Anpassungen ab hier */


/* ---- Termintabelle (TablePress) ---- */
.tablepress { border-collapse: collapse; width: 100%; }
.tablepress th { background: #f0f2ee; }
.tablepress td, .tablepress th { vertical-align: middle; }

/* Termintabelle auf schmalen Bildschirmen seitlich scrollbar machen */
.dt-container, .dataTables_wrapper, .tablepress-table-description + .dt-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 900px) {
  .dt-container, .dataTables_wrapper { overflow-x: auto; }
  .tablepress { min-width: 700px; }
  .tablepress, .tablepress td, .tablepress th { font-size: 15px; }
  .tablepress td, .tablepress th { padding: 8px 7px; white-space: nowrap; }
  .tablepress td:nth-child(3) { white-space: normal; }
}
/* Nummernspalte schmal und dezent */
.tablepress td:first-child, .tablepress th:first-child { width: 3em; text-align: right; color: #8a9099; }

/* ---- Programmheft-Kasten in den Wandergebieten ---- */
.programmheft {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin: 28px 0 6px;
  padding: 20px;
  background: #f6f8f1;
  border-left: 4px solid #7a9a3f;
  border-radius: 0 6px 6px 0;
}
.programmheft > a { flex: 0 0 150px; line-height: 0; }
.programmheft img {
  width: 150px; height: auto; display: block;
  border: 1px solid #dfe3d8; border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}
.programmheft img:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,.16); }
.programmheft-text { flex: 1 1 auto; }
.programmheft-text strong { display: block; font-size: 1.05em; margin-bottom: 6px; }
.programmheft-text p { margin: 0 0 14px; }
a.programmheft-knopf {
  display: inline-block; padding: 10px 20px;
  background: #7a9a3f; color: #fff !important;
  border-radius: 4px; text-decoration: none; font-weight: 600;
}
a.programmheft-knopf:hover { background: #688436; color: #fff !important; }
@media (max-width: 600px) {
  .programmheft { flex-direction: column; gap: 16px; }
  .programmheft > a { flex: none; align-self: center; }
}
