/*
 Theme Name: Galerie Datenbank Child
Template: twentyseventeen
Version: 1.0
Author: Tom Bernberger
Description: Child Theme - Künstlerdatenbank der Galerie Welz
*/

/* bootstrap Überschreibung */
.btn-primary {
  background-color: #2b3e50;
  border: none;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}
/* Header logo */
.logo a {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 40px;      /* gewünschte Höhe */
    width: auto;       /* Proportionen behalten */
    display: block;
}

/* Header Basis-Layout */
.site-header {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.logo a {
  font-weight: 700;
  font-size: 1.2rem;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  background: #0073aa;
  color: #fff;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  margin-left: 15px;
}

 @media (max-width: 800px) {
   /* Header insgesamt kompakter machen  */
  .site-header {
    padding: 0px 0;
  }

  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;       
    position: relative;     
  }

  .logo-img {
    height: 34px;            
    width: auto;
  }

  .menu-toggle {
    display: block !important;
    margin-left: auto;
    margin-right: 0;
    padding: 15px 12px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
  }

  .menu-toggle.open {
    color: #0073aa;
  }

   /* Menü ausgeklappt unter dem Header, nicht mehr im Header drin  */
  .main-nav {
    position: absolute;
    top: 100%;               
    left: 0;
    right: 0;
    display: none !important;
    flex-direction: column;
    align-items: flex-start;
    background: #f5f5f5;
    padding: 10px 16px 12px;
    border-top: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    z-index: 1100;           
  }

  .main-nav.nav-open {
    display: flex !important;
  }

  .main-nav a {
    padding: 8px 0;
    width: 100%;
  }
} 
@media (max-width: 991px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 98% !important;
    }
}

/* --------------------------------------------------------------- */

/* Hover für ALLE klickbaren Tabellenzeilen im Projekt */
.clickable-row:hover{
  background-color: #f5f5f5 !important;
  transition: background-color 0.2s ease-in-out !important;
  cursor: pointer;
}

/* Hover für die Werktabelle auf der Künstler-Einzelseite erzwingen */
#werke-tabelle tbody tr.clickable-row:hover {
  background-color: #f5f5f5 !important;
  transition: background-color 0.2s ease-in-out !important;
  cursor: pointer !important;
}

.table-hover td a {
    color: #000 !important;
    text-decoration: none !important;
}

.table td.text-center {
  text-align: center;
  vertical-align: middle;
}

.kuenstler-tabelle td {
  font-size: 0.95rem;
}

.kuenstler-tabelle td:has(> .verstorben-symbol) {
  text-align: center;
}


.kuenstler-gebtot {
  width: auto;             /* nicht 100% breit */
}

.kuenstler-gebtot th,
.kuenstler-gebtot td {
  padding: .25rem .5rem .25rem 0;
  vertical-align: middle;
}

.kuenstler-gebtot th {
  white-space: nowrap;     /* "Geboren:" und "Verstorben:" nicht umbrechen */
  font-weight: 400;
  vertical-align: middle;
}

.kuenstler-gebtot td {
  font-size: 16px;
}

.verstorben-symbol {
  color: #444;
  font-size: 1.1rem;
}

/* Tabellen-Layout Korrekturen */
.kunstwerk-tabelle td.text-end {
  text-align: right !important;
}

.kunstwerk-tabelle th,
.kunstwerk-tabelle td {
  vertical-align: middle;
}

.kunstwerk-tabelle td:last-child {
  white-space: nowrap;
  padding-right: 1rem;
}

.kunstwerk-tabelle .col-masse,
.kunstwerk-tabelle th.col-masse,
.kunstwerk-tabelle td.col-masse {
  white-space: nowrap;
  min-width: 120px;
}

/* --- Spalten-Optionen über Tabellen --- */
.table-options {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 15px;
}

.table-options label {
  margin-right: 15px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.table-options input[type="checkbox"] {
  margin-right: 5px;
}

.table-options .text-muted {
  color: #6c757d !important;
  font-style: italic;
  margin-right: 15px;
}

/* ===== Sortierpfeile für alle Tabellenüberschriften ===== */
/* Standardzustand (noch nicht sortiert) */
#kuenstlerTabelle th::after,
#werkeTabelle th::after,
#alleWerkeTabelle th::after {
  content: " ⇅";
  font-size: 0.8em;
  color: #bbb;
}

/* Aufsteigend sortiert */
#kuenstlerTabelle th.sorted-asc::after,
#werkeTabelle th.sorted-asc::after,
#alleWerkeTabelle th.sorted-asc::after {
  content: " ▲";
  font-size: 0.8em;
  color: #000;
}

