:root {
    --primary: #0056b3;
    --secondary: #6c757d;
    --bg: #f8f9fa;
    --text: #333;
    --border: #dee2e6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.navbar { background: #fff; border-bottom: 1px solid var(--border); padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 15px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); }
main { flex: 1; padding: 40px 0; }
.footer { background: #fff; border-top: 1px solid var(--border); padding: 20px 0; text-align: center; margin-top: auto; }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 15px; margin-top: 10px; }
.footer-links a { text-decoration: none; color: var(--secondary); font-size: 0.9rem; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 5px; text-decoration: none; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-control { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 4px; }
.alert { padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }

/* Category Colors */
.cat-funktionale-zahnmedizin { border-left: 5px solid #dc3545; }
.cat-digitale-zahnmedizin { border-left: 5px solid #28a745; }
.cat-ästhetische-zahnmedizin { border-left: 5px solid #ffc107; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; color: #fff; }
.badge-funktionale-zahnmedizin { background: #dc3545; }
.badge-digitale-zahnmedizin { background: #28a745; }
.badge-ästhetische-zahnmedizin { background: #ffc107; color: #333; }

/* Scrollable Events */
.events-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}
.events-slider .course-card {
    min-width: 300px;
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 400px;
 /*    margin-top: -40px; */
    background: #000;
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}
.slide.active { opacity: 1; }
.slide-content {
    background: rgba(0,0,0,0.5);
    padding: 40px;
    border-radius: 8px;
}
.slide h1 { font-size: 3rem; margin-bottom: 20px; }

/* Global CTA */
.global-cta {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}
.global-cta h2 { margin-bottom: 15px; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.course-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.2s; }
.course-card:hover { transform: translateY(-5px); }
.course-img { width: 100%; height: 200px; object-fit: cover; }
.course-body { padding: 20px; }
.course-meta { font-size: 0.9rem; color: var(--secondary); margin-bottom: 10px; }
.referent-list { font-size: 0.85rem; margin-top: 10px; }
.referent-img-small { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 5px; }
