/* ============================================================
   Xaily – Design
   Human-readable, verschachtelt wie das HTML, Kunst vor Konvention.
   Tokens oben, dann die Seite von oben nach unten.
   ============================================================ */

:root {
    --primary: #2D2D2D;
    --akzent: #8B5CF6;
    --misch: radial-gradient(circle, rgba(109, 40, 217, 1) 10%, rgba(139, 92, 246, 1) 90%);

    --akzent-dunkel: #6D28D9;
    --akzent-blass: #C4B5FD;

    --hintergrund-norm: #FFFFFF;
    --hintergrund-grau: #F2ECF6;

    --schriftart-haupt: 'Poppins', sans-serif;
    --schriftstaerke-haupt: 400;
    --schriftstil-haupt: normal;

    --schriftart-spielerisch: 'Baloo 2', sans-serif;
    --schriftstaerke-spielerisch: 600;
    --schriftstaerke-tabellen-kopf: 500;
    --schriftstil-spielerisch: normal;

    --inhalt-max: 1450px;
    --header-hoehe: 5.4rem;
}

@media (max-width: 1279px) { :root { --inhalt-max: 1200px; } }
@media (max-width: 1023px) { :root { --inhalt-max: 950px; } }
@media (max-width: 767px)  { :root { --inhalt-max: 700px; } }
@media (max-width: 575px)  { :root { --inhalt-max: 100%; } }

/* -------------------------------------------- */
/* Grundgerüst                                  */
/* -------------------------------------------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-hoehe) + 0.6rem);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--schriftart-haupt);
    font-weight: var(--schriftstaerke-haupt);
    font-style: var(--schriftstil-haupt);
    color: var(--primary);
    overflow-x: hidden;
    max-width: 100%;
}

button,
[type="submit"],
[type="button"],
label {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--schriftart-spielerisch);
    font-style: var(--schriftstil-spielerisch);
    color: var(--akzent-dunkel);
}

h2 {
    font-size: 2.1rem;
    margin-bottom: 1.5rem;

    &::after {
        content: "";
        background-image: url("img/h2-hell.png");
        display: inline-block;
        width: 1.3rem;
        height: 1.3rem;
        background-size: cover;
        margin-left: 1rem;
        vertical-align: middle;
    }
}

/* Nur Aktions-Pfoten invertieren – Portraits und Galerie bleiben Fotos. */
:is(header, titelbild, schreib-mir) button img {
    height: 25px;
    margin-left: 6px;
    margin-right: 6px;
    transform: rotateZ(23deg);
    filter: brightness(0) invert(1);
}

/* Portraits, Galerie und Lichtbox: echte Fotos, niemals invertierte Pfoten. */
foto-knopf img,
button.portrait img,
button.kachel-foto img,
a.portrait img,
kachel img,
bild-schau img,
bild-schwebe img {
    filter: none !important;
    transform: none !important;
    margin: 0 !important;
}

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;

    &:focus, &:focus-visible {
        width: auto;
        height: auto;
        margin: 0;
        clip: auto;
        clip-path: none;
        left: 0.6rem;
        top: 0.6rem;
        z-index: 2000;
        background: var(--akzent-dunkel);
        color: white;
        padding: 0.4rem 0.8rem;
        border-radius: 0.4rem;
    }
}

.honig {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

hinweis {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;

    &[data-typ="ok"] {
        background: #ecfdf3;
        color: #166534;
    }
    &[data-typ="fehler"] {
        background: #fef2f2;
        color: #991b1b;
    }
}

.feld-fehler {
    color: #991b1b;
    display: block;
    margin: -0.3rem 0 0.5rem;
    font-size: 0.8rem;
}

/* -------------------------------------------- */
/* Kopfzeile – volle Breite, Inhalt zentriert   */
/* -------------------------------------------- */

body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: none !important;
    transform: none;
    background: var(--hintergrund-norm);
    padding: 0 !important;
    margin: 0 !important;
    z-index: 999;
    box-shadow: 0 1px 0 rgb(45 45 45 / 0.08);

    nav#nav {
        width: 100%;
        max-width: var(--inhalt-max);
        margin-inline: auto;
        padding: 0.25rem var(--pico-block-spacing-horizontal, 1rem);
        display: flex;
        align-items: center;
        min-height: 4.6rem;
        gap: 0.6rem;

        /* Pico setzt button { margin-bottom } – das klebt den CTA oben. */
        > a {
            display: flex;
            align-items: center;
            align-self: center;
            margin: 0;
            padding: 0;
            height: auto;

            > button {
                margin: 0 !important;
                height: fit-content;
                white-space: nowrap;
                align-self: center;
            }
        }
    }
}

logo {
    display: block;
    flex: 0 0 auto;

    lg {
        background-image: url("img/logo.png");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: left bottom;
        width: min(350px, 46vw);
        height: 75px;
        display: block;
    }
}

links a,
links a:hover {
    --pico-text-decoration: none !important;
    font-size: 0.9rem;
}

