/*
Theme Name: Treffpunkt Glaibasel ([haito])
Template: haito-base
Description: Kind-Theme für den Verein Treffpunkt Glaibasel. Gestaltung nach der bisherigen Website (Theme «First», Takao Utsumi, GPL): Source Sans Pro, graue Menüleiste, Kopfbild, Inhalt links, Seitenleiste rechts.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: haito-treffpunkt
*/

/* Schrift: Source Sans 3 (Nachfolger von Source Sans Pro, SIL OFL), lokal eingebunden */
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans Pro"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-latin-400-italic.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/source-sans-3-latin-600-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/source-sans-3-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Source Sans Pro"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Source Sans Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Source Sans Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Grundlagen (Werte aus dem bisherigen Theme) ---------- */
html { font-size: 90%; }
@media screen and (min-width: 783px) { html { font-size: 100%; } }
body { background-color: #f5f4f2; color: #333; font-family: "Source Sans Pro", sans-serif; font-size: 17px; line-height: 1.5; word-wrap: break-word; }
@media screen and (min-width: 783px) { body { font-size: 18px; } }
::selection { background-color: #fffad3; color: #333; }

h1, h2, h3, h4, h5, h6 { clear: both; color: #111; font-family: "Source Sans Pro", sans-serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; hyphens: manual; overflow-wrap: break-word; }
h1 { font-size: 2.25rem; margin: 2em 0 1em; }
h2 { font-size: 1.75rem; margin: 2em 0 1em; }
h3 { font-size: 1.5rem; margin: 1.5em 0 1em; }
h4 { font-size: 1.25rem; margin: 1.5em 0 1em; }
h5 { font-size: 1.125rem; margin: 1em 0 0.5em; }
h6 { font-size: 1.063rem; margin: 1em 0 0.5em; }
.site-main > :first-child, .entry-content > :first-child { margin-top: 0; }

a { color: inherit; text-decoration: none; transition: color .2s ease-in-out, opacity .2s ease-in-out; }
.entry-content a, .tp-sidebar a { color: #210000; text-decoration: underline; }
a:hover { color: #cc1d0a; }
p { margin: 0 0 1.5em; }
b, strong { font-weight: 700; }
ul, ol { margin: 0 0 1.5em 2em; padding: 0; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; }
hr, .wp-block-separator { background-color: #eee; border: 0; height: 1px; margin: 0 0 1.5em; width: 100%; max-width: none; opacity: 1; }
img { height: auto; max-width: 100%; vertical-align: middle; }
figure { margin: 0 0 1.5em; }
table { border-top: solid 1px #e6e6e6; font-size: 93.8%; margin: 0 0 1.6em; width: 100%; }
table th, table td { border-bottom: solid 1px #e6e6e6; padding: 0.8em 1.2em 0.8em 0; text-align: left; }
blockquote { color: #888; font-style: italic; margin: 0 0 2.4em; padding: 12px 0 0 44px; position: relative; }
blockquote:before { color: #ddd; content: "\201C"; font-family: Georgia, serif; font-size: 84px; left: -5px; line-height: 1; position: absolute; top: -5px; }
button, .wp-block-button__link, input[type="submit"] { background-color: #222; border: none; border-radius: 4px; color: #eee; font-size: 87.5%; line-height: 1; padding: 1em 1.5em; text-transform: uppercase; }
button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background-color: #555; color: #fff; }
input[type="text"], input[type="email"], input[type="search"], textarea { border: solid 1px #e6e6e6; color: #666; padding: 0.6em; }

/* ---------- Rahmen: Seite weiss, Hintergrund hellgrau, maximal 1220px ---------- */
.wp-site-blocks { background-color: #fff; margin: 0 auto; max-width: 1220px; padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.site-top, .site-content, .site-bottom { margin: 0 auto; max-width: 644px; padding: 0 20px; box-sizing: border-box; }
@media screen and (min-width: 783px) { .site-top, .site-bar-inner, .site-bottom { max-width: 1000px; padding: 0 45px; } }
@media screen and (min-width: 960px) { .site-content { max-width: 1000px; padding: 0 45px; } }

/* ---------- Kopf ---------- */
.site-header { border-bottom: solid 1px #eee; margin-bottom: 56px; }
.site-top { margin-top: 22px; margin-bottom: 34px; text-align: center; }
@media screen and (min-width: 960px) { .site-top { text-align: left; } }
.site-top .wp-block-site-logo { line-height: 1; margin: 0; }
.site-top .wp-block-site-logo img { max-width: 100%; width: auto; max-height: 174px; height: auto; }
.site-top .wp-block-site-logo a:hover { opacity: 0.8; }

/* Menüleiste */
.site-bar { background-color: #a2a1a1; }
.site-bar-inner { margin: 0 auto; }
.site-bar .wp-block-navigation { font-size: 93.8%; text-transform: uppercase; }
.site-bar .wp-block-navigation a { color: rgba(255,255,255,0.8); display: block; line-height: 60px; padding: 0 18px; text-decoration: none; }
.site-bar .wp-block-navigation a:hover, .site-bar .wp-block-navigation .current-menu-item > a, .site-bar .wp-block-navigation .current-menu-ancestor > a { color: #fff; }
.site-bar .wp-block-navigation .wp-block-navigation-item { margin: 0; }
.site-bar .wp-block-navigation__container { gap: 0; }
.site-bar .wp-block-navigation .wp-block-navigation-item:first-child > a { padding-left: 0; }
.site-bar .wp-block-navigation .wp-block-navigation-item.has-child { display: flex; align-items: center; }
.site-bar .wp-block-navigation .wp-block-navigation-item.has-child > a { padding-right: 6px; }
.site-bar .wp-block-navigation .wp-block-navigation-submenu__toggle, .site-bar .wp-block-navigation .wp-block-navigation-item__content { line-height: 60px; }
.site-bar .wp-block-navigation button.wp-block-navigation__submenu-icon { background: none; border: 0; padding: 0 18px 0 0; margin: 0; color: rgba(255,255,255,0.8); line-height: 60px; height: 60px; display: flex; align-items: center; }
.site-bar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item.has-child { display: block; }
.site-bar .wp-block-navigation .wp-block-navigation-submenu__toggle { color: rgba(255,255,255,0.8); padding: 0 18px; text-transform: uppercase; }
.site-bar .wp-block-navigation .wp-block-navigation__submenu-icon { color: rgba(255,255,255,0.8); margin-left: 2px; }
.site-bar .wp-block-navigation .wp-block-navigation__submenu-container { background-color: #a2a1a1; border: none; min-width: 180px; padding: 0; text-transform: none; }
.site-bar .wp-block-navigation .wp-block-navigation__submenu-container a { border-top: 1px solid rgba(255,255,255,0.2); line-height: 1.5; padding: 14px 18px; }
.site-bar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item:first-child > a { padding-left: 18px; }
/* Mobile: Menü-Schaltfläche in Weiss, Overlay grau */
.site-bar .wp-block-navigation__responsive-container-open { color: #fff; line-height: 60px; padding: 0 18px; }
.site-bar .wp-block-navigation__responsive-container-open svg { fill: currentColor; }
.site-bar .wp-block-navigation__responsive-container.is-menu-open { background-color: #a2a1a1; color: #fff; padding: 20px; }
.site-bar .wp-block-navigation__responsive-container.is-menu-open a { line-height: 1.5; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.2); }
.site-bar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: none; }
.site-bar .wp-block-navigation__responsive-container-close { color: #fff; }

/* Kopfbild */
.header-image { max-height: 480px; overflow: hidden; }
.header-image figure, .header-image .wp-block-image { margin: 0; }
.header-image img { display: block; width: 100%; height: auto; }

/* ---------- Inhalt: links Text, rechts Seitenleiste ---------- */
.site-content { margin-bottom: 24px; }
.tp-layout { display: block; }
.tp-main { min-width: 0; }
.tp-sidebar { border-top: solid 3px #eee; padding-top: 56px; margin-top: 24px; }
@media screen and (min-width: 960px) {
  .tp-layout { display: flex; justify-content: space-between; align-items: flex-start; gap: 9.6%; }
  .tp-main { width: 64.4%; flex: 0 0 64.4%; }
  .tp-sidebar { width: 26%; flex: 0 0 26%; border-top: none; padding-top: 0; margin-top: 0; }
  .tp-layout.tp-wide .tp-main { width: 100%; flex: 1 1 auto; }
}
.entry-title, .wp-block-post-title { font-size: 2.25rem; line-height: 1.2; margin: 0 0 36px; }
.wp-block-post-title a { color: #111; text-decoration: none; }
.wp-block-post-title a:hover { color: #cc1d0a; }
.wp-block-post { border-bottom: solid 1px #eee; margin-bottom: 48px; padding-bottom: 12px; }
.wp-block-post:last-child { border-bottom: none; }
.entry-content { margin-bottom: 24px; }
.entry-content img { margin: 0; }
.entry-content .wp-block-image figcaption { color: #777; font-size: 93.8%; font-style: italic; text-align: center; }
.wp-block-post-content > *, .entry-content > * { max-width: 100%; }
.wp-block-query-pagination { color: #555; font-size: 93.8%; margin-bottom: 60px; text-transform: uppercase; }
.wp-block-query-pagination a { background-color: #222; border: solid 1px #222; color: #eee; padding: 8px 19px; text-decoration: none; }
.wp-block-query-pagination a:hover { background-color: #555; border-color: #555; color: #fff; }

/* Seitenleiste (Widgets) */
.tp-sidebar { color: #555; font-size: 93.8%; }
.tp-sidebar h1, .tp-sidebar h2, .tp-sidebar h3 { font-size: 1.063rem; letter-spacing: 0; margin: 0 0 16px; text-transform: uppercase; }
.tp-sidebar p, .tp-sidebar figure { margin-bottom: 1.2em; }
.tp-sidebar .wp-block-separator { margin: 0 0 48px; }
.tp-sidebar > * + h1, .tp-sidebar > * + h2, .tp-sidebar > * + h3 { margin-top: 48px; }
.tp-sidebar ul { list-style: none; margin-left: 0; }
.tp-sidebar ul li { border-top: solid 1px #eee; line-height: 1.4; padding: 12px 0; }
.tp-sidebar ul > li:first-child { border-top: none; padding-top: 8px; }

/* ---------- Fuss ---------- */
.site-footer { border-top: solid 1px #eee; }
.site-bottom { color: #999; font-size: 87.5%; margin-bottom: 22px; margin-top: 28px; text-align: center; }
.site-bottom p { margin: 0 0 6px; }
.site-bottom a { color: #666; text-decoration: none; }
.site-bottom a:hover { color: #111; }
@media screen and (min-width: 960px) { .site-bottom { display: flex; justify-content: space-between; text-align: left; } }

/* Basis-Theme-Regeln neutralisieren, die hier nicht gelten */
.haito-header, .haito-footer { border: none; }
@media print { .site-bar, .tp-sidebar, .site-footer { display: none; } .wp-site-blocks { max-width: none; } }
.site-bar .wp-block-navigation__submenu-icon svg { width: 12px; height: 12px; display: block; }
ul.wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.site-bar .wp-block-navigation__responsive-container-open::after { content: "Menü"; text-transform: uppercase; font-size: 93.8%; margin-left: 10px; }
