/*
Theme Name: Selbsthilfe Pankreaskarzinom
Theme URI: https://www.selbsthilfe-pankreaskarzinom.at/
Description: Block-Theme für die Selbsthilfegruppe Pankreaskarzinom – modern, barrierearm, mit Unterseiten-Navigation, Kontaktformular und Kalender-Abo (zusammen mit „The Events Calendar“).
Version: 1.0.5
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shpk
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #B79BDB; outline-offset: 2px; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: #2A1B3D; border: 1.5px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #2A1B3D; color: #fff; }
.wp-block-button__link { transition: transform .2s ease, background .2s ease, color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }

/* ---------- Kopfzeile ---------- */
.shpk-header, header.wp-block-template-part {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
	border-bottom: 1px solid #ECE6F3;
}
.admin-bar .shpk-header, .admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .shpk-header, .admin-bar header.wp-block-template-part { top: 46px; } }
header.wp-block-template-part .wp-block-site-logo img { height: 56px; width: auto; }
header.wp-block-template-part .wp-block-navigation__submenu-container {
	border: 1px solid #ECE6F3 !important; border-radius: 16px; padding: .5rem !important;
	box-shadow: 0 18px 40px rgba(61,29,102,.12); min-width: 260px !important;
}
header.wp-block-template-part .wp-block-navigation-item__content { padding: .45rem .5rem; border-radius: 10px; }
header.wp-block-template-part .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #F5F1FA; }
header.wp-block-template-part .current-menu-item > a, header.wp-block-template-part .current-menu-ancestor > a { color: #5B2E91; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Bausteine ---------- */
.shpk-eyebrow { font-size: .875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5B2E91; margin: 0; }
.has-aubergine-background-color .shpk-eyebrow, .has-nacht-background-color .shpk-eyebrow { color: #CDBFE0; }
.shpk-lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: #4A3F5C; max-width: 62ch; }
.has-aubergine-background-color .shpk-lead { color: #E6DDF2; }
.shpk-badge {
	display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: #fff;
	border: 1px solid #DCCFEC; font-size: .875rem; font-weight: 700; color: #5B2E91;
}
.shpk-card {
	background: #fff; border: 1px solid #ECE6F3; border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem);
	transition: transform .28s ease, box-shadow .28s ease;
}
.shpk-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(61,29,102,.14); }
.shpk-card.has-hauch-background-color, .shpk-card.has-aubergine-background-color { border-color: transparent; }
.shpk-card > *:first-child { margin-top: 0; }
.shpk-card .wp-block-heading { margin-bottom: .25rem; }
.shpk-card--gestrichelt { border: 1.5px dashed #CFC4DE; background: transparent; }
.shpk-card--gestrichelt:hover { transform: none; box-shadow: none; }
.shpk-meta { font-weight: 700; color: #5B2E91; margin: 0; }
.shpk-klein { font-size: .9375rem; color: #5E5470; }
.has-aubergine-background-color .shpk-klein { color: #CDBFE0; }

/* Hero */
.shpk-hero { position: relative; overflow: hidden; isolation: isolate; }
.shpk-hero::before, .shpk-hero::after {
	content: ""; position: absolute; z-index: -1; background: #E7DCF4;
	animation: shpk-blob 14s ease-in-out infinite;
}
.shpk-hero::before { width: 520px; height: 520px; right: -140px; top: -160px; }
.shpk-hero::after { width: 300px; height: 300px; left: -120px; bottom: -140px; background: #EDE4F7; animation-delay: -6s; }
.shpk-hero h1 { margin: 0; }
.shpk-hero-text > * { animation: shpk-up .9s cubic-bezier(.2,.7,.2,1) both; }
.shpk-hero-text > *:nth-child(2) { animation-delay: .12s; }
.shpk-hero-text > *:nth-child(3) { animation-delay: .24s; }
.shpk-hero-text > *:nth-child(4) { animation-delay: .38s; }
.shpk-hero-card { animation: shpk-up .9s cubic-bezier(.2,.7,.2,1) .5s both; }

/* Telefon-Karte */
.shpk-telefon { background: #fff; border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.1rem); box-shadow: 0 24px 60px rgba(61,29,102,.12); }
.shpk-nummer { display: flex; align-items: center; gap: 1rem; margin: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.2; }
.shpk-nummer::before {
	content: ""; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 999px; background-color: #5B2E91;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center;
	animation: shpk-ring 2.4s ease-out infinite;
}
.shpk-person {
	display: flex; align-items: center; gap: .9rem; padding: .85rem; border-radius: 18px; background: #F8F5FC;
	transition: transform .28s ease, box-shadow .28s ease;
}
.shpk-person:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(61,29,102,.12); }
.shpk-person .wp-block-image, .shpk-person figure { margin: 0; flex: 0 0 auto; }
.shpk-person img { width: 56px !important; height: 56px !important; border-radius: 999px; object-fit: cover; object-position: top; }
.shpk-person p { margin: 0; line-height: 1.35; }
.shpk-person .shpk-zeit { margin-left: auto; text-align: right; font-weight: 700; font-size: .9rem; }
.shpk-initialen {
	flex: 0 0 auto; width: 56px; height: 56px; border-radius: 999px; background: #5B2E91; color: #fff !important;
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem;
}

/* Themen-Kacheln */
.shpk-themen .wp-block-list { list-style: none; padding: 0; margin: 0; font-weight: 600; }
.shpk-themen .wp-block-list li { padding: .3rem 0; line-height: 1.35; }
.shpk-themen .wp-block-list a { text-decoration: none; }
.shpk-themen .wp-block-list a:hover { text-decoration: underline; }

/* Warnsignale */
.shpk-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.shpk-chips li {
	padding: .55rem 1rem; border-radius: 999px; background: #F0E8F9; font-weight: 700; font-size: .95rem;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.shpk-chips li:hover { background: #5B2E91; color: #fff; transform: scale(1.04); }
.shpk-hinweis { display: flex; gap: 1rem; align-items: flex-start; border-radius: 20px; }
.shpk-hinweis::before {
	content: "!"; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; background: #B79BDB; color: #1E1330;
	font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.shpk-float img { border-radius: 24px; box-shadow: 0 28px 70px rgba(61,29,102,.18); animation: shpk-float 7s ease-in-out infinite; }

/* Zahlen */
.shpk-zahl { font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 800; color: #5B2E91; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.shpk-quelle { font-size: .8125rem; color: #5E5470; }

/* Video-Liste */
.shpk-videos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .75rem; }
.shpk-videos li { margin: 0; }
.shpk-videos a {
	display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 16px; background: #F8F5FC;
	color: #2A1B3D; text-decoration: none; font-weight: 700; line-height: 1.3; height: 100%; box-sizing: border-box;
	transition: transform .28s ease, box-shadow .28s ease;
}
.shpk-videos a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(61,29,102,.12); }
.shpk-videos a::before {
	content: ""; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; background-color: #5B2E91;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 4l13 8-13 8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center;
}

/* Laufband Sponsoren */
.shpk-marquee { overflow: hidden; background: #fff; border-block: 1px solid #ECE6F3; padding-block: 1.9rem; }
.shpk-marquee-track { display: flex; width: max-content; animation: shpk-slide 70s linear infinite; }
.shpk-marquee-track:hover { animation-play-state: paused; }
.shpk-marquee-set { display: flex; align-items: center; flex: 0 0 auto; }
.shpk-marquee .wp-block-image { margin: 0 2.75rem !important; flex: 0 0 auto; }
.shpk-marquee img { height: 72px !important; width: auto !important; max-width: none; display: block; }
@media (max-width: 600px) { .shpk-marquee img { height: 52px !important; } .shpk-marquee .wp-block-image { margin: 0 1.75rem !important; } }

/* Kontaktformular */
.shpk-form { display: flex; flex-direction: column; gap: 1rem; }
.shpk-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .95rem; }
.shpk-form input[type=text], .shpk-form input[type=email], .shpk-form textarea {
	font: inherit; font-weight: 400; min-height: 48px; padding: .6rem .9rem; border-radius: 12px; border: 1.5px solid #CFC4DE; background: #fff; color: #2A1B3D;
}
.shpk-form textarea { min-height: 140px; resize: vertical; }
.shpk-form .shpk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shpk-form button {
	align-self: flex-start; font: inherit; font-weight: 700; min-height: 52px; padding: 0 1.75rem; border: 0; border-radius: 999px;
	background: #5B2E91; color: #fff; cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.shpk-form button:hover { background: #3D1D66; transform: translateY(-2px); }
.shpk-form .shpk-check { flex-direction: row; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.shpk-meldung { padding: 1rem 1.2rem; border-radius: 16px; font-weight: 700; }
.shpk-meldung--ok { background: #E8F5EC; color: #1E5631; }
.shpk-meldung--fehler { background: #FBEAEA; color: #8A1C1C; }

/* Kalender-Abo */
.shpk-abo { display: flex; flex-direction: column; gap: .9rem; }
.shpk-abo-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.shpk-abo-buttons a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.2rem; border-radius: 999px;
	background: #fff; color: #2A1B3D; text-decoration: none; font-weight: 700; font-size: .95rem;
	transition: transform .2s ease;
}
.shpk-abo-buttons a:hover { transform: translateY(-2px); color: #2A1B3D; }
.shpk-abo label { display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; font-weight: 700; color: #CDBFE0; }
.shpk-abo-feld { display: flex; gap: .5rem; }
.shpk-abo-feld input {
	flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 .9rem; border-radius: 12px; border: 1.5px solid #5E4A7A;
	background: #1E1330; color: #fff; font: inherit; font-size: .875rem;
}
.shpk-abo-feld button {
	min-height: 48px; padding: 0 1.1rem; border-radius: 12px; border: 0; background: #B79BDB; color: #1E1330;
	font: inherit; font-weight: 800; cursor: pointer;
}

/* ---------- Unterseiten ---------- */
.shpk-pagehead .shpk-breadcrumb { font-size: .9375rem; font-weight: 600; color: #5E5470; margin: 0; }
.shpk-pagehead .shpk-breadcrumb a { text-decoration: none; }
.shpk-pagehead .wp-block-post-title { margin: .4rem 0 0; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; }
.shpk-pagegrid { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); align-items: flex-start; }
.shpk-pagegrid > .shpk-sidenav { flex: 1 1 240px; max-width: 300px; }
.shpk-pagegrid > .shpk-content { flex: 999 1 520px; min-width: 0; max-width: 780px; margin: 0 !important; }
.shpk-sidenav {
	display: flex; flex-direction: column; gap: .2rem; padding: 1rem; border: 1px solid #ECE6F3; border-radius: 22px;
	position: sticky; top: 100px;
}
.shpk-sidenav .shpk-sidenav-titel { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5E5470; padding: .2rem .85rem .5rem; }
.shpk-sidenav a {
	display: block; padding: .6rem .85rem; border-radius: 12px; color: #2A1B3D; text-decoration: none; font-weight: 600; line-height: 1.35;
	transition: background .2s ease, padding-left .2s ease;
}
.shpk-sidenav a:hover { background: #F5F1FA; padding-left: 1.2rem; }
.shpk-sidenav a[aria-current="page"] { background: #5B2E91; color: #fff; font-weight: 700; }
@media (max-width: 860px) { .shpk-sidenav { position: static; max-width: none !important; } }
.shpk-content .wp-block-post-content > h2 { font-size: clamp(1.4rem, 2.6vw, 1.65rem); color: #3D1D66; margin-top: 2rem; }
.shpk-content .wp-block-post-content > h3 { font-size: 1.25rem; margin-top: 1.4rem; }
.shpk-content .wp-block-post-content > ul:not(.shpk-chips):not(.shpk-videos) { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.shpk-content .wp-block-post-content > ul:not(.shpk-chips):not(.shpk-videos) > li {
	position: relative; padding: .8rem 1rem .8rem 2.1rem; border-radius: 14px; background: #F8F5FC; overflow-wrap: anywhere;
}
.shpk-content .wp-block-post-content > ul:not(.shpk-chips):not(.shpk-videos) > li::before {
	content: ""; position: absolute; left: 1rem; top: 1.35rem; width: 8px; height: 8px; border-radius: 999px; background: #5B2E91;
}
.shpk-content .wp-block-post-content p { overflow-wrap: anywhere; }
.shpk-weiter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #ECE6F3; }
.shpk-weiter a { font-weight: 700; text-decoration: none; padding: .5rem 0; }
.shpk-weiter a.shpk-weiter-next {
	padding: .8rem 1.4rem; border-radius: 999px; background: #5B2E91; color: #fff; margin-left: auto;
	transition: transform .2s ease, background .2s ease;
}
.shpk-weiter a.shpk-weiter-next:hover { background: #3D1D66; transform: translateY(-2px); }
.shpk-glossar dt { font-weight: 800; color: #3D1D66; margin-top: 1rem; }
.shpk-glossar dd { margin: .2rem 0 0; }

/* ---------- Fußzeile ---------- */
footer.wp-block-template-part a { color: #E6DDF2; text-decoration: none; }
footer.wp-block-template-part a:hover { color: #fff; text-decoration: underline; }
footer.wp-block-template-part .wp-block-page-list, footer.wp-block-template-part ul { list-style: none; padding: 0; margin: 0; }
footer.wp-block-template-part li { padding: .2rem 0; }

/* ---------- Animationen ---------- */
@keyframes shpk-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes shpk-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes shpk-ring { 0% { box-shadow: 0 0 0 0 rgba(91,46,145,.45); } 70% { box-shadow: 0 0 0 16px rgba(91,46,145,0); } 100% { box-shadow: 0 0 0 0 rgba(91,46,145,0); } }
@keyframes shpk-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shpk-blob { 0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; } 50% { border-radius: 61% 39% 38% 62% / 58% 63% 37% 42%; } }

/* Einblenden beim Scrollen: nur wenn JavaScript läuft; Text ist danach immer voll deckend */
.shpk-js .shpk-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.shpk-js .shpk-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.shpk-js .shpk-reveal { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}

/* Nächste Termine */
.shpk-termine { display: flex; flex-direction: column; gap: .9rem; }
.shpk-termin {
	display: flex; gap: 1.25rem; align-items: center; padding: 1.25rem 1.5rem; border-radius: 22px; background: #F5F1FA;
	color: #2A1B3D; text-decoration: none; transition: transform .28s ease, box-shadow .28s ease;
}
.shpk-termin:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(61,29,102,.13); color: #2A1B3D; }
.shpk-termin-datum { flex: 0 0 76px; text-align: center; background: #fff; border-radius: 16px; padding: .6rem 0; display: flex; flex-direction: column; line-height: 1.1; }
.shpk-termin-datum span { font-size: .8rem; font-weight: 800; color: #5B2E91; text-transform: uppercase; }
.shpk-termin-datum strong { font-size: 1.85rem; }
.shpk-termin-text { display: flex; flex-direction: column; min-width: 0; }
.shpk-termin-text strong { font-size: 1.25rem; }
.shpk-termin-meta { font-size: .875rem; font-weight: 700; color: #5E5470; }

.shpk-logo { margin: 0; }
.shpk-logo img { height: 56px; width: auto; display: block; }
.shpk-btn-telefon .wp-block-button__link { padding: .7rem 1.2rem; font-size: .9375rem; }
.shpk-card--bild { overflow: hidden; }
.shpk-card--bild img { display: block; width: 100%; max-height: 520px; object-fit: cover; object-position: top; }
.shpk-nummer a { color: inherit; text-decoration: none; }
.shpk-termine + .wp-block-group, .shpk-termine { margin-bottom: 1.25rem; }
.shpk-portrait { margin: 0; }
.shpk-portrait img { width: 120px; height: 160px; object-fit: cover; object-position: top; border-radius: 18px; }
.shpk-initialen--gross { width: 88px; height: 88px; font-size: 1.75rem; margin: 0; }
.has-aubergine-background-color .shpk-nummer::before { background-color: #B79BDB; }
.wp-block-group.shpk-card.has-aubergine-background-color a { color: #E6DDF2; }
.shpk-pagegrid > .shpk-content:first-child:last-child { margin-inline: auto !important; }
.shpk-content .wp-block-post-content > h2.shpk-versal { font-size: 1.15rem; letter-spacing: .06em; }
.shpk-content .wp-block-post-content > figure { margin-block: 1.5rem; }
.shpk-content .wp-block-post-content > figure img { border-radius: 18px; border: 1px solid #ECE6F3; }
.shpk-content .wp-block-post-content > .wp-block-group.shpk-card { margin-block: 1.25rem; }
.shpk-person .shpk-zeit { white-space: nowrap; flex-shrink: 0; }
.shpk-person > p:not(.shpk-zeit):not(.shpk-initialen) { flex: 1 1 auto; min-width: 0; }
.shpk-themen h3 a { text-decoration: none; color: #2A1B3D; }
.shpk-themen h3 a:hover { color: #5B2E91; }
/* Einleitungstexte: gleiche Kante wie Überschrift und Karten, Zeilenlänge trotzdem begrenzt */
.is-layout-constrained > .shpk-lead { max-width: var(--shpk-bereich, 1200px) !important; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; padding-inline-end: max(0px, calc(min(100%, var(--shpk-bereich, 1200px)) - 64ch)); }
.shpk-float { max-width: 380px; margin-inline: auto; }

h1, h2, h3, .wp-block-post-title { hyphens: auto; overflow-wrap: break-word; }
.shpk-abo-buttons a, .wp-block-group.shpk-card.has-aubergine-background-color .shpk-abo-buttons a { color: #2A1B3D; }
/* Veranstaltungskalender (The Events Calendar) an die Farben anpassen */
:root, .tribe-common, .tribe-events, .tec-events {
	--tec-color-accent-primary: #5B2E91;
	--tec-color-accent-primary-hover: #3D1D66;
	--tec-color-accent-primary-active: #3D1D66;
	--tec-color-accent-primary-background: #F0E8F9;
	--tec-color-button-primary: #5B2E91;
	--tec-color-button-primary-hover: #3D1D66;
	--tec-color-link-accent: #5B2E91;
	--tec-color-link-accent-hover: #3D1D66;
	--tec-font-family-sans-serif: Figtree, system-ui, sans-serif;
	--tec-font-family-base: Figtree, system-ui, sans-serif;
}
.tribe-common .tribe-common-c-btn, .tribe-common a.tribe-common-c-btn { border-radius: 999px; }

/* ---------- Fachbegriffe erklären ---------- */
.shpk-begriff { position: relative; display: inline; }
.shpk-begriff-wort {
	font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: help;
	text-decoration: underline dotted #5B2E91; text-decoration-thickness: 2px; text-underline-offset: 3px;
	border-radius: 4px; transition: background .2s ease;
}
.shpk-begriff-wort:hover, .shpk-begriff.is-open .shpk-begriff-wort { background: #F0E8F9; }
.shpk-tip {
	position: absolute; z-index: 60; left: 50%; top: calc(100% + 10px); transform: translate(-50%, 6px);
	width: max-content; max-width: min(340px, 86vw); padding: .85rem 1rem; border-radius: 14px;
	background: #2A1B3D; color: #fff; font-size: .9375rem; font-weight: 400; line-height: 1.5; text-align: left;
	box-shadow: 0 18px 40px rgba(30,19,48,.28); display: none; transform: translateX(-50%);
}
@keyframes shpk-tip-in { from { opacity: 0; margin-top: 6px; } to { opacity: 1; margin-top: 0; } }
.shpk-tip strong { display: block; color: #CDBFE0; font-size: .8125rem; letter-spacing: .04em; margin-bottom: .2rem; }
.shpk-tip::before {
	content: ""; position: absolute; top: -6px; left: var(--pfeil, 50%); width: 12px; height: 12px; margin-left: -6px;
	background: #2A1B3D; transform: rotate(45deg); border-radius: 2px;
}
@media (hover: hover) {
	.shpk-begriff:hover .shpk-tip { display: block; animation: shpk-tip-in .18s ease both; }
}
.shpk-begriff.is-open .shpk-tip, .shpk-begriff-wort:focus-visible + .shpk-tip { display: block; animation: shpk-tip-in .18s ease both; }
/* Smartphone: Erklärung als Karte am unteren Bildschirmrand */
@media (max-width: 640px) {
	.shpk-tip {
		position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; max-width: none;
		transform: none; padding: 1rem 2.75rem 1.1rem 1.1rem; font-size: 1rem;
	}
	.shpk-tip::before { display: none; }
	.shpk-tip::after { content: "×"; position: absolute; top: .5rem; right: .9rem; font-size: 1.5rem; line-height: 1; color: #CDBFE0; }
}

/* ---------- Handy-Menü ganzseitig ---------- */
/* backdrop-filter würde das fixierte Menü in der Kopfzeile einsperren */
@media (max-width: 599px) {
	header.wp-block-template-part, .shpk-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
header.wp-block-template-part:has(.is-menu-open), .shpk-header:has(.is-menu-open) { backdrop-filter: none; -webkit-backdrop-filter: none; }
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important; inset: 0 !important; width: 100vw; height: 100dvh; z-index: 100000;
	background: #fff !important; color: #2A1B3D !important; padding: 1.25rem 1.5rem 2rem !important; overflow-y: auto;
	animation: shpk-menu-in .22s ease both;
}
.admin-bar .wp-block-navigation__responsive-container.is-menu-open { top: 46px !important; height: calc(100dvh - 46px); }
@keyframes shpk-menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem !important; align-items: stretch !important; gap: .25rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch !important; gap: .25rem !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-size: 1.3rem; font-weight: 800; padding: .75rem .5rem !important; border-bottom: 1px solid #ECE6F3; border-radius: 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important; box-shadow: none !important; padding: .25rem 0 .75rem .75rem !important; min-width: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1.05rem; font-weight: 600; padding: .45rem .5rem !important; color: #5B2E91;
}
.wp-block-navigation__responsive-container-close { top: 1.25rem !important; right: 1.25rem !important; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #F0E8F9 !important; }
.wp-block-navigation__responsive-container-open { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.wp-block-navigation__responsive-container-open:hover { background: #F0E8F9; }
.shpk-captcha-status { margin: 0; font-size: .9rem; color: #5E5470; min-height: 1.2em; }
.shpk-form button[disabled] { opacity: .7; cursor: progress; }

/* Unterseiten als Karten */
.shpk-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin-block: 1.25rem; }
.shpk-karte {
	display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: 22px; background: #F5F1FA;
	color: #2A1B3D; text-decoration: none; transition: transform .28s ease, box-shadow .28s ease;
}
.shpk-karte:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(61,29,102,.14); color: #2A1B3D; }
.shpk-karte strong { font-size: 1.25rem; line-height: 1.25; }
.shpk-karte span { color: #4A3F5C; font-size: .9375rem; }
.shpk-karte em { margin-top: auto; font-style: normal; font-weight: 700; color: #5B2E91; }

/* ---------- Kopfzeile kompakter; unter 1200 px Menü-Knopf statt umbrechender Zeile ---------- */
header.wp-block-template-part .wp-block-navigation { gap: .25rem .95rem !important; font-size: .95rem; }
header.wp-block-template-part > .wp-block-group > .wp-block-group { max-width: 1320px !important; }
header.wp-block-template-part .shpk-btn-telefon .wp-block-button__link { padding: .65rem 1.05rem; font-size: .9rem; }
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content { white-space: nowrap; }
@media (min-width: 600px) and (max-width: 1279px) {
	header.wp-block-template-part .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	header.wp-block-template-part .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	header.wp-block-template-part, .shpk-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { display: flex !important; flex-direction: column; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { position: static !important; display: flex !important; flex-direction: column; opacity: 1 !important; visibility: visible !important; height: auto !important; width: auto !important; background: transparent !important; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon { display: none !important; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { max-width: 720px; margin-inline: auto; }
}

/* Video-Liste: Titel und Vortragende untereinander */
.shpk-videos a { display: grid; grid-template-columns: 40px 1fr; column-gap: .85rem; align-items: center; }
.shpk-videos a::before { grid-row: span 2; align-self: center; }
.shpk-videos a > span { grid-column: 2; font-weight: 400; }
.shpk-videos a br { display: none; }
