/*
 Theme Name:  Customify Child
 Description: Customify ist ein schnelles, leichtgewichtiges, reaktionsfähiges und superflexibles Mehrzweck-Theme, bei dessen Entwicklung SEO, Geschwindigkeit und Benutzerfreundlichkeit im Vordergrund standen.
 Autor:       Jurek
 Author URI:  https://www.jurekj.eu
 Template:    customify
 Version:     1.0
 Text Domain: customify-child
*/
/* ===========================
   📝 Grundlegende Textgestaltung
   =========================== */
body {
  font-size: 16px;
  line-height: 1.5;
}

main {
  background-color: rgb(253, 253, 253) !important;
}

h4, .h4 { font-size: 1.2em; }
h5, .h5 { font-size: 1.1em; }
h6, .h6 { font-size: 1.0em; }

.großer-abstand {
  margin-top: 0px;
  margin-bottom: 30px;
}

.zentriert {
  text-align: center;
}

.breite-ueberschrift {
  text-align: center;
  font-size: 1.5em;
  letter-spacing: 5px;
  margin-top: -8px;
}

.hobby-title {
  font-size: 1.5em;
  letter-spacing: 1px;
  margin: 10px 0;
  border: 3px solid #d4af37;
  padding: 8px 6px;
  border-radius: 6px;
  display: inline-block;
  background: #fff;
  position: relative;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===========================
   📄 Absätze & Links
   =========================== */
.extra-space {
  margin-bottom: 40px;
}
.extra-space a {
  color: #3498db;
}

/* Kalender-Links */
#wp-calendar td a { color: orange; }
#calendar_wrap a:hover { color: blue; }

/* ===========================
   🖼️ Bilder
   =========================== */
.blog .entry-content img,
.single .entry-content img {
  width: auto-flow; /* Tippfehler, sollte auto sein */
}

table img {
  width: 45px !important;
  height: auto !important;
}

/* Einheitliches Styling für alle ausgerichteten Bilder */
img.alignleft,
img.alignright,
img.aligncenter {
  border: 3px solid #d4af37;
  padding: 2px; 
  border-radius: 6px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: block;
  margin: 0.5em 1em 0.5em 0;
}

/* Hover-Effekt */
img.alignleft:hover,
img.alignright:hover,
img.aligncenter:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: scale(1.02);
}

/* Lightbox-Bilder */
.lightbox-container img {
  width: 159px;
  height: 100px;
  border-radius: 8px;
}
.lightbox-container img:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: scale(1.03);
}

/* ===========================
   📊 Tabellen
   =========================== */
table th, table td {
  border: 1px solid #eee;
  padding: 0.7em;
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
}

/* ===========================
   📊 Tabellen – FINAL DYNAMIC VERSION
   =========================== */