/* Absteigend sortiert */
#kuenstlerTabelle th.sorted-desc::after,
#werkeTabelle th.sorted-desc::after,
#alleWerkeTabelle th.sorted-desc::after {
  content: " ▼";
  font-size: 0.8em;
  color: #000;
}

.kunstwerk-bild {
    cursor: zoom-in;
    transition: transform 0.2s ease;
  }
  .kunstwerk-bild:hover {
    transform: scale(1.02);
  }
  .modal-content img {
    cursor: zoom-out;
  }

/*============== Lightbox für single-kunstler.php =============*/

/* === Lightbox Grundstruktur === */
#kunstwerkLightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
#kunstwerkLightbox.d-none {
  display: none !important;
}
#kunstwerkLightbox .lightbox-overlay {
  position: absolute;
  inset: 0;
}

/* === Lightbox-Inhalt === */
#kunstwerkLightbox .lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#kunstwerkLightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* === Caption (Künstler & Titel) === */
.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}
#lightboxArtist, #lightboxTitle {
  display: block;
  text-align: center;
  max-width: 90%;
  margin: 0.25rem auto;
  word-wrap: break-word;
}
#lightboxArtist {
  font-size: 1rem;
  color: #ccc;
}
#lightboxTitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}

/* === Navigationstasten === */
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0,0,0,0.3);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* === Schließen-Button === */
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.lightbox-close:hover {
  opacity: 1;
}

/* === Animation optional === */
#kunstwerkLightbox.active {
  opacity: 1;
}

.table-pagination-controls label { 
  font-weight: 500; }
.table-pagination-controls .form-select { 
  min-width: 84px; }

/* style.css */
.container .card { 
  border-radius: .5rem; box-shadow: 0 2px 12px rgba(0,0,0,.06); }

/* Scrollbereich begrenzen */
.table-responsive.sticky-head {
  max-height: 70vh;        /* nach Wunsch 60–80vh */
  overflow: auto;
}

/* Sticky-Header */
.table-responsive.sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 2;              /* über dem Body */
  background: #fff;        /* MUSS gesetzt sein, sonst durchsichtig */
  background-clip: padding-box;
  box-shadow: 0 2px 0 rgba(0,0,0,.05); /* kleine Trennlinie */
}

/* Optional: sticky Footer (falls verwendet) */
.table-responsive.sticky-head tfoot th,
.table-responsive.sticky-head tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: #fff;
}

.availability-icon { font-size: 1.05rem; line-height: 1; }

/* Boxen-Gestaltung */
.box-design{
  background-color: white !important;
  border: none !important;
  box-shadow: 0px 3px 13px 2px rgba(13,110,253, 0.2);
}

.box-design-login{
  background-color: white !important;
  border: none !important;
  box-shadow: 0px 3px 13px 2px rgba(13,110,253, 0.2);
}

.kunstler-flex{
  display: flex;
}

.box-air{
  margin: 10px 25px 10px 25px;
  line-height: 1.8;
}

.checkbox-design{
  background-color: white !important;
  border: none !important;
  box-shadow: 0px 3px 13px 2px rgba(0,0,0, 0.08);
  padding-top: 15px;
}

.checkbox-design label{
  margin-left: 15px;
  margin-right: 15px !important;
}

.login-title{
  text-align: center;
}

.login-logo-einzeilig{
  margin-top: 12vh;
}

.login-logo-einzeilig p{
  text-align: center;
}

/* Kunstwerke Thumbnails-Anzeige */
/* Single-Künstler > Werketabelle: Bildspalte */
.table.kunstwerk-tabelle .col-bild { width: 120px; }
.werk-thumb {
  display: inline-block;
  max-width: 110px;
  max-height: 110px;
  object-fit: cover;
  border-radius: 8px;
}
.no-thumb {
  width: 110px;
  height: 110px;
  line-height: 110px;
  border: 1px dashed #ddd;
  border-radius: 8px;
}

/* Thumbnail Vorschau-Popup */
/* Bildspalte */
.table.kunstwerk-tabelle .col-bild { width: 120px; }

.thumb-wrap {
  position: relative;
  display: inline-block;
}

/* Popup beim Hover */
.hover-preview {
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  z-index: 1000;
  white-space: nowrap;
}

.thumb-wrap:hover .hover-preview { display: block; }

