/* =========================================================
   responsive.css – Overrides + Mobile + SPÖ Farben
   ========================================================= */

/* Header SPÖ-rot */
.site-header{
  background: var(--spoe-red);
  border-bottom: 4px solid var(--spoe-red-dark);
}

.site-title{ color:#fff; }

/* Desktop Menü im roten Header */
.site-nav .menu a{
  color:#fff;
}

.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a{
  color:#fff;
  text-decoration: underline;
}

/* Burger Button im roten Header */
.menu-toggle{
  border:2px solid #fff;
  color:#fff;
  background:transparent;
}
.menu-toggle:hover{
  background: rgba(255,255,255,0.15);
}

/* Logo Größen: Desktop 100 / Tablet 74 / Mobile 66 */
.site-logo img,
.custom-logo{
  max-height: 100px;
  width:auto;
  display:block;
}
@media (max-width:1024px){
  .site-logo img,
  .custom-logo{ max-height:74px; }
}
@media (max-width:600px){
  .site-logo img,
  .custom-logo{ max-height:66px; }
}

/* Mobile Navigation (<=900px) */
@media (max-width:900px){

  .menu-toggle{
    display:inline-flex;
    gap:0.5rem;
    align-items:center;
  }

  .site-nav{
    display:none;
    margin-top:0.7rem;

    background:#fff;
    border:1px solid rgba(0,0,0,0.12);
    border-radius:14px;
    padding:0.75rem 1rem;
    box-shadow:0 10px 30px rgba(0,0,0,0.12);
  }

  .site-nav.is-open{ display:block; }

  .site-nav .menu{
    margin:0;
    padding:0;
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:0;
  }

  .site-nav .menu li{
    margin:0;
    border-bottom:1px solid rgba(0,0,0,0.08);
  }
  .site-nav .menu li:last-child{ border-bottom:none; }

  .site-nav .menu a{
    color:#222;
    display:block;
    padding:0.65rem 0.2rem;
    font-weight:700;
    text-decoration:none;
  }

  .site-nav .menu a:hover,
  .site-nav .menu .current-menu-item > a{
    color: var(--spoe-red);
    text-decoration: underline;
  }
}

/* Footer – SPÖ Rot */
.site-footer{
  background-color: var(--spoe-red);
  color:#fff;
  border-top:none;
}

.site-footer a,
.site-footer p,
.site-footer li,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4{
  color:#fff;
}

/* Footer Widgets – Grid: links Tagcloud, Mitte Archiv, rechts Suche + Kategorien */
.footer-widgets{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:2rem;
  align-items:start;
}

/* Tagcloud links */
.footer-widgets .widget_tag_cloud,
.footer-widgets .wp-block-tag-cloud{
  grid-column:1;
  grid-row:1 / span 2;
}

/* Archiv Mitte */
.footer-widgets .widget_archive,
.footer-widgets .wp-block-archives{
  grid-column:2;
  grid-row:1 / span 2;
}

/* Suche rechts oben */
.footer-widgets .widget_search,
.footer-widgets .wp-block-search{
  grid-column:3;
  grid-row:1;
}

/* Kategorien rechts darunter */
.footer-widgets .widget_categories,
.footer-widgets .wp-block-categories{
  grid-column:3;
  grid-row:2;
}

/* Mobile: untereinander */
@media (max-width:900px){
  .footer-widgets{ grid-template-columns:1fr; }
  .footer-widgets .widget_tag_cloud,
  .footer-widgets .wp-block-tag-cloud,
  .footer-widgets .widget_archive,
  .footer-widgets .wp-block-archives,
  .footer-widgets .widget_search,
  .footer-widgets .wp-block-search,
  .footer-widgets .widget_categories,
  .footer-widgets .wp-block-categories{
    grid-column:auto;
    grid-row:auto;
  }
}

/* Footer-Menü rechts / mobile zentriert */
.footer-nav .footer-menu{
  display:flex;
  gap:1rem;
  justify-content:flex-end;
  list-style:none;
  margin:0;
  padding:0;
}
.footer-nav .footer-menu a{
  color:#fff;
  font-weight:600;
  text-decoration:none;
}
.footer-nav .footer-menu a:hover{ text-decoration:underline; }

@media (max-width:900px){
  .footer-nav .footer-menu{
    justify-content:center;
    flex-wrap:wrap;
  }
}

/* Footer Accordion (Mobile) – wenn footer-accordion.js aktiv ist */
@media (max-width:900px){

  .footer-accordion .widget{
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }

  .footer-accordion .widget .footer-acc-btn{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:0.75rem;
    background:transparent;
    border:none;
    padding:0;
    cursor:pointer;
    text-align:left;
    color:#fff;
    font-weight:800;
    font-size:1.05rem;
  }

  .footer-accordion .widget .footer-acc-icon{
    font-size:1.2rem;
    line-height:1;
    opacity:0.9;
  }

  .footer-accordion .widget .footer-acc-content{
    display:none;
    margin-top:0.75rem;
  }

  .footer-accordion .widget.is-open .footer-acc-content{
    display:block;
  }

  .footer-accordion a{ color:#fff; }
}

/* Buttons im Footer weiß (optional hübsch) */
.site-footer button,
.site-footer input[type="submit"],
.site-footer input[type="button"],
.site-footer .wp-block-button__link{
  background:#fff;
  color: var(--spoe-red);
}
.site-footer button:hover,
.site-footer input[type="submit"]:hover,
.site-footer input[type="button"]:hover,
.site-footer .wp-block-button__link:hover{
  background:#f2f2f2;
  color: var(--spoe-red-dark);
}

/* =========================================================
   BUTTONS – SPÖ ROT (FINAL & GEWINNT IMMER)
   ========================================================= */

button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.wp-element-button {
  background-color: var(--spoe-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
  background-color: var(--spoe-red-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Fokus (Accessibility) */
button:focus-visible,
.wp-element-button:focus-visible {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}