/* Tabellen-Links */
.table-responsive a:link { color: #3498db; }
.table-responsive a:visited { color: #9b59b6; }
.table-responsive a:hover {
  color: #e74c3c;
  text-decoration: underline;
}
.table-responsive a:active { color: #2ecc71; }

/* Tabellencontainer mit sichtbarem Rahmen */
.table-responsive {
  text-align: center;
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #ccc;       /* sichtbarer Außenrahmen */
  border-radius: 12px;
  overflow: hidden;
}

/* Zellen */
.table-responsive th,
.table-responsive td {
  background-color: #ffffff !important;
  text-align: center !important;
  vertical-align: middle;
  padding: 0.7em;
  font-size: 14px;
  border: 1px solid #ddd;       /* sichtbare Innenränder */
}

/* ===========================
   📐 Symmetrische Spaltenbreiten
   =========================== */

/* Jahr-Spalten (1 & 4) */
.table-responsive td:nth-child(1),
.table-responsive td:nth-child(4) {
  width: 12%;
  white-space: nowrap;
}

/* Flaggen-Spalten (2 & 5) */
.table-responsive td:nth-child(2),
.table-responsive td:nth-child(5) {
  width: 18%;
  white-space: nowrap;
}

/* Titel-Spalten (3 & 6) */
.table-responsive td:nth-child(3),
.table-responsive td:nth-child(6) {
  width: 20%;
}

/* ===========================
   🏳️ Flaggen
   =========================== */

.table-responsive td img {
  display: inline-block !important;
  vertical-align: middle;
  margin-right: 4px;
  height: 32px;
  transition: transform 0.2s ease;
}

.table-responsive td img:last-child {
  margin-right: 0;
}

/* ===========================
   📱 Smartphones
   =========================== */

@media (max-width: 1220px) {

  .table-responsive {
    display: block;
    border: none; /* Mobile: kein harter Tabellenrahmen */
  }

  /* Jede Tabellenzeile wird zu einem 3-Spalten-Grid */
  .table-responsive tr {
    display: grid;
    grid-template-columns: max-content max-content 1fr;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f2f2f2, #e8e8e8);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 100%;
    border: 1px solid #ddd; /* sichtbare Card-Ränder */
  }

  /* Flaggenzellen als Flex-Container */
  .table-responsive td:nth-child(2),
  .table-responsive td:nth-child(5) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  /* Jahr und Flaggen NICHT schrumpfen */
  .table-responsive td:nth-child(1),
  .table-responsive td:nth-child(2),
  .table-responsive td:nth-child(4),
  .table-responsive td:nth-child(5) {
    width: max-content !important;
  }

  /* Titel flexibel */
  .table-responsive td:nth-child(3),
  .table-responsive td:nth-child(6) {
    width: auto !important;
  }

  /* Mobile: keine harten Zellränder */
  .table-responsive td {
    border: none;
  }
}

/* ===========================
   📏 Dynamische Skalierung nach Anzahl der Flaggen
   =========================== */

/* 1 Flagge */
.table-responsive td:has(img:nth-of-type(1)):not(:has(img:nth-of-type(2))) img {
  height: 32px;
}

/* 2 Flaggen */
.table-responsive td:has(img:nth-of-type(2)):not(:has(img:nth-of-type(3))) img {
  height: 28px;
}

/* 3 Flaggen */
.table-responsive td:has(img:nth-of-type(3)):not(:has(img:nth-of-type(4))) img {
  height: 24px;
}

/* 4 Flaggen */
.table-responsive td:has(img:nth-of-type(4)):not(:has(img:nth-of-type(5))) img {
  height: 20px;
}

/* 5 oder mehr Flaggen */
.table-responsive td:has(img:nth-of-type(5)) img {
  height: 18px;
}

/* ===========================
   🎨 Optische Verbesserungen
   =========================== */

/* Zeilen mit leicht dunklerem Verlauf */
.table-responsive tr {
  background: linear-gradient(90deg, #f2f2f2, #e8e8e8);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Hover-Effekt */
.table-responsive tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: #ffffff;
}

/* Flaggen leicht vergrößern beim Hover */
.table-responsive td:hover img {
  transform: scale(1.08);
}

/* Titel-Text beim Hover hervorheben */
.table-responsive td:hover {
  color: #2c3e50;
  font-weight: 600;
}

/* Letzte Zeile ohne Unterstrich */
.table-responsive tr:last-child td {
  border-bottom: none;
}

/* ===========================
   🎥 Mediencontainer
   =========================== */
.iframe-container,
.iframe-caption,
.embed-caption,
.beitrag-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.iframe-container { border: none; }
iframe { border: none; }
.beitrag-container { line-height: 0.01 !important; }

.lightbox-container {
  max-width: 100%;
  margin: 0px 3px 0px 2px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  column-gap: 3px;
  row-gap: 4px;
}

.iframe-container-map {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.iframe-container-map {
  border: none; 
  position: relative;
  }

.iframe-container-map iframe {
  pointer-events: none;
}

.iframe-container-map.active iframe {
  pointer-events: auto;
}

.iframe-container-map:not(.active)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.lightbox-container {
  max-width: 100%;
  margin: 0px 3px 0px 2px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  column-gap: 3px;
  row-gap: 4px;
}

.video-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.video-container video {
  width: 100%;
  height: auto;
}

.fancybox-map { display: inline-block; cursor: pointer; }
.hidden { display: none; }

/* ===========================
   📑 Impressum & Sprachblöcke
   =========================== */
.impressum-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.impressum-container h4 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.language-block {
  margin-bottom: 2rem;
  padding: 1rem;
  border-left: 6px solid #0078D4;
  background: #fff;
  border-radius: 8px;
}
.language-block h5 {
  font-size: 1.4rem;
  color: #0078D4;
  margin-bottom: 0.5rem;
}
.language-block p {
  line-height: 1.6;
  color: #444;
  margin-bottom: 1rem;
}
.language-block a {
  color: #0078D4;
  text-decoration: underline;
}
.language-block img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .impressum-container { padding: 1rem; }
}

/* ===========================
   🔧 Sonstiges Layout
   =========================== */
.content-inner {
  margin-top: -20px !important;
  padding-top: 0 !important;
}
.footer-copyright { visibility: hidden; }
#page-breadcrumb {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

main.content-area { margin-top: 0px !important; }