/*
 Theme Name:   customizr-child
 Description:  Theorie-Musik.de - In Community AutoOptimize deaktivieren
 Author:       Christian Probst
 Author URI:   
 Template:     customizr
 Version:      1.0
 Text Domain:  customizr-child
*/

/* Kontrast-Fix: Widget-Area Links */
.widget-area a {
    color: #595959;
}

/* ========================================
   COLOPHON KONTRAST-FIX
   (Hintergrund #242424 braucht mind. #999 für 4.5:1)
======================================== */
#colophon,
#colophon .czr-copyright-text,
#colophon .czr-rights-text,
#colophon .czr-wp-powered-text,
#colophon .czr-designer-text,
#colophon a.czr-copyright-link,
#colophon a.czr-wp-powered-link,
#colophon a.czr-designer-link {
    color: #aaaaaa !important;
}

/* ========================================
   FIGCAPTION / BILDUNTERSCHRIFTEN KONTRAST-FIX
   (#777777 auf #fff = 4.47 ? zu wenig, #595959 = 7:1 ?)
======================================== */
figcaption,
.wp-element-caption,
.wp-caption-text,
figure.wp-block-image figcaption {
    color: #595959 !important;
}

h6 {
    color: #595959 !important;
}

/* Richtlinienkonform: Schützt das gesamte Layout vor dem Ausbrechen auf Mobilgeräten */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Verhindert, dass der Inhalts-Container künstlich breiter als der Bildschirm wird */
#page, #main-wrapper, .site-content {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 1. Farbkontraste verbessern */

/* Kommentar-Formular Labels */
.comment-form label {
    color: #666666 !important; /* Kontrast: 4.54:1 ? */
}

/* Footer Links */
#footer .menu-fussmenu-container a {
    color: #999999 !important; /* Kontrast: 4.52:1 ? */
}

/* Footer Copyright */
#colophon .czr-copyright-text,
#colophon .czr-designer-text,
#colophon .czr-wp-powered-text,
#colophon a {
    color: #999999 !important; /* Kontrast: 4.52:1 ? */
}

/* Breadcrumb-Links unterstreichen */
.breadcrumbs a {
    text-decoration: underline !important;
}

/* Allgemeine Links mit #777777 */
a[style*="color: #777777"],
.code-block a {
    color: #666666 !important; /* Kontrast: 4.54:1 ? */
}

/* "ANTWORTEN"-Link */
.comment-reply-link {
    color: #666666 !important;
}

/* Header Tagline */
span.header-tagline {
    color: #666666 !important; /* war #777777 ? jetzt 4.6:1 ? */
}



div .hinweis {
    background-color: #FFBF00;
    display: inline-block;
    padding: 4px;
    color: #000000;
    border: 3px dashed #F03C18;
    border-radius: 13px;
    box-shadow: 6px 6px 5px #800000;
}

div .keineBorder {
border: none;
}

th {
 background-color: #FFBF00;
border: none;
}

  .spiele-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 16px 0;
  }

  .spiel-karte {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    display: flex;
    flex-direction: column;
  }

  .spiel-karte:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }

  .spiel-karte img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }

  .spiel-karte-inhalt {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .spiel-karte-inhalt h3 {
    margin: 0;
    font-size: 1.1rem;
  }

  .spiel-karte-inhalt h3 a {
    text-decoration: none;
    color: #1a1a1a;
  }

  .spiel-karte-inhalt h3 a:hover {
    color: #2e7d32;
  }

  .spiel-beschreibung {
    font-size: 0.88rem;
    color: #555;
    margin: 0;
    flex: 1;
  }

  .spiel-karte-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .btn-spielen {
    background-color: #2e7d32;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: bold;
    transition: background 0.2s;
  }

  .btn-spielen:hover {
    background-color: #1b5e20;
  }

  .btn-anleitung {
    background-color: #f0f0f0;
    color: #333 !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.88rem;
    transition: background 0.2s;
  }

  .btn-anleitung:hover {
    background-color: #ddd;
  }
  
  /* 
 * Focus Retriever: Internes Hilfselement des Customizr-Themes.
 * display:none entfernt es komplett aus dem Accessibility-Tree
 * ? Lighthouse und Screenreader ignorieren es beide korrekt.
 */
div.czr-focus input#focus_retriever,
div.czr-focus label[for="focus_retriever"] {
    display: none !important;
}

/* ============================================
   ACCESSIBILITY FIXES – Kontrast
   Lighthouse WCAG 1.4.3
   ============================================ */

/* 1. Kommentar-Formular Labels */
div#respond form#commentform label {
    color: #767676;
}

/* 2. Kommentar-Datum */
header.comment-meta div time.comment-date span {
    color: #767676;
}

/* 3. Footer Menü-Links */
ul#menu-fussmenu li a {
    color: #cccccc;
}

/* 4. Footer Credits */
p.czr-credits a {
    color: #bbbbbb;
}

/* =============================================
   ACCESSIBILITY: Farbkontrast-Fixes (WCAG 2.1 AA)
   ============================================= */

/* Fix 1: #777777 ? #595959 (Kontrast: 7.0:1)
   Betrifft: Tabellentext, Tagline, Sidebar-Links, Kommentar-Datum */
#tc-page-wrap td,
#tc-page-wrap td b,
#tc-page-wrap td strong,
#tc-page-wrap .header-tagline,
#tc-page-wrap .comment-date span,
#tc-page-wrap aside a {
    color: #595959;
}

/* Fix 2: #aaaaaa ? #595959 (Kontrast: 7.0:1)
   Betrifft: Kommentarformular-Labels */
#tc-page-wrap label[for="comment"],
#tc-page-wrap label[for="email"],
#tc-page-wrap label[for="author"],
#tc-page-wrap .comment-form label {
    color: #595959;
}

/* Fix 3: Button .btn-spielen ? dunkleres Grün (Kontrast: 5.1:1)
   Betrifft: #f3f8f3 auf #4d9151 */
#tc-page-wrap a.btn-spielen {
    background-color: #2d6e31;
    color: #ffffff;
}

/* Fix 4: Grüner Preis-Text ? #007a27 (Kontrast: 4.6:1)
   Betrifft: small.count2 */
#tc-page-wrap small.count2 {
    color: #007a27;
}

/* Fix 5: Footer-Links auf dunklem Hintergrund (Kontrast: 4.8:1)
   Betrifft: Fußzeilen-Menü */
#tc-page-wrap footer .menu-fussmenu-container a {
    color: #d0d0d0;
}

#ad-wrapper-1 {
  min-height: 280px; /* Desktop */
}

#ad-wrapper-2 {
  min-height: 495px; /* Desktop */
}

#ad-wrapper-3 {
  min-height: 600px;
}

@media (max-width: 768px) {
  #ad-wrapper-1 {
    min-height: 360px; /* Mobile */    
  }
  #ad-wrapper-2 {
    min-height: 1641px; /* Mobile */
  }
}
