/*
Theme Name: GSWG Left Navigation
Theme URI: https://gswg.mikulcak.me
Author: GSWG
Description: A restrained content-first theme with persistent left navigation for the GSWG migration.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: gswg-leftnav
*/

/* IBM Plex Sans (variable, weights 100-700), self-hosted. SIL Open Font License,
   see assets/fonts/ibm-plex-sans/LICENSE.txt. Files from @fontsource-variable/ibm-plex-sans 5.3.0. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-wght-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: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-wght-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans/ibm-plex-sans-latin-wght-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: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans/ibm-plex-sans-latin-wght-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;
}

/* Fixed palette: Stahlblau & Oliv. */
:root,
.gswg-scheme-stahlblau-oliv {
  --gswg-bg: #f5f6f2;
  --gswg-surface: #ffffff;
  --gswg-text: #1f2328;
  --gswg-muted: #5c6470;
  --gswg-rule: #dcdfd3;
  --gswg-accent: #476996;
  --gswg-accent-dark: #2f4a6f;
  --gswg-link: #515d31;
  --gswg-link-hover: #2f4a6f;
  --gswg-highlight: #aab538;
  --gswg-on-highlight: #1f2328;
  --gswg-nav-bg: #476996;
  --gswg-nav-text: #ffffff;
  --gswg-nav-muted: rgba(255, 255, 255, 0.88);
  --gswg-nav-rule: rgba(255, 255, 255, 0.24);
  --gswg-nav-marker: #d4dc7a;
  --gswg-nav-bar: transparent;
  --gswg-max-content: 860px;
  /* Two box types: white content cards (1px rule border) and blue panels
     framing the start page (6px highlight bar at the bottom). */
  --gswg-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--gswg-bg);
  color: var(--gswg-text);
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

a {
  color: var(--gswg-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--gswg-link-hover);
}

img,
iframe,
table {
  max-width: 100%;
}

table {
  border-collapse: collapse;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.site-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 28px;
  background: var(--gswg-nav-bg);
  border-top: 8px solid var(--gswg-nav-bar);
  border-right: 1px solid var(--gswg-nav-rule);
  color: var(--gswg-nav-text);
}

.site-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.24;
  font-weight: 700;
}

.site-title a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--gswg-nav-text);
  text-decoration: none;
}

.site-logo {
  display: block;
  width: 76px;
  height: 76px;
  flex: none;
  box-shadow: 0 0 0 1px var(--gswg-nav-rule);
}