.preview-img {
  max-width: 360px;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

/* Thumbnail-Optik */
.werk-thumb {
  display: inline-block;
  max-width: 110px;
  max-height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.no-thumb {
  width: 110px; height: 110px; line-height: 110px;
  border: 1px dashed #ddd; border-radius: 8px;
}

/* WICHTIG: Overlay nicht abschneiden */
.table-responsive.sticky-head { overflow: visible; }

@media (max-width: 992px) {
  .hover-preview { left: auto; right: 110%; }
}

.textfield-look{
    border: solid rgb(0 0 0 / 10%) 1px;
    border-radius: 5px;
    padding-top: 15px;
}

.vermerke-look{
    border: solid rgb(0 0 0 / 10%) 1px;
    border-radius: 5px;
    padding: 20px 18px 5px 20px;
}

.werkbild-style{
    box-shadow: 0px 53px 36px -26px rgba(0, 0, 0, 0.2);
}

.zuletzt-style{
    margin: 20px 0 20px 0 !important;
}

.res-color{
    color: green;
}

/* --- Fix: Hover-Preview nur bei Maus-Hover zeigen (auch in Firefox/live) --- */
.table.kunstwerk-tabelle .thumb-wrap .hover-preview {
  display: none !important;
}

.table.kunstwerk-tabelle .thumb-wrap:hover .hover-preview {
  display: block !important;
}

.entry-title{
  display: none;
}

/* Sticky-Container soll mitwachsen, nichts mehr "abkappen" */
.table-responsive.sticky-head {
  max-height: none;
  overflow: visible;
}

/* Zentrale Erfolgsbox nach Künstler- ODER Kunstwerk-Löschung */
#kuenstlerDeletedAlert,
#kunstwerkDeletedAlert {
  position: fixed;
  top: 30%;                 /* ggf. an Header-Höhe anpassen */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;             /* über dem Header (der hat 1000) */
  min-width: 600px;
  max-width: 800px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* auf sehr kleinen Screens etwas schmaler */
@media (max-width: 576px) {
  #kuenstlerDeletedAlert,
  #kunstwerkDeletedAlert {
    top: 60px;
    width: calc(100% - 40px);
  }
}

.hr-invisible{
  visibility: hidden;
}

/* Untere Pagination-Leiste: Dropdown und Label ausblenden,
   nur bei der zweiten/unteren Controls-Leiste */
.table-container .table-pagination-controls-bottom:not(:first-of-type) label,
.table-container .table-pagination-controls-bottom:not(:first-of-type) select {
  visibility: hidden !important;
}

/* Weiches Ein-/Ausfaden beim Hover für die Paginierungs-Buttons */
.table-pagination-controls .btn {
  transition:
    background-color 0.50s ease,
    color 0.50s ease,
    border-color 0.50s ease,
    box-shadow 0.50s ease;
}

/* Optional: etwas deutlicherer Hover-Look */
.table-pagination-controls .btn.btn-outline-secondary:hover {
  background-color: #2b3e50;   /* gleiche Farbe wie deine .btn-primary */
  color: #fff;
  border-color: #2b3e50;
}

/* Bearbeiten-Buttons (gelb): Text beim Hover weiß */
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  color: #fff !important;
}

#check-lebend, #check-tot{
  display: none !important;
}

.sorted-desc, .sorted-asc{
  color: rgb(184, 13, 13) !important;
}

#kuenstlerTabelle td.col-nachname {
  text-transform: uppercase;
}

#kuenstlerTabelle,
.table.kuenstler-tabelle {
  font-size: 1.1rem; /* ~ ein Tick größer als Standard; ggf. auf 1.1rem erhöhen */
}

.suchzeile{
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Nur für die kleine Künstler-Info-Tabelle auf der Detailseite */
.kuenstler-tabelle {
  width: auto;
}

.kuenstler-tabelle th {
  width: auto;          /* keine feste Breite */
  white-space: nowrap;  /* "Geboren:" bleibt in einer Zeile */
  padding-right: 6px;   /* kleiner Abstand vor dem Jahr */
  font-weight: normal;
  font-size: 1.1em;
}

.kuenstler-tabelle td {
  width: auto;
  vertical-align: middle;
  font-size: 1.1em;
}

th.col-select::after{
  display: none !important;
}



/* ==== NAVIGATION ==== */

.site-header {
    position: relative;
    z-index: 1000;
    background: transparent;
    border-bottom: 0;
    padding: 0;
}

.header-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Desktop: rechte vertikale Navigation */
.main-nav {
    position: fixed;
    top: 5px;
    right: 16px;
    bottom: 20px;
    width: 152px;

    display: flex;
    flex-direction: column;

    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

.main-nav-head {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
}

.main-nav-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* die restlichen Links bleiben mittig */
    gap: 8px;
}
.main-nav-top a{
    padding: 10px 15px;
    font-size: 1.15em;
}

 .main-nav-head a{
    padding: 10px 15px;
}

.nav-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: #1f1f1f;
    font-weight: 500;
    padding: 8px 15px 8px 15px;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background: rgba(43, 62, 80, 0.18);
    color: #000;
}

