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

body {
    font-family: 'Courier Prime', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    background-image: url('../images/Hintergrund Seidenpapier.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Custom cursor for clickable images */
a img,
.category-link img,
.category-image img,
.gallery-nav img,
.editable-image img,
.workshop-category-card img,
.nav-icon img,
button img {
    cursor: url('../images/Zeigefinger_cursor.png') 16 0, pointer;
}

.admin-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    background: #6b6b6b;
    color: white;
    border-bottom: 1px solid #555;
    padding: 8px 16px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* When admin bar is present, push header and content down */
body.admin-logged-in .site-header {
    top: 37px;
}

body.admin-logged-in .content {
    padding-top: 157px;
}

.admin-logout-link {
    color: white;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    transition: all 0.2s;
}

.admin-logout-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: white;
}

.editable-text[contenteditable="true"] {
    outline: 2px dashed transparent;
    transition: outline-color 0.2s, background-color 0.2s;
}

.editable-text[contenteditable="true"]:focus {
    outline-color: #4a7c59;
    background-color: rgba(74, 124, 89, 0.06);
}

.editable-image {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.editable-image::after {
    content: 'Bild ändern';
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.editable-image:hover::after {
    opacity: 1;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   SUBPAGE HEADER (Logo left, Nav right)
   ============================================ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}

.site-header .logo img {
    height: 80px;
    width: auto;
}

.site-header .main-nav {
    padding: 0;
}

.site-header .nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

.site-header .nav-menu li a img {
    height: 70px;
    width: auto;
    transition: transform 0.3s;
}

.site-header .nav-menu li a img:hover {
    transform: scale(1.1);
}

/* Hamburger menu for subpages */
.site-header .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.site-header .hamburger img {
    height: 40px;
    width: auto;
}

/* ============================================
   HOMEPAGE LAYOUT (Centered logo + large nav)
   ============================================ */
body.homepage .site-wrapper {
    justify-content: center;
    align-items: center;
}

body.homepage .content {
    display: none;
}

body.homepage .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.homepage-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.homepage-logo {
    margin-bottom: 40px;
}

.homepage-logo img {
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 200px;
}

.homepage-nav {
    width: 100%;
    max-width: 700px;
}

.homepage-nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.homepage-nav-menu li {
    width: calc(50% - 40px);
    max-width: 280px;
    min-width: 200px;
}

.homepage-nav-menu li a img {
    height: auto;
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.homepage-nav-menu li a img:hover {
    transform: scale(1.08);
}

/* Homepage navigation drag and drop */
.homepage-nav-menu li[draggable="true"] {
    cursor: grab;
}

.homepage-nav-menu li[draggable="true"]:active {
    cursor: grabbing;
}

.homepage-nav-menu li.drag-over {
    outline: 3px dashed #8B4513;
    outline-offset: 5px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Subpage header mobile */
    .site-header {
        padding: 10px 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: transparent;
    }
    
    /* Admin bar adjustments for mobile */
    body.admin-logged-in .site-header {
        top: 37px;
    }
    
    body.admin-logged-in .site-header .hamburger {
        top: 52px;
    }
    
    body.admin-logged-in .site-header .nav-menu {
        top: 107px;
    }
    
    .site-header .logo img {
        height: 60px;
    }
    
    .site-header .hamburger {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
    }
    
    .site-header .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 15px;
        background: rgba(255, 255, 255, 0.95);
        padding: 20px;
        border-radius: 8px;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .site-header .nav-menu.active {
        display: flex;
    }
    
    .site-header .nav-menu li a img {
        height: 50px;
    }
    
    .site-header .main-nav {
        position: relative;
    }
    
    /* Homepage mobile */
    .homepage-logo img {
        max-height: 120px;
    }
    
    .homepage-nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .homepage-nav-menu li {
        width: 80vw;
        max-width: 300px;
        min-width: auto;
    }
    
    .homepage-nav-menu li a img {
        max-height: 200px;
        width: 100%;
    }
    
    /* Workshop categories mobile */
    .workshops-page {
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .workshop-categories-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }
    
    .workshop-category-card {
        width: 80vw !important;
        max-width: 300px !important;
        min-width: auto !important;
        margin: 0 auto;
    }
    
    .category-image {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .category-image img {
        max-height: 200px;
        width: 100%;
    }
    
    /* Art categories mobile */
    .art-page {
        padding: 20px 10px;
    }
    
    .categories-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }
    
    .category-card {
        width: 80vw !important;
        max-width: 300px !important;
        min-width: auto !important;
        margin: 0 auto;
    }
}

/* Content */
.content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    padding-top: 120px; /* Space for fixed header */
}

/* Flash messages */
.flash-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Landing page */
.landing-page {
    text-align: left;
    padding: 60px 20px;
}

.landing-page h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Workshop Categories Grid */
.workshops-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 40px;
}

/* Workshop page title centered */
.workshops-page h1 {
    text-align: center;
}

.workshop-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    justify-content: center;
    align-items: flex-start;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
}

.workshop-category-card {
    width: calc(50% - 40px);
    max-width: 280px;
    min-width: 200px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}

.workshop-category-card:hover {
    transform: scale(1.08);
}

.workshop-category-card.inactive {
    opacity: 0.5;
    background: rgba(200, 200, 200, 0.7);
}

.workshop-category-card.inactive::after {
    content: 'INAKTIV';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image img {
    height: auto;
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
}

/* Art Page Styling */
.art-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 40px;
}

.art-page h1 {
    text-align: center;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    justify-content: center;
    align-items: flex-start;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
}

.category-card {
    width: calc(50% - 40px);
    max-width: 280px;
    min-width: 200px;
    position: relative;
    text-align: center;
}

/* Art page category images - show full picture */
.categories-grid .category-image img {
    height: auto;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.category-info {
    padding: 10px 0;
}

.category-info h2 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.category-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.category-title {
    padding: 15px;
    text-align: left;
    margin: 0;
    font-size: 1.3rem;
}

.category-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-title-link:hover .category-title {
    color: #8B4513;
}

/* Drag and Drop */
.workshop-category-card.drag-over {
    border: 2px dashed #6b6b6b;
    background: rgba(107, 107, 107, 0.1);
}

.category-card.drag-over {
    border: 2px dashed #6b6b6b;
    background: rgba(107, 107, 107, 0.1);
}

.category-card[draggable="true"] {
    cursor: grab;
}

.category-card[draggable="true"]:active {
    cursor: grabbing;
}

.workshop-category-card[draggable="true"]:active {
    cursor: grabbing;
}

/* Toggle Active Checkbox - Admin Style */
.toggle-active {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    background: rgba(107, 107, 107, 0.9);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
}

.toggle-active input[type="checkbox"] {
    cursor: pointer;
}

.toggle-label {
    color: white;
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Workshop Category Detail Page */
.workshop-category-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    display: inline-block;
}

.breadcrumb .back-arrow {
    height: 40px;
    width: auto;
    transition: transform 0.2s;
}

.breadcrumb .back-arrow:hover {
    transform: scale(1.1);
}

.category-header {
    text-align: left;
    margin-bottom: 30px;
}

.category-header-image {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.category-header-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.category-header-image .image-placeholder {
    padding: 80px 20px;
    background: rgba(200, 200, 200, 0.3);
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #999;
}

.btn-change-header-image {
    position: absolute;
    top: 10px;
    right: 10px;
}

.category-header h1 {
    margin: 0;
    font-size: 2rem;
}

.category-description-section {
    margin-bottom: 30px;
    text-align: left;
}

.category-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.category-description p {
    margin-bottom: 1em;
}

.category-description p:last-child {
    margin-bottom: 0;
}

/* Courses List */
.courses-list {
    margin-top: 40px;
}

.courses-list h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: transparent;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.course-info {
    flex: 1;
}

.course-date-time {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.course-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.course-cost,
.course-location,
.course-spots {
    font-size: 1rem;
    color: #333;
    margin-top: 5px;
}

.no-items {
    font-size: 1rem;
    color: #333;
}

.course-location a {
    color: #333;
    text-decoration: underline;
}

.course-location a:hover {
    color: #000;
}

.full-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1rem;
    margin-left: 10px;
}

.course-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.btn-register {
    background: #8B4513;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Courier Prime', monospace;
}

.btn-register:hover {
    background: #6d360f;
}

.btn-waitlist {
    background: #8B4513;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Courier Prime', monospace;
}

.btn-waitlist:hover {
    background: #6d360f;
    color: white;
}

.btn-disabled {
    background: #ccc;
    color: #666;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: not-allowed;
    font-family: 'Courier Prime', monospace;
}

.btn-registrations {
    padding: 6px 10px;
    font-size: 0.85rem;
}

/* Course Detail Page */
.course-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.course-detail h1 {
    margin-bottom: 20px;
}

.course-content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.course-image-section {
    flex: 1;
    max-width: 400px;
}

.course-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.course-info-section {
    flex: 1;
}

.course-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-meta {
    color: #333;
}

.course-meta p {
    margin-bottom: 8px;
}

.course-meta a {
    color: #333;
    text-decoration: underline;
}

.course-meta a:hover {
    color: #000;
}

.badge-full {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Form row for side-by-side inputs */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Courses */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.course-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-info {
    padding: 20px;
}

.course-info h2 {
    margin-bottom: 10px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Courier Prime', monospace;
    background: transparent;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* Registration Form */
.registration-form {
    margin-top: 40px;
    padding: 30px;
    background: transparent;
    border-radius: 8px;
}

.registration-form h2 {
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background 0.3s;
    font-family: 'Courier Prime', monospace;
}

.btn-primary {
    background: #6b6b6b;
    color: white;
}

.btn-primary:hover {
    background: #555;
}

/* Gallery */
.gallery-container {
    margin-top: 30px;
}

.gallery-viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
}

.gallery-images {
    flex: 1;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    display: none;
}

.gallery-image.active {
    display: block;
}

.gallery-image {
    position: relative;
}

.gallery-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.gallery-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.gallery-nav img {
    width: 40px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.gallery-nav:hover img {
    opacity: 1;
}

.gallery-nav:hover {
    background: transparent;
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-counter {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
}

.category-card {
    position: relative;
}

/* About & Kontakt Page */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.kontakt-section {
    margin-bottom: 30px;
}

.kontakt-section h1 {
    margin-bottom: 30px;
}

.kontakt-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.kontakt-image {
    flex: 1;
    max-width: 400px;
}

.kontakt-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.kontakt-image .image-placeholder {
    padding: 80px 20px;
    text-align: center;
    border: 2px dashed #ccc;
    color: #999;
    font-size: 14px;
    border-radius: 8px;
}

.kontakt-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ueber-mich-section {
    margin-top: 20px;
    padding-top: 20px;
}

.ueber-mich-section h2 {
    margin-bottom: 20px;
}

.ueber-mich-content {
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: none;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.contact-item img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.contact-item span {
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: transparent;
    margin-top: auto;
    font-size: 1rem;
}

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

.footer a:hover {
    text-decoration: none;
}

/* Admin Controls - Consistent grey styling */
.admin-controls {
    margin-bottom: 20px;
    text-align: right;
}

/* Base admin button style */
.btn-admin {
    background: #6b6b6b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-admin:hover {
    background: #555;
}

.btn-admin-add {
    font-size: 20px;
    font-weight: bold;
    padding: 5px 12px;
    line-height: 1;
}

/* Registrations summary */
.registrations-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Legacy btn-add - kept for compatibility */
.btn-add {
    background: #6b6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.btn-add:hover {
    background: #555;
}

.new-item-form {
    background: rgba(240, 240, 240, 0.98);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    font-family: Arial, Helvetica, sans-serif;
}

.new-item-form h3 {
    margin-bottom: 20px;
    color: #444;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group {
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 16px;
    background: transparent;
}

.form-group.checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondary {
    background: #666;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.card-admin-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
    font-family: Arial, Helvetica, sans-serif;
}

.course-card {
    position: relative;
}

.btn-icon {
    background: rgba(107, 107, 107, 0.9);
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(85, 85, 85, 1);
}

.btn-delete:hover {
    background: rgba(180, 60, 60, 0.9);
}

.btn-registrations .reg-count {
    font-size: 12px;
    background: #4a7c59;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 3px;
}

.registrations-panel {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.registrations-panel h4 {
    margin-bottom: 10px;
}

.registrations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.registrations-table th,
.registrations-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.registrations-table th {
    background: #e0e0e0;
}

.no-registrations {
    color: #666;
    font-style: italic;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 5px;
}

/* Responsive for content pages */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-nav {
        padding: 10px;
        font-size: 1.5rem;
    }
    
    /* About page mobile */
    .kontakt-content {
        flex-direction: column;
    }
    
    .kontakt-image {
        max-width: 100%;
    }
    
    .kontakt-links {
        width: 100%;
    }
}

/* Error pages */
.error-page {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-page h1 {
    font-size: 6rem;
    margin: 0;
    color: #6b6b6b;
}

.error-page h2 {
    margin: 10px 0 20px;
}

.error-page p {
    margin-bottom: 30px;
    color: #666;
}
