/* Reset & Basis */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    margin-bottom: 60px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Typografie */
h1, h2, h3, h4, h5, h6,
.nav-button,
button {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3 {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

/* Navigation */
.main-nav {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.nav-button {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover {
    background-color: #f0f0f0;
}

.nav-button {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

/* Dashboard Freundschaftsanfragen-Benachrichtigung */
.friend-request-notification {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    animation: slideInDown 0.5s ease-out;
}

/* Geburtstags-Benachrichtigungen */
.birthday-notification {
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.5s ease-out;
    background: linear-gradient(135deg, #e91e63, #c2185b) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3) !important;
}

.birthday-notification .btn {
    color: #e91e63 !important;
}

/* Erneut erinnern Dropdown Styles */
.notification-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.remind-dropdown {
    position: relative;
    display: inline-block;
}

.remind-dropdown-content {
    position: absolute;
    background-color: white;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.remind-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s;
}

.remind-option:hover {
    background-color: #f8f9fa;
}

.remind-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.remind-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Dashboard Freundschaftsbestätigungs-Benachrichtigungen */
.friendship-confirmation-notification {
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.5s ease-out;
}

.friendship-confirmation-notification.accepted {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.friendship-confirmation-notification.rejected {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-content i {
    font-size: 2em;
    opacity: 0.9;
}

.notification-text {
    flex: 1;
}

.notification-text strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.notification-text p {
    margin: 0;
    opacity: 0.9;
}

.notification-content .btn {
    background-color: white;
    color: #007bff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.notification-content .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.friendship-confirmation-notification.accepted .btn {
    color: #28a745;
}

.friendship-confirmation-notification.rejected .btn {
    color: #6c757d;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .notification-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .notification-content .btn {
        width: 100%;
        text-align: center;
    }
}

.nav-button.active {
    background-color: #9a1c28;  /* Dunkleres Rot */
    color: white;
}

.nav-button.active:hover {
    background-color: #7d161f;  /* Noch dunkleres Rot beim Hover */
}

/* Listen */
.lists-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.list-column {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.name-list {
    min-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
}

.name-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f8f8f8;
    border-radius: 4px;
    cursor: move;
}

.name-item:hover {
    background: #f0f0f0;
}

/* Buttons */
button {
    font-family: 'Montserrat', sans-serif;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background: #0056b3;
}

.delete-button {
    background: #dc3545;  /* Zurück zu Rot */
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

.delete-button:hover {
    background: #c82333;  /* Zurück zum ursprünglichen Hover-Rot */
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="password"] {
    font-family: 'Open Sans', sans-serif;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 0.5rem;
}

/* Hilfe-Modal */
.help-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.help-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    z-index: 1001;
    max-width: 600px;
    width: 90%;
}

/* Hund-Übungen Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    z-index: 1001;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ddd;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.exercise-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.exercise-name {
    font-weight: bold;
    color: #333;
}

.exercise-date {
    color: #666;
    font-size: 0.9rem;
}

.exercise-category {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.exercise-helper {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #e3f2fd;
    border-left: 3px solid #1976d2;
    color: #1976d2;
}

.exercise-notes {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-left: 3px solid #007bff;
}

.next-time-notes {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 3px;
}

.info-button {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-button:hover {
    background: #138496;
}

.info-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.delete-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-button:hover {
    background: #c82333;
}

.delete-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.help-modal h2 {
    margin-bottom: 1rem;
}

.help-modal ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.help-warning {
    color: #dc3545;
    margin-top: 1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .lists-container {
        grid-template-columns: 1fr;
    }
    
    .rotation-warning {
        display: block;
    }
    
    /* Modal für mobile Ansicht optimieren */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        max-height: 80vh;
    }
    
    .exercise-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .exercise-category {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        margin-right: 0.5rem;
        display: inline-block;
    }
    
    .exercise-name {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .exercise-date {
        font-size: 0.8rem;
        color: #666;
    }
        text-align: center;
        padding: 1rem;
        background: #fff3cd;
        border: 1px solid #ffeeba;
        margin-bottom: 1rem;
        border-radius: 4px;
    }
}

/* Drag & Drop */
.dragging {
    opacity: 0.5;
}

/* Utility Classes */
.button-container {
    margin: 1rem 0;
    text-align: center;
}

.refresh-hint {
    text-align: center;
    color: #666;
    margin: 1rem 0;
}

.add-dog-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.add-dog-container input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

#addDog {
    background-color: #28a745;
}

#addDog:hover {
    background-color: #218838;
}

.button-group {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.add-dog-form {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
    margin-top: 0;
}

/* Neue Styles für die Rotationswarnung */
.rotation-warning {
    display: none;
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 15px;
    margin-top: -10px;
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    .rotation-warning {
        display: block;
    }
}

.login-container {
    max-width: 300px;
    margin: 100px auto;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.login-form button {
    background-color: #28a745;
    padding: 8px;
}

.login-form button:hover {
    background-color: #218838;
}

.login-info {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.4;
}

#helpButton {
    background-color: #dc3545;  /* Rot statt Info-Blau */
    margin-bottom: 20px;
}

#helpButton:hover {
    background-color: #c82333;  /* Dunkleres Rot beim Hover */
}

.help-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
}

.help-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.help-modal h2 {
    margin-top: 0;
    color: #333;
}

.help-modal ul {
    padding-left: 20px;
    line-height: 1.6;
}

.help-modal button {
    margin-top: 15px;
}

.refresh-hint {
    text-align: center;
    color: #800020;  /* Bordeaux-Farbe */
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.help-warning {
    color: #dc3545;
    margin-top: 15px;
    font-weight: 500;
}

.main-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
    border: none;
}

.nav-button:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Profil-Styles */
.profile-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.profile-form .form-group {
    margin-bottom: 15px;
}

.profile-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.profile-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.profile-form input:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220,53,69,0.25);
}

