/*
Theme Name:   Astra Kögl
Theme URI:    https://www.koegl-recycling.de
Description:  Child Theme für Kögl Recycling e.K. — basiert auf Astra
Author:       Kögl Recycling e.K.
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  astra-koegl
*/

/* ============================================
   KÖGL RECYCLING — FARBSCHEMA & CUSTOM CSS
   Primärfarbe:  Baumaschinengelb  #d4a017
   Akzentfarbe:  Hellblau          #5b9fd4
   Hintergrund:  Warmgrau          #f9f9f7
   Text:         Dunkelgrau        #2e2d2a
   ============================================ */

:root {
  --koegl-yellow:       #d4a017;
  --koegl-yellow-light: #fdf6e3;
  --koegl-yellow-mid:   #e8b830;
  --koegl-yellow-dark:  #a07810;
  --koegl-blue:         #5b9fd4;
  --koegl-blue-light:   #e8f3fb;
  --koegl-blue-mid:     #7ab5df;
  --koegl-blue-dark:    #3a7fb5;
  --koegl-gray-1:       #f9f9f7;
  --koegl-gray-2:       #eeede8;
  --koegl-gray-3:       #d8d6ce;
  --koegl-gray-4:       #9a9891;
  --koegl-gray-5:       #6a6860;
  --koegl-gray-6:       #4a4844;
  --koegl-gray-7:       #2e2d2a;
}

/* ── BODY ── */
body {
  background-color: var(--koegl-gray-1) !important;
  color: var(--koegl-gray-5) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

/* ── TOPBAR ── */
.ast-above-header-bar {
  background-color: var(--koegl-gray-2) !important;
  border-bottom: 2px solid var(--koegl-blue) !important;
  color: var(--koegl-gray-5) !important;
  font-size: 13px !important;
}

/* ── HEADER ── */
#masthead,
.site-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--koegl-blue-light) !important;
  box-shadow: 0 2px 8px rgba(91,159,212,0.08) !important;
}

/* ── NAVIGATION ── */
.main-header-menu .menu-item > a,
.main-header-menu .menu-item > .ast-menu-toggle {
  color: var(--koegl-gray-5) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
  color: var(--koegl-blue-dark) !important;
}
.main-header-menu .current-menu-item > a {
  color: var(--koegl-yellow-dark) !important;
  border-bottom: 3px solid var(--koegl-yellow) !important;
}
/* Dropdown */
.main-header-menu .sub-menu {
  border-top: 3px solid var(--koegl-yellow) !important;
  box-shadow: 0 4px 16px rgba(91,159,212,0.12) !important;
}

/* ── BUTTONS ── */
.ast-button,
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"],
.elementor-button {
  background-color: var(--koegl-yellow) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  transition: background-color 0.15s ease !important;
}
.ast-button:hover,
.button:hover,
input[type="submit"]:hover,
.elementor-button:hover {
  background-color: var(--koegl-yellow-dark) !important;
  color: #ffffff !important;
}
/* Blauer Sekundär-Button */
.button.secondary,
.ast-button.secondary,
.elementor-button.secondary {
  background-color: var(--koegl-blue) !important;
}
.button.secondary:hover,
.elementor-button.secondary:hover {
  background-color: var(--koegl-blue-dark) !important;
}

/* ── LINKS ── */
a { color: var(--koegl-blue-dark) !important; }
a:hover { color: var(--koegl-blue) !important; }

/* ── ÜBERSCHRIFTEN ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--koegl-gray-7) !important;
  font-weight: 700 !important;
}

/* ── SEITENTITEL-BANNER ── */
.ast-archive-description,
.ast-page-title,
.entry-header,
.page-title-wrap {
  background-color: var(--koegl-gray-7) !important;
  border-bottom: 4px solid var(--koegl-yellow) !important;
  padding: 48px 0 40px !important;
}
.ast-archive-description h1,
.ast-page-title h1,
.entry-title,
.page-title {
  color: #ffffff !important;
  font-size: 36px !important;
}
/* Breadcrumbs */
.ast-breadcrumbs a { color: var(--koegl-blue-mid) !important; }
.ast-breadcrumbs .ast-breadcrumbs-separator { color: var(--koegl-gray-5) !important; }

/* ── SIDEBAR ── */
#secondary .widget,
.widget-area .widget {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 0.5px solid var(--koegl-blue-light) !important;
  border-top: 4px solid var(--koegl-yellow) !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 12px rgba(91,159,212,0.07) !important;
}
#secondary .widget-title,
.widget-area .widget-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--koegl-blue-dark) !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--koegl-blue-light) !important;
  margin-bottom: 14px !important;
}

/* ── FOOTER ── */
#colophon,
.site-footer,
.ast-footer-overlay {
  background-color: var(--koegl-gray-2) !important;
  border-top: 2px solid var(--koegl-blue-light) !important;
  color: var(--koegl-gray-5) !important;
}
.ast-footer-widget-area .widget-title,
#colophon .widget-title {
  color: var(--koegl-blue-dark) !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  border-bottom: 1px solid var(--koegl-blue-light) !important;
  padding-bottom: 8px !important;
}
#colophon a,
.site-footer a { color: var(--koegl-gray-5) !important; }
#colophon a:hover,
.site-footer a:hover { color: var(--koegl-blue-dark) !important; }
.ast-footer-bar,
.footer-bar {
  background-color: var(--koegl-gray-3) !important;
  border-top: 1px solid var(--koegl-blue-light) !important;
  color: var(--koegl-gray-5) !important;
  font-size: 12px !important;
}

/* ── CONTENT-BEREICH ── */
.site-content,
#content { background-color: var(--koegl-gray-1) !important; }
.entry-content h2,
.entry-content h3 {
  color: var(--koegl-gray-7) !important;
}
.entry-content h2 {
  padding-bottom: 10px !important;
  border-bottom: 3px solid var(--koegl-yellow) !important;
  display: inline-block !important;
}
.entry-content h3 {
  padding-left: 14px !important;
  border-left: 4px solid var(--koegl-blue) !important;
  border-top-left-radius: 0 !important;
}
.entry-content ul li::marker {
  color: var(--koegl-yellow-dark) !important;
}

/* ── INFO-BOX (Klasse manuell vergeben) ── */
.info-box-gelb {
  background: var(--koegl-yellow-light);
  border-left: 4px solid var(--koegl-yellow);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--koegl-gray-6);
}
.info-box-blau {
  background: var(--koegl-blue-light);
  border-left: 4px solid var(--koegl-blue);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--koegl-gray-6);
}

/* ── CTA-LEISTE (als Elementor-Sektion nutzbar) ── */
.koegl-cta-bar {
  background: var(--koegl-yellow-light) !important;
  border-top: 4px solid var(--koegl-yellow) !important;
  border-bottom: 1px solid var(--koegl-blue-light) !important;
  padding: 40px !important;
}

/* ── TRENNLINIEN ── */
hr { border-color: var(--koegl-blue-light) !important; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .ast-page-title h1,
  .page-title { font-size: 26px !important; }
  body { font-size: 15px !important; }
  #secondary .widget { padding: 16px !important; }
  .ast-mobile-header-wrap {
    background: #ffffff !important;
    border-bottom: 2px solid var(--koegl-yellow) !important;
  }
}

/* ── ELEMENTOR KOMPATIBILITÄT ── */
.elementor-widget-heading .elementor-heading-title { color: var(--koegl-gray-7) !important; }
.elementor-button { border-radius: 8px !important; }
.e-con, .elementor-section { }
