/* ============================================================
   Hundeschule – Haupt-Stylesheet
   ============================================================ */

/* --- Google Fonts Import (lokal via @import in Layout) --- */

:root {
    --color-primary:      #5B8A3F;
    --color-primary-dark: #4a7033;
    --color-primary-light:#7aad55;
    --color-secondary:    #F5F0E8;
    --color-accent:       #D4873A;
    --color-accent-dark:  #b8702e;
    --color-text:         #2C2C2C;
    --color-text-muted:   #6B7280;
    --color-bg:           #FAFAF7;
    --color-bg-card:      #FFFFFF;
    --color-border:       #E5E0D8;
    --color-danger:       #C0392B;
    --color-success:      #27AE60;
    --color-warning:      #E8A020;
    --color-info:         #2980B9;

    --font-heading: 'Nunito', 'Segoe UI', sans-serif;
    --font-body:    'Open Sans', 'Segoe UI', sans-serif;

    --radius:       10px;
    --radius-sm:    6px;
    --radius-lg:    16px;
    --shadow:       0 2px 12px rgba(0,0,0,.08);
    --shadow-md:    0 4px 24px rgba(0,0,0,.12);
    --transition:   all .2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; }

main { flex: 1; }

/* --- Container --- */
.container     { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm  { max-width: 680px;  margin: 0 auto; padding: 0 1.5rem; }
.container-lg  { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Logo-Bar (über Navigation) --- */
.logo-bar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    padding: .75rem 1.5rem .875rem;
}
.logo-bar a { display: inline-block; text-decoration: none; }
.logo-bar img { height: 330px; width: auto; display: block; }
.logo-bar-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* --- Breadcrumb --- */
.breadcrumb-bar {
    background: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 1.35rem 0 .9rem;
}
.breadcrumb-bar .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .875rem;
    line-height: 1;
    color: var(--color-text-muted);
}
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin-right: .25rem;
    color: var(--color-text-muted);
    opacity: .5;
}
.breadcrumb-bar .breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
}
.breadcrumb-bar .breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-bar .breadcrumb-item.active { color: var(--color-text); font-weight: 600; }

/* --- Navigation --- */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1.5rem;
    max-width: 1160px;
    margin: 0 auto;
    gap: 1rem;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}
.navbar-brand img { height: 44px; width: auto; border-radius: var(--radius-sm); }
.navbar-brand:hover { color: var(--color-primary-dark); }

.navbar-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
}
.navbar-nav a {
    display: block;
    padding: .45rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}
.navbar-nav a:hover,
.navbar-nav a.active { background: var(--color-secondary); color: var(--color-primary); }

.navbar-actions { display: flex; align-items: center; gap: .5rem; }

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
}
.navbar-toggle svg { display: block; }

@media (max-width: 768px) {
    .logo-bar { padding: .9rem 1rem; }
    .logo-bar img { height: 56px; }
    .navbar-toggle { display: block; }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 1.5rem;
        box-shadow: var(--shadow);
    }
    .navbar-menu.open { display: block; }
    .navbar-nav { flex-direction: column; align-items: flex-start; }
}

/* --- CMS Akkordeon --- */
.cms-accordion { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin: 1.5rem 0; }
.cms-accordion-item + .cms-accordion-item { border-top: 1px solid var(--color-border); }
.cms-accordion-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 1rem 1.25rem;
    background: none; border: none; text-align: left;
    font-size: 1rem; font-weight: 600; font-family: var(--font-body);
    color: var(--color-text); cursor: pointer; gap: 1rem;
    transition: background var(--transition);
}
.cms-accordion-trigger:hover { background: var(--color-secondary); }
.cms-accordion-arrow { flex-shrink: 0; transition: transform .25s ease; }
.cms-accordion-trigger[aria-expanded="true"] .cms-accordion-arrow { transform: rotate(180deg); }
.cms-accordion-content {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
}
.cms-accordion-content.open { grid-template-rows: 1fr; }
.cms-accordion-content > div { overflow: hidden; }
.cms-accordion-body { padding: 0 1.25rem 1.25rem; line-height: 1.75; }

/* --- Dropdown --- */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    z-index: 9999;
    overflow: hidden;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }
.navbar-nav .dropdown-menu { left: 0; right: auto; }
.dropdown-menu a, .dropdown-menu button {
    display: block;
    width: 100%;
    padding: .65rem 1rem;
    font-size: .9rem;
    color: var(--color-text);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.dropdown-menu a:hover, .dropdown-menu button:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}
