/* HSG Hanau für Demokratie – statische Fassung des Joomla-Templates "hsghanau" (Helix Ultimate) */

@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/roboto-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/roboto-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/roboto-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/roboto-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/roboto-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/roboto-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/roboto-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/roboto-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --blau: #00618c; --rot: #e12530; --text: #686868; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  background: #f2f2f2; margin: 0; padding: 0;
  font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5;
  letter-spacing: 0.02em; color: var(--text);
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 1.25rem; font-weight: 400; line-height: 1.2; }
h1, h2 { font-size: 2rem; color: var(--blau); }
h3 { font-size: 1.5rem; }
strong, b { font-weight: 700; }

a:link, a:visited { color: var(--rot); text-decoration: none; }
a:hover { color: #000; }
a:hover img { opacity: 0.75; }

.container {
  max-width: 1200px; margin: 0 auto; background: #fff;
  padding-left: 40px; padding-right: 40px;
}
.mobile, #offcanvas-toggler { display: none; }

/* Schatten wie im Original */
#sp-headimage .container, #sp-main-body .container, #sp-footer .container { box-shadow: 0 20px 20px rgba(0,0,0,0.3); }

/* ### HEADER ### */
#sp-header { position: relative; z-index: 99; height: 120px; }
#sp-header .container {
  position: relative; height: 120px; display: flex; align-items: flex-start; justify-content: space-between;
  background: rgba(0,0,0,0.2); box-shadow: 0 -20px 15px rgba(0,0,0,0.3); transition: background .2s;
}
#sp-header .logo-top { padding-top: 15px; }
#sp-header .logo-top img { width: 330px; height: auto; display: block; }
#sp-header .logo-top a:hover img { opacity: 1; }

/* Icons Kontakt/Social: rechts oben */
#sp-header .social { position: absolute; top: 18px; right: 40px; }
#sp-header .social ul.menu { margin: 0; }
#sp-header .social li { margin-left: 18px; }
#sp-header .social img.icon { filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(0,0,0,0.6)); }
ul.menu.icon { list-style: none; padding: 0; display: flex; flex-wrap: wrap; }
ul.menu.icon li { display: inline-block; }
img.icon { max-height: 24px; width: auto; }

/* Hauptmenü */
#sp-menu { padding-top: 62px; }
.sp-megamenu-parent { list-style: none; margin: 0; padding: 0; display: flex; }
.sp-megamenu-parent > li > a {
  display: inline-block; padding: 0 0.35em; line-height: 40px; font-size: 1.1rem; font-weight: 500;
  letter-spacing: 0; word-spacing: -0.1em; color: #fff !important; text-shadow: 0 0 5px rgba(0,0,0,0.7);
}
.sp-megamenu-parent > li.active > a, .sp-megamenu-parent > li > a:hover { text-decoration: underline; }

/* Sticky Header beim Scrollen */
#sp-header.header-sticky { position: fixed; top: 0; left: 0; right: 0; }
#sp-header.header-sticky .container { background: rgba(0,97,140,0.9); box-shadow: 0 -2px 8px rgba(0,0,0,0.3); }
body.has-sticky #sp-headimage { margin-top: 0; }

/* ### HEADBILD ### */
#sp-headimage { margin-top: -120px; }
#sp-headimage .container { padding: 0; }
#sp-headimage img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

/* ### BREADCRUMB ### */
#sp-main-body .container { padding-top: 25px; padding-bottom: 60px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; padding: 10px 13px 0; margin: 0 0 1rem; }
.breadcrumb-item + .breadcrumb-item::before { padding: 0 .4rem; color: var(--blau); content: ">>>"; }
a.pathway:link, a.pathway:visited { color: var(--blau); }

/* ### INHALT ### */
.row { display: flex; align-items: flex-start; padding: 0 13px; }
#sp-left { flex: 0 0 25%; max-width: 25%; }
#sp-component { flex: 0 0 75%; max-width: 75%; padding-left: 50px; padding-top: 50px; hyphens: auto; -webkit-hyphens: auto; }
#sp-component.full { flex-basis: 100%; max-width: 100%; padding-left: 0; }
#sp-component li { margin-bottom: 0.5rem; }

