/*
Theme Name: SPOE Hohenems Theme
Theme URI: https://www.hohenemser-spoe.at/
Author: SPÖ Hohenems
Author URI: https://www.hohenemser-spoe.at/
Description: Custom Theme für SPÖ Hohenems (lokale Fonts, sauberes Responsive-Layout) – Karten via Plugin
Version: 1.3.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spoe-hohenems-theme

Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4

Copyright: © 2024–2026 SPÖ Hohenems
*/

/* =========================================================
   1) Variablen + Reset (Desktop-first)
   ========================================================= */
:root{
  --spoe-red:#E30613;
  --spoe-red-dark:#C90510;

  --text:#111;
  --muted:#666;
  --bg:#fff;
  --line:rgba(0,0,0,.12);

  --radius:14px;
  --shadow:0 8px 20px rgba(0,0,0,.08);

  --maxw:1600px;
  --pad:16px;
  --pad-m:12px;

  --font-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

*,
*::before,
*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--font-sans);
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

/* Basis */
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--spoe-red); text-decoration:none; }
a:hover{ color:var(--spoe-red-dark); text-decoration:underline; }
hr{ border:0; border-top:1px solid var(--line); margin:24px 0; }

.screen-reader-text{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
.screen-reader-text:focus{
  position:static !important;
  width:auto; height:auto;
  margin:0; clip:auto;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
}

/* =========================================================
   2) Layout Container (Desktop)
   ========================================================= */
.site,
.site-content,
#content{
  width:100%;
}

.site-content{
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:var(--pad);
  padding-right:var(--pad);
}

/* =========================================================
   3) Header (Topbar + weißer Hauptheader wie spoe.at)
   ========================================================= */

/* Topbar */
.spoe-topbar{
  background: var(--spoe-red);
  color:#fff;
  font-size: 14px;
}
.spoe-topbar .topbar-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding: 8px var(--pad);
}
.spoe-topbar a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.spoe-topbar a:hover{ text-decoration:underline; }

/* Hauptheader */
.site-header{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.site-header .header-inner,
.site-header .site-header-inner,
.site-header .container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:16px var(--pad);
  display:grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  align-items:center;
  gap:16px;
}

/* Grid-Platzierung */
.site-header .site-branding{ grid-column:1; }
.site-header .header-search{ grid-column:2; }
.site-header .main-navigation{ grid-column:3; }
.site-header .header-cta{ grid-column:4; justify-self:end; }
.site-header #menu-toggle{ grid-column:4; justify-self:end; }



/* Logo */
.site-header .site-branding,
.site-header .custom-logo-link{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:0;
}
.site-header .custom-logo{
  height:52px;
  width:auto;
}

/* Desktop: Nav mittig */
.site-header nav,
.site-header .main-navigation{
  justify-self:center;
}

.site-header nav ul,
.site-header .main-navigation ul,
.site-header .menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:26px;
}

.site-header nav a,
.site-header .main-navigation a{
  display:inline-block;
  padding:10px 2px;
  color: var(--spoe-red);
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  white-space:nowrap;
  text-decoration:none;
}
.site-header nav a:hover,
.site-header .main-navigation a:hover{
  color: var(--spoe-red-dark);
  text-decoration:none;
}

/* CTA rechts */
.header-cta{
  justify-self:end;
}
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px;
  border-radius:999px;
  border:2px solid var(--spoe-red);
  color:var(--spoe-red);
  font-weight:800;
  text-decoration:none;
  background:transparent;
}
.btn-outline:hover{
  background: rgba(227,6,19,.06);
  text-decoration:none;
}

/* Desktop: Burger aus */
#menu-toggle,
.menu-toggle{
  display:none;
}

