/*
Theme Name: Aktive Naturschule Prignitz
Author: Aktive Naturschule Prignitz e.V.
Description: WordPress-Theme für die Aktive Naturschule Prignitz e.V. – Gestaltung nach dem Designansatz von Studio Fiß (Hand, Herz und Natur). Farben, Startbereich und Logo im Customizer, bunte Kacheln als Block „Farbkachel“.
Version: 1.5.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: ansp
License: GPL-2.0-or-later
*/

/* ==========================================================================
   Grundlagen
   Alle Farben kommen aus der Palette (Customizer → „Farben der Naturschule“).
   ========================================================================== */
:root {
    --ansp-yellow: var(--wp--preset--color--yellow, #FFE006);
    --ansp-mint: var(--wp--preset--color--mint, #70BE93);
    --ansp-pink: var(--wp--preset--color--pink, #E83D7F);
    --ansp-blue: var(--wp--preset--color--blue, #004E7D);
    --ansp-cream: var(--wp--preset--color--cream, #FFFCF3);
    --ansp-yellow-light: var(--wp--preset--color--yellow-light, #FFEC64);
    --ansp-yellow-dark: var(--wp--preset--color--yellow-dark, #F5D603);
    --ansp-mint-light: var(--wp--preset--color--mint-light, #92EDBB);
    --ansp-mint-dark: var(--wp--preset--color--mint-dark, #5FBE8A);
    --ansp-pink-light: var(--wp--preset--color--pink-light, #FC5495);
    --ansp-pink-dark: var(--wp--preset--color--pink-dark, #D72D6E);
    --ansp-blue-light: var(--wp--preset--color--blue-light, #0A659D);
    --ansp-blue-dark: var(--wp--preset--color--blue-dark, #01446D);
    --ansp-white: #FFFFFF;
    --ansp-none: transparent;
    --ansp-logo-hand: var(--ansp-mint);
    --ansp-logo-text: var(--ansp-blue);
    --font-head: var(--wp--preset--font-family--inknut, "Inknut Antiqua", Georgia, serif);
    --font-body: var(--wp--preset--font-family--unbounded, Unbounded, system-ui, sans-serif);
    --content: var(--wp--style--global--content-size, 820px);
    --wide: var(--wp--style--global--wide-size, 1280px);
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --soft-blue: color-mix(in srgb, var(--ansp-blue) 12%, var(--ansp-cream));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ansp-cream);
    color: var(--ansp-blue);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ansp-pink); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p, ul, ol, dl, figure, blockquote { margin: 0 0 1.2em; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(var(--content) + 2 * var(--gutter)); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--ansp-yellow); color: var(--ansp-blue); padding: 0.8rem 1.2rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ==========================================================================
   Formen (Hand, Herz, Blume) – Umriss aus der SVG, Farbe aus der Palette
   ========================================================================== */
.ansp-shape {
    display: block;
    background: var(--shape-color, var(--ansp-blue));
    -webkit-mask: var(--shape-mask) center / contain no-repeat;
    mask: var(--shape-mask) center / contain no-repeat;
    pointer-events: none;
}
.ansp-shape--hand { --shape-mask: url("assets/shapes/hand.svg"); aspect-ratio: 389 / 466; }
.ansp-shape--heart { --shape-mask: url("assets/shapes/heart.svg"); aspect-ratio: 397 / 435; }
.ansp-shape--flower { --shape-mask: url("assets/shapes/flower.svg"); aspect-ratio: 451 / 440; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
.wp-block-button__link,
.ansp-contact-form button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.85em 1.4em;
    border: 0;
    border-radius: 0;
    background: var(--ansp-yellow);
    color: var(--ansp-blue);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 6%, 98% 100%, 1% 94%);
    transition: background-color .15s, color .15s;
}
.btn:hover,
.wp-block-button__link:hover,
.ansp-contact-form button:hover { background: var(--ansp-blue); color: var(--ansp-yellow); }
.is-style-outline .wp-block-button__link { background: transparent; box-shadow: inset 0 0 0 2px currentColor; clip-path: none; }
.text-link { font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ansp-header-bg, var(--ansp-mint));
    color: var(--ansp-header-text, var(--ansp-blue));
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: 84px; padding-block: 0.6rem; }
.brand { display: block; flex: 0 0 auto; text-decoration: none; }
.site-logo { display: block; }
.site-header .site-logo { height: 62px; width: auto; }
.site-header .site-logo svg { height: 62px; width: auto; display: block; }
.site-logo--svg svg { width: 100%; height: auto; }

.primary-nav { flex: 1 1 auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem clamp(1rem, 2.4vw, 2.2rem); }
.primary-nav a { font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 0.3em 0; display: inline-block; border-bottom: 2px solid transparent; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { border-bottom-color: currentColor; }

.menu-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 1.1rem;
    border: 0;
    background: var(--ansp-yellow);
    color: var(--ansp-blue);
    font: 600 0.8125rem/1 var(--font-body);
    cursor: pointer;
}
.menu-toggle__icon { display: grid; gap: 4px; width: 22px; }
.menu-toggle__icon i { display: block; height: 2.5px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Komplettes Menü (über den Menü-Button) */
.site-menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 84px);
    overflow: auto;
    background: var(--ansp-blue);
    color: var(--ansp-white);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .18);
}
.site-menu[hidden] { display: none; }
.site-menu__inner { position: relative; padding-block: clamp(2rem, 5vw, 4rem); overflow: hidden; min-height: 320px; }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu nav > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem 3rem; position: relative; z-index: 1; max-width: 900px; }
.site-menu nav > ul > li > a { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; text-decoration: none; line-height: 1.3; }
.site-menu .sub-menu, .site-menu .children { margin-top: 0.5rem; }
.site-menu .sub-menu a, .site-menu .children a { display: inline-block; padding: 0.2rem 0; font-size: 0.875rem; text-decoration: none; opacity: .9; }
.site-menu a:hover { text-decoration: underline; }
.site-menu__flower { position: absolute; width: clamp(160px, 22vw, 300px); right: -40px; bottom: -70px; transform: rotate(12deg); }
.site-menu__heart { position: absolute; width: clamp(90px, 11vw, 150px); right: clamp(140px, 20vw, 290px); bottom: -30px; transform: rotate(-14deg); }

@media (max-width: 959px) {
    .primary-nav { display: none; }
    .header-inner { min-height: 72px; }
    .site-header .site-logo, .site-header .site-logo svg { height: 50px; }
}

/* ==========================================================================
   Startbereich (Startseite)
   ========================================================================== */
.home-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 86vh, 900px);
    background: var(--ansp-cream);
    isolation: isolate;
}
.home-hero__media { position: absolute; inset: 0 0 22% 0; background: color-mix(in srgb, var(--ansp-mint) 35%, var(--ansp-cream)); z-index: -2; }
.home-hero__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero__band { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: var(--band); z-index: -1; }
.home-hero__shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.home-hero__shapes .ansp-shape { z-index: var(--z, 1); }
/* Position kommt aus dem Customizer (--x = Abstand von rechts, --y = Höhe über der Unterkante) */
.home-hero__hand { position: absolute; width: clamp(280px, 33vw, 560px); right: var(--x, 17%); bottom: var(--y, -16%); transform: rotate(var(--rot, -38deg)); }
.home-hero__heart { position: absolute; width: clamp(200px, 22vw, 380px); right: var(--x, -3%); bottom: var(--y, 26%); transform: rotate(var(--rot, 8deg)); }
.home-hero__flower { position: absolute; width: clamp(260px, 30vw, 520px); right: var(--x, -7%); bottom: var(--y, -24%); transform: rotate(var(--rot, -6deg)); }
.home-hero__box {
    position: absolute;
    left: 0; bottom: 0;
    width: min(47%, 760px);
    padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 5rem) clamp(2rem, 4vw, 3.5rem) max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
    background: var(--box);
    color: var(--box-text);
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}
.home-hero__box h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.12; margin-bottom: 0.45em; }
.home-hero__box p { font-size: clamp(0.9rem, 1.15vw, 1.05rem); font-weight: 600; line-height: 1.55; max-width: 34em; }
.home-hero__box p:last-child { margin-bottom: 0; }
.home-hero__cta .btn { background: var(--ansp-blue); color: var(--ansp-white); }
.home-hero__cta .btn:hover { background: var(--ansp-white); color: var(--ansp-blue); }

@media (max-width: 860px) {
    .home-hero { min-height: 0; display: flex; flex-direction: column; }
    .home-hero__media { position: relative; inset: auto; height: 58vw; min-height: 260px; max-height: 480px; }
    .home-hero__band { display: none; }
    .home-hero__box { position: relative; width: 100%; padding: 2.5rem var(--gutter) 2.25rem; margin-top: -2.5rem; clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%); }
    .home-hero__shapes { inset: 0 0 auto 0; height: calc(min(max(58vw, 260px), 480px)); overflow: hidden; }
    .home-hero__hand { width: 42vw; }
    .home-hero__heart { width: 26vw; }
    .home-hero__flower { width: 36vw; }
}

/* ==========================================================================
   Seitenkopf (Unterseiten)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16em; margin-bottom: 0.2em; }
.page-hero__shape { position: absolute; width: clamp(140px, 18vw, 260px); right: max(-50px, calc((100vw - var(--wide)) / 2 - 40px)); top: 50%; transform: translateY(-40%) rotate(10deg); opacity: .95; }
@media (max-width: 700px) { .page-hero__shape { width: 120px; right: -40px; opacity: .55; } }

/* ==========================================================================
   Inhalte aus dem Editor
   ========================================================================== */
.prose-blocks > * { max-width: var(--content); margin-inline: auto; }
.prose-blocks > .alignwide { max-width: var(--wide); }
.prose-blocks > .alignfull { max-width: none; margin-inline: calc(50% - 50vw); }
.prose-blocks > :last-child { margin-bottom: 0; }
.home-content { padding-top: clamp(3rem, 6vw, 5rem); }
.wp-block-image img { display: block; }
.wp-block-separator { border: 0; border-top: 2px solid currentColor; opacity: .25; }
.single-image { display: block; width: 100%; max-width: var(--wide) !important; height: auto; margin-bottom: 2.5rem; }
.wp-block-quote { border-left: 6px solid var(--ansp-pink); padding-left: 1.4rem; font-family: var(--font-head); font-size: 1.2rem; }

/* ==========================================================================
   Farbkachel (Block)
   ========================================================================== */
.kachelraster { margin-block: clamp(2rem, 4vw, 3rem); }
.farbkachel {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    background: var(--tile);
    color: var(--tile-text);
    padding: clamp(1.75rem, 3.4vw, 2.75rem);
    font-size: 0.9375rem;
}
.farbkachel.is-tilt-a { clip-path: polygon(1% 6%, 35% 3.5%, 70% 1.5%, 98% 0%, 100% 2%, 100% 48%, 99% 97%, 97% 100%, 55% 99%, 4% 100%, 1% 97%, 0% 50%); }
.farbkachel.is-tilt-b { clip-path: polygon(2% 1%, 30% 0%, 50% 2.5%, 75% 1%, 97% 0%, 100% 3%, 99% 50%, 100% 96%, 97% 99%, 50% 100%, 3% 98%, 0% 94%, 1% 45%, 0% 4%); }
.farbkachel.is-tilt-c { clip-path: polygon(4% 4%, 50% 2%, 96% 0%, 99% 2%, 100% 50%, 99% 93%, 95% 98%, 50% 100%, 3% 99%, 0% 96%, 1% 50%, 2% 8%); }
.farbkachel.is-tilt-d { clip-path: polygon(2% 0%, 50% 2%, 97% 4%, 100% 7%, 100% 60%, 99% 92%, 96% 96%, 50% 98.5%, 3% 100%, 0% 97%, 0.5% 50%, 0% 3%); }
/* ältere Einstellungen aus Version 1.0/1.1 */
.farbkachel.is-tilt-left { clip-path: polygon(0 3.5%, 100% 0, 100% 96.5%, 0 100%); }
.farbkachel.is-tilt-right { clip-path: polygon(0 0, 100% 3.5%, 100% 100%, 0 96.5%); }
.farbkachel__inner { position: relative; z-index: 1; }
.farbkachel__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin-bottom: 0.5em; }
.farbkachel__content > :last-child,
.farbkachel__inner > :last-child { margin-bottom: 0; }
.farbkachel__content h2, .farbkachel__content h3 { font-size: 1.35rem; }
.is-source-content .farbkachel__content > .wp-block-heading:first-child { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin-bottom: 0.5em; }
.farbkachel__content ul { padding-left: 1.2em; }
.farbkachel__content li::marker { color: currentColor; }
.farbkachel__content a, .farbkachel__more a { color: inherit; font-weight: 600; }
.farbkachel__content .wp-block-button__link { background: var(--tile-text); color: var(--tile); }
.farbkachel__more { margin-top: 1.25rem; }
/* Form in der Kachel: Position in % von der unteren rechten Ecke (--r = von rechts, --b = über der Unterkante) */
.farbkachel__shape { position: absolute; width: clamp(90px, 9vw, 118px); z-index: 0; right: var(--r, -4%); bottom: var(--b, -14%); transform: rotate(-12deg); }
.farbkachel.has-shape-low { padding-bottom: clamp(4rem, 7vw, 5.5rem); }
.farbkachel.is-source-image { padding: 0; }
.farbkachel__figure { margin: 0; height: 100%; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.farbkachel__figure img { display: block; width: 100%; }
.farbkachel__figure.is-cover { position: absolute; inset: 0; }
.farbkachel__figure.is-cover img { height: 100%; object-fit: cover; }
.farbkachel__figure.is-contain { padding: clamp(1.5rem, 3vw, 2.5rem); }
.farbkachel__figure.is-contain img { height: auto; max-height: 420px; object-fit: contain; }
.farbkachel__hint { margin: 0; font-weight: 600; opacity: .8; }
/* Editor: Vorschau-Kacheln gleich hoch wie auf der Website */
.farbkachel-editor, .farbkachel-editor > div, .farbkachel-editor .farbkachel { height: 100%; }

/* ==========================================================================
   Beiträge als Farbkacheln (Aktuelles)
   ========================================================================== */
.post-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .post-tiles { grid-template-columns: 1fr; } }
.post-tile { display: flex; }
.farbkachel--post { display: block; width: 100%; text-decoration: none; transition: transform .2s ease; }
.farbkachel--post:hover, .farbkachel--post:focus-visible { transform: translateY(-4px) rotate(-0.4deg); }
.farbkachel--post .farbkachel__inner { display: block; }
.farbkachel--post .farbkachel__title { display: block; }
.farbkachel--post .farbkachel__excerpt { display: block; margin-bottom: 1.2em; }
.farbkachel--post .farbkachel__more { display: inline-block; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.farbkachel--post:hover .farbkachel__more { text-decoration-thickness: 2px; }

/* ==========================================================================
   Karten (Aktuelles)
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.cards article a { display: flex; flex-direction: column; height: 100%; background: var(--ansp-white); text-decoration: none; transition: transform .15s; }
.cards article a:hover { transform: translateY(-3px); }
.cards article img, .card-placeholder { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-placeholder { position: relative; overflow: hidden; background: var(--ansp-ph); }
.card-placeholder__shape { position: absolute; width: 46%; right: -6%; bottom: -14%; transform: rotate(-12deg); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h2, .card-body h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.card-body p { font-size: 0.875rem; }
.pagination, .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.nav-links .page-numbers { padding: 0.5rem 0.9rem; background: var(--ansp-white); text-decoration: none; }
.nav-links .current { background: var(--ansp-yellow); }

/* ==========================================================================
   Termine
   ========================================================================== */
.event-list { display: grid; gap: 0.9rem; }
.event-row { display: flex; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem; background: var(--ansp-white); text-decoration: none; transition: transform .15s; }
.event-row:hover { transform: translateX(4px); }
.event-row time { flex: 0 0 auto; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; background: var(--ansp-yellow); line-height: 1; clip-path: polygon(0 4%, 100% 0, 96% 100%, 3% 96%); }
.event-row time b { font-family: var(--font-head); font-size: 1.6rem; }
.event-row time span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-top: -0.6rem; }
.event-row__text strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.3; }
.event-row__text small { font-size: 0.8125rem; }
.event-icon { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.event-detail { display: grid; gap: 0.75rem; padding: 1.5rem; background: var(--ansp-yellow); margin-bottom: 2rem; }
.event-detail div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.event-detail dt { font-weight: 600; }
.event-detail dd { margin: 0; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.two-col .prose-blocks > * { max-width: none; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.contact-card { position: relative; overflow: hidden; padding: 2rem; background: var(--ansp-mint); }
.contact-card h2 { font-size: 1.5rem; }
.contact-card > * { position: relative; z-index: 1; }
.contact-card .contact-card__shape { position: absolute; z-index: 0; width: 140px; right: -36px; bottom: -40px; }
.ansp-contact-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 600px) { .ansp-contact-form .form-grid { grid-template-columns: 1fr; } }
.ansp-contact-form label { display: block; font-weight: 600; font-size: 0.8125rem; }
.ansp-contact-form input, .ansp-contact-form textarea {
    display: block; width: 100%; margin-top: 0.35rem; padding: 0.8rem 0.9rem;
    border: 2px solid var(--ansp-blue); border-radius: 0; background: var(--ansp-white); color: var(--ansp-blue);
    font: 400 0.9375rem/1.5 var(--font-body);
}
.ansp-contact-form input:focus, .ansp-contact-form textarea:focus { outline: 3px solid var(--ansp-yellow); outline-offset: 0; }
.ansp-hp { position: absolute !important; left: -9999px; }
.privacy-note { font-size: 0.75rem; }
.notice { padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 600; }
.notice.success { background: var(--ansp-mint); }
.notice.error { background: var(--ansp-pink); color: var(--ansp-white); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    --ansp-logo-text: var(--ansp-white);
    --ansp-logo-hand: var(--ansp-mint);
    position: relative;
    overflow: hidden;
    margin-top: clamp(2rem, 5vw, 4rem);
    background: var(--ansp-blue);
    color: var(--ansp-white);
    font-size: 0.875rem;
}
.site-footer__hand { position: absolute; width: clamp(170px, 19vw, 290px); right: -60px; bottom: -150px; transform: rotate(-28deg); opacity: .9; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: inline-block; text-decoration: none; }
.footer-brand .site-logo, .footer-brand .site-logo svg { width: 240px; height: auto; }
.site-footer h2 { font-size: 1.15rem; margin-bottom: 0.8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .2); padding-block: 1.1rem; font-size: 0.75rem; }

/* ==========================================================================
   Druck & reduzierte Bewegung
   ========================================================================== */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .home-hero__shapes, .ansp-shape { display: none !important; } }