.dropdown-divider { border-top: 1px solid var(--color-border); margin: .25rem 0; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}
.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-secondary:hover:not(:disabled) {
    background: #ede8de;
    color: var(--color-text);
}
.btn-accent {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-accent:hover:not(:disabled) {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
}
.btn-danger {
    background: var(--color-danger);
    color: #fff;
    border-color: var(--color-danger);
}
.btn-danger:hover:not(:disabled) { background: #a93226; border-color: #a93226; color: #fff; }
.btn-warning { background: #d97706; color: #fff; border-color: #d97706; }
.btn-warning:hover:not(:disabled) { background: #b45309; border-color: #b45309; color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover:not(:disabled) {
    background: var(--color-primary);
    color: #fff;
}
.btn-sm { padding: .35rem .85rem; font-size: .85rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* --- Cards --- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
}
.card-header h2, .card-header h3, .card-header h4 { margin: 0; }
.card-body { padding: 1.25rem; }
.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-secondary);
}

/* Kurs/Gruppe/Event-Karten (öffentlich) */
.offer-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.wysiwyg-content ul,
.wysiwyg-content ol,
.prose ul,
.prose ol { padding-left: 1.5rem; margin-bottom: .75rem; }
.wysiwyg-content ul, .prose ul { list-style: disc; }
.wysiwyg-content ol, .prose ol { list-style: decimal; }
.wysiwyg-content li,
.prose li { margin-bottom: .25rem; }

/* ── Angebotskarussell ───────────────────────────────────────── */
.carousel-outer {
    overflow: hidden;
    padding: .5rem 0 1.5rem;
}
.carousel-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: carousel-scroll 40s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes carousel-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.carousel-card {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.carousel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.carousel-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-secondary);
}
.carousel-card-img img { width: 100%; height: 100%; object-fit: cover; }
.carousel-card-body { padding: .75rem; }
.carousel-card-title { font-weight: 600; font-size: .95rem; line-height: 1.35; margin-bottom: .25rem; }
.carousel-card-sub { font-size: .85rem; color: var(--color-text-muted); }

.offer-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-secondary);
}
.offer-card-image img { width: 100%; height: 100%; object-fit: cover; }
.offer-card-image .placeholder-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted);
    font-size: 3rem;
}
.offer-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.offer-card-meta {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-bottom: .75rem;
}
.offer-card-title { font-size: 1.15rem; margin-bottom: .5rem; }
.offer-card-desc { color: var(--color-text-muted); font-size: .9rem; flex: 1; margin-bottom: 1rem; }
.offer-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: .75rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}
.offer-price { font-size: 1.2rem; font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); }

/* --- Grid --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--color-text);
}
.form-control {
    display: block;
    width: 100%;
    padding: .6rem .9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--color-text);
    background: #fff;
    transition: var(--transition);
    line-height: 1.5;
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91,138,63,.15);
}
.form-control::placeholder { color: #aaa; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.form-hint { font-size: .82rem; color: var(--color-text-muted); margin-top: .3rem; }
.form-error { font-size: .82rem; color: var(--color-danger); margin-top: .3rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 1rem; height: 1rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.badge-primary   { background: #e8f3de; color: var(--color-primary-dark); }
.badge-success   { background: #d5f0e2; color: #1d7a45; }
.badge-warning   { background: #fef3cd; color: #9a6c00; }
.badge-danger    { background: #fde8e6; color: #991b1b; }
.badge-secondary { background: var(--color-secondary); color: var(--color-text-muted); }
.badge-info      { background: #dbeafe; color: #1e40af; }
.badge-accent    { background: #fef0e4; color: #9c5a1a; }

/* --- Tabs --- */
.tab-nav { display: flex; border-bottom: 2px solid var(--color-border); margin-bottom: 1.25rem; gap: 0; }
.tab-btn { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: .55rem 1.1rem; font-family: var(--font-heading); font-size: .88rem; font-weight: 700; color: var(--color-text-muted); cursor: pointer; transition: var(--transition); white-space: nowrap; }
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Alerts --- */
.alert {
    padding: .9rem 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
    margin-bottom: 1.25rem;
    font-size: .95rem;
}
.alert-success { background: #d5f0e2; border-color: var(--color-success); color: #1d7a45; }
.alert-danger  { background: #fde8e6; border-color: var(--color-danger);  color: #991b1b; }
.alert-warning { background: #fef3cd; border-color: var(--color-warning); color: #9a6c00; }
.alert-info    { background: #dbeafe; border-color: var(--color-info);    color: #1e40af; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
.table th, .table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}
.table th {
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-muted);
    background: var(--color-secondary);
    white-space: nowrap;
}
.table tbody tr:hover { background: #fafaf5; }
.table tbody tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: .4rem; align-items: center; }

/* --- Page Header --- */
.page-header {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.page-header-inner {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #ede8de 100%);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2.5rem;
}

/* --- Hero --- */
.hero {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #ede8de 60%, #e0d8ca 100%);
    text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--color-primary); }
.hero p  { font-size: 1.2rem; color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) { .hero h1 { font-size: 2rem; } }

/* --- Section --- */
.section { padding: 4rem 0; }
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p  { color: var(--color-text-muted); }

/* --- Sidebar-Layout (Portal/Admin) --- */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 65px);
    align-items: start;
}
.sidebar {
    background: #fff;
    border-right: 1px solid var(--color-border);
    min-height: calc(100vh - 65px);
    position: sticky;
    top: 65px;
    padding: 1.5rem 1rem;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li + li { margin-top: .15rem; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .93rem;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--color-secondary);
    color: var(--color-primary);
}
.sidebar-nav a svg { flex-shrink: 0; opacity: .7; }

