/* =========================================================
   Paradiesplatzl – Stylesheet
   Lokale Webfonts (DSGVO-konform, kein Google-CDN-Aufruf)
   ========================================================= */

/* ---------- @font-face ---------- */

/* Caveat Brush 400 */
@font-face {
    font-family: 'Caveat Brush';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/caveat-brush-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Caveat Brush';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/caveat-brush-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kalam 400 */
@font-face {
    font-family: 'Kalam';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/kalam-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Kalam';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/kalam-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kalam 700 */
@font-face {
    font-family: 'Kalam';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/kalam-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Kalam';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/kalam-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Quicksand 400 / 500 / 600 */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/quicksand-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/quicksand-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/quicksand-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/quicksand-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/quicksand-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/quicksand-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #faf4e1;
    font-family: 'Kalam', 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
    color: #2b2b2b;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Top Navigation (sticky) ---------- */
.topnav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 2px solid #cc2e8a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.topnav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topnav__brand {
    font-family: 'Caveat Brush', 'Kalam', cursive;
    font-size: 1.5rem;
    color: #cc2e8a;
    text-decoration: none;
    transform: rotate(-2deg);
    display: inline-block;
    line-height: 1;
}

.topnav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.topnav__link {
    font-family: 'Kalam', 'Quicksand', cursive;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2b2b2b;
    text-decoration: none;
    padding: 0.3rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.topnav__link:hover,
.topnav__link:focus-visible {
    color: #cc2e8a;
    border-bottom-color: #cc2e8a;
    outline: none;
}

.topnav__link.is-active {
    color: #cc2e8a;
    border-bottom-color: #cc2e8a;
}

/* Hamburger */
.topnav__toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.topnav__toggle span {
    display: block;
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px;
    background: #cc2e8a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.topnav__toggle span:nth-child(1) { top: 10px; }
.topnav__toggle span:nth-child(2) { top: 17px; }
.topnav__toggle span:nth-child(3) { top: 24px; }

.topnav__toggle.is-open span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}
.topnav__toggle.is-open span:nth-child(2) { opacity: 0; }
.topnav__toggle.is-open span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}

@media (max-width: 900px) {
    .topnav__inner {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }
    .topnav__toggle {
        display: block !important;
    }
    /* Menü standardmäßig ausgeblendet */
    .topnav__menu {
        display: none;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.4rem 0 0;
    }
    /* Nur sichtbar, wenn Hamburger geklickt wurde */
    .topnav__menu.is-open {
        display: flex;
    }
    .topnav__link {
        display: block;
        padding: 0.8rem 0.5rem;
        border-bottom: 1px solid #f4d3e3;
        border-radius: 0;
    }
    .topnav__menu li:last-child .topnav__link {
        border-bottom: none;
    }
    .topnav__link:hover,
    .topnav__link.is-active {
        background: #fdeaf3;
        border-radius: 6px;
        border-bottom-color: #f4d3e3;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Layout ---------- */
.site {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 0;
}

/* ---------- Intro / Headline ---------- */
.intro {
    text-align: center;
    padding: 2rem 0 1rem;
}

.intro__title {
    font-family: 'Kalam', 'Quicksand', cursive;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    line-height: 1.3;
    color: #2b2b2b;
    max-width: 900px;
    margin: 0 auto;
}

.intro__highlight {
    font-family: 'Caveat Brush', 'Kalam', cursive;
    font-weight: 400;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    color: #e84393;
    display: inline-block;
    line-height: 1;
    transform: rotate(-3deg);
    padding: 0 0.2em;
    letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */
.hero {
    padding: 1.5rem 0;
}

.hero__stage {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---------- Story ---------- */
.story {
    padding: 3rem 1rem 2rem;
}

.story__inner {
    max-width: 640px;
    margin: 0 auto;
    font-family: 'Kalam', 'Quicksand', cursive;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    line-height: 1.7;
    text-align: center;
}

.story__inner p {
    margin-bottom: 1.4rem;
}

.story__inner em {
    color: #4a4a4a;
    font-style: italic;
}

/* ---------- Closing ---------- */
.closing {
    text-align: center;
    padding: 2rem 1rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.closing__title {
    font-family: 'Kalam', 'Quicksand', cursive;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.4;
    color: #2b2b2b;
    margin-bottom: 1rem;
}

.closing__highlight {
    font-family: 'Caveat Brush', 'Kalam', cursive;
    font-weight: 400;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    color: #e84393;
    display: inline-block;
    line-height: 1.1;
    transform: rotate(-2deg);
    padding: 0 0.2em;
    letter-spacing: 0.01em;
}

.closing__signature {
    font-family: 'Kalam', 'Quicksand', cursive;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: #2b2b2b;
    margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.footer {
    margin-top: 3rem;
    padding: 1.5rem 1rem 2rem;
    border-top: 4px solid #cc2e8a;
}

.footer__copy {
    color: #cc2e8a;
    font-weight: 700;
}

.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__text {
    font-family: 'Kalam', 'Quicksand', cursive;
    font-size: 1rem;
    color: #555;
    flex: 1 1 auto;
}

.footer__text a {
    color: #555;
    border-bottom: 1px dashed rgba(0,0,0,0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__text a:hover {
    color: #e84393;
    border-bottom-color: #e84393;
}

.footer__sep {
    margin: 0 0.4rem;
    color: #bbb;
}

.footer__instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.footer__instagram img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer__instagram:hover,
.footer__instagram:focus-visible {
    transform: scale(1.15) rotate(-4deg);
    outline: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .site {
        padding: 1rem 0.75rem 0;
    }

    .intro {
        padding: 1rem 0 0.5rem;
    }

    .footer__inner {
        justify-content: center;
        text-align: center;
    }

    .footer__text {
        flex: 1 1 100%;
        order: 2;
    }
}

@media (max-width: 480px) {
    .intro__title {
        font-size: 1.4rem;
    }

    .intro__highlight {
        font-size: 2.4rem;
    }

    .story__inner {
        font-size: 1rem;
    }

    .closing__title {
        font-size: 1.2rem;
    }

    .closing__highlight {
        font-size: 1.8rem;
    }

    .footer__sep {
        display: block;
        height: 0;
        overflow: hidden;
    }

    .footer__text {
        line-height: 1.8;
    }
}

/* ---------- Subpage (Impressum / Datenschutz) ---------- */
.site--subpage {
    padding: 2rem 1.25rem 0;
}

.subpage__header {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
    border-bottom: 4px solid #cc2e8a;
    margin-bottom: 2rem;
}

.subpage__title {
    font-family: 'Caveat Brush', 'Kalam', cursive;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: #cc2e8a;
    margin-bottom: 0.3rem;
    transform: rotate(-2deg);
    display: inline-block;
}

.subpage__sub {
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    color: #666;
}

.subpage__content {
    max-width: 760px;
    margin: 0 auto;
    font-family: 'Kalam', 'Quicksand', cursive;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2b2b2b;
}

.subpage__content section {
    margin-bottom: 2rem;
}

.subpage__content h2 {
    font-family: 'Kalam', cursive;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 700;
    color: #cc2e8a;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.subpage__content p {
    margin-bottom: 0.9rem;
}

.subpage__content a {
    color: #cc2e8a;
    border-bottom: 1px dashed rgba(204, 46, 138, 0.4);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.subpage__content a:hover,
.subpage__content a:focus-visible {
    color: #a8246e;
    border-bottom-color: #a8246e;
    outline: none;
}

.subpage__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.subpage__list li {
    padding-left: 1.4em;
    position: relative;
    margin-bottom: 0.5rem;
}

.subpage__list li::before {
    content: "\2766";
    position: absolute;
    left: 0;
    top: 0;
    color: #cc2e8a;
    font-size: 1.1em;
    line-height: 1.4;
}

.subpage__back {
    text-align: center;
    margin: 2.5rem 0 1rem;
    font-family: 'Kalam', cursive;
    font-size: 1.15rem;
}

.subpage__back a {
    color: #cc2e8a;
    border-bottom: 2px dashed rgba(204, 46, 138, 0.4);
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 720px;
    background: #ffffff;
    border: 2px solid #cc2e8a;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    padding: 1.1rem 1.25rem;
    z-index: 9999;
    font-family: 'Quicksand', sans-serif;
    animation: cookieIn 0.4s ease-out;
}

.cookie-banner[hidden] {
    display: none;
}

@keyframes cookieIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cookie-banner__text {
    flex: 1 1 320px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.cookie-banner__text strong {
    color: #cc2e8a;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-banner__btn {
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 2px solid #cc2e8a;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cookie-banner__btn--decline {
    background: transparent;
    color: #cc2e8a;
}

.cookie-banner__btn--decline:hover,
.cookie-banner__btn--decline:focus-visible {
    background: #fdeaf3;
    outline: none;
}

.cookie-banner__btn--accept {
    background: #cc2e8a;
    color: #ffffff;
}

.cookie-banner__btn--accept:hover,
.cookie-banner__btn--accept:focus-visible {
    background: #a8246e;
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 0.75rem;
        padding: 0.9rem 1rem;
    }
    .cookie-banner__inner {
        gap: 0.75rem;
    }
    .cookie-banner__actions {
        width: 100%;
        justify-content: stretch;
    }
    .cookie-banner__btn {
        flex: 1 1 auto;
    }
}

/* ---------- Blog Grid (Instagram-Style 3 Spalten) ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.blog-loading,
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-family: 'Kalam', cursive;
    padding: 2rem 0;
}

.blog-card {
    background: #fff;
    border: 2px solid #f4d3e3;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(204, 46, 138, 0.18);
    border-color: #cc2e8a;
    outline: none;
}

.blog-card__thumb {
    display: block;
    width: 100%;
    /* 1080 x 1350 = 4:5 (Instagram Hochformat) */
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #faf4e1;
    position: relative;
}

.blog-card.is-pinned {
    border-color: #cc2e8a;
    box-shadow: 0 4px 14px rgba(204, 46, 138, 0.12);
}

.blog-card__pin {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cc2e8a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
    line-height: 1;
}

.blog-card__pin svg {
    width: 16px;
    height: 16px;
    display: block;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    /* contain = nichts wird abgeschnitten, ggf. dezenter Rand in der Hintergrundfarbe */
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.04);
}

.blog-card__title {
    display: block;
    padding: 0.75rem 0.9rem 0.25rem;
    font-family: 'Kalam', cursive;
    font-weight: 700;
    color: #2b2b2b;
    font-size: 1.05rem;
    line-height: 1.3;
}

.blog-card__date {
    display: block;
    padding: 0 0.9rem 0.85rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Post Modal ---------- */
.post-modal[hidden] {
    display: none;
}

.post-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.post-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    cursor: pointer;
    animation: modalFade 0.25s ease-out;
}

.post-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    /* Dialog füllt verfügbare Höhe, scrollt aber nicht selbst */
    height: 100%;
    max-height: calc(100vh - 2rem);
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    z-index: 1;
    animation: modalPop 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes modalFade {
    from { opacity: 0; } to { opacity: 1; }
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.post-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #cc2e8a;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.post-modal__close:hover,
.post-modal__close:focus-visible {
    background: #fdeaf3;
    outline: none;
}

.post-modal__title {
    flex: 0 0 auto;
    font-family: 'Caveat Brush', 'Kalam', cursive;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #cc2e8a;
    margin-bottom: 0.4rem;
    padding-right: 2rem;
    line-height: 1.1;
}

.post-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
}

.post-modal__date {
    flex: 0 0 auto;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.post-modal__caption {
    flex: 0 0 auto;
    font-family: 'Kalam', cursive;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin: 0;
    font-style: italic;
}

.post-modal__text {
    flex: 0 1 auto;
    overflow-y: auto;
    font-family: 'Kalam', 'Quicksand', cursive;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2b2b2b;
    padding-right: 0.25rem;
}

.post-modal__text p {
    margin-bottom: 1rem;
}

/* Bei reinen Textposts darf der Text die ganze Höhe nutzen */
.post-modal__body > .post-modal__text:only-of-type,
.post-modal__body > .post-modal__date + .post-modal__text:last-child {
    flex: 1 1 auto;
}

.post-modal__single {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.post-modal__single img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.post-modal__hashtags {
    flex: 0 0 auto;
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #f4d3e3;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
}

.post-modal__hashtags:empty {
    display: none;
}

.hashtag {
    display: inline-block;
    color: #cc2e8a;
    background: #fdeaf3;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    margin-right: 0.25rem;
    font-weight: 500;
}

/* ---------- Karussell ---------- */
.carousel {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #faf4e1;
    display: flex;
    flex-direction: column;
}

.carousel__track {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__slide.is-active {
    opacity: 1;
    z-index: 2;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #faf4e1;
}

.carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #cc2e8a;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__nav:hover,
.carousel__nav:focus-visible {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    outline: none;
}

.carousel__nav--prev { left: 0.5rem; }
.carousel__nav--next { right: 0.5rem; }

.carousel__dots {
    position: absolute;
    bottom: 0.6rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 3;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel__dot.is-active {
    background: #cc2e8a;
    transform: scale(1.3);
}

body.no-scroll {
    overflow: hidden;
}

/* ---------- Modal: kleine Bildschirme ---------- */
@media (max-width: 768px) {
    .post-modal {
        padding: 0.5rem;
    }
    .post-modal__dialog {
        padding: 1.1rem 1rem 0.85rem;
        max-height: calc(100vh - 1rem);
        border-radius: 14px;
    }
    .post-modal__title {
        font-size: 1.3rem;
    }
    .carousel__nav {
        width: 36px;
        height: 36px;
    }
    .carousel__nav--prev { left: 0.3rem; }
    .carousel__nav--next { right: 0.3rem; }
}

@media (max-width: 480px) {
    .post-modal {
        padding: 0;
    }
    .post-modal__dialog {
        border-radius: 0;
        max-height: 100vh;
        max-height: 100dvh; /* dynamische Höhe auf iOS */
        padding: 1rem 0.85rem 0.75rem;
    }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
