/*
 * Animationen der Sektionen-Gruppe „Animationen“ (src/model/patterns.ts). Jede hängt an einer Klasse „tw-anim-…“
 * an gewöhnlichen Blöcken: Texte, Bilder und Farben bleiben im Editor bearbeitbar.
 * Liegt im Theme (assets/blocks/style.css), in der Arbeitsfläche von Themewerk und im Plugin Werkzeuge (assets/animations.css).
 * Farben über die Voreinstellungen des Designs, mit Ersatzwerten für fremde Themes.
 */

:root { --tw-anim-accent: var(--wp--preset--color--accent, #c9a46a); --tw-anim-light: var(--wp--preset--color--base, #fff); --tw-anim-dark: var(--wp--preset--color--contrast, #111); }

/* ---------- 1. Schallplatte: Titelbild „tw-anim-vinyl“, Aufkleber „tw-anim-sticker“ in „tw-anim-turntable“ ---------- */
.tw-anim-turntable { position: relative; max-width: 540px; margin-inline: auto; }
/* !important: WordPress setzt am Titelbild „aspect-ratio: unset“ direkt ins Element */
.wp-block-cover.tw-anim-vinyl { aspect-ratio: 1 !important; min-height: 0 !important; height: auto; padding: 0; border-radius: 50%; overflow: hidden; max-width: 520px; margin-inline: auto;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 10px #050505, 0 0 0 11px rgba(127, 127, 127, .25); }
.tw-anim-vinyl::before, .tw-anim-vinyl::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 50%; pointer-events: none; }
/* Rillen, Rand und Glanzlicht, das mitläuft – so wirkt die Platte auch ohne Bild */
.tw-anim-vinyl::after { background: repeating-radial-gradient(circle, rgba(0, 0, 0, 0) 0 3px, rgba(0, 0, 0, .3) 3.5px 5px), radial-gradient(circle, transparent 56%, rgba(0, 0, 0, .55)); }
.tw-anim-vinyl::before { background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, .14) 13%, transparent 20% 52%, rgba(255, 255, 255, .1) 60%, transparent 68%); }
.tw-anim-vinyl > .wp-block-cover__inner-container { position: relative; z-index: 2; width: 32% !important; aspect-ratio: 1; margin: auto; padding: 0 !important; border-radius: 50%;
  display: grid; place-content: center; text-align: center; background: var(--tw-anim-accent); color: var(--tw-anim-dark); font-size: clamp(10px, 1.1vw, 14px); line-height: 1.15; }
.tw-anim-vinyl > .wp-block-cover__inner-container > * { margin: 0 !important; color: inherit; }
.tw-anim-vinyl > .wp-block-cover__inner-container::after { content: ''; width: 9px; height: 9px; margin: .35em auto 0; border-radius: 50%; background: #050505; }
.tw-anim-sticker { position: absolute !important; z-index: 3; right: 2%; top: 2%; width: clamp(84px, 9vw, 128px); aspect-ratio: 1; border-radius: 50%; gap: 0 !important;
  display: flex !important; flex-direction: column; justify-content: center; align-items: center; text-align: center; rotate: 12deg;
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .7); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; line-height: 1.05; }
.tw-anim-sticker:not(.has-background) { background: var(--tw-anim-accent); color: var(--tw-anim-dark); }
.tw-anim-sticker > * { margin: 0 !important; }
.tw-anim-sticker > :nth-child(2) { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: 0; text-transform: none; font-weight: 400; }

/* ---------- 2. Klangwelle: Trenner „tw-anim-wave“, Farbe = Farbe des Trenners ---------- */
.wp-block-separator.tw-anim-wave { width: min(420px, 80%) !important; max-width: none; height: 64px !important; margin: 2rem auto !important; border: 0 !important; opacity: .9;
  background-color: transparent !important; background-image: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 11px) !important;
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 64' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C20 4 40 4 60 32 S100 60 120 40 V64 H0Z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 120px 100% repeat-x;
  mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 64' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C20 4 40 4 60 32 S100 60 120 40 V64 H0Z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 120px 100% repeat-x;
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.wp-block-separator.tw-anim-wave:not(.has-text-color):not(.has-background) { color: var(--tw-anim-accent); }

/* ---------- 3. Textkreis: Block „Textkreis“ (text-ring.tsx) ---------- */
.tw-ring { position: relative; width: var(--tw-ring-size, 180px); max-width: 100%; aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
/* Ohne automatische Großschreibung: Aus „ß“ würde „SS“, zwei Buchstaben auf einem Platz */
.tw-ring__text { position: absolute; inset: 0; font-size: calc(var(--tw-ring-size, 180px) * .072); font-weight: 600; letter-spacing: .02em; }
.tw-ring__text > span { position: absolute; left: 50%; top: 0; width: 1em; height: 50%; margin-left: -.5em; text-align: center; transform-origin: 50% 100%; transform: rotate(calc(var(--i) * var(--tw-ring-step))); }
.tw-ring__center { position: relative; width: 52%; display: grid; place-items: center; text-align: center; }
.tw-ring__center > * { margin: 0 !important; }
.tw-ring__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 4. Kamerafahrt: Titelbild „tw-anim-kenburns“ ---------- */
.wp-block-cover.tw-anim-kenburns { overflow: hidden; }
.tw-anim-kenburns::before { content: ''; position: absolute; inset: -20%; z-index: 1; pointer-events: none; background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .12), transparent 45%); }

/* ---------- 5. Dampf: Titelbild „tw-anim-steam“ ---------- */
.wp-block-cover.tw-anim-steam { overflow: hidden; }
.tw-anim-steam::before, .tw-anim-steam::after, .tw-anim-steam > .wp-block-cover__inner-container::before {
  content: ''; position: absolute; z-index: 1; bottom: 28%; width: 22%; height: 55%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 65%); filter: blur(14px); }
.tw-anim-steam::before { left: 34%; }
.tw-anim-steam::after { left: 48%; }
.tw-anim-steam > .wp-block-cover__inner-container { position: static; }
.tw-anim-steam > .wp-block-cover__inner-container::before { left: 41%; }
.tw-anim-steam > .wp-block-cover__inner-container > * { position: relative; z-index: 2; }

/* ---------- 6. Kerzenschein: Titelbild „tw-anim-candle“ ---------- */
.wp-block-cover.tw-anim-candle { overflow: hidden; }
.tw-anim-candle::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 60% 55% at 50% 85%, color-mix(in srgb, var(--tw-anim-accent) 55%, transparent), transparent 70%); }