/* Linke Spalte: blaue Boxen */
.sp-module.box.blue { margin-top: 50px; border: 1px solid #b6b6b6; padding: 30px; background: var(--blau); color: #fff; }
.sp-module.box.blue .sp-module-title { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0 0 10px; }
.blue a:link, .blue a:visited { color: #fff; }
.blue a:hover { color: #fff; opacity: 0.8; }

/* Blog-Liste (News, Botschafter) */
.article-list .page-header { margin-bottom: 0; }
.article-list .article {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  margin-bottom: 50px; padding-bottom: 40px; border-bottom: 1px solid #a8a8a8;
}
.article-list .article:last-child { border-bottom: 0; }
.article-list .article-intro-image { flex: 0 0 40%; max-width: 40%; margin: 0 20px 0 0; }
.article-list .article-intro-image img { width: 100%; }
.article-list .article-body { flex: 1; min-width: 0; }
.article-list .article h2 { margin-bottom: 1.25rem; }
.article-list .article h2 a { color: var(--blau); }
.article-list .article h2 a:hover { color: #000; }
.readmore { flex: 0 0 100%; font-size: 0.875rem; text-align: right; padding-right: 20px; margin: 0; }
.readmore a { color: #252525 !important; font-weight: 500; }

/* Beitragsansicht */
.article-details .article-full-image { float: left; width: 40%; margin: 0 30px 30px 0; }
.article-details::after { content: ''; display: table; clear: both; }
.page-partner-foerderer #sp-component img {
  max-height: 140px; width: auto; border: 1px solid #dedede; padding: 10px; display: inline-block;
}

/* Youtube-Vorschau mit Datenschutzhinweis (Video öffnet erst auf Klick bei Youtube) */
.ytvideo { margin-bottom: 40px; }
.ytvideo a { position: relative; display: block; }
.ytvideo a:hover img { opacity: 0.7; }
.ytbutton { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--rot); }
.ytbtn svg { width: 80px; height: 80px; filter: drop-shadow(0 0 25px #fff); }
.yttxt { display: none; background: rgba(0,0,0,0.8); color: #ccc; padding: 10px; max-width: 375px; font-size: 0.8em; hyphens: none; text-align: center; }
.yttxt strong { color: #fff; font-size: 1.25em; }
.ytvideo a:hover .ytbtn { display: none; }
.ytvideo a:hover .yttxt { display: block; }

/* ### NEWS-SLIDER (unten) ### */
#sp-content-bottom .container { background: var(--blau); padding: 40px 50px 43px; }
.bt-cs { --per: 4; --gap: 14px; overflow: hidden; }
.bt-track { display: flex; gap: var(--gap); transition: transform 1.5s cubic-bezier(.55,.085,.68,.53); }
.bt-cs .bt-inner { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); display: block; background: #fff; padding-bottom: 10px; color: var(--text) !important; }
.bt-cs .bt-inner img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.bt-cs .bt-category { display: block; margin: 10px 9px 4px; font-weight: 700; color: #686868; }
.bt-cs .bt-title { display: block; margin: 0 9px 5px; line-height: 150%; color: #686868; hyphens: auto; -webkit-hyphens: auto; }

/* ### FOOTER ### */
#sp-footer .container { padding: 75px 53px 40px; }
#sp-footer, #sp-footer h3 { font-size: 1rem; }
#sp-footer h3 { font-weight: 700; margin-bottom: 1.25rem; }
#sp-footer a:link, #sp-footer a:visited { color: #686868; }
#sp-footer a:hover { color: #009fe3; }
.footer-cols { display: flex; justify-content: space-between; margin-bottom: 60px; }
.footer-cols .adresse { flex: 0 0 58%; }
.footer-cols .footer2 { flex: 0 0 40%; padding-left: 4px; }
#sp-footer ul.menu.legal { list-style: none; padding: 0; margin: 0 0 20px; }
#sp-footer ul.menu.legal li { font-weight: 700; margin: 0 0 18px; }
#sp-footer .copy { margin-bottom: 10px; }
#sp-footer ul.menu.icon li { margin-right: 13px; }

.mainpartner { text-align: center; margin-bottom: 20px; }
.mainpartner p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: 50px; }
.mainpartner a { display: block; }
.mainpartner a img { max-height: 105px; width: auto; }
.mainpartner a:last-child { flex: 0 0 100%; }

/* ### OFFCANVAS (mobil) ### */
.offcanvas-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 85vw; z-index: 200;
  background: #fff; padding: 70px 25px 30px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s, visibility .3s; visibility: hidden; box-shadow: 0 0 20px rgba(0,0,0,.3);
}
.offcanvas-menu.open { transform: none; visibility: visible; }
.offcanvas-menu ul.menu { list-style: none; padding: 0; margin: 0 0 30px; }
.offcanvas-menu ul.main a { display: block; font-size: 1.2rem; padding: 0.3rem 0; color: #252525; }
.offcanvas-menu ul.main li.active a { color: var(--blau); font-weight: 500; }
.offcanvas-menu ul.icon li { margin-right: 18px; }
.offcanvas-menu ul.legal a { color: #686868; }

/* ### MEDIAQUERIES ### */
@media (max-width: 991px) {
  .desktop, #sp-left, #sp-menu { display: none !important; }
  .mobile { display: block; }
  #sp-header, #sp-header .container { height: 80px; }
  #sp-headimage { margin-top: -80px; }
  #sp-header .logo-top img { width: 230px; }
  #offcanvas-toggler {
    display: block; position: absolute; right: 25px; top: 22px; width: 40px; height: 36px; z-index: 300;
    background: none; border: 0; padding: 6px 4px; cursor: pointer;
  }
  #offcanvas-toggler span { display: block; height: 3px; background: #fff; margin-bottom: 7px; border-radius: 2px; box-shadow: 0 0 4px rgba(0,0,0,.5); }
  body.menu-open #offcanvas-toggler span { background: #252525; box-shadow: none; }
  #sp-component { flex-basis: 100%; max-width: 100%; padding-left: 0; padding-top: 20px; }
  .mobile.sp-left { padding: 0 13px; }
  .bt-cs { --per: 2; }
  .mainpartner p { justify-content: center; column-gap: 40px; }
}
@media (max-width: 767px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .article-list .article-intro-image { flex-basis: 100%; max-width: 100%; margin: 0 0 20px; }
  .article-list .article-body { flex-basis: 100%; }
  .article-details .article-full-image { float: none; width: 100%; margin: 0 0 30px; }
  .footer-cols { flex-direction: column; }
  #sp-footer .container { padding: 50px 30px 30px; }
  #sp-content-bottom .container { padding: 25px 20px; }
}
@media (max-width: 480px) {
  .container { padding-left: 0; padding-right: 0; }
  .row, .breadcrumb, .mobile.sp-left { padding-left: 16px; padding-right: 16px; }
  #sp-header .container { background: var(--blau); padding: 0 16px; }
  #sp-header .logo-top img { width: 200px; }
  #sp-headimage { margin-top: 0; }
  h1, h2 { font-size: 1.6rem; }
  .bt-cs { --per: 1; }
  #sp-content-bottom .container { padding: 20px 16px; }
  #sp-footer .container { padding: 40px 16px 20px; }
  .mainpartner a img { max-height: 80px; }
}