/* Aufklappbares Systemseiten-Menü */
.sidebar-details { padding: 0; }
.sidebar-details summary { list-style: none; }
.sidebar-details summary::-webkit-details-marker { display: none; }
.sidebar-summary {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .93rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.sidebar-summary:hover,
.sidebar-summary.active { background: var(--color-secondary); color: var(--color-primary); }
.sidebar-summary svg:first-child { flex-shrink: 0; opacity: .7; }
.sidebar-summary span { flex: 1; }
.sidebar-chevron { flex-shrink: 0; opacity: .5; transition: transform .2s; }
.sidebar-details[open] .sidebar-chevron { transform: rotate(180deg); }

.sidebar-section {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-text-muted);
    padding: 1rem .85rem .35rem;
}
.main-content { padding: 2rem 1.5rem; }

@media (max-width: 900px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

/* --- Stat-Karten (Dashboard) --- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-icon.green { background: #e8f3de; color: var(--color-primary); }
.stat-icon.amber { background: #fef0e4; color: var(--color-accent); }
.stat-icon.blue  { background: #dbeafe; color: var(--color-info); }
.stat-icon.red   { background: #fde8e6; color: var(--color-danger); }
.stat-value { font-size: 1.75rem; font-weight: 800; font-family: var(--font-heading); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--color-text-muted); margin-top: .25rem; }

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.modal-header h3 { margin: 0; }
.modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--color-text-muted); font-size: 1.5rem; line-height: 1; padding: .2rem;
    transition: var(--transition);
}
.modal-close:hover { color: var(--color-text); }
.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex; gap: .75rem; justify-content: flex-end;
}

/* --- Pagination --- */
.pagination { display: flex; gap: .3rem; list-style: none; flex-wrap: wrap; }
.page-item .page-link {
    display: block; padding: .45rem .85rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .9rem; font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}
.page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.page-item .page-link:hover:not(.active) {
    background: var(--color-secondary);
}

/* --- Footer --- */
.footer {
    background: var(--color-text);
    color: rgba(255,255,255,.75);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer h4 { color: #fff; margin-bottom: .75rem; font-size: 1rem; }
.footer a { color: rgba(255,255,255,.65); font-size: .9rem; display: block; margin-bottom: .35rem; }
.footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 1.25rem;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}

/* --- Mehrfachkarte --- */
.punch-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.punch-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.punch-card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.punch-card-dots { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.punch-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem;
    font-weight: 700;
}
.punch-dot.used { background: rgba(255,255,255,.85); border-color: transparent; color: var(--color-primary-dark); }
.punch-dot.remaining { background: transparent; color: rgba(255,255,255,.6); }
.punch-card-info { font-size: .85rem; opacity: .8; }
.punch-card-expired { opacity: .6; filter: grayscale(50%); }

/* --- Utils --- */
.hidden     { display: none !important; }
.d-flex     { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm     { gap: .5rem; }
.gap-md     { gap: 1rem; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: .5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.text-muted   { color: var(--color-text-muted); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .78rem; }
.fw-bold      { font-weight: 700; }
.w-100        { width: 100%; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.empty-state h3 { color: var(--color-text); margin-bottom: .5rem; }

/* --- Admin spezifisch --- */
.admin-topbar {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    padding: .35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-topbar a { color: rgba(255,255,255,.7); }
.admin-topbar a:hover { color: #fff; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .87rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-border); }

/* --- Kalender / Termine --- */
.session-list { display: flex; flex-direction: column; gap: .75rem; }
.session-item {
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.session-date {
    text-align: center;
    min-width: 52px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: .4rem .5rem;
    line-height: 1.1;
}
.session-date-weekday { font-size: .68rem; text-transform: uppercase; opacity: .75; letter-spacing: .03em; }
.session-date-day   { font-size: 1.25rem; font-weight: 800; font-family: var(--font-heading); }
.session-date-month { font-size: .72rem; text-transform: uppercase; opacity: .85; }
.session-info { flex: 1; }
.session-time { font-weight: 600; font-size: .95rem; }
.session-location { font-size: .85rem; color: var(--color-text-muted); }
.session-location a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.session-location a:hover { color: var(--color-primary); }
.session-cancelled .session-date { background: var(--color-danger); }
.session-cancelled .session-time { text-decoration: line-through; color: var(--color-text-muted); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .main-content { padding: 1.25rem 1rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .stat-cards { grid-template-columns: 1fr; }
    .form-row   { grid-template-columns: 1fr; }
    .hero h1    { font-size: 1.6rem; }
}

/* --- Intro Text+Bild Raster (mobil: Bild unter Text) --- */
@media (max-width: 640px) {
    .intro-split {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .intro-split--img-left > *:first-child { order: 2; }
    .intro-split--img-left > *:last-child  { order: 1; }
}
