:root {
    --pink: #e54394;
    --rose: #f7bfd8;
    --orange: #f0ad32;
    --yellow: #e9c96a;
    --mint: #7ac7af;
    --blue: #6888c7;
    --bg: #fff9fc;
    --text: #2f2a2d;
    --white: #ffffff;
    --border: #f3cfe0;
    --shadow: 0 18px 40px rgba(173, 76, 119, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

main {
    display: block;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 249, 252, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-brand img {
    width: 54px;
    height: auto;
    flex-shrink: 0;
}

.site-title {
    font-family: "Montez", cursive;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--pink);
    white-space: nowrap;
}

/* Frontend Navigation */

.site-nav {
    margin-left: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-list > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-list a,
.nav-dropdown-toggle {
    border: 0;
    background: none;
    font: inherit;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    line-height: 1.2;
}

.nav-dropdown-toggle {
    appearance: none;
}

.caret {
    font-size: 11px;
    line-height: 1;
}

.nav-dropdown-menu {
    list-style: none;
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 250px;
    max-width: 320px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    z-index: 1001;
}

.nav-dropdown-menu li {
    width: 100%;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    white-space: normal;
}

.nav-dropdown-menu a:hover {
    background: #fff4fa;
}

.nav-item-dropdown.open .nav-dropdown-menu {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .nav-item-dropdown:hover .nav-dropdown-menu {
        display: block;
    }
}

.mobile-nav-toggle {
    display: none;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--pink);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

/* Admin Header */

.admin-top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff6fb;
    color: var(--pink);
    font-weight: 700;
}

.admin-area .site-nav,
.admin-area .mobile-nav-toggle {
    display: none !important;
}

/* Flash */

.flash {
    width: min(1200px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
}

.flash-success {
    background: #f3fff8;
    border-color: #b9e8cb;
}

.flash-error {
    background: #fff4f7;
    border-color: #efbfd0;
}

/* Startseite Hero */

.hero-section {
    padding: 42px 0 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 42px;
    align-items: center;
    background: linear-gradient(180deg, #fffafd 0%, #fff7fb 100%);
    border: 1px solid var(--border);
    border-radius: 38px;
    box-shadow: var(--shadow);
    padding: 36px 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff0f7;
    color: var(--pink);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.hero-grid h1 {
    font-family: "Montez", cursive;
    font-size: clamp(3.2rem, 6vw, 5.6rem);
    line-height: 0.95;
    color: var(--pink);
    margin-bottom: 18px;
}

.lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text);
    max-width: 760px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.badge-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid #efc28a;
    background: #fff6ea;
    color: #6b4a11;
    font-weight: 700;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 34px;
    min-height: 460px;
    overflow: hidden;
}

.hero-card img {
    width: min(100%, 420px);
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Allgemeine Sektionen */

.section-block {
    padding: 56px 0;
}

.section-block.alt-bg {
    background: linear-gradient(180deg, #fffafd 0%, #fff5fa 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-block h2 {
    font-family: "Montez", cursive;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1;
    color: var(--pink);
    margin-bottom: 10px;
}

.section-intro {
    max-width: 800px;
    margin-bottom: 24px;
    color: #5d5558;
}

/* Kategorien Cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(173, 76, 119, 0.16);
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #fff7fb;
}

.card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d7984;
    padding: 24px;
}

.card-body {
    padding: 18px 18px 22px;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card-body p {
    color: #5b5558;
    margin-bottom: 16px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff;
    font-weight: 700;
}

/* Termine */

.event-list {
    display: grid;
    gap: 18px;
}

.event-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.event-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff0f7;
    color: var(--pink);
    font-weight: 800;
}

.event-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.event-card p + p {
    margin-top: 8px;
}

.empty-box {
    padding: 20px;
    border: 1px dashed var(--border);
    border-radius: 20px;
    background: #fff;
    color: #766b70;
}

/* Kategorie Detail */

.category-container {
    width: min(980px, calc(100% - 32px));
    margin: 36px auto 56px;
}

.category-card {
    background: #fffdfd;
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 28px 22px 30px;
    box-shadow: var(--shadow);
}

.category-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pink);
    font-weight: 700;
    margin-bottom: 18px;
}

.category-title {
    font-family: "Montez", cursive;
    color: var(--pink);
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.95;
    text-align: left;
    margin-bottom: 18px;
}

.category-description {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

/* Slider */

.slider {
    margin-top: 18px;
    position: relative;
}

[data-slide] {
    display: none;
}

[data-slide].active {
    display: block;
}

.slider-stage,
.slider-track {
    display: flex;
    justify-content: center;
}

.slider img,
.slider-stage img,
.slider-track img {
    width: min(100%, 430px);
    max-height: 70vh;
    object-fit: cover;
    border-radius: 28px;
    cursor: pointer;
    margin: 0 auto;
}

.slider-nav {
    position: absolute;
    inset: 50% 0 auto 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-nav button {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    color: var(--pink);
    width: 64px;
    height: 64px;
    border-radius: 999px;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(174, 76, 119, 0.12);
    cursor: pointer;
}

/* Footer */

.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 34px 20px;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.footer-subtitle {
    color: #555;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 18px;
}

.footer-admin {
    margin-top: 10px;
}

.footer-admin a {
    font-size: 0.92rem;
    opacity: 0.55;
}

/* Admin */

.admin-box,
.card-box,
.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.admin-box {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 44px;
    padding: 24px;
}

.two-col-admin {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.admin-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
}

.admin-form button,
.button,
.button-secondary,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 700;
    cursor: pointer;
}

.button,
.admin-form button {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff;
    border: 0;
}

.button-secondary {
    background: #fff;
    color: var(--pink);
}

.button-danger {
    background: #fff2f7;
    color: #c73f82;
}

/* Lightbox */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(26, 14, 20, 0.88);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(100%, 980px);
    max-height: 90vh;
    border-radius: 24px;
}

/* Responsive */

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .site-brand {
        min-width: 0;
        gap: 10px;
    }

    .site-brand img {
        width: 48px;
    }

    .site-title {
        font-size: 1.75rem;
        line-height: 1;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

     .frontend-area .site-nav {
        display: none;
        width: 100%;
        margin-top: 12px;
        overflow: visible;
    }

    .frontend-area .site-nav.is-open {
        display: block;
    }

    .frontend-area .nav-list {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: stretch;
    }

    .frontend-area .nav-list li {
        width: 100%;
    }

    .frontend-area .nav-item-dropdown {
        width: 100%;
    }

    .frontend-area .nav-list a,
    .frontend-area .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 16px 18px;
        border-radius: 20px;
        border: 1px solid var(--border);
        background: #fff;
        font-size: 1.08rem;
    }

    .frontend-area .nav-dropdown-menu {
        display: none;
        position: static;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 8px;
        padding: 8px 0;
        border-radius: 20px;
        box-shadow: none;
        overflow: hidden;
    }

    .frontend-area .nav-item-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .frontend-area .nav-dropdown-menu li {
        width: 100%;
    }

    .frontend-area .nav-dropdown-menu a {
        display: block;
        width: 100%;
        white-space: normal;
        padding: 14px 18px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .hero-section {
        padding: 24px 0 38px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 18px;
        border-radius: 28px;
    }

    .hero-grid h1 {
        font-size: clamp(2.7rem, 15vw, 4.2rem);
    }

    .lead {
        font-size: 1rem;
    }

    .hero-card {
        min-height: auto;
        padding: 18px;
        border-radius: 26px;
    }

    .hero-card img {
        width: min(100%, 320px);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .category-container {
        width: calc(100% - 24px);
        margin: 22px auto 40px;
    }

    .category-card {
        border-radius: 28px;
        padding: 22px 16px 24px;
    }

    .category-title {
        font-size: clamp(2.7rem, 14vw, 4.4rem);
        margin-bottom: 14px;
    }

    .slider img,
    .slider-stage img,
    .slider-track img {
        width: min(100%, 380px);
    }

    .slider-nav button {
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
    }

    .two-col-admin {
        grid-template-columns: 1fr;
    }

    .admin-top-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 8px;
    }

    .admin-top-nav a {
        padding: 8px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 560px) {
    .site-title {
        font-size: 1.48rem;
    }

    .hero-grid {
        padding: 18px 14px;
    }

    .badge-row {
        gap: 10px;
    }

    .badge-row span {
        width: 100%;
    }

    .slider-nav button {
        width: 48px;
        height: 48px;
    }

    .footer-links {
        gap: 14px;
    }
}
/* =====================
   ADMIN FEINSCHLIFF
===================== */

body.admin-area {
    background:
        linear-gradient(180deg, #fff9fc 0%, #fff5fa 100%);
}

/* Oberer Admin-Container */
.admin-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: 0 18px 42px rgba(173, 76, 119, 0.10);
    padding: 28px;
}

/* Unterkarten klarer absetzen */
.card-box,
.admin-card {
    position: relative;
    background: #fffdfd;
    border: 1px solid #efcadb;
    border-radius: 28px;
    box-shadow: 0 10px 24px rgba(173, 76, 119, 0.06);
    padding: 22px;
}

.card-box::before,
.admin-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

/* Mehr Abstand im 2-Spalten-Layout */
.two-col-admin {
    align-items: start;
    gap: 26px;
}

/* Überschriften klarer */
.admin-box h1 {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 10px;
}

.card-box h2,
.admin-card h2 {
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--text);
}

/* Kopfzeilen mit sauberem Trenner */
.admin-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f4dbe6;
}

/* Formulare angenehmer */
.admin-form {
    gap: 16px;
}

.admin-form label {
    font-weight: 700;
    color: #473d41;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 18px;
    border: 1px solid #efcadb;
    background: #fff;
    font: inherit;
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(229, 67, 148, 0.08);
}

/* Checkbox-Zeile */
.inline-check {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 600 !important;
}

.inline-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pink);
}

