/* CMS Design-Feinschliff V9 */

/* Aktive Navigation */
.leftnav a.active,
.leftnav a[aria-current="page"] {
    background: rgba(255,255,255,.26) !important;
    border-color: rgba(255,255,255,.38) !important;
    box-shadow: inset 4px 0 0 #ffffff;
}

.leftnav a {
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.leftnav a:hover {
    transform: translateX(3px);
}

/* Header etwas feiner */
.header h1 {
    letter-spacing: .2px !important;
}

.header p {
    opacity: .92 !important;
}

/* Inhaltskarten feiner */
.card,
.widget,
.gallery-page {
    border-radius: 24px !important;
    box-shadow: 0 14px 34px rgba(47,94,158,.11) !important;
}

.card h2,
.widget h3,
.gallery-page h2 {
    font-size: 26px;
}

/* Galerie professioneller */
.public-gallery {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 24px !important;
}

.public-gallery a {
    border-radius: 22px !important;
    overflow: hidden;
    position: relative;
}

.public-gallery img {
    height: 215px !important;
    transition: transform .25s ease, filter .25s ease;
}

.public-gallery a:hover img {
    transform: scale(1.045);
    filter: brightness(1.04);
}

.public-gallery span {
    font-size: 16px;
    padding: 15px 16px !important;
    background: #ffffff;
}

/* Kontaktbox moderner */
.contact-box {
    background: linear-gradient(180deg, #ffffff, #f5f9ff) !important;
    border-left: 5px solid #4a90e2 !important;
}

.contact-box h3::before {
    content: "☎ ";
}

.contact-box p {
    margin: 10px 0;
}

.contact-box a {
    color: #2f5e9e;
    font-weight: bold;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Widgets insgesamt etwas luftiger */
.widget {
    line-height: 1.55;
}

/* Buttons feiner */
.button,
button {
    transition: transform .16s ease, box-shadow .16s ease;
    box-shadow: 0 8px 18px rgba(74,144,226,.22);
}

.button:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(74,144,226,.28);
}

/* Admin kleine Verbesserung */
.admin-sidebar a {
    transition: background .18s ease, transform .18s ease;
}

.admin-sidebar a:hover {
    transform: translateX(3px);
}

.image-card,
.gallery-choice,
.gallery-current-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.image-card:hover,
.gallery-choice:hover,
.gallery-current-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(47,94,158,.16);
}
