/*
Theme Name:   AGW Ruhr Child
Theme URI:    https://agw.ruhr
Description:  Child Theme für Kadence – Arbeitsgemeinschaft Ruhr
Author:       AGW Ruhr
Template:     kadence
Version:      2.0.0
License:      GNU General Public License v2 or later
Text Domain:  agw-ruhr-child
*/

/* ============================================================
   AGW RUHR – DESIGN TOKENS
   Farben: Orange (Logo), Schwarz/Weiß, WCAG 2.1 AA konform
   ============================================================ */

:root {
  --agw-orange:        #f7931e;
  --agw-orange-text:   #C2680A;
  --agw-orange-dark:   #A3560A;
  --agw-orange-light:  #FFF4E6;
  --agw-black:         #111111;
  --agw-dark:          #1C1C1C;
  --agw-mid:           #3D3D3D;
  --agw-muted:         #595959;
  --agw-subtle:        #767676;
  --agw-border:        #E0E0E0;
  --agw-surface:       #F7F7F7;
  --agw-white:         #FFFFFF;
  --agw-font-body:     'Outfit', 'Segoe UI', Arial, sans-serif;
  --agw-font-display:  'Playfair Display', Georgia, serif;
  --agw-radius-sm:     6px;
  --agw-radius-md:     10px;
  --agw-radius-lg:     16px;
  --agw-shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --agw-shadow-md:     0 4px 20px rgba(0,0,0,0.10);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@700;900&display=swap');

/* ============================================================
   BASIS
   ============================================================ */

body {
  font-family: var(--agw-font-body) !important;
  color: var(--agw-dark);
  background: var(--agw-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--agw-font-display) !important;
  font-weight: 700;
  color: var(--agw-black);
  line-height: 1.2;
}

h4, h5, h6 {
  font-family: var(--agw-font-body) !important;
  font-weight: 600;
  color: var(--agw-black);
}

p {
  color: var(--agw-muted);
  line-height: 1.75;
}

a {
  color: var(--agw-orange-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--agw-orange-dark);
  text-decoration: underline;
}

/* ============================================================
   HEADER – Orange
   ============================================================ */

.site-header,
#masthead {
  background: var(--agw-orange) !important;
  border-bottom: none !important;
  box-shadow: var(--agw-shadow-sm) !important;
  position: sticky !important;
  top: 0;
  z-index: 999;
}

.site-header .custom-logo,
#masthead .custom-logo {
  max-height: 48px !important;
  width: auto !important;
  filter: brightness(0) invert(1);
}

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

.primary-navigation a,
.nav-menu a,
#primary-menu a {
  font-family: var(--agw-font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.92) !important;
  padding: 8px 14px !important;
  border-radius: var(--agw-radius-sm) !important;
  transition: all 0.2s ease !important;
}

.primary-navigation a:hover,
.nav-menu a:hover,
#primary-menu a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a {
  background: rgba(0,0,0,0.15) !important;
  color: var(--agw-white) !important;
  text-decoration: none !important;
}

.primary-navigation .sub-menu,
.nav-menu .sub-menu {
  background: var(--agw-white) !important;
  border: 2px solid var(--agw-orange) !important;
  border-top: none !important;
  border-radius: 0 0 var(--agw-radius-md) var(--agw-radius-md) !important;
  box-shadow: var(--agw-shadow-md) !important;
  padding: 8px !important;
  min-width: 220px !important;
}

.primary-navigation .sub-menu a,
.nav-menu .sub-menu a {
  color: var(--agw-mid) !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.primary-navigation .sub-menu a::before,
.nav-menu .sub-menu a::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--agw-orange);
  flex-shrink: 0;
}

.primary-navigation .sub-menu a:hover,
.nav-menu .sub-menu a:hover {
  background: var(--agw-orange-light) !important;
  color: var(--agw-orange-text) !important;
}

/* ============================================================
   HERO – Weiß mit orange Akzenten
   ============================================================ */

.wp-block-cover,
.wp-block-group.is-style-hero {
  background: var(--agw-white) !important;
  position: relative;
  overflow: hidden;
}

.wp-block-cover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--agw-orange);
  pointer-events: none;
  z-index: 1;
}

.wp-block-cover::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: var(--agw-orange-light);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.wp-block-button__link,
.kb-btn,
button[type="submit"],
input[type="submit"],
.button, .btn {
  background: var(--agw-orange) !important;
  color: var(--agw-white) !important;
  font-family: var(--agw-font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: var(--agw-radius-sm) !important;
  border: 2px solid var(--agw-orange) !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--agw-orange-dark) !important;
  border-color: var(--agw-orange-dark) !important;
  color: var(--agw-white) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--agw-orange-text) !important;
  border: 2px solid var(--agw-orange) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--agw-orange) !important;
  color: var(--agw-white) !important;
}