/* Buttons deutlicher unterscheiden */
.button,
.admin-form button,
button[type="submit"]:not(.button-secondary):not(.button-danger) {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff;
    border: 0;
    box-shadow: 0 10px 22px rgba(229, 67, 148, 0.18);
}

.button-secondary {
    background: #fff;
    color: var(--pink);
    border: 1px solid #efcadb;
}

.button-danger {
    background: #fff1f6;
    color: #c73f82;
    border: 1px solid #efcadb;
}

.button,
.button-secondary,
.button-danger,
.admin-form button {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.button-secondary:hover,
.button-danger:hover,
.admin-form button:hover {
    transform: translateY(-1px);
}

/* Tabellen im Admin deutlich lesbarer */
body.admin-area table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #f1d5e1;
    border-radius: 18px;
    background: #fff;
}

body.admin-area thead th {
    text-align: left;
    font-size: 0.96rem;
    font-weight: 800;
    color: #4b4045;
    background: #fff3f8;
    padding: 14px 14px;
    border-bottom: 1px solid #f1d5e1;
}

body.admin-area tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f8e6ee;
    vertical-align: top;
}

body.admin-area tbody tr:nth-child(even) td {
    background: #fffdfd;
}

body.admin-area tbody tr:last-child td {
    border-bottom: 0;
}