.sidebar-header {
  position: relative;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--gswg-nav-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.language-switcher > * + *::before {
  margin-right: 7px;
  color: var(--gswg-nav-rule);
  content: "|";
}

.language-switcher a {
  color: var(--gswg-nav-muted);
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus,
.language-switcher-current {
  color: var(--gswg-nav-text);
}

.mobile-menu-toggle {
  display: none;
}

.site-description {
  margin: 10px 0 28px;
  color: var(--gswg-nav-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  margin-left: -14px;
  padding: 7px 0 7px 11px;
  border-left: 3px solid transparent;
  color: var(--gswg-nav-text);
  text-decoration: none;
  font-size: 0.96rem;
  line-height: 1.3;
}

.site-nav a:hover,
.site-nav a:focus {
  border-left-color: var(--gswg-nav-rule);
  color: var(--gswg-nav-text);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  border-left-color: var(--gswg-nav-marker);
  color: var(--gswg-nav-text);
  font-weight: 700;
}

.site-nav .sub-menu,
.site-nav .children {
  margin: 2px 0 8px 14px;
  padding-left: 12px;
  border-left: 1px solid var(--gswg-nav-rule);
}

.site-nav .sub-menu a,
.site-nav .children a {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
  color: var(--gswg-nav-muted);
  font-size: 0.9rem;
}

.site-nav .sub-menu .current-menu-item > a,
.site-nav .children .current_page_item > a {
  color: var(--gswg-nav-text);
}

.site-nav .is-collapsible > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-nav .is-collapsible > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.site-nav .is-collapsible.is-open > a::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.site-nav .is-collapsible:not(.is-open) > .sub-menu {
  display: none;
}

.site-nav {
  margin-top: 28px;
}

.sidebar-contact {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gswg-nav-rule);
  color: var(--gswg-nav-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.site-main {
  padding: 48px min(7vw, 72px);
  border-top: 8px solid var(--gswg-highlight);
}

.content-frame {
  max-width: var(--gswg-max-content);
}

.entry-header {
  margin-bottom: 28px;
}

.entry-content > h1:first-child::after,
.entry-title::after,
.archive-title::after {
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 18px;
  background: var(--gswg-highlight);
  content: "";
}

.entry-title,
.archive-title {
  margin: 0;
  color: var(--gswg-accent-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 600;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--gswg-accent-dark);
  font-weight: 600;
  line-height: 1.18;
  /* Long German compounds (e.g. "Wirtschaftsgeschichte") must not overflow narrow phones. */
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

.entry-content h1 {
  font-size: 2.4rem;
}

.entry-content h2 {
  margin-top: 2.1em;
  font-size: 1.55rem;
}

.entry-content h3 {
  margin-top: 1.65em;
  font-size: 1.18rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  max-width: 72ch;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--gswg-rule);
  margin: 32px 0;
}

.gswg-record-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.gswg-record {
  padding: 18px 20px;
  background: var(--gswg-surface);
  border: 1px solid var(--gswg-rule);
  border-radius: var(--gswg-radius);
}

.gswg-record h3 {
  margin-top: 0;
}

.gswg-document-language {
  color: var(--gswg-muted);
  font-size: 0.78em;
  font-weight: 500;
}

.gswg-event-gallery-source {
  display: none;
}

.gswg-expertise-nav {
  margin: 28px 0;
  padding: 16px 18px;
  background: var(--gswg-surface);
  border: 1px solid var(--gswg-rule);
  border-radius: var(--gswg-radius);
}

.gswg-expertise-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gswg-expertise-group {
  margin-top: 18px;
  border: 1px solid var(--gswg-rule);
  border-radius: var(--gswg-radius);
  background: rgba(255, 255, 255, 0.46);
  scroll-margin-top: 24px;
}

.gswg-expertise-group > summary {
  padding: 16px 18px;
  color: var(--gswg-accent-dark);
  cursor: pointer;
}

.gswg-expertise-heading {
  font-size: 1.25rem;
  font-weight: 700;
}

.gswg-expertise-count {
  color: var(--gswg-muted);
}

.gswg-expert-list {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.gswg-expert-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--gswg-surface);
  border: 1px solid var(--gswg-rule);
  border-radius: var(--gswg-radius);
}

.gswg-expert-portrait img {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.gswg-expert-body h3 {
  margin: 0 0 10px;
}

.gswg-expert-body p {
  margin: 5px 0;
}

.gswg-expert-details {
  margin-top: 12px;
}

.gswg-expert-details summary {
  color: var(--gswg-link);
  cursor: pointer;
  font-weight: 600;
}

.gswg-expert-details ul {
  margin-bottom: 0;
}

.post-list {
  display: grid;
  gap: 28px;
}

.post-summary {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gswg-rule);
}

.post-summary h2 {
  margin-bottom: 8px;
}

.post-summary h2 a {
  color: var(--gswg-accent-dark);
  text-decoration: none;
}

.entry-meta {
  color: var(--gswg-muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  max-width: var(--gswg-max-content);
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--gswg-rule);
  color: var(--gswg-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--gswg-muted);
}

.footer-nav a:hover,
.footer-nav a:focus,
.footer-nav .current-menu-item a {
  color: var(--gswg-accent-dark);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Start page */
.home .content-frame {
  max-width: 1080px;
}

.home .site-footer {
  max-width: 1080px;
}

.gswg-hero {
  margin: 0 0 48px;
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 52px);
  border-bottom: 6px solid var(--gswg-highlight);
  border-radius: var(--gswg-radius);
  background: var(--gswg-accent-dark);
  color: #ffffff;
}

.gswg-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: 1.1;
  hyphens: auto;
  overflow-wrap: break-word;
}

.gswg-hero p {
  max-width: none;
  margin: 0 0 12px;
}

.gswg-hero p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.gswg-hero .gswg-hero-lead {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.5;
}

.gswg-hero a:not(.wp-block-button__link) {
  color: #ffffff;
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.wp-block-button__link.wp-element-button {
  display: inline-block;
  padding: 11px 20px;
  border: 2px solid var(--gswg-highlight);
  border-radius: 999px;
  background: var(--gswg-highlight);
  color: var(--gswg-on-highlight);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.wp-block-button__link.wp-element-button:hover,
.wp-block-button__link.wp-element-button:focus-visible {
  filter: brightness(1.08);
  color: var(--gswg-on-highlight);
}

.gswg-next-event h2,
.gswg-front-latest h2 {
  margin-top: 0;
}

.gswg-next-event {
  margin-bottom: 52px;
}

/* Section heading with its "all …" link on the same row, as in "Aktuelles". */
.gswg-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 24px;
  margin-bottom: 18px;
}

.gswg-more {
  white-space: nowrap;
}

.gswg-section-head h2,
.gswg-section-head .gswg-more {
  margin: 0;
}

.gswg-next-event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--gswg-rule);
  border-radius: var(--gswg-radius);
  background: var(--gswg-surface);
}

.gswg-date-badge {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 128px;
  margin: 0;
  padding: 16px 14px;
  border-radius: 6px;
  background: var(--gswg-accent-dark);
  color: #ffffff;
  line-height: 1.1;
  text-align: center;
}

.gswg-date-badge-days {
  font-size: 1.9rem;
  font-weight: 700;
}

.gswg-date-badge-month {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gswg-date-badge-year {
  margin-top: 2px;
  opacity: 0.85;
}

.gswg-next-event-body h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.gswg-next-event-body p {
  margin: 0 0 10px;
}

.gswg-next-event-theme {
  color: var(--gswg-accent-dark);
  font-size: 1.15rem;
  font-style: italic;
}

.gswg-next-event-meta {
  color: var(--gswg-muted);
  font-weight: 600;
}

.gswg-next-event-links a {
  margin-right: 14px;
  white-space: nowrap;
}


.gswg-next-event-companion {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gswg-rule);
  font-size: 0.95rem;
}

.gswg-front-latest {
  margin-bottom: 52px;
}

/* Heading and "all news" link share the first row, the cards span below. */
.gswg-front-latest:not(:has(> .wp-block-group__inner-container)),
.gswg-front-latest > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 24px;
}