/* Suche im Header */
.header-search{
  justify-self:center;
}
.spoe-searchform{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  max-width:560px;
  margin:0 auto;
}
.spoe-search-input{
  width:100%;
  height:44px;
  padding:0 16px;
  border:1px solid rgba(0,0,0,.14);
  border-radius:999px;
  outline:none;
  background:#fff;
}
.spoe-search-input:focus{
  border-color: rgba(227,6,19,.55);
  box-shadow: 0 0 0 4px rgba(227,6,19,.12);
}
.spoe-search-btn{
  width:44px;
  height:44px;
  border-radius:999px;
  border:0;
  background: var(--spoe-red);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.spoe-search-btn:hover{
  background: var(--spoe-red-dark);
}

/* =========================================================
   4) Typografie
   ========================================================= */
h1,h2,h3,h4{
  margin:0 0 12px;
  line-height:1.2;
  letter-spacing:-0.01em;
}
h1{ font-size:2rem; font-weight:700; }
h2{ font-size:1.55rem; font-weight:700; }
h3{ font-size:1.2rem; font-weight:700; }
p{ margin:0 0 14px; }
small,.muted{ color:var(--muted); }

/* =========================================================
   5) Karten (Aktuelles/Archiv/Blog)
   ========================================================= */
.blog article,
.home article,
.archive article,
.search article{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  padding:18px;
  margin:0 0 16px;
}

.entry-title a{ color:#111; }
.entry-title a:hover{ color:var(--spoe-red); }

.entry-meta,
.entry-meta time{
  color:var(--muted);
  font-size:.92rem;
}

.entry-featured,
.post-thumbnail,
.wp-post-image{
  border-radius:14px;
  overflow:hidden;
  margin:12px 0 14px;
}

/* =========================================================
   6) Buttons
   ========================================================= */
a.button,
.button,
.wp-element-button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"],
input[type="button"],
input[type="reset"],
.archive-pill,
.home-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--spoe-red);
  background:var(--spoe-red);
  color:#fff;
  font-weight:700;
  letter-spacing:.01em;
  cursor:pointer;
  text-decoration:none;
}

a.button:hover,
.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.archive-pill:hover,
.home-pill:hover{
  background:var(--spoe-red-dark);
  border-color:var(--spoe-red-dark);
  color:#fff;
  text-decoration:none;
}

/* Outline/Zurück-Button */
.back-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  color:var(--spoe-red);
  border:1px solid rgba(227,6,19,.35);
  font-weight:700;
  text-decoration:none;
}
.back-pill:hover{
  background:rgba(227,6,19,.08);
  border-color:rgba(227,6,19,.55);
  text-decoration:none;
}

/* =========================================================
   7) Forms
   ========================================================= */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
textarea{
  width:100%;
  max-width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font:inherit;
}
input:focus,
textarea:focus{
  outline:none;
  border-color:rgba(227,6,19,.55);
  box-shadow:0 0 0 4px rgba(227,6,19,.10);
}

/* =========================================================
   8) Footer
   ========================================================= */
.site-footer{
  margin-top:28px;
  background:var(--spoe-red);
  color:#fff;
}

.site-footer .footer-inner,
.site-footer .container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:26px var(--pad);
}

.site-footer p,
.site-footer li,
.site-footer span{ color:#fff; }

.site-footer a{
  color:#fff;
  text-decoration:underline;
}
.site-footer a:hover{ color:#FFE5E5; }

/* Footer Suche – Button mit weißer Lupe (SVG) */
.site-footer .wp-block-search__button,
.site-footer .search-submit,
.site-footer button.wp-block-search__button{
  position:relative;
  padding-left:44px;
}

.site-footer .wp-block-search__button::before,
.site-footer .search-submit::before,
.site-footer button.wp-block-search__button::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  background:url("assets/icons/search-white.svg") no-repeat center;
  background-size:contain;
}

/* =========================================================
   9) Listen – SPÖ Haken
   ========================================================= */
.entry-content ul{
  padding-left:0;
  list-style:none;
  margin:0 0 14px;
}
.entry-content ul li{
  position:relative;
  padding-left:26px;
  margin:8px 0;
}
.entry-content ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:.35em;
  width:18px;
  height:18px;
  background:url("assets/icons/check-red.svg") no-repeat center;
  background-size:contain;
}

/* Helpers */
.alignwide{ max-width:var(--maxw); margin-left:auto; margin-right:auto; }
.alignfull{ width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }

/* Single (Kategorie: archiv) – Navigation */
.single-archiv-nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:18px 0 6px;
}

@media (max-width: 600px){
  .single-archiv-nav{
    gap:10px;
  }
  .single-archiv-nav a{
    width:100%;
  }
}