/* Links/Aktionen in Tabellen als Buttons-artig */
body.admin-area table a {
    color: var(--pink);
    font-weight: 700;
}

body.admin-area table a:hover {
    text-decoration: underline;
}

/* Dashboard-Zahlen hervorheben */
body.admin-area .admin-box > p strong,
body.admin-area .admin-box > div strong {
    color: var(--pink);
    font-size: 1.1em;
}

/* Bildkarten im Kategorie-Editor schöner */
.image-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.image-admin-card {
    background: #fff;
    border: 1px solid #efd2de;
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(173, 76, 119, 0.06);
    display: grid;
    gap: 12px;
}

.image-admin-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    background: #faf6f8;
}

.image-admin-card strong {
    display: block;
    margin-bottom: 4px;
}

.image-admin-card .button-danger,
.image-admin-card button.button-danger,
.image-admin-card button.small {
    width: 100%;
}

/* Leere Boxen */
.empty-box {
    padding: 18px;
    border: 1px dashed #efcadb;
    border-radius: 20px;
    background: #fff;
    color: #7d6f75;
}

/* Kleiner Hinweistext */
.form-hint,
small,
.help-text {
    display: block;
    font-size: 0.9rem;
    color: #766a70;
    margin-top: -4px;
}

/* Mobile Admin */
@media (max-width: 900px) {
    .admin-box {
        width: calc(100% - 24px);
        margin: 20px auto 30px;
        padding: 18px;
        border-radius: 24px;
    }

    .card-box,
    .admin-card {
        padding: 18px;
        border-radius: 22px;
    }

    .admin-headline {
        flex-direction: column;
        align-items: flex-start;
    }

    body.admin-area table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
/* =====================
   DASHBOARD
===================== */

.admin-subtitle {
    color: #6c6066;
    margin-top: 6px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 28px;
}

.stat-card {
    background: linear-gradient(180deg, #fff 0%, #fff8fc 100%);
    border: 1px solid #efcadb;
    border-radius: 24px;
    box-shadow: 0 10px 24px rgba(173, 76, 119, 0.08);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--pink);
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.admin-actions-box {
    margin-top: 8px;
}

.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.admin-action-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 128px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid #efcadb;
    background: #fff;
    box-shadow: 0 10px 24px rgba(173, 76, 119, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-action-card strong {
    font-size: 1.05rem;
    color: var(--pink);
}

.admin-action-card span {
    color: #65595f;
    line-height: 1.45;
}

.admin-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(173, 76, 119, 0.12);
    border-color: #e8b7ce;
}

.danger-card strong {
    color: #c73f82;
}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .stats-grid,
    .admin-action-grid {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .admin-action-card {
        border-radius: 20px;
    }
}
/* =====================
   CATEGORY PAGE FIX
===================== */

.page-box.category-page-box {
    width: min(980px, calc(100% - 32px));
    margin: 36px auto 56px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.category-page-box .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pink);
    font-weight: 700;
    margin-bottom: 14px;
}

.category-page-box h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1;
    margin-bottom: 14px;
    color: var(--text);
}