.logout {
    font-weight: 800 !important;
    color: rgb(211, 2, 2) !important;
}

.desklock {
    font-weight: 800 !important;
    color: rgb(255, 127, 6) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.logout:hover, .desklock:hover {
    color: rgb(255, 255, 255) !important;
}

body {
    padding-right: 190px;
}

@media (max-width: 1100px) {
  .main-nav {
      position: static;
      width: auto;
      height: auto;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 12px;
      background: #f5f5f5;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: none;
      border: 0;
  }

  .main-nav-top {
      justify-content: flex-start;
  }

  body {
      padding-right: 0;
  }
}

/* NEUE NAVIGATION ENDE */

.db-logo-front{
    max-height: 100px;
    margin: 0 15px 0 15px;
}

@media(max-width:860px){
  .kunstler-anzeige{
    display: none;
  }
}

.stat-card {
  box-shadow: 0px 3px 13px 2px rgba(0,0,0, 0.08);
  border: none !important;
}

.statistik-wrapper .card{
  border: none;
  box-shadow: 0px 3px 13px 2px rgba(0,0,0, 0.08);
  border-radius: 10px;
}

.werke-untertitel{
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.4;
}
/* Nur auf der Seite "Liste Kunstwerke" den Container breiter machen */
.page-template-liste-kunstwerke .container {
  max-width: 1500px;   /* oder 1500 / 1600 nach Geschmack */
}

/***** Tabellenzeilen-Einfärbung bei Statusänderung *****/
.kunstwerk-tabelle tr.row-verkauft td:first-child {
  border-left: 5px solid #dc3545 !important;
}

.kunstwerk-tabelle tr.row-verkauft td:last-child {
  border-right: 5px solid #dc3545 !important;
}

.kunstwerk-tabelle tr.row-reserviert td:first-child {
  border-left: 5px solid #25a368 !important;
}

.kunstwerk-tabelle tr.row-reserviert td:last-child {
  border-right: 5px solid #25a368 !important;
}
.kunstwerk-tabelle tr.row-verkauft td,
.kunstwerk-tabelle tr.row-verkauft th {
  color: #dc3545 !important;
}

.kunstwerk-tabelle tr.row-reserviert td,
.kunstwerk-tabelle tr.row-reserviert th {
  color: #25a368 !important;
}

.single-kuenstler-wrap{
  max-width: 1600px !important;
}

/* ***************** Sichtschutz ******************** */
.privacy-shield {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.privacy-shield.is-active {
  display: block;
}

.privacy-shield-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.privacy-shield-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 40px));
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.18);
  text-align: center;
}

.privacy-shield-actions {
  margin-top: 14px;
}

.privacy-shield-error {
  margin-top: 12px;
  color: #b42318;
  min-height: 1.2em;
}
.privacy-code-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.privacy-code-digit {
  width: 56px;
  height: 64px;
  text-align: center;
  font-size: 2rem;
  line-height: 1;
  border: 1px solid #cfd4dc;
  border-radius: 12px;
  background: #fff;
  outline: none;
}

.privacy-code-digit:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

@media (max-width: 480px) {
  .privacy-code-digit {
    width: 48px;
    height: 56px;
    font-size: 1.6rem;
  }
}

.detailsuche-print button{
  margin: 10px;
}
 
/* ************ Druck Modalfenster Gestaltung ************ */

#werkeExportModal .checkbox-group,
#werkExportModal .checkbox-group,
#galerieExportModal .checkbox-group {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafafa;
}

#werkeExportModal .section-title,
#werkExportModal .section-title,
#galerieExportModal .section-title {
  margin-bottom: .85rem;
  font-weight: 500;
}

#werkeExportModal .checkbox-group,
#werkExportModal .checkbox-group,
#galerieExportModal .checkbox-group {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafafa;
}

@media (min-width: 768px) {
  #werkeExportModal .columns-grid,
  #werkExportModal .columns-grid,
  #galerieExportModal .columns-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}