sprache {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
    position: relative;
    z-index: 1100;
    align-self: center;

    details {
        position: relative;
    }

    summary {
        list-style: none;
        cursor: pointer;
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--hintergrund-grau, #f4eee6);
        border: 2px solid var(--akzent);
        box-shadow: 0 1px 0 rgb(45 45 45 / 0.08);
        line-height: 1;
        padding: 0;
        margin: 0;
        user-select: none;
    }

    summary::-webkit-details-marker,
    summary::marker {
        display: none;
        content: "";
    }

    summary:hover,
    details[open] summary {
        background: color-mix(in srgb, var(--akzent-blass) 55%, white);
    }

    flagge {
        display: block;
        font-size: 1.25rem;
        line-height: 1;
        transform: translateY(0.05rem);
    }

    liste {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        min-width: 11.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.4rem;
        background: var(--hintergrund-norm, #fffaf4);
        border: 1px solid color-mix(in srgb, var(--akzent) 35%, #ddd);
        border-radius: 0.85rem;
        box-shadow: 0 10px 28px rgb(40 20 10 / 0.16);
        z-index: 1200;
    }

    liste a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 0.55rem;
        border-radius: 0.55rem;
        color: inherit;
        text-decoration: none !important;
        --pico-text-decoration: none !important;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    liste a:hover,
    liste a[aria-current="true"] {
        background: color-mix(in srgb, var(--akzent-blass) 50%, white);
    }
}

pfote {
    display: none;
    margin-left: 0.35rem;
    align-self: center;

    button,
    label {
        background: var(--akzent) !important;
        border: none !important;
        color: #fff !important;
        display: flex;
        align-items: center;
        align-self: center;
        gap: 0.35rem;
        margin: 0 !important;
        padding: 0.35rem 0.75rem !important;
        border-radius: 2rem;
        box-shadow: none;
        height: auto;
        line-height: 1;
    }

    beschriftung {
        display: inline;
        color: #fff !important;
        font-family: var(--schriftart-spielerisch);
        font-size: 1.5rem;
        font-weight: var(--schriftstaerke-spielerisch);
        line-height: 1;
    }

    img {
        height: 1.7rem !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        filter: brightness(0) invert(1) !important;
        transform: rotate(20deg) !important;
        object-fit: contain;
    }
}

mobil-menü[popover] {
    inset: 0 0 0 auto;
    width: min(78vw, 22rem);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    padding: 2rem 1.6rem;
    background: var(--hintergrund-norm);
    overflow: auto;

    &::backdrop {
        background: rgb(0 0 0 / 0.3);
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 2rem 0 0;
    }
    li {
        margin-bottom: 1.6rem;
        list-style: none;
    }
    a {
        font-size: 1.2rem;
        text-decoration: none;
        color: var(--akzent);
    }
}

body > main {
    margin-top: var(--header-hoehe);
    overflow: visible;
}

/* -------------------------------------------- */
/* Titelbild                                    */
/* -------------------------------------------- */

titelbild {
    background-image: url("img/startbild.png");
    background-size: cover;
    background-position: right bottom;
    display: block;
    width: 100%;
    height: 680px;
    margin-bottom: 40px;

    blur-layer {
        background: linear-gradient(98deg, #fff 70%, rgb(255 255 255 / 0) 90%);
        display: flex;
        width: 50%;
        min-width: 510px;
        height: 100%;
    }

    text {
        display: block;
        width: 100%;
        height: 100%;
        margin-top: 4rem;
        margin-left: 4rem;
        padding: 1rem;

        h1 { font-size: clamp(2rem, 4vw, 3rem); }
        a {
            display: inline-block;
            margin-top: 1rem;
            margin-bottom: 1rem;
        }
        img {
            height: 22px;
            margin-right: 6px;
        }
    }

    p { font-weight: 500; }
}

hd { color: var(--primary); }

#herz-strahlen {
    height: 2.7rem;
    width: auto;
    display: inline;
    vertical-align: super;
    margin: 0 0 0 0.15rem;
    position: static;
}

/* -------------------------------------------- */
/* Leistungen                                   */
/* -------------------------------------------- */

leistungen {
    display: block;
    margin-bottom: 2rem;

    h2, p { text-align: center; margin-bottom: 0; }
    hgroup { margin-bottom: 1.5rem; }
}

karten {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

karte {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background: var(--hintergrund-grau);
    border-radius: 0.5rem;
    padding: 10px;

    h3 {
        min-height: 4rem;
        display: flex;
        align-items: center;
    }
    img {
        height: 65px;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    p { font-size: 0.85rem; }
}

/* -------------------------------------------- */
/* Über uns                                     */
/* -------------------------------------------- */

selbstportrait {
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;

    img { clip-path: circle(); }

    janine {
        display: flex;
        align-items: center;
        gap: 1rem;

        bild {
            display: block;
            padding: 3rem 1rem 3rem 3rem;
            flex: 1 1 45%;

            img {
                clip-path: xywh(3px 0px 97% 88% round 0% 15%);
                margin-bottom: -2.8rem;
                width: 100%;
                max-width: 100%;
            }
        }

        text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: left;
            padding-right: 3rem;
            flex: 1 1 45%;
        }
    }

    katzen {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 6rem;

        katze {
            display: flex;
            align-items: flex-start;
            background: var(--hintergrund-grau);
            border-radius: 10px;
            padding: 1rem 1rem 0;
            position: relative;

            &:nth-of-type(2) { margin-top: 8rem; }

            kopf {
                display: flex;
                flex-direction: column;
                flex: 0 0 14rem;
                min-width: 14rem;
                margin-top: -8rem;
                margin-bottom: 2rem;

                > img {
                    height: 13rem !important;
                    width: 13rem !important;
                    max-width: 13rem !important;
                    aspect-ratio: 1;
                    object-fit: cover;
                    object-position: center;
                    margin-bottom: 1rem;
                    border-radius: 50%;
                    clip-path: circle(50% at 50% 50%);
                }

                infokasten {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    min-height: 5rem;
                    margin-top: 1rem;
                    margin-left: 1rem;

                    img {
                        width: 4rem;
                        height: auto;
                        clip-path: none;
                        margin-bottom: 0;
                    }
                    h4 {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        font-size: 0.9rem;
                        width: 100%;
                        margin: 0;
                    }
                }
            }

            text {
                flex: 1 1 auto;
                margin: 1rem 0 1rem 1rem;

                h3, hr { display: none; }
                p { text-align: left; }
                p:nth-of-type(1),
                p:nth-of-type(2) { margin-right: -4vw; }
                strong { color: var(--akzent); }
            }

            deko {
                display: flex;
                flex-direction: column;
                flex: 0 0 10rem;
                width: 10rem;

                > img {
                    display: block;
                    width: 7rem;
                    height: 7rem;
                    margin-left: 9rem;
                    margin-top: 5rem;
                    clip-path: circle(50% at 50% 50%);
                    border-radius: 50%;
                    object-fit: cover;
                    object-position: center;
                }
                > img:nth-of-type(2) {
                    width: 10rem;
                    height: 10rem;
                    margin-left: 4.5rem;
                    margin-top: 0.5rem;
                    margin-bottom: -2rem;
                }
            }

            &:nth-of-type(2) deko > img { width: 8rem; height: 8rem; }
            &:nth-of-type(2) deko > img:nth-of-type(2) {
                width: 10rem;
                height: 10rem;
                margin-top: 0;
            }

            deko pfoten,
            deko herzchen {
                display: flex;
                flex-direction: column;

                img {
                    display: block;
                    width: 3.5rem;
                    margin-top: -2.8rem;
                    margin-left: 9rem;
                    clip-path: none;
                }
                img:nth-of-type(2) {
                    width: 5rem;
                    margin-top: 1.2rem;
                    margin-left: 8.2rem;
                }
            }
            deko herzchen img {
                margin-top: -0.4rem;
                transform: none;
            }
            deko herzchen img:nth-of-type(2) {
                transform: rotate(8deg);
                margin-left: 6.2rem;
            }
            deko pfoten img { transform: rotate(15deg); }
            deko pfoten img:nth-of-type(2) {
                transform: rotate(-25deg);
            }
        }

        /* Icon-Feinschliff, vorher inline */
        katze:nth-of-type(1) kopf infokasten:nth-of-type(1) img {
            height: 4rem;
            width: auto;
            padding-left: 0.5rem;
        }
        katze:nth-of-type(2) kopf infokasten:nth-of-type(2) img {
            width: 5rem;
            margin-right: -1.7rem;
            margin-left: 0.5rem;
        }
    }
}

/* -------------------------------------------- */
/* Ablauf                                       */
/* -------------------------------------------- */

ablauf {
    text-align: center;
    display: block;
    margin-bottom: 2rem;
}

tappschens {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

tapps {
    display: flex;
    flex: 1 1 160px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;

    h3 {
        min-height: 4rem;
        color: var(--primary);
        display: flex;
        align-items: center;
        margin-bottom: 0;
    }
    img {
        display: flex;
        padding: 20px;
        height: 120px;
        background: var(--hintergrund-grau);
        clip-path: circle();
        margin-bottom: 1.2rem;
    }
    no {
        background: var(--akzent-dunkel);
        width: 1rem;
        height: 1rem;
        padding: 1rem;
        padding-top: 1.1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        clip-path: circle();
        color: var(--hintergrund-norm);
        font-family: var(--schriftart-spielerisch);
        font-weight: var(--schriftstaerke-spielerisch);
        font-size: 1.5rem;
        margin-top: -1.6rem;
        margin-bottom: 0.4rem;
    }
    p { font-size: 0.85rem; }
}

/* -------------------------------------------- */
/* Katzenstimmen                                */
/* -------------------------------------------- */

katzenstimmen {
    display: block;
    overflow: visible;
    padding: 2rem 0 1rem;

    h2 { text-align: center; margin-bottom: 2rem; }

    stimmen-container {
        display: flex;
        align-items: center;
        position: relative;
        gap: 0;
        padding-inline: 0.2rem;
        isolation: isolate;
    }

    stimmen {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
        padding-inline: calc(50% - min(200px, 41vw));
        scroll-padding-inline: calc(50% - min(200px, 41vw));
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        cursor: grab;
        user-select: none;
        touch-action: pan-x;

        img { -webkit-user-drag: none; user-select: none; }

        &.ziehen { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
        &::-webkit-scrollbar { display: none; }
    }

    /* Pico-Buttons dürfen die Pfote nicht stauchen. */
    stimmen-container > button {
        all: unset;
        box-sizing: content-box;
        display: grid;
        place-items: center;
        flex: 0 0 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        margin: 0;
        cursor: pointer;
        z-index: 4;
        transform: rotate(180deg);
        background: transparent;

        &:disabled { opacity: 0.35; cursor: default; }

        &:last-of-type { transform: none; }

        img {
            width: 2.2rem !important;
            height: 2.2rem !important;
            max-width: none !important;
            margin: 0 !important;
            padding: 0 !important;
            transform: none !important;
            filter: none !important;
            object-fit: contain !important;
            display: block;
        }
    }

    stimme {
        flex: 0 0 min(400px, 82vw);
        width: min(400px, 82vw);
        scroll-snap-align: center;
        background: var(--hintergrund-grau);
        border-radius: 2rem;
        border: 2px solid transparent;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        overflow: visible;
        position: relative;

        &.aktiv {
            border-color: var(--akzent);
            box-shadow: 0 10px 25px rgb(0 0 0 / 0.1);
            transform: translateY(-5px) scale(1.03);
        }

        bild {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            position: relative;
            z-index: 2;

            a.portrait,
            button.portrait,
            foto-knopf.portrait {
                position: relative;
                flex: 0 0 100px;
                width: 100px;
                height: 100px;
                display: block;
                cursor: pointer;
                background: transparent !important;
                background-color: transparent !important;
                padding: 0 !important;
                margin: 0;
                border: 0 !important;
                box-shadow: none !important;
                color: inherit !important;
                line-height: 0;
                overflow: visible;
                appearance: none;
                -webkit-appearance: none;

                &:nth-of-type(2),
                &:nth-of-type(3) { margin-left: -30px; }

                img {
                    width: 100px !important;
                    height: 100px !important;
                    max-width: none !important;
                    max-height: none !important;
                    object-fit: cover;
                    clip-path: circle(50% at 50% 50%);
                    border-radius: 50%;
                    display: block;
                    pointer-events: none;
                    filter: none !important;
                    transform: none !important;
                    margin: 0 !important;
                    background: var(--hintergrund-grau);
                }
            }

            sterne {
                flex: 0 0 120px;
                height: 24px;
                display: flex;
                margin-left: 1rem;
                gap: 0;

                img {
                    width: 24px;
                    height: 24px;
                    clip-path: none;
                    max-width: none;
                }
            }
        }

        text {
            display: flex;
            flex-grow: 1;
            flex-direction: column;
            justify-content: space-between;
            gap: 1.5rem;

            p { margin-bottom: 0; }
            > p:nth-of-type(1) {
                max-height: 240px;
                overflow-y: auto;
            }
        }
    }
}

@media (hover: hover) {
    katzenstimmen stimme:has(foto-knopf:hover),
    katzenstimmen stimme:has(button.portrait:hover),
    katzenstimmen stimme:has(a.portrait:hover) {
        z-index: 80;
        overflow: visible;
    }
}

/* -------------------------------------------- */
/* Galerie – volle Breite, drei Zeilen, Endlos  */
/* -------------------------------------------- */

katzenstimmen {
    overflow: visible;
}

katzen-galerie {
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 2.2rem;
    padding: 0.4rem 0 1.6rem;
    overflow: hidden;

    h3 {
        text-align: center;
        font-size: 1.35rem;
        margin: 0 1rem 0.9rem;
    }
}

galerie-leiste {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    touch-action: pan-x;
    user-select: none;
    scroll-behavior: auto;

    &.ziehen { cursor: grabbing; scroll-behavior: auto; }
    &::-webkit-scrollbar { display: none; }

    img { -webkit-user-drag: none; user-select: none; }
}

galerie-band {
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    width: max-content;
    padding: 0.35rem 4vw 0.8rem;
}

galerie-gruppe {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    scroll-margin-inline: 2rem;
    padding: 0.45rem 0.55rem 0.55rem;
    border-radius: 0.9rem;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease;

    &.hervorgehoben {
        background: color-mix(in srgb, var(--akzent-blass) 42%, white);
        box-shadow: inset 0 0 0 2px var(--akzent);
    }
}

gruppen-name {
    display: block;
    font-family: var(--schriftart-spielerisch);
    color: var(--akzent-dunkel);
    font-size: 0.95rem;
    line-height: 1.2;
    margin: 0 0 0.4rem 0.1rem;
    white-space: nowrap;
}

kacheln {
    display: grid;
    grid-template-rows: repeat(3, 5.4rem);
    grid-auto-flow: column;
    grid-auto-columns: auto;
    gap: 0.35rem;
    align-items: stretch;
}

kachel {
    display: block;
    height: 5.4rem;
    min-width: 4.2rem;
    position: relative;
    border-radius: 0.45rem;
    overflow: hidden;
}

foto-knopf.kachel-foto,
button.kachel-foto {
    display: block;
    width: auto;
    height: 100%;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    line-height: 0;
    appearance: none;
    -webkit-appearance: none;

    img {
        height: 5.4rem !important;
        width: auto !important;
        min-width: 4.2rem;
        max-width: 9.5rem !important;
        max-height: none !important;
        object-fit: cover;
        border-radius: 0.45rem;
        display: block;
        background: var(--hintergrund-grau);
        pointer-events: none;
        filter: none !important;
        transform: none !important;
        margin: 0 !important;
    }
}

/* -------------------------------------------- */
/* Bild-Schau (Popover, Top-Layer)              */
/* -------------------------------------------- */

bild-schwebe {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;

    img {
        display: block;
        max-width: min(72vw, 26rem);
        max-height: min(70vh, 26rem);
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 0.45rem;
        box-shadow: 0 22px 50px rgb(45 45 45 / 0.38);
        background: #111;
    }
}

bild-schau {
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;

    &::backdrop {
        background: rgb(20 12 28 / 0.62);
    }

    img {
        display: block;
        max-width: min(92vw, 52rem);
        max-height: 82dvh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 0.6rem;
        background: #111;
        box-shadow: 0 24px 60px rgb(0 0 0 / 0.4);
    }

    button.zu {
        all: unset;
        position: absolute;
        top: -0.4rem;
        right: -0.4rem;
        width: 3.1rem;
        height: 3.1rem;
        border-radius: 50%;
        background: var(--akzent-dunkel);
        color: #fff;
        font-size: 2.1rem;
        line-height: 1;
        display: grid;
        place-items: center;
        cursor: pointer;
        box-shadow: 0 6px 18px rgb(0 0 0 / 0.3);
        z-index: 2;
    }
}

bild-schau:popover-open,
bild-schwebe:popover-open {
    position: fixed;
}

bild-schau:popover-open {
    inset: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
}

/* -------------------------------------------- */
/* Kontakt                                      */
/* -------------------------------------------- */

schreib-mir {
    display: block;
    margin-top: 3rem;
}

k-hintergrund {
    display: block;
    background-image: url("img/k-hintergrund.png");
    background-size: cover;
    background-position: center;
}

k-xenchen {
    display: flex;
    position: relative;
    background-image: url("img/k-xenchen.png");
    background-size: 1800px auto;
    background-position: left bottom;
    background-repeat: no-repeat;
    gap: 5%;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
    width: 100%;
    min-height: 560px;
    color: var(--hintergrund-norm);

    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background-image: url("img/k-welle.png");
        background-size: 200vw 540px;
        background-repeat: no-repeat;
        background-position: left bottom;
        transform: rotate(180deg);
        pointer-events: none;
    }

    > * {
        position: relative;
        z-index: 3;
    }
}

schreib-mir text {
    display: flex;
    width: min(30%, 22rem);
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    background: rgb(0 0 0 / 0.6);
    border-radius: 20px;

    h2, h3 { color: var(--hintergrund-norm); }
    h2 { margin-bottom: 1rem; }
    h3 { margin-top: 0.7rem; }

    ul {
        list-style: none;
        text-align: left;
        padding-left: 1.5rem;
    }
    li {
        list-style: none;
        color: var(--hintergrund-norm);
        margin-top: 0.5rem;

        &::before {
            content: "";
            background-image: url("img/i-herz-f-hell.png");
            display: inline-block;
            width: 1rem;
            height: 1rem;
            background-size: cover;
            margin-left: -1.6rem;
            margin-right: 0.5rem;
            vertical-align: -0.1rem;
        }
    }
}

schreib-mir formular {
    display: flex;
    width: min(45%, 36rem);
    margin: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 1.2rem;
    background: var(--hintergrund-grau);
    flex-direction: column;
    color: var(--primary);

    h3 {
        font-size: 2rem;
        text-align: left;
    }

    feldset {
        display: flex;
        gap: 0.5rem;
        border: 0;
        padding: 0;
        margin: 0;
    }
    inputs {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }
    wazei {
        flex: 0 0 9rem;
        padding-left: 1.25rem;

        img {
            height: 7.75rem;
            width: 7.75rem;
        }
    }
    input {
        font-size: 0.85rem;
        height: 2.25rem;
        margin-bottom: 0.5rem;
    }
    textarea { font-size: 0.85rem; }
    knöpfe input {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* -------------------------------------------- */
/* Einsatzgebiet                                */
/* -------------------------------------------- */

einsatzgebiet {
    display: block;
    width: 100%;
    max-width: var(--inhalt-max);
    margin: 3rem auto 2.5rem;
    padding-inline: var(--pico-block-spacing-horizontal, 1rem);

    h2 { text-align: center; }
}

gebiet-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--hintergrund-grau);
    border-radius: 1.2rem;
    padding: 1.4rem;
}

karte-bild {
    flex: 1 1 55%;

    img {
        width: 100%;
        height: auto;
        border-radius: 0.8rem;
        display: block;
    }
}

einsatzgebiet hinweis {
    flex: 1 1 40%;
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;

    p { margin-bottom: 0.8rem; }
    strong { color: var(--akzent-dunkel); }
}

/* -------------------------------------------- */
/* Fußzeile – wie CATAAS, mit Merlin            */
/* -------------------------------------------- */

body > footer {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    background: var(--hintergrund-norm);
    border-top: 1px solid #ece6f2;
    margin: 0 !important;
}

fuss-innen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: var(--inhalt-max);
    margin-inline: auto;
    padding: 1.2rem var(--pico-block-spacing-horizontal, 1rem);
    font-size: 0.92rem;
}

fuss-recht {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;

    a {
        color: var(--akzent-dunkel);
        text-decoration: none;
        &:hover { text-decoration: underline; }
    }
}

fuss-made {
    margin-left: auto;
    text-align: right;
    color: var(--primary);
}

herz {
    color: #e11d48;
    padding: 0 0.15rem;
}

/* -------------------------------------------- */
/* Rechtstexte                                  */
/* -------------------------------------------- */

main.rechtstext {
    padding-bottom: 3rem;

    artikel {
        display: block;
        max-width: 42rem;

        h1 { font-size: 2.4rem; }
        h2 {
            font-size: 1.4rem;
            margin-top: 2rem;
        }
        adresse { font-style: normal; line-height: 1.6; }
    }

    h2::after {
        display: none !important;
        content: none !important;
        background: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
    }
}

/* -------------------------------------------- */
/* Dashboard                                    */
/* -------------------------------------------- */

main.dashboard {
    padding-bottom: 3rem;
}

login-karte {
    display: block;
    max-width: 22rem;
    margin: 3rem auto;
    background: var(--hintergrund-grau);
    padding: 1.6rem;
    border-radius: 1.2rem;

    h1 { margin-bottom: 0.3rem; }
}

dashboard-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;

    h1 { margin: 0; }
    p { margin: 0; flex: 1 1 auto; }
    form { margin: 0; }
}

button.leise,
.leise {
    background: transparent;
    border: 1px solid var(--akzent-blass);
    color: var(--akzent-dunkel);
}

dashboard-spalten {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1100px) {
    dashboard-spalten {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    galerie-kasten { grid-column: 1 / -1; }
}

anfragen-kasten,
stimmen-kasten,
galerie-kasten {
    display: block;
    background: var(--hintergrund-grau);
    border-radius: 1.2rem;
    padding: 1.2rem 1.4rem;

    h2 {
        font-size: 1.6rem;
        &::after { display: none; }
    }
    h3 {
        font-size: 1.15rem;
        margin-top: 1.4rem;
    }
    .hint {
        font-size: 0.85rem;
        opacity: 0.85;
    }
    .leer { opacity: 0.7; }
}

anfrage {
    display: block;
    background: white;
    border-radius: 0.8rem;
    padding: 0.9rem 1rem;
    margin: 0.8rem 0;
    border-left: 4px solid var(--akzent);

    &[data-status="offen_keine_mail"] {
        border-left-color: #dc2626;
        background: #fff7f7;
    }
    &[data-status="bearbeitet"] {
        border-left-color: #16a34a;
        opacity: 0.85;
    }

    kopfzeile {
        display: flex;
        justify-content: space-between;
        gap: 0.6rem;
        align-items: baseline;
    }
    status {
        font-size: 0.8rem;
        font-family: var(--schriftart-spielerisch);
        color: var(--akzent-dunkel);
    }
    meta {
        display: block;
        font-size: 0.82rem;
        opacity: 0.8;
        margin: 0.2rem 0 0.6rem;
    }
}

stimme-zeile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    align-items: start;
    background: white;
    border-radius: 0.8rem;
    padding: 0.7rem 0.9rem;
    margin: 0.5rem 0;

    small { display: block; opacity: 0.8; }
    aktionen {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-end;

        form { display: flex; gap: 0.25rem; margin: 0; }
        button { padding: 0.2rem 0.55rem; margin: 0; }
    }
}

sterne-mini { color: #f5b301; letter-spacing: 0.05em; }

katzen-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;

    span {
        background: var(--hintergrund-grau);
        border-radius: 999px;
        padding: 0.1rem 0.55rem;
        font-size: 0.75rem;
    }
}

katze-slot {
    display: block;
    background: white;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    margin: 0.6rem 0;
}

feld-reihe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.6rem;
}

bilder-liste {
    display: block;
    margin-top: 1rem;
}

bild-zeile {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 0.7rem;
    align-items: center;
    background: white;
    border-radius: 0.6rem;
    padding: 0.4rem 0.6rem;
    margin: 0.35rem 0;

    img {
        width: 4.5rem;
        height: 3.2rem;
        object-fit: cover;
        border-radius: 0.4rem;
    }
    span { font-size: 0.78rem; word-break: break-all; }
}

ol.stimmen-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

details summary {
    cursor: pointer;
    color: var(--akzent-dunkel);
    font-size: 0.85rem;
}

/* Deko-Fotos dürfen über den Content ragen – unter ~1400px wäre das Scrollbar */
@media (max-width: 1400px) {
    selbstportrait katzen katze deko { display: none; }
    logo lg { width: min(280px, 40vw); height: 60px; }
}

/* -------------------------------------------- */
/* Schmale Bildschirme                          */
/* -------------------------------------------- */

@media (max-width: 1535px) {
    titelbild blur-layer { width: 70%; }
}

@media (max-width: 1320px) {
    :root { --header-hoehe: 4.6rem; }

    body > header nav#nav > a { display: none; }
    links { display: none; }
    pfote { display: block; }

    titelbild {
        background-position: right -160px bottom;

        blur-layer {
            width: 100%;
            min-width: 0;
            background: none;
        }
        text {
            background: rgb(255 255 255 / 0.72);
            border-radius: 20px;
            width: fit-content;
            max-width: calc(100% - 2rem);
            height: fit-content;
            margin: 3rem 1.2rem 0;
        }
    }

    karten {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-inline: calc(50% - 125px);
        scroll-padding-inline: calc(50% - 125px);
        gap: 2rem;
        padding-block: 1rem;
        width: 100%;
        max-width: 100%;
        cursor: grab;
        touch-action: pan-x;
        user-select: none;

        img { -webkit-user-drag: none; }

        &.ziehen { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
        &::-webkit-scrollbar { display: none; }
    }
    karte {
        width: 250px;
        flex: 0 0 250px;
        scroll-snap-align: center;
        opacity: 0.8;
        transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;

        &.aktiv {
            border: 2px solid var(--akzent);
            box-shadow: 0 10px 25px rgb(0 0 0 / 0.1);
            opacity: 1;
            transform: translateY(-5px) scale(1.03);
        }
    }

    tappschens {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-inline: calc(50% - 130px);
        scroll-padding-inline: calc(50% - 130px);

        &::-webkit-scrollbar { display: none; }
    }
    tapps {
        flex: 0 0 240px;
        scroll-snap-align: center;
    }
}

@media (max-width: 1024px) {
    selbstportrait {
        janine {
            flex-direction: column;
            bild, text {
                padding: 1rem;
                width: 100%;
            }
            bild img { margin-bottom: 0; }
            text { text-align: left; padding-right: 1rem; }
        }

        katzen {
            margin-top: 3rem;

            katze {
                flex-direction: column;
                align-items: center;
                padding: 1.2rem;

                &:nth-of-type(2) { margin-top: 5rem; }

                kopf {
                    margin-top: -5rem;
                    align-items: center;
                    min-width: 0;
                    width: 100%;
                }
                text {
                    margin: 0.5rem 0 0;
                    p:nth-of-type(1),
                    p:nth-of-type(2) { margin-right: 0; }

                    h3, hr { display: block; }
                    h3 { margin-bottom: 0.4rem; }
                    hr {
                        border-color: var(--akzent);
                        border-width: 2px;
                        width: 100%;
                        margin: 0 0 1rem;
                    }
                }
                deko { display: none; } /* moved: also hidden below 1400 */
            }
        }
    }

    k-xenchen {
        flex-direction: column;
        align-items: center;
        background-size: 1100px;
        padding: 3rem 1rem 1.5rem;
        justify-content: flex-start;
    }

    schreib-mir text,
    schreib-mir formular {
        width: min(100%, 36rem);
        margin: 0.8rem 0;
    }

    gebiet-layout {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    :root { --header-hoehe: 4.1rem; }

    logo lg {
        width: min(230px, 62vw);
        height: 52px;
    }
    pfote beschriftung { font-size: 1.2rem; }

    #herz-strahlen { display: none; }

    titelbild {
        height: min(78vh, 560px);
        background-position: 62% bottom;

        text {
            margin: 10vh 5vw 0;
            h1 { font-size: 2rem; }
            p br { display: none; }
        }
    }

    h2 { font-size: 1.7rem; }

    katzenstimmen {
        stimmen-container > button {
            flex-basis: 2rem;
            width: 2rem;
            height: 2rem;
            img { width: 1.85rem !important; height: 1.85rem !important; }
        }
        stimme {
            padding: 1.1rem;
            bild {
                flex-wrap: wrap;
                a.portrait,
                button.portrait,
                foto-knopf.portrait {
                    flex-basis: 72px;
                    width: 72px;
                    height: 72px;
                    img { width: 72px !important; height: 72px !important; }
                }
                sterne { flex-basis: 100%; margin: 0.4rem 0 0; }
            }
        }
    }

    kacheln {
        grid-template-rows: repeat(3, 4.5rem);
        gap: 0.28rem;
    }
    kachel { height: 4.5rem; min-width: 3.6rem; }
    foto-knopf.kachel-foto img,
    button.kachel-foto img {
        height: 4.5rem !important;
        min-width: 3.6rem;
        max-width: 7.5rem !important;
    }
    gruppen-name { font-size: 0.85rem; }

    schreib-mir {
        feldset { flex-direction: column; }
        wazei {
            display: none;
        }
        formular { padding: 1rem; }
        formular h3 { font-size: 1.5rem; }
        text h2 br { display: none; }
    }

    fuss-innen {
        flex-direction: column;
        align-items: flex-start;
    }
    fuss-made {
        margin-left: 0;
        text-align: left;
    }

    stimme-zeile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    titelbild { background-position: right -260px bottom; }

    karte, tapps { flex-basis: 78vw; width: 78vw; }

    selbstportrait katzen katze kopf > img {
        height: 10rem !important;
        width: 10rem !important;
        max-width: 10rem !important;
    }
}

@media (max-width: 560px) {
    kacheln {
        grid-template-rows: repeat(3, 4.1rem);
    }
    kachel { height: 4.1rem; }
    foto-knopf.kachel-foto img,
    button.kachel-foto img { height: 4.1rem !important; max-width: 6.8rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Pico classless: Nav-Button-Margin und img-height:auto einfangen */
body > header nav#nav,
body > header nav#nav ul {
    align-items: center;
    margin-bottom: 0;
}
body > header nav#nav > a,
body > header nav#nav > a:hover {
    --pico-text-decoration: none;
    background: transparent;
}
body > header nav#nav > a > button {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}
pfote button { margin-bottom: 0 !important; }
selbstportrait katzen katze kopf > img {
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
}

selbstportrait katzen katze deko > img {
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
    object-fit: cover;
}

button.portrait,
button.kachel-foto,
foto-knopf,
foto-knopf[role="button"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    color: inherit !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0 !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Pico [role=button] + img{max-width:100%;height:auto} darf Fotos nicht fressen. */
foto-knopf[role="button"],
foto-knopf {
    display: block;
    cursor: pointer;
    width: max-content;
    max-width: none;
    height: auto;
    overflow: visible;
    font-size: 0;
    box-sizing: content-box;
    --pico-background-color: transparent;
    --pico-border-color: transparent;
    --pico-color: inherit;
    --pico-box-shadow: none;
}

foto-knopf.portrait {
    width: 100px;
    height: 100px;
}

foto-knopf img {
    display: block !important;
    object-fit: cover;
    pointer-events: none;
    filter: none !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    vertical-align: top;
}

foto-knopf.portrait img {
    width: 100px !important;
    height: 100px !important;
    max-width: none !important;
    max-height: none !important;
    clip-path: circle(50% at 50% 50%);
    border-radius: 50%;
}

foto-knopf.kachel-foto img {
    width: auto !important;
    height: 5.4rem !important;
    min-width: 4.2rem;
    max-width: 9.5rem !important;
    max-height: none !important;
    border-radius: 0.45rem;
    clip-path: none;
}

@media (max-width: 700px) {
    foto-knopf.portrait { width: 72px; height: 72px; }
    foto-knopf.portrait img { width: 72px !important; height: 72px !important; }
    foto-knopf.kachel-foto img { height: 4.5rem !important; max-width: 7.5rem !important; }
}

@media (max-width: 560px) {
    foto-knopf.kachel-foto img { height: 4.1rem !important; max-width: 6.8rem !important; }
}

/* -------------------------------------------- */
/* Bewertungsseite                              */
/* -------------------------------------------- */

main.bewertung {
    padding-bottom: 3rem;
}

bewertungs-karte {
    display: block;
    max-width: 38rem;
    margin: 1.5rem auto 2rem;
    background: var(--hintergrund-grau);
    padding: 1.6rem 1.5rem 1.8rem;
    border-radius: 1.2rem;

    h1 {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }
    .lead { margin-bottom: 1.2rem; }

    label.einverstaendnis {
        display: flex;
        gap: 0.7rem;
        align-items: flex-start;
        font-size: 0.9rem;
        line-height: 1.45;
        margin: 1rem 0 1.2rem;

        input { margin-top: 0.25rem; flex: 0 0 auto; }
    }
}

.sterne-feld {
    border: 0;
    padding: 0;
    margin: 0 0 1rem;

    legend {
        font-family: var(--schriftart-spielerisch);
        color: var(--akzent-dunkel);
        margin-bottom: 0.3rem;
    }
}

sterne-wahl {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.15rem;

    input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
        width: 1px;
        height: 1px;
    }
    label {
        font-size: 2.2rem;
        line-height: 1;
        color: #d4c4e8;
        cursor: pointer;
        padding: 0.1rem 0.15rem;
        span {
            display: block;
            width: 1.15em;
            text-indent: -999px;
            overflow: hidden;
            &::after {
                content: "★";
                display: block;
                text-indent: 0;
            }
        }
    }
    label:hover,
    label:hover ~ label,
    input:checked + label,
    input:checked ~ label,
    input:focus-visible + label {
        color: #f5b301;
    }
}

/* -------------------------------------------- */
/* Dashboard-Reiter                             */
/* -------------------------------------------- */

werkzeug {
    display: block;
}

werkzeug > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

reiter-leiste {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 2px solid var(--akzent-blass);
    margin-bottom: 1.4rem;
    padding-bottom: 0;

    &::-webkit-scrollbar { display: none; }

    label {
        flex: 0 0 auto;
        margin: 0;
        padding: 0.55rem 1rem 0.6rem;
        border-radius: 0.7rem 0.7rem 0 0;
        font-family: var(--schriftart-spielerisch);
        font-weight: var(--schriftstaerke-spielerisch);
        color: var(--akzent-dunkel);
        background: transparent;
        line-height: 1.2;
        white-space: nowrap;
    }
}

werkzeug reiter-feld { display: none; }
werkzeug:has(#r-dashboard:checked) reiter-feld[data-fuer="dashboard"],
werkzeug:has(#r-anfragen:checked)  reiter-feld[data-fuer="anfragen"],
werkzeug:has(#r-katzen:checked)    reiter-feld[data-fuer="katzen"],
werkzeug:has(#r-stimmen:checked)   reiter-feld[data-fuer="stimmen"],
werkzeug:has(#r-galerie:checked)   reiter-feld[data-fuer="galerie"],
werkzeug:has(#r-system:checked)    reiter-feld[data-fuer="system"] {
    display: block;
}

werkzeug:has(#r-dashboard:checked) label[for="r-dashboard"],
werkzeug:has(#r-anfragen:checked)  label[for="r-anfragen"],
werkzeug:has(#r-katzen:checked)    label[for="r-katzen"],
werkzeug:has(#r-stimmen:checked)   label[for="r-stimmen"],
werkzeug:has(#r-galerie:checked)   label[for="r-galerie"],
werkzeug:has(#r-system:checked)    label[for="r-system"] {
    background: var(--akzent);
    color: #fff;
}

kasten {
    display: block;
    background: var(--hintergrund-grau);
    border-radius: 1.2rem;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.4rem;

    h2 {
        font-size: 1.55rem;
        &::after { display: none; }
    }
    h3, h4 {
        font-size: 1.05rem;
        margin-top: 0.8rem;
        color: var(--akzent-dunkel);
    }
    .hint { font-size: 0.85rem; opacity: 0.85; }
    .leer { opacity: 0.7; }
}

kasten.leise-kasten p { margin-bottom: 0; }

status-reihe {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

status-kachel {
    display: flex;
    flex-direction: column;
    background: var(--hintergrund-grau);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    zahl {
        font-family: var(--schriftart-spielerisch);
        font-size: 2rem;
        color: var(--akzent-dunkel);
        line-height: 1.1;
    }
    label-txt {
        font-size: 0.82rem;
        opacity: 0.85;
    }
}

dashboard-raster {
    display: grid;
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}

@media (min-width: 1100px) {
    dashboard-raster { grid-template-columns: 1fr 1fr; }
}

familie-karte {
    display: block;
    background: white;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    margin: 0.8rem 0;
}

familie-kopf {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;

    meta { display: block; font-size: 0.82rem; opacity: 0.8; }
}

katze-zeile {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.45rem 0;
    border-top: 1px solid var(--hintergrund-grau);

    zahlen {
        display: block;
        font-size: 0.8rem;
        opacity: 0.8;
    }
}

galerie-flagge {
    display: inline-block;
    margin-left: 0.45rem;
    font-size: 0.82rem;
    font-family: var(--schriftart-spielerisch);
    color: var(--akzent-dunkel);
    white-space: nowrap;
}

.link-feld {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;

    input {
        font-size: 0.78rem;
        margin: 0.15rem 0 0;
        padding: 0.25rem 0.45rem;
        height: auto;
    }
}

.kopie-zeile {
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
    margin-top: 0.15rem;

    input {
        flex: 1 1 auto;
        margin: 0 !important;
        min-width: 0;
    }

    button.kopieren {
        flex: 0 0 auto;
        width: auto !important;
        margin: 0 !important;
        padding: 0.28rem 0.75rem !important;
        font-size: 0.8rem;
        white-space: nowrap;
        height: auto;
    }
}

.einladung-form input[name="besitzer_neu"]:disabled {
    opacity: 0.45;
    background: #eee;
    cursor: not-allowed;
}

knopf-reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.4rem;

    form { margin: 0; }
}

.mini-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: end;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--akzent-blass);

    label { flex: 1 1 12rem; margin: 0; }
    button { margin: 0; }
}

dl.system-dl {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 0.35rem 1rem;
    margin: 0;

    dt { font-weight: 600; color: var(--akzent-dunkel); }
    dd { margin: 0; word-break: break-word; }
}

stimme-zeile[data-status="eingereicht"] {
    border-left: 4px solid #d97706;
}
stimme-zeile[data-status="offen"] {
    border-left: 4px solid var(--akzent-blass);
}

@media (max-width: 900px) {
    status-reihe { grid-template-columns: 1fr 1fr; }
    dl.system-dl { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    status-reihe { grid-template-columns: 1fr; }
    reiter-leiste label { padding: 0.45rem 0.75rem; font-size: 0.95rem; }
    kasten { padding: 1rem; }
}