.profile-form input[type="tel"],
.profile-form input[type="url"],
.profile-form input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.profile-form input[type="tel"]:focus,
.profile-form input[type="url"]:focus,
.profile-form input[type="date"]:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220,53,69,0.25);
}

.profile-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    background-color: white;
}

.profile-form select:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220,53,69,0.25);
}

.btn-primary {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #c82333;
}

/* Login-Styles erweitern */
.login-error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

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

.login-form .checkbox input {
    width: auto;
}

.login-links {
    margin-top: 20px;
    font-size: 0.9em;
}

.login-links a {
    color: #dc3545;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-links .separator {
    margin: 0 10px;
    color: #666;
}

/* Passwort-Ändern Styles */
.password-requirements {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.password-requirements ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.password-requirements li {
    margin-bottom: 5px;
    color: #666;
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

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

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 1.2rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.alert-info h3 {
    margin-top: 0;
    color: #0c5460;
}

.alert-link {
    color: #0a4b53;
    font-weight: 600;
    text-decoration: underline;
}

.alert-link:hover {
    color: #062c31;
}

/* Tabellen */
table th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-align: left;
    padding: 0.5rem;
    border-bottom: 2px solid #ddd;
    background-color: #f8f8f8;
}

table td {
    font-family: 'Open Sans', sans-serif;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

/* Buttons in Tabellen */
table .btn-danger {
    background-color: #dc3545;  /* Gleiches Rot wie delete-button */
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s;
}

table .btn-danger:hover {
    background-color: #c82333;  /* Gleiches Hover-Rot wie delete-button */
}

/* Layout für Mein Bereich */
.my-area-container {
    /* Wird entfernt */
}

@media (max-width: 768px) {
    /* Wird entfernt */
}

/* My Area Navigation Styles */
.my-area-nav {
    margin: 20px 0 30px 0;
    border-bottom: 1px solid #dee2e6;
}

.my-area-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.my-area-nav a {
    display: inline-block;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.my-area-nav .notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

.my-area-nav a:hover {
    color: #9a1c28;  /* Angepasst an das neue Dunkelrot */
}

.my-area-nav a.active {
    color: #9a1c28;  /* Angepasst an das neue Dunkelrot */
}

/* Unterstrich-Animation */
.my-area-nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #9a1c28;  /* Angepasst an das neue Dunkelrot */
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.my-area-nav a:hover::after,
.my-area-nav a.active::after {
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 600px) {
    .my-area-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .my-area-nav a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

/* Dashboard Styles */
.dashboard-content {
    padding: 1rem;
}

.welcome-message {
    margin-bottom: 1rem;  /* Kleinerer Abstand nach unten */
    margin-top: -1rem;    /* Weniger Abstand zum oberen Rand */
    font-size: 1.2rem;    /* Etwas größere Schrift */
}

/* Spezifische Regel für welcome-message innerhalb dashboard-stats */
.dashboard-stats .welcome-message {
    margin-top: -1rem !important;  /* Erzwinge den Abstand */
}

.welcome-message p {
    margin: 0;
    font-weight: 500;    /* Etwas fetter */
    color: #9a1c28;      /* Dunkles Rot wie aktive Menü-Buttons */
}

.dashboard-stats {
    margin-top: 0.25rem;  /* Dreimal kleinerer Abstand nach oben */
    background: white;     /* Weißer Hintergrund */
    padding: 2rem;        /* Innenabstand */
    border-radius: 8px;   /* Abgerundete Ecken */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* Leichter Schatten */
}

.dashboard-stats h3 {
    margin-bottom: 1rem;  /* Zurück zu 1rem */
}

.dashboard-stats ul {
    list-style: none;
    padding: 0;
}

.dashboard-stats li {
    margin-bottom: 1rem;  /* Nur margin-bottom behalten */
}

.exercises-table {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.exercises-table td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.5rem;  /* Padding hinzufügen für besseren Abstand */
}

.btn-details,
.btn-edit,
.btn-danger {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    margin-right: 0.5rem;
    cursor: pointer;
    color: white;
}

.btn-details {
    background: #6c757d;
}

.btn-details:hover {
    background: #5a6268;
}

.btn-edit {
    background: #28a745;
}

.btn-edit:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 300px;  /* Standard-Breite */
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9a1c28;
    box-shadow: 0 0 0 2px rgba(154,28,40,0.1);
}

/* Formular-Container breiter machen */
.exercise-form {
    max-width: 900px;  /* Dreimal so breit wie standard (ca. 300px) */
    margin: 0 auto;    /* Zentrieren */
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Eingabefelder Styling */
.exercise-form .form-group input,
.exercise-form .form-group select,
.exercise-form .form-group textarea {
    width: 100%;      /* Volle Breite des Containers */
    max-width: 100%;  /* Nicht über Container hinaus */
}

/* Tabelle anpassen */
.exercises-list {
    margin-top: 3rem;
    width: 100%;
    overflow-x: auto;
}

/* Tabelle selbst */
.exercises-table {
    min-width: 100%;
    border-collapse: collapse;
}

/* Spaltenbreiten optimieren */
.exercises-table th,
.exercises-table td {
    padding: 0.5rem;
    text-align: left;
}

/* Spezifische Spaltenbreiten anpassen */
.exercises-table th:nth-child(1), /* Abteilung */
.exercises-table td:nth-child(1) {
    width: 20%;
}

.exercises-table th:nth-child(2), /* Übungsname */
.exercises-table td:nth-child(2) {
    width: 30%;
}

.exercises-table th:nth-child(3), /* IGP */
.exercises-table td:nth-child(3) {
    width: 10%;
}

.exercises-table th:nth-child(4), /* Punkte */
.exercises-table td:nth-child(4) {
    width: 10%;
}

.exercises-table th:nth-child(5), /* Gültig seit */
.exercises-table td:nth-child(5) {
    width: 15%;
}

.exercises-table th:nth-child(6), /* Aktionen */
.exercises-table td:nth-child(6) {
    width: 15%;
    white-space: nowrap;
}

/* Bestehende Styles für die Tabelle beibehalten */
.exercises-table {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

/* Spezifische Styles für die Hundeverwaltung und Vereinverwaltung */
.assign-form .form-group,
.club-form .form-group {
    margin-bottom: 0.5rem;  /* Kleinerer Abstand zwischen den Gruppen */
}

/* Die breiten Abstände nur für die Übungen-Verwaltung */
.exercise-form .form-group {
    margin-bottom: 1.5rem;  /* Größerer Abstand bleibt hier */
}

/* Button zum Anzeigen des Formulars */
#showAddExerciseForm {
    margin-bottom: 2rem;
}

/* Abbrechen-Button */
.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    overflow-y: auto; /* Ermöglicht Scrollen im Modal */
    z-index: 1000;
}

.modal-content {
    background-color: #fefefe;
    margin: 20px auto;  /* Abstand oben und unten */
    padding: 20px;
    border-radius: 5px;
    width: 90%;  /* Breiter machen */
    max-width: 1000px;  /* Maximale Breite erhöhen */
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.exercise-details p {
    margin: 1rem 0;
    line-height: 1.5;
}

/* Buttons in der Tabelle */
.exercises-table td:last-child {
    white-space: nowrap;
    min-width: 220px;  /* Mehr Platz für die Buttons */
}

.exercises-table .btn-details,
.exercises-table .btn-edit,
.exercises-table .btn-danger {
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    min-width: 60px;  /* Minimale Breite für jeden Button */
}

/* Letzter Button braucht keinen rechten Abstand */
.exercises-table .btn-danger {
    margin-right: 0;
}

.exercise-details .preformatted {
    display: block;
    margin-top: 0.5rem;
    margin-left: 1rem;
    white-space: pre-line;  /* Erhält Zeilenumbrüche */
    line-height: 1.5;
}

select[multiple] {
    height: auto;
    min-height: 80px;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Buttons in der Tabelle einheitlich gestalten */
.clubs-table td:last-child {
    white-space: nowrap;
    min-width: 180px;  /* Genug Platz für beide Buttons */
}

.clubs-table .btn-edit,
.clubs-table .btn-danger {
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    min-width: 80px;  /* Einheitliche Mindestbreite für alle Buttons */
    text-align: center;  /* Text zentrieren */
}

/* Letzter Button braucht keinen rechten Abstand */
.clubs-table .btn-danger {
    margin-right: 0;
}

/* Formatierung für die Editor-Inhalte im Modal */
.exercise-details .content-area {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    line-height: 1.2;
    white-space: normal;  /* Wichtig für Zeilenumbruch */
    word-wrap: break-word;  /* Lange Wörter umbrechen */
}

.exercise-details .content-area p {
    margin: 4px 0;
    white-space: normal;
    word-wrap: break-word;
}

.exercise-details .content-area ul,
.exercise-details .content-area ol {
    margin: 4px 0;
    padding-left: 20px;
}

.exercise-details .content-area li {
    margin: 2px 0;
}

/* CKEditor Container Anpassungen */
.ck.ck-editor__editable_inline {
    min-height: 200px !important;
    max-height: 400px !important;
}

.ck.ck-editor__editable_inline > * {
    line-height: 1.2 !important;
}

.ck.ck-editor__editable_inline > p {
    margin: 4px 0 !important;
    padding: 0 !important;
}

.ck.ck-editor__editable_inline > ul,
.ck.ck-editor__editable_inline > ol {
    margin: 4px 0 !important;
    padding-left: 20px !important;
}

.ck.ck-editor__editable_inline li {
    margin: 2px 0 !important;
    padding: 0 !important;
}

/* Zusätzliche Anpassungen für die Details-Ansicht */
.exercise-details {
    padding: 10px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    width: 100%;  /* Volle Breite nutzen */
}

/* Grüner Details-Button auf der Prüfungsordnung-Seite */
.exercises-list .btn-details {
    background-color: #28a745;  /* Bootstrap-Grün */
    color: white;
    border: none;
}

.exercises-list .btn-details:hover {
    background-color: #218838;  /* Dunkleres Grün beim Hover */
}

/* Termine im Dashboard */
.upcoming-appointments {
    margin-top: 1.5rem;
}

.upcoming-appointments ul {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.upcoming-appointments li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.upcoming-appointments li:last-child {
    margin-bottom: 0;
}

/* Termin-Typen im Dashboard */
.upcoming-appointments li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.upcoming-appointments li:has(:-webkit-any(:contains("Prüfung")))::before {
    background-color: #ffc107;
}

.upcoming-appointments li:has(:-webkit-any(:contains("Wettkampf")))::before {
    background-color: #28a745;
}

.upcoming-appointments li:has(:-webkit-any(:contains("Tierarzt")))::before {
    background-color: #17a2b8;
}

.upcoming-appointments li:has(:-webkit-any(:contains("Sonstiges")))::before {
    background-color: #6c757d;
}

/* Termin-Typen im Dashboard */
.appointment-type {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    display: inline-block;
}

.type-exam {
    background-color: #ffc107;  /* Gelb */
    color: #000;
}

.type-competition {
    background-color: #28a745;  /* Grün */
    color: #fff;
}

.type-vet {
    background-color: #17a2b8;  /* Türkis */
    color: #fff;
}

.type-other {
    background-color: #6c757d;  /* Grau */
    color: #fff;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.members-table th,
.members-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.members-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #495057;
}

.members-table tr:hover {
    background-color: #f8f9fa;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.legal-content h1 {
    color: #333;
    margin-bottom: 30px;
}

.legal-content h2 {
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.legal-content p, .legal-content ul {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

.footer {
    background-color: #f8f9fa;
    padding: 8px 0;  /* Deutlich reduziertes Padding */
    margin-top: 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.2;  /* Reduzierte Zeilenhöhe */
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    padding: 0 5px;  /* Nur horizontales Padding */
}

.footer-links a:hover {
    color: #343a40;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 5px 0;  /* Noch kompakter auf Mobilgeräten */
    }
}

/* Responsive Anpassungen */
@media screen and (orientation: landscape) and (max-height: 500px) {
    /* Anpassungen für Querformat auf Smartphones */
    .container {
        max-width: 100%;
        padding: 0 5px;
    }

    /* Kleinere Schrift im Querformat */
    body {
        font-size: 14px;
    }

    /* Navigation kompakter machen */
    .main-nav {
        padding: 5px 0;
    }

    .nav-button {
        padding: 5px 10px;
        margin: 2px;
    }

    /* Tabellen anpassen */
    table {
        font-size: 14px;
    }

    td, th {
        padding: 4px 6px;
    }

    /* Buttons kompakter */
    button, .btn-primary, .btn-secondary {
        padding: 4px 8px;
        font-size: 14px;
    }
}

/* Zusätzliche Optimierung für sehr schmale Bildschirme */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 3px;
    }
}

/* Verhindern von horizontalem Scrollen */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Flexibles Layout für Listen und Tabellen */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Landscape-Modus Optimierung für Smartphones */
@media screen and (orientation: landscape) and (max-height: 500px) {
    /* Container kompakter */
    .container {
        padding: 0 2px;
    }

    /* Hauptnavigation kompakter */
    .main-nav {
        padding: 2px 0;
        margin-bottom: 5px;
    }

    .main-nav ul {
        gap: 2px;
    }

    .nav-button {
        padding: 4px 6px;
        font-size: 12px;
    }

    /* Unternavigation (my-area-nav) kompakter */
    .my-area-nav {
        margin: 5px 0;
    }

    .my-area-nav ul {
        gap: 1px;
        flex-wrap: nowrap;
    }

    .my-area-nav a {
        padding: 2px 4px;
        font-size: 11px;
    }

    /* Inhalt kompakter */
    h1 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .btn-primary, 
    .btn-secondary, 
    button {
        padding: 2px 4px;
        font-size: 11px;
    }
}

/* Smartphone Hochformat Optimierung für alle Tabellen */
@media screen and (max-width: 480px) and (orientation: portrait) {
    /* Buttons in der Training-Sektion */
    .training-buttons {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0;
        margin: -5px -10px;
        padding: 5px 10px;
    }

    .training-buttons button {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 14px;
        padding: 8px 12px;
    }

    /* Hauptnavigation scrollbar machen */
    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0;
        margin-bottom: 10px;
        background: #f8f9fa;
        position: relative; /* Entfernt sticky */
    }

    .main-nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 5px;
        min-width: min-content;
        gap: 5px;
    }

    .nav-button {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 14px;
    }

    /* My Area Navigation als Grid */
    .my-area-nav {
        margin: 10px 0;
        position: relative; /* Entfernt sticky */
        background: transparent;
    }
    
    .my-area-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0 5px;
    }
    
    .my-area-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px 5px;
        font-size: 13px;
        text-align: center;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        white-space: normal;
    }

    /* Tabellen-Container */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
        position: relative;
        isolation: isolate;
    }

    /* Scroll-Hinweis über jeder Tabelle */
    .table-responsive::before {
        content: "← Nach links und rechts scrollen →";
        display: block;
        text-align: center;
        color: #666;
        font-size: 12px;
        padding: 5px;
        background: #f8f9fa;
        border-radius: 4px;
        margin: 5px 0;
    }

    /* Gemeinsame Tabellen-Styles */
    .dogs-table,
    .club-table,
    .clubs-table,
    .exercises-table,
    .appointments-table,
    .training-table {
        min-width: 600px;
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Entfernen der globalen Scroll-Sperre */
    html, body {
        overflow-x: hidden;
    }

    /* Container-Anpassungen */
    .container {
        padding: 0 10px;
        overflow-x: hidden;
    }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.blink-text {
    animation: blink 2s linear infinite;
    color: #9a1c28;  /* Passend zum Farbschema der Seite */
}

/* Sprungmarken-Styling */
.jump-link {
    display: none;  /* Standardmäßig ausblenden */
    font-size: 0.8em;
    color: #9a1c28;
    text-decoration: none;
    margin-left: 10px;
}

.jump-link:hover {
    text-decoration: underline;
}

/* Smooth Scrolling für die Sprungmarke */
html {
    scroll-behavior: smooth;
}

/* Auf Smartphones in beiden Orientierungen anzeigen */
@media screen and (max-width: 480px), /* Hochformat */
       screen and (max-height: 480px) { /* Querformat */
    .jump-link {
        display: inline-block;
    }
}

.homework-section .training-table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.homework-section .training-table th,
.homework-section .training-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.homework-section .training-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.homework-section .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .homework-section .training-table {
        font-size: 0.8rem;
    }
    
    .homework-section .training-table th,
    .homework-section .training-table td {
        padding: 0.3rem;
    }
}

/* GPS-Status Anzeige */
.gps-status {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 200px;
    text-align: center;
}

.gps-quality {
    margin-bottom: 5px;
}

.quality-indicator {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
}

.quality-optimal {
    background-color: #d4edda;
    color: #155724;
}

.quality-good {
    background-color: #fff3cd;
    color: #856404;
}

.quality-restricted {
    background-color: #f8d7da;
    color: #721c24;
}

.gps-details {
    display: flex;
    justify-content: space-around;
    font-size: 0.9em;
}

.satellites, .accuracy {
    display: inline-block;
}

/* Test-Cockpit Styles */
.admin-tests-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.test-description {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.test-controls {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.test-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.test-controls .btn-primary {
    background-color: #007bff;
    color: white;
}

.test-controls .btn-primary:hover {
    background-color: #0056b3;
}

.test-controls .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.test-controls .btn-secondary:hover {
    background-color: #545b62;
}

.test-controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.test-results {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.test-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.test-status {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.test-status.ready {
    color: #6c757d;
}

.test-status.running {
    color: #007bff;
}

.test-status.success {
    color: #28a745;
}

.test-status.error {
    color: #dc3545;
}

.test-count {
    color: #6c757d;
    font-size: 0.9em;
}

.test-details {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.test-item {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #dee2e6;
}

.test-item.pass {
    border-left-color: #28a745;
    background-color: #d4edda;
}

.test-item.pass h4 {
    color: #155724;
}

.test-item.fail {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.test-item.fail h4 {
    color: #721c24;
}

.test-item.skip {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

.test-item.skip h4 {
    color: #856404;
}

.test-item h4 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.test-item .message {
    color: #6c757d;
    margin-bottom: 10px;
}

.test-details-expanded {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.pass {
    color: #155724;
}

.detail-item.fail {
    color: #721c24;
}

.detail-item.skip {
    color: #856404;
}

.detail-name {
    font-weight: 500;
    min-width: 200px;
    margin-right: 15px;
}

.detail-message {
    flex: 1;
    color: #6c757d;
}

.detail-count,
.detail-sessions,
.detail-dogs {
    margin-left: 10px;
    font-size: 0.9em;
    color: #007bff;
    font-weight: 500;
}

.test-log {
    background-color: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #dee2e6;
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    padding: 5px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.log-entry .timestamp {
    color: #6c757d;
    margin-right: 10px;
}

.log-entry.info {
    color: #007bff;
}

.log-entry.success {
    color: #28a745;
}

.log-entry.error {
    color: #dc3545;
}

.log-entry.warning {
    color: #ffc107;
} 

/* Like-System für Hundebilder */
.image-like-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 8px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Für Besitzer: Like-Button links, Lösch-Button rechts */
.gallery-item.owner .image-like-container {
    right: auto;
    left: 10px;
}

.gallery-item.owner .delete-btn {
    right: 10px;
    left: auto;
}

/* Besitzer-View: Like-Button deaktiviert, aber sichtbar */
.image-like-container.owner-view .like-button {
    cursor: default;
    opacity: 0.8;
}

.image-like-container.owner-view .like-button:hover {
    transform: none;
}

/* Tooltip für alle Like-Buttons */
.like-button {
    position: relative;
}

/* Tooltip für Like-Namen */
.like-count {
    position: relative;
}

.like-count:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.like-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.like-button:hover {
    transform: scale(1.1);
}

.like-button.liked {
    color: #ff4757 !important;
}

.like-button.liked:hover {
    color: #ff3742 !important;
}

.like-button.liked i {
    color: #ff4757 !important;
}

.like-count {
    color: white;
    font-size: 12px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
    display: inline;
    visibility: visible;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item:hover .image-like-container {
    opacity: 1;
}

.image-like-container {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* Animation für Like-Button */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-button.animate {
    animation: likeAnimation 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-like-container {
        top: 5px;
        right: 5px;
        padding: 3px 6px;
    }
    
    .like-button {
        font-size: 14px;
    }
    
    .like-count {
        font-size: 11px;
    }
} 

 

 

 