/* ---------- 7. Glanz-Schrift: Überschrift „tw-anim-shine“ ---------- */
.tw-anim-shine { background-image: linear-gradient(110deg, var(--tw-anim-accent) 0 38%, #fff6e3 50%, var(--tw-anim-accent) 62% 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent !important; }

/* ---------- 8. Schwebende Fotos: Gruppe „tw-anim-polaroids“ mit Titelbildern ---------- */
.tw-anim-polaroids { display: flex !important; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem) !important; padding-block: 1.5rem; }
.tw-anim-polaroids > .wp-block-cover { flex: 0 1 260px; aspect-ratio: 4 / 5 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible;
  background: #fbf8f2; box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .65); transition: rotate .5s, scale .5s; }
.tw-anim-polaroids > .wp-block-cover > :is(.wp-block-cover__image-background, .wp-block-cover__background) { inset: 12px 12px 54px !important; width: auto !important; height: auto !important; }
.tw-anim-polaroids > .wp-block-cover > .wp-block-cover__inner-container { position: absolute; left: 0; right: 0; bottom: 14px; width: 100% !important; color: #2a2622 !important; text-align: center; z-index: 2; }
.tw-anim-polaroids > .wp-block-cover > .wp-block-cover__inner-container > * { margin: 0 !important; color: inherit !important; }
.tw-anim-polaroids > .wp-block-cover:nth-child(1) { rotate: -6deg; }
.tw-anim-polaroids > .wp-block-cover:nth-child(2) { rotate: 3deg; translate: 0 18px; }
.tw-anim-polaroids > .wp-block-cover:nth-child(3) { rotate: -2deg; }
.tw-anim-polaroids > .wp-block-cover:hover { rotate: 0deg; scale: 1.05; z-index: 3; }

/* ---------- 9. Karten-Fächer: Gruppe „tw-anim-fan“ mit drei Gruppen ---------- */
.tw-anim-fan { display: grid !important; grid-template-areas: 'card'; justify-items: center; align-items: center; padding-block: 2rem 3rem; }
.tw-anim-fan > * { grid-area: card; width: min(300px, 80vw); margin: 0 !important; padding: 2rem 1.6rem; border-radius: 10px; transform-origin: 50% 120%;
  border: 1px solid rgba(127, 127, 127, .25); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .7); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tw-anim-fan > :not(.has-background) { background: var(--wp--preset--color--surface, var(--tw-anim-light)); }
.tw-anim-fan > :nth-child(1) { transform: translateX(-34%) rotate(-10deg); }
.tw-anim-fan > :nth-child(2) { transform: translateY(-10px); z-index: 2; }
.tw-anim-fan > :nth-child(3) { transform: translateX(34%) rotate(10deg); }
.tw-anim-fan:hover > :nth-child(1) { transform: translateX(-108%) rotate(-3deg); }
.tw-anim-fan:hover > :nth-child(2) { transform: translateY(-24px); }
.tw-anim-fan:hover > :nth-child(3) { transform: translateX(108%) rotate(3deg); }
@media (max-width: 781px) {
  .tw-anim-fan { grid-template-areas: none; gap: 1rem; }
  .tw-anim-fan > *, .tw-anim-fan:hover > * { grid-area: auto; transform: none !important; }
}

/* ---------- 10. Puls-Ringe: Buttons „tw-anim-pulse“ ---------- */
.tw-anim-pulse .wp-block-button__link { position: relative; isolation: isolate; }
.tw-anim-pulse .wp-block-button__link::before, .tw-anim-pulse .wp-block-button__link::after {
  content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; border: 2px solid var(--tw-anim-accent); opacity: 0; pointer-events: none; }

/* ---------- Video-Sektionen (Gruppe „Video“) ---------- */
/* Letterbox: Breitbild 21:9 mit Kino-Balken; Titelbild „tw-video-letterbox“ */
.wp-block-cover.tw-video-letterbox { aspect-ratio: 21 / 9 !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; background: #000; }
.tw-video-letterbox::before, .tw-video-letterbox::after { content: ''; position: absolute; left: 0; right: 0; z-index: 2; height: 11%; background: #000; pointer-events: none; }
.tw-video-letterbox::before { top: 0; }
.tw-video-letterbox::after { bottom: 0; }
.tw-video-letterbox > .wp-block-cover__inner-container { position: absolute; z-index: 3; left: 5%; right: 5%; bottom: 15%; width: auto !important; max-width: 36em; margin: 0 !important; }
@media (max-width: 781px) {
  .wp-block-cover.tw-video-letterbox { aspect-ratio: 4 / 5 !important; }
  .tw-video-letterbox::before, .tw-video-letterbox::after { height: 7%; }
}
/* Video-Banner: breiter, flacher Streifen als Trenner */
.wp-block-cover.tw-video-banner { min-height: clamp(150px, 22vh, 260px) !important; }
.tw-video-banner > .wp-block-cover__inner-container > * { margin-block: 0 !important; }
/* Lautsprecher-Knopf auf Videos mit Ton (video-sound.ts) */
.tw-sound { position: absolute; z-index: 6; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background-color .2s, transform .2s; }
.tw-sound:hover { background: rgba(0, 0, 0, .7); transform: scale(1.06); }
.tw-sound:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tw-video-letterbox .tw-sound { bottom: calc(11% + 12px); }
/* Auf dem Handy (Einstellung „Wiedergabe → Auf dem Handy“): ohne Video, ganz ausgeblendet; Standbild steuert video-sound.ts */
@media (max-width: 781px) {
  .wp-block-cover.tw-vmob-none > .wp-block-cover__video-background { display: none !important; }
  .wp-block-cover.tw-vmob-none > .wp-block-cover__background { opacity: 1 !important; }
  .tw-vmob-none > .tw-sound, .tw-vmob-still > .tw-sound { display: none; }
  .wp-block-video.tw-vmob-none, .tw-vmob-hide { display: none !important; }
}
/* Video mit Player: ruhiger Rahmen */
.tw-video-frame video { width: 100%; border-radius: 6px; background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }

/* ---------- Bewegung: nur, wenn das Gerät sie nicht abbestellt hat ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tw-anim-vinyl .wp-block-cover__image-background, .tw-anim-vinyl::before { animation: tw-anim-spin 18s linear infinite; }
  .tw-anim-vinyl::before { animation-duration: 6s; }
  .tw-anim-sticker { animation: tw-anim-float 5s ease-in-out infinite; }
  .wp-block-separator.tw-anim-wave { animation: tw-anim-wave 5s linear infinite; }
  .tw-ring__text { animation: tw-anim-spin var(--tw-ring-dur, 18s) linear infinite; }
  .tw-ring.is-reverse .tw-ring__text { animation-direction: reverse; }
  .tw-anim-kenburns .wp-block-cover__image-background { animation: tw-anim-kenburns 26s ease-in-out infinite alternate; }
  .tw-anim-kenburns::before { animation: tw-anim-drift 16s ease-in-out infinite alternate; }
  .tw-anim-steam::before { animation: tw-anim-steam 7s ease-in infinite; }
  .tw-anim-steam::after { animation: tw-anim-steam 8.5s ease-in 2.4s infinite; }
  .tw-anim-steam > .wp-block-cover__inner-container::before { animation: tw-anim-steam 9.5s ease-in 4.6s infinite; }
  .tw-anim-candle::before { animation: tw-anim-flicker 3.2s steps(1, end) infinite, tw-anim-glow 7s ease-in-out infinite alternate; }
  .tw-anim-shine { animation: tw-anim-shine 5.5s ease-in-out infinite; }
  .tw-anim-polaroids > .wp-block-cover { animation: tw-anim-float 6s ease-in-out infinite; }
  .tw-anim-polaroids > .wp-block-cover:nth-child(2) { animation-delay: -2s; }
  .tw-anim-polaroids > .wp-block-cover:nth-child(3) { animation-delay: -4s; }
  .tw-anim-polaroids > .wp-block-cover:hover { animation-play-state: paused; }
  .tw-anim-pulse .wp-block-button__link::before { animation: tw-anim-pulse 2.6s ease-out infinite; }
  .tw-anim-pulse .wp-block-button__link::after { animation: tw-anim-pulse 2.6s ease-out 1.3s infinite; }
  .tw-video-letterbox::before, .tw-video-letterbox::after { animation: tw-video-bars 1.6s cubic-bezier(.7, 0, .2, 1) both; }
}
@keyframes tw-video-bars { from { height: 0; } }
@keyframes tw-anim-spin { to { transform: rotate(360deg); } }
@keyframes tw-anim-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes tw-anim-wave { to { -webkit-mask-position: 0 0, 120px 0; mask-position: 0 0, 120px 0; } }
@keyframes tw-anim-kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.18) translate(-3%, -2%); } }
@keyframes tw-anim-drift { from { transform: translate(0, 0); } to { transform: translate(18%, 10%); } }
@keyframes tw-anim-steam { 0% { opacity: 0; transform: translateY(20%) scaleX(.8); } 25% { opacity: .55; } 70% { opacity: .3; } 100% { opacity: 0; transform: translateY(-55%) scaleX(1.25) skewX(8deg); } }
@keyframes tw-anim-flicker { 0% { opacity: .85; } 12% { opacity: .7; } 20% { opacity: .95; } 33% { opacity: .78; } 47% { opacity: 1; } 58% { opacity: .82; } 71% { opacity: .92; } 86% { opacity: .74; } }
@keyframes tw-anim-glow { from { transform: scale(1); } to { transform: scale(1.12) translateY(-2%); } }
@keyframes tw-anim-shine { 0%, 15% { background-position: 100% 0; } 65%, 100% { background-position: 0 0; } }
@keyframes tw-anim-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.9); } }

/* ---------- Link im Fenster auf der Seite öffnen ---------- */
.tw-frame-dialog { box-sizing: border-box; width: min(640px, calc(100vw - 24px)); height: min(800px, calc(100dvh - 24px)); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 18px 60px rgb(0 0 0 / .32); }
.tw-frame-dialog::backdrop { background: rgb(0 0 0 / .55); }
.tw-frame-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }
.tw-frame-dialog__close { position: absolute; z-index: 1; top: 8px; right: 10px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: #1d1d1f; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 1px 6px rgb(0 0 0 / .25); }
@media (max-width: 600px) { .tw-frame-dialog { width: 100vw; height: 100dvh; border-radius: 0; } }

/* ---------- Schwebender Button ---------- */
/* Die Leiste liegt über die ganze Kante und lässt Klicks durch. So braucht die Mitte kein transform, das ein Fenster darin einsperren würde. */
.tw-float { position: fixed !important; z-index: 9990; display: flex; margin: 0 !important; pointer-events: none; transition: opacity .35s ease, visibility .35s; }
.tw-float.is-h-left { left: max(var(--tw-fb-x, 24px), env(safe-area-inset-left)); justify-content: flex-start; }
.tw-float.is-h-right { right: max(var(--tw-fb-x, 24px), env(safe-area-inset-right)); justify-content: flex-end; }
.tw-float.is-h-center { left: 0; right: 0; justify-content: center; }
.tw-float.is-v-top { top: var(--tw-fb-y, 24px); }
.tw-float.is-v-bottom { bottom: max(var(--tw-fb-y, 24px), env(safe-area-inset-bottom)); }
.tw-float.is-v-middle { top: 0; bottom: 0; align-items: center; }
body.admin-bar .tw-float.is-v-top { top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--tw-fb-y, 24px)); }
.tw-float.is-waiting { opacity: 0; visibility: hidden; }
.tw-float__wrap { position: relative; pointer-events: auto; }
@media (max-width: 781px) { .tw-float--hide-mobile { display: none; } }
@media (min-width: 782px) { .tw-float--hide-desktop { display: none; } }

/* Farben und Schrift kommen ohne eigene Einstellung von „wp-element-button“, also von den Buttons des Designs */
:where(.tw-float__btn) { font-family: inherit; line-height: 1.2; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; box-sizing: border-box; margin: 0;
  padding: .85em 1.45em; font-size: calc(var(--tw-fb-scale, 1) * 1rem); text-decoration: none; white-space: nowrap; cursor: pointer;
  border-radius: 999px; transition: transform .3s cubic-bezier(.2, .7, .2, 1), background-color .25s, color .25s, border-color .25s, box-shadow .3s;
}
.tw-float__icon { display: inline-flex; flex: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.tw-float__icon svg { display: block; width: 1.3em; height: 1.3em; }
.tw-float__btn.is-icon-end { flex-direction: row-reverse; }
.tw-float__btn.is-upper { text-transform: uppercase; letter-spacing: .1em; }
.tw-float__btn.is-own-font { font-family: var(--tw-fb-font); }
.tw-float__btn.is-own-colors { background-color: var(--tw-fb-bg, revert-layer); color: var(--tw-fb-text, revert-layer); }
.tw-float__btn.is-own-colors[class]:hover { background-color: var(--tw-fb-hbg, var(--tw-fb-bg)); color: var(--tw-fb-htext, var(--tw-fb-text)); }
.tw-float__btn.is-shadow-soft { box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.tw-float__btn.is-shadow-strong { box-shadow: 0 14px 38px rgb(0 0 0 / .34); }
.tw-float__btn.is-shadow-none { box-shadow: none; }

/* Fläche */
.tw-float__btn.is-look-outline { background: transparent; color: currentColor; color: var(--tw-fb-text, var(--wp--preset--color--contrast, currentColor)); border: 1.5px solid currentColor; }
.tw-float__btn.is-look-glass { background: color-mix(in srgb, var(--wp--preset--color--base, #fff) 62%, transparent); color: var(--tw-fb-text, var(--wp--preset--color--contrast, #111)); border: 1px solid color-mix(in srgb, currentColor 20%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }

/* Formen */
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-round { width: 4em; height: 4em; padding: .4em; white-space: normal; text-align: center; font-size: calc(var(--tw-fb-scale, 1) * .95rem); border-radius: 50%; flex-direction: column; gap: .15em; }
.tw-float__btn.is-shape-round .tw-float__text { font-size: .72em; line-height: 1.1; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-soft { border-radius: var(--tw-fb-radius, 14px); }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-square { border-radius: 0; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-arch { border-radius: 2.2em 2.2em 0 0; padding: 1.1em 2em .85em; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-leaf { border-radius: 1.5em 0 1.5em 0; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-bubble { border-radius: 999px 999px .25em 999px; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-bubble.is-h-left { border-radius: 999px 999px 999px .25em; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-tab.is-h-right { border-radius: 14px 0 0 14px; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-tab.is-h-left { border-radius: 0 14px 14px 0; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-tab.is-h-center.is-v-top { border-radius: 0 0 14px 14px; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-shape-tab.is-h-center.is-v-bottom { border-radius: 14px 14px 0 0; }
.tw-float__btn.is-sideways { writing-mode: vertical-rl; padding: 1.45em .85em; }
.tw-float__btn.is-sideways.is-h-left { transform: rotate(180deg); }

/* Nur Icon oder Text */
.tw-float__btn.is-show-icon .tw-float__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-show-icon:not(.is-shape-round) { padding: .95em; }
.tw-float__btn.is-show-expand .tw-float__text { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-show-expand { padding: .95em; gap: 0; transition: gap .45s, padding .45s, transform .3s; }
:is(.tw-float, .tw-float-card, .tw-float-thumb) .tw-float__btn.is-show-expand:is(:hover, :focus-visible) { padding-inline: 1.3em 1.45em; gap: .55em; }
.tw-float__btn.is-show-expand:is(:hover, :focus-visible) .tw-float__text { max-width: 20em; opacity: 1; }
@media (max-width: 600px) {
  .tw-float__btn.is-mobile-icon .tw-float__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tw-float .tw-float__btn.is-mobile-icon { padding: .95em; }
}

/* Überfahren */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tw-fb-h-lift:hover { transform: translateY(-3px); }
  .tw-fb-h-grow:hover { transform: scale(1.07); }
  .tw-fb-h-tilt:hover { transform: rotate(-3deg) scale(1.03); }
  .tw-fb-h-nudge:hover .tw-float__icon { transform: translate(3px, -3px); }
  .tw-float__btn.is-sideways.is-h-left.tw-fb-h-lift:hover, .tw-float__btn.is-sideways.is-h-left.tw-fb-h-grow:hover { transform: rotate(180deg) scale(1.04); }
}
.tw-float__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Blickfang. Auf der Arbeitsfläche läuft er nur am ausgewählten Block. */
@media (prefers-reduced-motion: no-preference) {
  .tw-fb-a-pulse { animation: tw-fb-pulse 2.2s ease-in-out infinite; }
  .tw-fb-a-bounce { animation: tw-fb-bounce 2.6s ease infinite; }
  .tw-fb-a-shake { animation: tw-fb-shake 5s ease infinite; }
  .tw-fb-a-glow { animation: tw-fb-glow 2.4s ease-in-out infinite; }
  .tw-fb-a-float { animation: tw-fb-float 3.6s ease-in-out infinite; }
  .tw-fb-a-ring::before, .tw-fb-a-ring::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--tw-fb-bg, currentColor); pointer-events: none; animation: tw-fb-ring 2.4s ease-out infinite; }
  .tw-fb-a-ring::after { animation-delay: 1.2s; }
  .tw-fb-a-shine { overflow: hidden; }
  .tw-fb-a-shine::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .55), transparent); pointer-events: none; animation: tw-fb-shine 3.6s ease-in-out infinite; }
  /* backwards: Ein über das Ende gehaltenes transform würde das Fenster auf dem Handy einsperren */
  .tw-float--in-slide.is-h-right .tw-float__wrap { animation: tw-fb-in-right .7s cubic-bezier(.2, .8, .2, 1) backwards; }
  .tw-float--in-slide.is-h-left .tw-float__wrap { animation: tw-fb-in-left .7s cubic-bezier(.2, .8, .2, 1) backwards; }
  .tw-float--in-slide.is-h-center.is-v-top .tw-float__wrap { animation: tw-fb-in-top .7s cubic-bezier(.2, .8, .2, 1) backwards; }
  .tw-float--in-slide.is-h-center.is-v-bottom .tw-float__wrap { animation: tw-fb-in-bottom .7s cubic-bezier(.2, .8, .2, 1) backwards; }
  .tw-float--in-fade .tw-float__wrap { animation: tw-fb-in-fade .7s ease backwards; }
  .tw-float--in-zoom .tw-float__wrap { animation: tw-fb-in-zoom .55s cubic-bezier(.3, 1.5, .5, 1) backwards; }
}
.tw-float-card:not(.is-selected) .tw-float__btn, .tw-float-card:not(.is-selected) .tw-float__btn::before, .tw-float-card:not(.is-selected) .tw-float__btn::after { animation: none; }
@keyframes tw-fb-pulse { 50% { transform: scale(1.07); } }
@keyframes tw-fb-bounce { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(-10px); } 40% { transform: translateY(-4px); } }
@keyframes tw-fb-shake { 0%, 88%, 100% { transform: rotate(0); } 90% { transform: rotate(-7deg); } 93% { transform: rotate(6deg); } 96% { transform: rotate(-4deg); } }
@keyframes tw-fb-glow { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 22%, transparent), 0 8px 26px rgb(0 0 0 / .22); } }
@keyframes tw-fb-float { 50% { transform: translateY(-7px); } }
@keyframes tw-fb-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes tw-fb-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes tw-fb-in-right { from { transform: translateX(140%); } to { transform: none; } }
@keyframes tw-fb-in-left { from { transform: translateX(-140%); } to { transform: none; } }
@keyframes tw-fb-in-top { from { transform: translateY(-140%); } to { transform: none; } }
@keyframes tw-fb-in-bottom { from { transform: translateY(140%); } to { transform: none; } }
@keyframes tw-fb-in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tw-fb-in-zoom { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Fenster: Farben und Schrift aus dem Design */
.tw-float__panel { box-sizing: border-box; width: min(var(--tw-fb-panel, 380px), calc(100vw - 24px)); max-height: calc(100dvh - 32px); margin: 0; padding: 0; overflow: auto; border: 0; border-radius: 14px; background: var(--wp--preset--color--base, #fff); color: var(--wp--preset--color--contrast, #1d1d1f); box-shadow: 0 18px 60px rgb(0 0 0 / .32); }
.tw-float__panel::backdrop { background: rgb(0 0 0 / .5); }
.tw-float__content { padding: 28px 26px 26px; }
.tw-float__content > :first-child { margin-top: 0; padding-right: 26px; }
.tw-float__close { position: absolute; z-index: 1; top: 10px; right: 12px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.tw-float__close:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.tw-float__panel.is-popover { position: absolute; inset: auto; }
.is-v-bottom .tw-float__panel.is-popover { bottom: calc(100% + 12px); }
.is-v-top .tw-float__panel.is-popover { top: calc(100% + 12px); }
.is-v-middle .tw-float__panel.is-popover { top: 50%; translate: 0 -50%; }
.is-h-right.is-v-middle .tw-float__panel.is-popover { right: calc(100% + 12px); }
.is-h-left.is-v-middle .tw-float__panel.is-popover { left: calc(100% + 12px); }
.is-h-right:not(.is-v-middle) .tw-float__panel.is-popover { right: 0; }
.is-h-left:not(.is-v-middle) .tw-float__panel.is-popover { left: 0; }
.is-h-center .tw-float__panel.is-popover { left: 50%; translate: -50% 0; }
.tw-float__panel.is-modal { position: fixed; inset: 0; margin: auto; height: fit-content; }
.tw-float__panel.is-drawer { position: fixed; inset: 0 0 0 auto; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
.is-h-left .tw-float__panel.is-drawer { inset: 0 auto 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .tw-float__panel[open] { animation: tw-fb-in-fade .25s ease both; }
  .tw-float__panel.is-drawer[open] { animation: tw-fb-in-right .35s cubic-bezier(.2, .8, .2, 1) both; }
  .is-h-left .tw-float__panel.is-drawer[open] { animation-name: tw-fb-in-left; }
}
/* Auf dem Handy wird das kleine Fenster zur Karte am unteren Rand */
@media (max-width: 600px) {
  .tw-float .tw-float__wrap .tw-float__panel.is-popover.is-popover { position: fixed; inset: auto 8px 8px; width: auto; translate: none; }
}

/* Arbeitsfläche: als Karte in der Seite, damit er nichts verdeckt */
.tw-float-card { padding: 14px 16px; border: 1px dashed color-mix(in srgb, currentColor 35%, transparent); border-radius: 10px; background: color-mix(in srgb, currentColor 4%, transparent); }
.tw-float-card__row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.tw-float-card__stage { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tw-float-card__label { margin: 0; font-size: 12px; opacity: .75; }
.tw-float-card__info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; }
.tw-float-card__todo { color: #b32d2e; }
.tw-float-card__panel { margin-top: 14px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.tw-float-card__head { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.tw-float-card__window { max-width: var(--tw-fb-panel, 380px); }
.tw-float-thumb { display: flex; align-items: center; justify-content: center; min-height: 560px; padding: 40px; }
:is(.tw-float-thumb) .tw-float__btn.tw-float__btn { font-size: calc(var(--tw-fb-scale, 1) * 3.6rem); }
.tw-float-thumb .tw-float__btn.is-show-expand .tw-float__text { max-width: 20em; opacity: 1; }
.tw-float-thumb .tw-float__btn.is-show-expand { padding-inline: 1.3em 1.45em; gap: .55em; }

/* Gestalteter Text und Links („Text gestalten“): Abstände wirken nur als inline-block; ein Link darin übernimmt die Farbe */
.tw-font--box { display: inline-block; }
.tw-font.has-text-color a, .tw-font.has-text-color a:where(:hover, :focus) { color: inherit; }


.tw-intro__layers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: size; animation: tw-in-out calc(var(--in-dur) * 0.12) ease-in var(--in-out-at) forwards; }
.tw-il { position: absolute; transform: translate(-50%, -50%) rotate(var(--il-rot, 0deg)); color: var(--il-color); opacity: var(--il-op, 1); line-height: 1; }
.tw-il__in, .tw-il__loop { display: block; }
.tw-il svg { display: block; width: calc(var(--il-w, var(--il-size)) * 1cqmin); height: auto; overflow: visible; }
.tw-il__text { display: block; white-space: nowrap; font-size: calc(var(--il-size) * 1cqmin); }
.tw-il__ch { display: inline-block; white-space: pre; }
.tw-il__in.is-e-fade { animation: tw-il-fade var(--il-speed) ease var(--il-delay) both; }
.tw-il__in.is-e-up { animation: tw-il-up var(--il-speed) cubic-bezier(.2,.7,.2,1) var(--il-delay) both; }
.tw-il__in.is-e-down { animation: tw-il-down var(--il-speed) cubic-bezier(.2,.7,.2,1) var(--il-delay) both; }
.tw-il__in.is-e-left { animation: tw-il-left var(--il-speed) cubic-bezier(.2,.7,.2,1) var(--il-delay) both; }
.tw-il__in.is-e-right { animation: tw-il-right var(--il-speed) cubic-bezier(.2,.7,.2,1) var(--il-delay) both; }
.tw-il__in.is-e-zoom { animation: tw-il-zoom var(--il-speed) cubic-bezier(.2,.7,.2,1) var(--il-delay) both; }
.tw-il__in.is-e-pop { animation: tw-il-pop var(--il-speed) ease var(--il-delay) both; }
.tw-il__in.is-e-spin { animation: tw-il-spin-in var(--il-speed) cubic-bezier(.2,.7,.2,1) var(--il-delay) both; }
.tw-il__in.is-e-flip { animation: tw-il-flip var(--il-speed) ease var(--il-delay) both; }
.tw-il__in.is-e-blur { animation: tw-il-blur var(--il-speed) ease var(--il-delay) both; }
.tw-il__in.is-e-wipe { animation: tw-il-wipe var(--il-speed) cubic-bezier(.6,0,.2,1) var(--il-delay) both; }
.tw-il__in.is-e-draw svg * { stroke-dasharray: 1; animation: tw-il-draw var(--il-speed) ease-in-out var(--il-delay) both; }
.tw-il__in.is-e-letters .tw-il__ch { animation: tw-il-letter var(--il-speed) cubic-bezier(.2,.8,.2,1) calc(var(--il-delay) + var(--i) * 0.05s) both; }
.tw-il__loop.is-l-float { animation: tw-il-float var(--il-loop) ease-in-out calc(var(--il-delay) + var(--il-speed)) infinite alternate; }
.tw-il__loop.is-l-pulse { animation: tw-il-pulse var(--il-loop) ease-in-out calc(var(--il-delay) + var(--il-speed)) infinite alternate; }
.tw-il__loop.is-l-spin { animation: tw-il-rotate var(--il-loop) linear calc(var(--il-delay) + var(--il-speed)) infinite; }
.tw-il__loop.is-l-sway { animation: tw-il-sway var(--il-loop) ease-in-out calc(var(--il-delay) + var(--il-speed)) infinite alternate; }
.tw-il__loop.is-l-shake { animation: tw-il-shake var(--il-loop) linear calc(var(--il-delay) + var(--il-speed)) infinite; }
.tw-il__loop.is-l-blink { animation: tw-il-blink var(--il-loop) ease-in-out calc(var(--il-delay) + var(--il-speed)) infinite alternate; }
.tw-il__loop.is-l-drift { animation: tw-il-drift var(--il-loop) ease-in-out calc(var(--il-delay) + var(--il-speed)) infinite alternate; }
.tw-il__loop.is-l-wave .tw-il__ch { animation: tw-il-wave var(--il-loop) ease-in-out calc(var(--i) * 0.09s) infinite; }
.tw-il__loop.is-l-flow svg { overflow: hidden; }
.tw-il__loop.is-l-flow svg path { animation: tw-il-flow var(--il-loop) linear calc(var(--il-delay) + var(--il-speed)) infinite; }
.tw-intro__layers.is-still * { animation: none !important; }
@keyframes tw-il-fade { from { opacity: 0; } }
@keyframes tw-il-up { from { opacity: 0; transform: translateY(40%); } }
@keyframes tw-il-down { from { opacity: 0; transform: translateY(-40%); } }
@keyframes tw-il-left { from { opacity: 0; transform: translateX(-40%); } }
@keyframes tw-il-right { from { opacity: 0; transform: translateX(40%); } }
@keyframes tw-il-zoom { from { opacity: 0; transform: scale(.4); } }
@keyframes tw-il-pop { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes tw-il-spin-in { from { opacity: 0; transform: rotate(-180deg) scale(.5); } }
@keyframes tw-il-flip { from { opacity: 0; transform: perspective(600px) rotateY(90deg); } }
@keyframes tw-il-blur { from { opacity: 0; filter: blur(14px); } }
@keyframes tw-il-wipe { from { clip-path: inset(-20% 100% -20% -20%); } to { clip-path: inset(-20%); } }
@keyframes tw-il-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tw-il-letter { from { opacity: 0; transform: translateY(.5em); } }
@keyframes tw-il-float { to { transform: translateY(-8%); } }
@keyframes tw-il-pulse { to { transform: scale(1.08); } }
@keyframes tw-il-rotate { to { transform: rotate(360deg); } }
@keyframes tw-il-sway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes tw-il-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3%) rotate(-2deg); } 75% { transform: translateX(3%) rotate(2deg); } }
@keyframes tw-il-blink { to { opacity: .25; } }
@keyframes tw-il-drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes tw-il-wave { 0%, 100% { transform: none; } 50% { transform: translateY(-.28em); } }
@keyframes tw-il-flow { to { transform: translateX(calc(var(--il-period) * -1px)); } }

/* ---------- Bildformen, Linien, Ausschnitte (erzeugt aus shape-css.ts) ---------- */
.tw-shape { --tw-r1: 0px; --tw-r2: 0px; --tw-r3: 0px; --tw-r4: 0px; --tw-ln-o: 24px; --tw-ln-w: 1px; --tw-ln-s: solid; --tw-ln-c: var(--wp--preset--color--accent, currentColor); --tw-ln-x: 1; --tw-ln-y: 1; --tw-orn: 16px; }
.tw-shp-bogen { --tw-r1: 999px; --tw-r2: 999px; --tw-r3: 0px; --tw-r4: 0px; }
.tw-shp-bogen-unten { --tw-r1: 0px; --tw-r2: 0px; --tw-r3: 999px; --tw-r4: 999px; }
.tw-shp-bogen-links { --tw-r1: 999px; --tw-r2: 0px; --tw-r3: 0px; --tw-r4: 999px; }
.tw-shp-bogen-rechts { --tw-r1: 0px; --tw-r2: 999px; --tw-r3: 999px; --tw-r4: 0px; }
.tw-shp-oval { --tw-r1: 50%; --tw-r2: 50%; --tw-r3: 50%; --tw-r4: 50%; }
.tw-shp-kapsel { --tw-r1: 999px; --tw-r2: 999px; --tw-r3: 999px; --tw-r4: 999px; }
.tw-shp-blatt { --tw-r1: 0px; --tw-r2: 45%; --tw-r3: 0px; --tw-r4: 45%; }
.tw-shp-blatt-gegen { --tw-r1: 45%; --tw-r2: 0px; --tw-r3: 45%; --tw-r4: 0px; }
.tw-shp-segel { --tw-r1: 999px; --tw-r2: 999px; --tw-r3: 999px; --tw-r4: 0px; }
.tw-shp-segel-rechts { --tw-r1: 999px; --tw-r2: 999px; --tw-r3: 0px; --tw-r4: 999px; }
.tw-shp-weich { --tw-r1: 32px; --tw-r2: 32px; --tw-r3: 32px; --tw-r4: 32px; }
.tw-lno-0 { --tw-ln-o: 0px; }
.tw-lno-4 { --tw-ln-o: 4px; }
.tw-lno-8 { --tw-ln-o: 8px; }
.tw-lno-12 { --tw-ln-o: 12px; }
.tw-lno-16 { --tw-ln-o: 16px; }
.tw-lno-20 { --tw-ln-o: 20px; }
.tw-lno-24 { --tw-ln-o: 24px; }
.tw-lno-28 { --tw-ln-o: 28px; }
.tw-lno-32 { --tw-ln-o: 32px; }
.tw-lno-36 { --tw-ln-o: 36px; }
.tw-lno-40 { --tw-ln-o: 40px; }
.tw-lno-44 { --tw-ln-o: 44px; }
.tw-lno-48 { --tw-ln-o: 48px; }
.tw-lno-52 { --tw-ln-o: 52px; }
.tw-lno-56 { --tw-ln-o: 56px; }
.tw-lno-60 { --tw-ln-o: 60px; }
.tw-lno-64 { --tw-ln-o: 64px; }
.tw-lnw-1 { --tw-ln-w: 1px; }
.tw-lnw-2 { --tw-ln-w: 2px; }
.tw-lnw-3 { --tw-ln-w: 3px; }
.tw-lnw-4 { --tw-ln-w: 4px; }
.tw-lnw-5 { --tw-ln-w: 5px; }
.tw-lnw-6 { --tw-ln-w: 6px; }
.tw-lns-dashed { --tw-ln-s: dashed; }
.tw-lns-dotted { --tw-ln-s: dotted; }
.tw-lns-double { --tw-ln-s: double; }
.tw-ln-sw { --tw-ln-x: -1; }
.tw-ln-ne { --tw-ln-y: -1; }
.tw-ln-nw { --tw-ln-x: -1; --tw-ln-y: -1; }
.tw-orns-s { --tw-orn: 10px; }
.tw-orns-l { --tw-orn: 26px; }
figure.wp-block-image.tw-shape, .wp-block-cover.tw-shape, .wp-block-media-text.tw-shape > .wp-block-media-text__media { position: relative; isolation: isolate; overflow: visible; }
figure.wp-block-image.tw-shape img, .wp-block-media-text.tw-shape > .wp-block-media-text__media img { display: block; width: 100%; clip-path: inset(calc(var(--tw-fy, 50%) * max(0, 1 - 1 / var(--tw-zoom, 1))) calc((100% - var(--tw-fx, 50%)) * max(0, 1 - 1 / var(--tw-zoom, 1))) calc((100% - var(--tw-fy, 50%)) * max(0, 1 - 1 / var(--tw-zoom, 1))) calc(var(--tw-fx, 50%) * max(0, 1 - 1 / var(--tw-zoom, 1))) round calc(var(--tw-r1) / var(--tw-zoom, 1)) calc(var(--tw-r2) / var(--tw-zoom, 1)) calc(var(--tw-r3) / var(--tw-zoom, 1)) calc(var(--tw-r4) / var(--tw-zoom, 1))); }
.wp-block-cover.tw-shape { border-radius: var(--tw-r1) var(--tw-r2) var(--tw-r3) var(--tw-r4); }
.wp-block-cover.tw-shape > .wp-block-cover__image-background, .wp-block-cover.tw-shape > .wp-block-cover__video-background, .wp-block-cover.tw-shape > .wp-block-cover__background { border-radius: inherit; }
.wp-block-cover.tw-shape > .wp-block-cover__inner-container:has(> p[data-empty="true"]):not(:has(> :not(p[data-empty="true"], .block-list-appender))) { pointer-events: none; opacity: 0; }
figure.wp-block-image.tw-shape { display: grid; grid-template-columns: minmax(0, 1fr); }
figure.wp-block-image.tw-shape > :not(figcaption) { grid-area: 1 / 1; }
figure.wp-block-image.tw-shape > figcaption { grid-area: 2 / 1; }
figure.wp-block-image.tw-shape:has(img[style*="width"]), figure.wp-block-image.tw-shape:has(> .components-resizable-box__container[style*="px"]) { width: fit-content; max-width: 100%; }
figure.wp-block-image.tw-ln::after, .wp-block-cover.tw-ln::after, .wp-block-media-text.tw-ln > .wp-block-media-text__media::after { content: ''; display: block; position: absolute; inset: 0; z-index: -1; box-sizing: border-box; pointer-events: none; min-height: 0; border: var(--tw-ln-w) var(--tw-ln-s) var(--tw-ln-c); border-radius: var(--tw-r1) var(--tw-r2) var(--tw-r3) var(--tw-r4); transform: translate(calc(min(var(--tw-ln-o), 6vw) * var(--tw-ln-x)), calc(min(var(--tw-ln-o), 6vw) * var(--tw-ln-y))); }
figure.wp-block-image.tw-ln::after { position: relative; inset: auto; grid-area: 1 / 1; }
figure.wp-block-image.tw-ln-ring::after, .wp-block-cover.tw-ln-ring::after, .wp-block-media-text.tw-ln-ring > .wp-block-media-text__media::after { inset: calc(-1 * min(var(--tw-ln-o), 6vw)); transform: none; }
figure.wp-block-image.tw-ln-ring::after { inset: auto; margin: calc(-1 * min(var(--tw-ln-o), 6vw)); }
figure.wp-block-image.tw-ln-front::after, .wp-block-cover.tw-ln-front::after, .wp-block-media-text.tw-ln-front > .wp-block-media-text__media::after { z-index: 5; }
figure.wp-block-image[class*="tw-orn-"]::before, .wp-block-cover[class*="tw-orn-"]::before, .wp-block-media-text[class*="tw-orn-"] > .wp-block-media-text__media::before { content: ''; display: block; position: absolute; z-index: 6; pointer-events: none; box-sizing: border-box; width: var(--tw-orn); height: var(--tw-orn); min-height: 0; left: calc(var(--tw-orn) * -1.6); top: 50%; translate: 0 -50%; border: var(--tw-ln-w) solid var(--tw-ln-c); }
figure.wp-block-image.tw-orn-raute::before, .wp-block-cover.tw-orn-raute::before, .wp-block-media-text.tw-orn-raute > .wp-block-media-text__media::before { rotate: 45deg; }
figure.wp-block-image.tw-orn-kreis::before, .wp-block-cover.tw-orn-kreis::before, .wp-block-media-text.tw-orn-kreis > .wp-block-media-text__media::before { border-radius: 50%; }
figure.wp-block-image.tw-orn-punkt::before, .wp-block-cover.tw-orn-punkt::before, .wp-block-media-text.tw-orn-punkt > .wp-block-media-text__media::before { border-radius: 50%; background: var(--tw-ln-c); }
figure.wp-block-image.tw-orn-raute-voll::before, .wp-block-cover.tw-orn-raute-voll::before, .wp-block-media-text.tw-orn-raute-voll > .wp-block-media-text__media::before { rotate: 45deg; background: var(--tw-ln-c); }
figure.wp-block-image.tw-ornp-right::before, .wp-block-cover.tw-ornp-right::before, .wp-block-media-text.tw-ornp-right > .wp-block-media-text__media::before { left: auto; right: calc(var(--tw-orn) * -1.6); }
figure.wp-block-image.tw-ornp-top::before, .wp-block-cover.tw-ornp-top::before, .wp-block-media-text.tw-ornp-top > .wp-block-media-text__media::before { left: 50%; top: calc(var(--tw-orn) * -1.6); translate: -50% 0; }
figure.wp-block-image.tw-ornp-bottom::before, .wp-block-cover.tw-ornp-bottom::before, .wp-block-media-text.tw-ornp-bottom > .wp-block-media-text__media::before { left: 50%; top: auto; bottom: calc(var(--tw-orn) * -1.6); translate: -50% 0; }
@media (max-width: 480px) { figure.wp-block-image[class*="tw-orn-"]::before, .wp-block-cover[class*="tw-orn-"]::before, .wp-block-media-text[class*="tw-orn-"] > .wp-block-media-text__media::before { display: none; } }

.tw-cut { --tw-cut-w: 55%; --tw-cut-h: 120px; --tw-cut-r: 32px; --tw-cut-c: var(--wp--preset--color--base, #fff);
  --tw-cut-W: var(--tw-cut-w); --tw-cut-H: max(48px, min(var(--tw-cut-h), 26vw)); --tw-cut-R: min(var(--tw-cut-r), calc(var(--tw-cut-H) / 2)); position: relative; }
.tw-cut:not(.tw-cut-tl, .tw-cut-tr)::after, .tw-cut-tl::before, .tw-cut-tr::before {
  content: ''; display: block; position: absolute; z-index: 2; pointer-events: none; min-height: 0; left: -1px; bottom: -1px;
  width: calc(var(--tw-cut-W) + var(--tw-cut-R) + 1px); height: calc(var(--tw-cut-H) + var(--tw-cut-R) + 1px);
  background:
    linear-gradient(var(--tw-cut-c), var(--tw-cut-c)) left bottom / calc(100% - 2 * var(--tw-cut-R) + 1px) calc(100% - var(--tw-cut-R)) no-repeat,
    linear-gradient(var(--tw-cut-c), var(--tw-cut-c)) right var(--tw-cut-R) bottom 0 / var(--tw-cut-R) calc(100% - 2 * var(--tw-cut-R) + 1px) no-repeat,
    radial-gradient(circle at 0 100%, var(--tw-cut-c) calc(var(--tw-cut-R) - .5px), transparent var(--tw-cut-R)) right var(--tw-cut-R) top var(--tw-cut-R) / var(--tw-cut-R) var(--tw-cut-R) no-repeat,
    radial-gradient(circle at 100% 0, transparent calc(var(--tw-cut-R) - .5px), var(--tw-cut-c) var(--tw-cut-R)) left top / var(--tw-cut-R) var(--tw-cut-R) no-repeat,
    radial-gradient(circle at 100% 0, transparent calc(var(--tw-cut-R) - .5px), var(--tw-cut-c) var(--tw-cut-R)) right bottom / var(--tw-cut-R) var(--tw-cut-R) no-repeat;
}
.tw-cut.tw-cut-br::after { left: auto; right: -1px; transform: scaleX(-1); }
.tw-cut.tw-cut-tl::before { bottom: auto; top: -1px; transform: scaleY(-1); }
.tw-cut.tw-cut-tr::before { left: auto; right: -1px; bottom: auto; top: -1px; transform: scale(-1, -1); }
.wp-block-cover.tw-cut > .wp-block-cover__inner-container, .wp-block-group.tw-cut > * { position: relative; z-index: 3; }
/* Inhalt in der Stufe: richtet sich nach dem ganzen Block, nicht nach dem Innenbereich */
.wp-block-cover.tw-cut:has(.tw-cut-slot) > .wp-block-cover__inner-container { position: static; }
.tw-cut .tw-cut-slot { position: absolute !important; z-index: 4; left: 0; right: auto; bottom: 0; top: auto; margin: 0 !important; box-sizing: border-box; max-width: none !important; width: var(--tw-cut-W); height: var(--tw-cut-H);
  display: flex; flex-direction: column; justify-content: center; padding: 8px calc(var(--tw-cut-R) + 8px) 8px clamp(14px, 3vw, 40px); }
.tw-cut .wp-block-buttons.tw-cut-slot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; }
.tw-cut.tw-cut-br .tw-cut-slot, .tw-cut.tw-cut-tr .tw-cut-slot { left: auto; right: 0; padding: 8px clamp(14px, 3vw, 40px) 8px calc(var(--tw-cut-R) + 8px); }
.tw-cut.tw-cut-tl .tw-cut-slot, .tw-cut.tw-cut-tr .tw-cut-slot { bottom: auto; top: 0; }
@media (max-width: 600px) {
  .tw-cut { --tw-cut-W: max(var(--tw-cut-w), 72%); }
  .tw-cut:has(.tw-cut-slot) { --tw-cut-W: calc(100% + 2px); --tw-cut-H: max(112px, min(var(--tw-cut-h), 40vw)); }
  .wp-block-cover.tw-cut:not(.tw-cut-tl, .tw-cut-tr):not(:has(.tw-cut-slot)) > .wp-block-cover__inner-container { padding-bottom: var(--tw-cut-H); }
  .wp-block-cover.tw-cut:is(.tw-cut-tl, .tw-cut-tr):not(:has(.tw-cut-slot)) > .wp-block-cover__inner-container { padding-top: var(--tw-cut-H); }
}
.tw-cutw-20 { --tw-cut-w: 20%; }
.tw-cutw-25 { --tw-cut-w: 25%; }
.tw-cutw-30 { --tw-cut-w: 30%; }
.tw-cutw-35 { --tw-cut-w: 35%; }
.tw-cutw-40 { --tw-cut-w: 40%; }
.tw-cutw-45 { --tw-cut-w: 45%; }
.tw-cutw-50 { --tw-cut-w: 50%; }
.tw-cutw-55 { --tw-cut-w: 55%; }
.tw-cutw-60 { --tw-cut-w: 60%; }
.tw-cutw-65 { --tw-cut-w: 65%; }
.tw-cutw-70 { --tw-cut-w: 70%; }
.tw-cutw-75 { --tw-cut-w: 75%; }
.tw-cutw-80 { --tw-cut-w: 80%; }
.tw-cutw-85 { --tw-cut-w: 85%; }
.tw-cutw-90 { --tw-cut-w: 90%; }
.tw-cuth-40 { --tw-cut-h: 40px; }
.tw-cuth-50 { --tw-cut-h: 50px; }
.tw-cuth-60 { --tw-cut-h: 60px; }
.tw-cuth-70 { --tw-cut-h: 70px; }
.tw-cuth-80 { --tw-cut-h: 80px; }
.tw-cuth-90 { --tw-cut-h: 90px; }
.tw-cuth-100 { --tw-cut-h: 100px; }
.tw-cuth-110 { --tw-cut-h: 110px; }
.tw-cuth-120 { --tw-cut-h: 120px; }
.tw-cuth-130 { --tw-cut-h: 130px; }
.tw-cuth-140 { --tw-cut-h: 140px; }
.tw-cuth-150 { --tw-cut-h: 150px; }
.tw-cuth-160 { --tw-cut-h: 160px; }
.tw-cuth-170 { --tw-cut-h: 170px; }
.tw-cuth-180 { --tw-cut-h: 180px; }
.tw-cuth-190 { --tw-cut-h: 190px; }
.tw-cuth-200 { --tw-cut-h: 200px; }
.tw-cuth-210 { --tw-cut-h: 210px; }
.tw-cuth-220 { --tw-cut-h: 220px; }
.tw-cuth-230 { --tw-cut-h: 230px; }
.tw-cuth-240 { --tw-cut-h: 240px; }
.tw-cuth-250 { --tw-cut-h: 250px; }
.tw-cuth-260 { --tw-cut-h: 260px; }
.tw-cuth-270 { --tw-cut-h: 270px; }
.tw-cuth-280 { --tw-cut-h: 280px; }
.tw-cutr-0 { --tw-cut-r: 0px; }
.tw-cutr-4 { --tw-cut-r: 4px; }
.tw-cutr-8 { --tw-cut-r: 8px; }
.tw-cutr-12 { --tw-cut-r: 12px; }
.tw-cutr-16 { --tw-cut-r: 16px; }
.tw-cutr-20 { --tw-cut-r: 20px; }
.tw-cutr-24 { --tw-cut-r: 24px; }
.tw-cutr-28 { --tw-cut-r: 28px; }
.tw-cutr-32 { --tw-cut-r: 32px; }
.tw-cutr-36 { --tw-cut-r: 36px; }
.tw-cutr-40 { --tw-cut-r: 40px; }
.tw-cutr-44 { --tw-cut-r: 44px; }
.tw-cutr-48 { --tw-cut-r: 48px; }
.tw-cutr-52 { --tw-cut-r: 52px; }
.tw-cutr-56 { --tw-cut-r: 56px; }
.tw-cutr-60 { --tw-cut-r: 60px; }
.tw-cutr-64 { --tw-cut-r: 64px; }
.tw-cutr-68 { --tw-cut-r: 68px; }
.tw-cutr-72 { --tw-cut-r: 72px; }
.tw-cutr-76 { --tw-cut-r: 76px; }
.tw-cutr-80 { --tw-cut-r: 80px; }
.tw-lift { position: relative; z-index: 5; }
.tw-lift-8 { margin-top: calc(-1 * min(8px, 22vw)) !important; }
.tw-lift-16 { margin-top: calc(-1 * min(16px, 22vw)) !important; }
.tw-lift-24 { margin-top: calc(-1 * min(24px, 22vw)) !important; }
.tw-lift-32 { margin-top: calc(-1 * min(32px, 22vw)) !important; }
.tw-lift-40 { margin-top: calc(-1 * min(40px, 22vw)) !important; }
.tw-lift-48 { margin-top: calc(-1 * min(48px, 22vw)) !important; }
.tw-lift-56 { margin-top: calc(-1 * min(56px, 22vw)) !important; }
.tw-lift-64 { margin-top: calc(-1 * min(64px, 22vw)) !important; }
.tw-lift-72 { margin-top: calc(-1 * min(72px, 22vw)) !important; }
.tw-lift-80 { margin-top: calc(-1 * min(80px, 22vw)) !important; }
.tw-lift-88 { margin-top: calc(-1 * min(88px, 22vw)) !important; }
.tw-lift-96 { margin-top: calc(-1 * min(96px, 22vw)) !important; }
.tw-lift-104 { margin-top: calc(-1 * min(104px, 22vw)) !important; }
.tw-lift-112 { margin-top: calc(-1 * min(112px, 22vw)) !important; }
.tw-lift-120 { margin-top: calc(-1 * min(120px, 22vw)) !important; }
.tw-lift-128 { margin-top: calc(-1 * min(128px, 22vw)) !important; }
.tw-lift-136 { margin-top: calc(-1 * min(136px, 22vw)) !important; }
.tw-lift-144 { margin-top: calc(-1 * min(144px, 22vw)) !important; }
.tw-lift-152 { margin-top: calc(-1 * min(152px, 22vw)) !important; }
.tw-lift-160 { margin-top: calc(-1 * min(160px, 22vw)) !important; }
.tw-lift-168 { margin-top: calc(-1 * min(168px, 22vw)) !important; }
.tw-lift-176 { margin-top: calc(-1 * min(176px, 22vw)) !important; }
.tw-lift-184 { margin-top: calc(-1 * min(184px, 22vw)) !important; }
.tw-lift-192 { margin-top: calc(-1 * min(192px, 22vw)) !important; }
.tw-lift-200 { margin-top: calc(-1 * min(200px, 22vw)) !important; }

:where(.wp-site-blocks > header:has(.tw-headcard), .is-root-container > .tw-part--header:has(.tw-headcard)) { position: relative; }
.wp-site-blocks > header:has(.tw-headcard), .is-root-container > .tw-part--header:has(.tw-headcard) { z-index: 30; background: transparent !important; }
/* Titelbild mit „Unter die Kopfzeile schieben“: Die Kopfzeile nimmt keinen Platz mehr ein und liegt über dem Bild */
.wp-site-blocks:has(.tw-under-head) > header:has(.tw-headcard), .is-root-container:has(.tw-under-head) > .tw-part--header:has(.tw-headcard) { height: 0; }
.wp-site-blocks:has(.tw-under-head) > header:has(.tw-headcard) + *, .is-root-container:has(.tw-under-head) > .tw-part--header:has(.tw-headcard) + * { margin-block-start: 0; }
.tw-headcard__row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.tw-headcard__row > :first-child { justify-self: start; }
.tw-headcard__row > :last-child { justify-self: end; }
.tw-headcard .wp-block-site-title a { text-decoration: none; }
@media (max-width: 600px) {
  .tw-headcard__row { column-gap: 10px; }
  .tw-headcard .wp-block-site-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px !important; }
  .tw-headcard .wp-block-button__link { padding: .6em 1em; font-size: 12px; white-space: nowrap; }
}
.tw-lnc-base { --tw-ln-c: var(--wp--preset--color--base); }
.tw-cutc-base { --tw-cut-c: var(--wp--preset--color--base); }
.tw-lnc-surface { --tw-ln-c: var(--wp--preset--color--surface); }
.tw-cutc-surface { --tw-cut-c: var(--wp--preset--color--surface); }
.tw-lnc-contrast { --tw-ln-c: var(--wp--preset--color--contrast); }
.tw-cutc-contrast { --tw-cut-c: var(--wp--preset--color--contrast); }
.tw-lnc-accent { --tw-ln-c: var(--wp--preset--color--accent); }
.tw-cutc-accent { --tw-cut-c: var(--wp--preset--color--accent); }
.tw-lnc-accent-soft { --tw-ln-c: var(--wp--preset--color--accent-soft); }
.tw-cutc-accent-soft { --tw-cut-c: var(--wp--preset--color--accent-soft); }
.tw-lnc-sand { --tw-ln-c: var(--wp--preset--color--sand); }
.tw-cutc-sand { --tw-cut-c: var(--wp--preset--color--sand); }
.tw-lnc-muted { --tw-ln-c: var(--wp--preset--color--muted); }
.tw-cutc-muted { --tw-cut-c: var(--wp--preset--color--muted); }