.category-lead {
    margin-bottom: 22px;
    max-width: 760px;
}

.category-page-box .slider {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.category-page-box .slides {
    position: relative;
    min-width: 0;
}

.category-page-box .slide {
    display: none;
    text-align: center;
}

.category-page-box .slide.active {
    display: block;
}

.category-page-box .lightbox-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.category-page-box .lightbox-trigger img,
.category-page-box .slide img {
    width: min(100%, 430px);
    max-height: 72vh;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(173, 76, 119, 0.14);
    margin: 0 auto;
}

.category-page-box .caption {
    margin-top: 12px;
    color: #6f6469;
    font-size: 0.98rem;
}

.category-page-box .slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--pink);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(173, 76, 119, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.category-page-box .slider-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(173, 76, 119, 0.16);
    background: #fff;
}

.category-page-box .slider-btn.prev {
    justify-self: start;
}

.category-page-box .slider-btn.next {
    justify-self: end;
}

/* Lightbox passend dazu */
.lightbox[hidden] {
    display: none !important;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(28, 15, 23, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.lightbox-inner {
    position: relative;
    max-width: min(100%, 980px);
    text-align: center;
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.lightbox-caption {
    color: #fff;
    margin-top: 14px;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

/* Mobile */
@media (max-width: 900px) {
    .page-box.category-page-box {
        width: calc(100% - 24px);
        margin: 24px auto 40px;
    }

    .category-page-box .slider {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-page-box .slides {
        order: 1;
    }

    .category-page-box .slider-btn {
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
    }

    .category-page-box .slider-btn.prev,
    .category-page-box .slider-btn.next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }

    .category-page-box .slider-btn.prev {
        left: 6px;
    }

    .category-page-box .slider-btn.next {
        right: 6px;
    }

    .category-page-box .lightbox-trigger img,
    .category-page-box .slide img {
        width: min(100%, 100%);
        max-height: 68vh;
    }
}

@media (max-width: 560px) {
    .category-page-box .slider-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .category-page-box .back-link {
        margin-bottom: 10px;
    }

    .category-page-box h1 {
        margin-bottom: 10px;
    }
}
/* =====================
   ADMIN RESPONSIVE FIX
===================== */

html, body {
    overflow-x: hidden;
}

body.admin-area {
    -webkit-text-size-adjust: 100%;
}

body.admin-area .admin-box,
body.admin-area .card-box,
body.admin-area .admin-card,
body.admin-area .container {
    max-width: 100%;
    min-width: 0;
}

body.admin-area .two-col-admin {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

body.admin-area .admin-form,
body.admin-area form {
    min-width: 0;
}

body.admin-area .admin-form label {
    min-width: 0;
}

body.admin-area .admin-form input,
body.admin-area .admin-form textarea,
body.admin-area .admin-form select,
body.admin-area input,
body.admin-area textarea,
body.admin-area select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px; /* verhindert Mobile-Zoom auf vielen Geräten */
}

body.admin-area textarea {
    resize: vertical;
}

body.admin-area .admin-headline {
    flex-wrap: wrap;
}

body.admin-area table {
    width: 100%;
    table-layout: auto;
}

body.admin-area .image-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

body.admin-area .image-admin-card {
    min-width: 0;
}

body.admin-area .image-admin-card img {
    width: 100%;
    height: auto;
}

@media (max-width: 1000px) {
    body.admin-area .two-col-admin {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body.admin-area .admin-box {
        width: calc(100% - 24px);
        margin: 18px auto 28px;
        padding: 18px;
        border-radius: 22px;
    }

    body.admin-area .card-box,
    body.admin-area .admin-card {
        padding: 16px;
        border-radius: 20px;
    }

    body.admin-area .admin-top-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 8px;
    }

    body.admin-area .admin-top-nav a {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    body.admin-area .admin-headline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    body.admin-area .admin-form input,
    body.admin-area .admin-form textarea,
    body.admin-area .admin-form select {
        padding: 12px 14px;
    }

    /* Tabellen mobil scrollbar statt Seite zu sprengen */
    body.admin-area .table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.admin-area table {
        min-width: 640px;
    }
}

@media (max-width: 640px) {
    body.admin-area .admin-box {
        width: calc(100% - 16px);
        padding: 14px;
    }

    body.admin-area .card-box,
    body.admin-area .admin-card {
        padding: 14px;
    }

    body.admin-area .image-admin-grid {
        grid-template-columns: 1fr;
    }

    body.admin-area .button,
    body.admin-area .button-secondary,
    body.admin-area .button-danger,
    body.admin-area button[type="submit"] {
        width: 100%;
    }
}
/* =====================
   CATEGORIES / ADMIN MOBILE FIX
===================== */

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 520px;
    background: #fff;
    border: 1px solid #f1d5e1;
    border-radius: 18px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.admin-table thead th {
    background: #fff3f8;
    font-weight: 800;
    color: #4b4045;
    border-bottom: 1px solid #f1d5e1;
}

.admin-table tbody td {
    border-bottom: 1px solid #f8e6ee;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:nth-child(even) td {
    background: #fffdfd;
}

.admin-table a {
    color: var(--pink);
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .two-col-admin {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-box {
        width: calc(100% - 24px);
        margin: 18px auto 28px;
        padding: 18px;
        border-radius: 22px;
    }

    .card-box {
        padding: 18px;
        border-radius: 22px;
    }

    .admin-headline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-form input,
    .admin-form textarea,
    .admin-form select {
        font-size: 16px;
    }

    .admin-table {
        min-width: 560px;
    }
}

@media (max-width: 640px) {
    .admin-box {
        width: calc(100% - 16px);
        padding: 14px;
    }

    .card-box {
        padding: 14px;
    }

    .button-secondary,
    .admin-form button,
    .button,
    .button-danger {
        width: 100%;
    }

    .admin-table {
        min-width: 500px;
    }
}