/* ============================================================
   KARTEN
   ============================================================ */

.wp-block-kadence-card,
.kb-block-card,
article.type-post {
  background: var(--agw-white) !important;
  border: 1.5px solid var(--agw-border) !important;
  border-radius: var(--agw-radius-lg) !important;
  box-shadow: var(--agw-shadow-sm) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  overflow: hidden;
}

.wp-block-kadence-card:hover,
article.type-post:hover {
  box-shadow: var(--agw-shadow-md) !important;
  transform: translateY(-2px) !important;
}

/* ============================================================
   BEITRÄGE
   ============================================================ */

.entry-title a {
  color: var(--agw-black) !important;
  font-family: var(--agw-font-display) !important;
  transition: color 0.2s ease !important;
}

.entry-title a:hover {
  color: var(--agw-orange-text) !important;
  text-decoration: none !important;
}

.entry-meta, .posted-on, .byline {
  font-size: 12px;
  color: var(--agw-subtle) !important;
}

.cat-links a,
.entry-categories a {
  display: inline-block;
  background: var(--agw-orange);
  color: var(--agw-white) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--agw-radius-sm);
  text-decoration: none !important;
}

/* ============================================================
   PRESSEBEREICH
   ============================================================ */

.agw-press-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--agw-white);
  border: 1.5px solid var(--agw-border);
  border-radius: var(--agw-radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease;
}

.agw-press-item:hover {
  box-shadow: var(--agw-shadow-sm);
}

.agw-press-item .agw-press-icon {
  width: 38px; height: 38px;
  background: var(--agw-orange-light);
  border-radius: var(--agw-radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.agw-press-item h3,
.agw-press-item h4 {
  font-family: var(--agw-font-body) !important;
  font-size: 15px !important;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--agw-black);
}

.agw-press-item .agw-press-meta {
  font-size: 12px;
  color: var(--agw-subtle);
}

.agw-press-item .agw-download-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--agw-white);
  white-space: nowrap;
  padding: 7px 16px;
  background: var(--agw-orange-text);
  border-radius: var(--agw-radius-sm);
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.agw-press-item .agw-download-link:hover {
  background: var(--agw-orange-dark);
  color: var(--agw-white) !important;
}

/* ============================================================
   WIDGETS & SIDEBAR
   ============================================================ */

.widget-title, .widgettitle {
  font-family: var(--agw-font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--agw-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 3px solid var(--agw-orange) !important;
}

/* ============================================================
   TRENNLINIEN
   ============================================================ */

.wp-block-separator, hr {
  border: none !important;
  height: 4px !important;
  background: var(--agw-orange) !important;
  border-radius: 2px !important;
  margin: 40px 0 !important;
  max-width: 48px !important;
}

/* ============================================================
   FORMULARE
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font-family: var(--agw-font-body) !important;
  font-size: 14px !important;
  border: 1.5px solid var(--agw-border) !important;
  border-radius: var(--agw-radius-sm) !important;
  padding: 12px 16px !important;
  color: var(--agw-dark) !important;
  background: var(--agw-white) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--agw-orange) !important;
  box-shadow: 0 0 0 3px rgba(247,147,30,0.2) !important;
  outline: none !important;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--agw-mid);
  margin-bottom: 6px;
  display: block;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--agw-border);
  border-radius: var(--agw-radius-sm);
  font-size: 14px;
  color: var(--agw-mid);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--agw-orange);
  color: var(--agw-white) !important;
  border-color: var(--agw-orange);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer,
#colophon {
  background: var(--agw-dark) !important;
  color: #AAAAAA !important;
  padding: 52px 0 28px !important;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer strong {
  color: var(--agw-white) !important;
}

.site-footer .widget-title,
.site-footer .widgettitle {
  color: #666666 !important;
  border-bottom-color: var(--agw-orange) !important;
}

.site-footer a {
  color: #AAAAAA !important;
  font-size: 13px;
  transition: color 0.2s ease !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: var(--agw-orange) !important;
}

.site-info, .footer-credits {
  border-top: 1px solid #2a2a2a !important;
  padding-top: 20px !important;
  margin-top: 36px !important;
  color: #555 !important;
  font-size: 12px !important;
}

/* ============================================================
   BARRIEREFREIHEIT – Fokus-Stile
   ============================================================ */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--agw-orange) !important;
  outline-offset: 2px !important;
}

.skip-link:focus {
  background: var(--agw-orange);
  color: var(--agw-white);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--agw-radius-sm);
  z-index: 9999;
  position: fixed;
  top: 16px; left: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  h1 { font-size: clamp(26px, 6vw, 40px) !important; }
  h2 { font-size: clamp(22px, 5vw, 32px) !important; }

  .agw-press-item { flex-wrap: wrap; }
  .agw-press-item .agw-download-link {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }
}