.gswg-front-latest:not(:has(> .wp-block-group__inner-container)) > *,
.gswg-front-latest > .wp-block-group__inner-container > * {
  margin-block: 0;
}

.gswg-front-latest .gswg-latest {
  max-width: none;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 18px;
}

.gswg-front-latest .gswg-more {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.gswg-latest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gswg-latest li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  border: 1px solid var(--gswg-rule);
  border-radius: var(--gswg-radius);
  background: var(--gswg-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gswg-latest li:hover,
.gswg-latest li:focus-within {
  border-color: var(--gswg-accent);
  box-shadow: 0 6px 18px rgba(23, 54, 94, 0.1);
  transform: translateY(-2px);
}

/* The whole card is clickable through its title link. */
.gswg-latest-title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.gswg-latest p {
  margin: 0;
}

.gswg-latest-meta {
  color: var(--gswg-muted);
  font-size: 0.86rem;
}

.gswg-latest-type {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border: 1px solid var(--gswg-rule);
  border-radius: 999px;
  background: var(--gswg-surface);
  color: var(--gswg-accent-dark);
  font-weight: 700;
}

.gswg-latest-title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}

.gswg-latest-title a {
  color: var(--gswg-accent-dark);
  text-decoration: none;
}

.gswg-more {
  margin-top: 14px;
  font-weight: 700;
}

.gswg-more a::after {
  content: " →";
}

.gswg-key-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.gswg-key-figures div {
  padding: 16px;
  border: 1px solid var(--gswg-rule);
  border-radius: var(--gswg-radius);
  background: var(--gswg-surface);
}

.gswg-key-figures dt {
  color: var(--gswg-accent-dark);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.gswg-key-figures dt::after {
  display: block;
  width: 28px;
  height: 3px;
  margin: 8px 0;
  background: var(--gswg-highlight);
  content: "";
}

.gswg-key-figures dd {
  margin: 0;
  color: var(--gswg-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.gswg-tiles {
  margin: 18px 0 52px;
}

.gswg-tiles:not(:has(> .wp-block-group__inner-container)),
.gswg-tiles > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

[class*="is-style-gswg-tile-"] {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid var(--gswg-rule);
  border-radius: var(--gswg-radius);
  background: var(--gswg-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

[class*="is-style-gswg-tile-"]::before {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  background: var(--gswg-accent);
  -webkit-mask: var(--gswg-icon) center / contain no-repeat;
  mask: var(--gswg-icon) center / contain no-repeat;
  content: "";
}

[class*="is-style-gswg-tile-"]:hover,
[class*="is-style-gswg-tile-"]:focus-within {
  border-color: var(--gswg-accent);
  box-shadow: 0 6px 18px rgba(23, 54, 94, 0.1);
  transform: translateY(-2px);
}

[class*="is-style-gswg-tile-"] h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

[class*="is-style-gswg-tile-"] h3 a {
  color: var(--gswg-accent-dark);
  text-decoration: none;
}

/* The whole tile is clickable through its heading link. */
[class*="is-style-gswg-tile-"] h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

[class*="is-style-gswg-tile-"] p a {
  position: relative;
  z-index: 1;
}

[class*="is-style-gswg-tile-"] p {
  margin: 0;
  color: var(--gswg-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.is-style-gswg-tile-society {
  --gswg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 17h14M6 17v-6M10 17v-6M14 17v-6M18 17v-6M4 9l8-5 8 5z'/%3E%3C/svg%3E");
}

.is-style-gswg-tile-prize {
  --gswg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 13.9 7 22l5-3 5 3-1.5-8.1'/%3E%3C/svg%3E");
}

.is-style-gswg-tile-experts {
  --gswg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10v1a7 7 0 0 0 14 0v-1M12 18v4M8 22h8'/%3E%3C/svg%3E");
}

.is-style-gswg-tile-publications {
  --gswg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 7 4.5 3 4.5v14c4 0 7 .5 9 2 2-1.5 5-2 9-2v-14c-4 0-7 .5-9 2zM12 6.5v14'/%3E%3C/svg%3E");
}

.is-style-gswg-tile-events {
  --gswg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4M17 3v4M3 11h18M7 15h2M15 15h2M7 18h2'/%3E%3C/svg%3E");
}

.is-style-gswg-tile-letters {
  --gswg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E");
}

.is-style-gswg-tile-data {
  --gswg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E");
}

.is-style-gswg-tile-women {
  --gswg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 6-6h2a6 6 0 0 1 6 6v1M16 3.2a4 4 0 0 1 0 7.6M22 21v-1a6 6 0 0 0-4-5.6'/%3E%3C/svg%3E");
}

.gswg-cta:not(:has(> .wp-block-group__inner-container)),
.gswg-cta > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 32px;
}

.gswg-cta {
  padding: clamp(24px, 4vw, 40px) clamp(22px, 5vw, 52px);
  border-bottom: 6px solid var(--gswg-highlight);
  border-radius: var(--gswg-radius);
  background: var(--gswg-accent-dark);
  color: #ffffff;
}

.gswg-cta h2 {
  color: #ffffff;
}

.gswg-cta p {
  color: rgba(255, 255, 255, 0.9);
}

.gswg-cta h2 {
  grid-column: 1;
  margin: 0;
}

.gswg-cta p {
  grid-column: 1;
  margin: 0;
}

.gswg-cta .wp-block-buttons {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

@media (max-width: 760px) {
  .gswg-cta:not(:has(> .wp-block-group__inner-container)),
  .gswg-cta > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  .gswg-cta .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }

  .gswg-next-event-card {
    grid-template-columns: 1fr;
  }

  .gswg-date-badge {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    padding: 10px 14px;
  }

  .gswg-date-badge-days {
    font-size: 1.4rem;
  }
}

@media (max-width: 860px) {
  .site-shell {
    display: block;
  }

  .site-sidebar {
    position: relative;
    height: auto;
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--gswg-nav-rule);
  }

  .site-title a {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .site-logo {
    width: 48px;
    height: 48px;
  }

  .site-main {
    border-top-width: 6px;
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .sidebar-header .language-switcher {
    margin: 0 0 0 auto;
  }

  .site-sidebar.is-mobile-menu-ready .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 7px 11px;
    border: 1px solid var(--gswg-nav-rule);
    border-radius: 4px;
    background: transparent;
    color: var(--gswg-nav-text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible {
    border-color: var(--gswg-nav-marker);
    color: var(--gswg-nav-text);
  }

  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-menu-icon {
    position: relative;
  }

  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .mobile-menu-icon::before {
    top: -6px;
  }

  .mobile-menu-icon::after {
    top: 6px;
  }

  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon {
    background: transparent;
  }

  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .sidebar-panel {
    padding-top: 18px;
  }

  .site-description {
    margin-top: 0;
  }

  .site-nav ul {
    columns: 2;
    column-gap: 24px;
  }

  .site-nav .children {
    display: none;
  }

  .site-nav .is-collapsible.is-open > .sub-menu {
    display: block;
  }

  .sidebar-contact {
    margin-top: 18px;
  }

  .site-main {
    padding: 32px 22px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .sidebar-header {
    flex-wrap: wrap;
  }

  .site-title {
    flex: 1 1 calc(100% - 180px);
  }

  .site-nav ul {
    columns: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gswg-expert-card {
    grid-template-columns: 1fr;
  }

  .entry-title,
  .archive-title {
    font-size: 2rem;
  }

  .entry-content h1 {
    font-size: 1.85rem;
  }

  /* Give the heading the full width; the "all …" link moves below it. */
  .gswg-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* Grid children must not inherit the block editor's flow spacing. */
.gswg-tiles:not(:has(> .wp-block-group__inner-container)) > *,
.gswg-tiles > .wp-block-group__inner-container > * {
  margin-block: 0;
}

/* Four overview tiles on the start page. */
.home .gswg-tiles:not(:has(> .wp-block-group__inner-container)),
.home .gswg-tiles > .wp-block-group__inner-container {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .home .gswg-tiles:not(:has(> .wp-block-group__inner-container)),
  .home .gswg-tiles > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .home .gswg-tiles:not(:has(> .wp-block-group__inner-container)),
  .home .gswg-tiles > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Decorative initiative icons, shared with the block editor. */
.gswg-link-arbeitskreis > a::before,
.gswg-link-emporion > a::before,
.gswg-link-wieh > a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-inline-end: 6px;
  vertical-align: -3px;
  background-color: var(--gswg-muted);
  -webkit-mask: var(--gswg-link-icon) center / contain no-repeat;
  mask: var(--gswg-link-icon) center / contain no-repeat;
}
.gswg-link-emporion { --gswg-link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cellipse%20cx%3D%2212%22%20cy%3D%225%22%20rx%3D%228%22%20ry%3D%223%22%2F%3E%3Cpath%20d%3D%22M4%205v14c0%201.7%203.6%203%208%203s8-1.3%208-3V5M4%2012c0%201.7%203.6%203%208%203s8-1.3%208-3%22%2F%3E%3C%2Fsvg%3E"); }
.gswg-link-wieh { --gswg-link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%225%22%20r%3D%222.5%22%2F%3E%3Ccircle%20cx%3D%225%22%20cy%3D%2216%22%20r%3D%222.5%22%2F%3E%3Ccircle%20cx%3D%2219%22%20cy%3D%2216%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M8%2010a5%205%200%200%201%208%200M1%2022a4%204%200%200%201%208%200M15%2022a4%204%200%200%201%208%200M9%208l-3%205m9-5%203%205M8%2016h8%22%2F%3E%3C%2Fsvg%3E"); }

.gswg-link-arbeitskreis { --gswg-link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%206.5C10%205%207%204.5%203%204.5v14c4%200%207%20.5%209%202%202-1.5%205-2%209-2v-14c-4%200-7%20.5-9%202zM12%206.5v14%22%2F%3E%3C%2Fsvg%3E"); }
