/*
 Theme Name:   Opakann Child Theme
 Theme URI:    https://opakann.de
 Description:  Child Theme für Hueman Pro
 Author:       Jurek
 Template:     hueman-pro
 Version:      1.0.0
*/

/* Custom Styles */

/* "Follow:" im Sidebar-Top-Bereich ersetzen */
.sidebar-top p:first-child {
    font-size: 0 !important; /* Originaltext unsichtbar machen */
}

.sidebar-top p:first-child::after {
    content: "Folgen:" !important; /* Neuer deutscher Text */
    font-size: 16px !important;    /* gewünschte Größe */
    color: inherit !important;     /* gleiche Farbe wie vorher */
}

/* Symmetrische Tabellen – gleiche Spaltenbreiten, klare Struktur */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* erzwingt perfekte Symmetrie */
  margin: 1.5rem 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

table thead th,
table tbody td {
  width: 50%; /* exakt gleiche Spaltenbreite */
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  word-wrap: break-word;
}

table thead th {
  background: #f3f4f6;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e5e7eb;
}

table tbody tr:nth-child(even) {
  background: #fafafa;
}

table tbody tr:hover {
  background: #eef2ff;
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* Mobile: weiterhin symmetrisch, aber gestapelt */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 8px 0;
  }

  td {
    padding: 10px 16px;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 4px;
  }
}

/* ===============================
   📁 3. Bilddarstellung & Lightbox (Simple Lightbox aktiv)
   Beschreibung:
   - Bildgrößen, Hover-Effekte, Fancybox-Design
   - Unterstützt das Plugin "Simple Lightbox"
=============================== */

.lightbox-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  column-gap: 3px;
  row-gap: 0px;
  margin-bottom: 20px;
}

.lightbox-container img {
  width: 160px;
  height: 110px;
  border-radius: 4px;
  display: block;
  max-width: 100%;
  border: 2px solid #aaaa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin: -20px auto 4px auto;
}

.lightbox-container img:hover,
img.alignleft:hover,
img.alignright:hover,
img.aligncenter:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

img.alignright,
img.aligncenter,
img.alignleft {
  border-radius: 5px;
  transition: box-shadow 0.3s ease;
}

img.alignleft {
  margin-right: 10px;
  float: left;
}

img.alignleft.small { max-width: 150px; }
img.alignleft.medium { max-width: 250px; }

img.alignleft.large {
  max-width: 340px; 
  margin-top: 7px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.bildzentriert {
  text-align: center;
}
.bildzentriert img {
  float: none;
  display: inline-block;
}

/* Fancybox Caption – wird von Simple Lightbox übernommen */
.fancybox-caption {
  font-size: 18px !important;
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  padding: 10px 15px !important;
  border-radius: 5px !important;
  max-width: 90% !important;
  margin: 0 auto !important;
  text-align: center !important;
  font-family: "Helvetica", sans-serif !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.rezept-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  margin-top: 2em;
  flex-wrap: wrap;
}

.footer-links {
  text-align: left;
}

.footer-quellen {
  text-align: right;
}

/* Nur Beitrag drucken – Sidebar ausblenden */


  /* Sidebar komplett entfernen */
@media print {

  /* Sidebar komplett entfernen */
  #sidebar,
  .sidebar,
  .widget-area,
  .secondary,
  .sidebar-container {
    display: none !important;
  }

  /* ALLE Container auf volle Breite erzwingen */
  body *,
  body *::before,
  body *::after {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
  }

  /* Hueman-spezifische Layout-Wrapper neutralisieren */
  #wrapper,
  #main,
  #content,
  .main,
  .primary,
  .container,
  .container-inner,
  .wrapper,
  .content,
  .content-inner,
  .page-content,
  .single .content,
  .single .content-inner,
  .main-inner,
  .primary-inner {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  /* Spaltenlogik komplett deaktivieren */
  [class*="col-"],
  .col,
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  /* Header, Footer, Navigation optional ausblenden */
  header,
  .site-header,
  .nav-container,
  .footer,
  .site-footer {
    display: none !important;
  }

  /* Hintergrund neutralisieren */
  body {
    background: #fff !important;
  }
}

@media print {

  /* Gesamte Seite auf 90% skalieren */
  body {
    transform: scale(0.90);
    transform-origin: top left;
  }

  /* Verhindert, dass der Inhalt abgeschnitten wird */
  html, body {
    width: 100% !important;
    overflow: visible !important;
  }

  /* Optional: Seitenränder setzen */
  @page {
    margin: 10mm;
  }
}
