/* RS Immobilien - Notifications & Additional Styles */

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    opacity: 0;
    transform: translateX(400px);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #27ae60;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.notification-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.notification-close:hover {
    transform: scale(1.2);
}

/* Navigation Active State */
nav a.active {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus States für Accessibility */
input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Form Input Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.1);
}

/* Placeholder Styling */
input::placeholder,
textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Badge/Tag Styling */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-color);
}

.badge-success {
    background: #27ae60;
}

/* Divider */
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 2rem 0;
}

/* Hero Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Box Shadow Utility Classes */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--text-light);
    border-radius: 50%;
    margin: 0 0.5rem;
}

.breadcrumb:first-child::before {
    display: none;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .notification {
        padding: 0.9rem 1rem;
    }

    .notification-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .notification-close {
        align-self: flex-end;
        margin-top: -1.5rem;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
    }
}

/* Print Optimization */
@media print {
    .notification,
    .hamburger,
    .contact-button {
        display: none;
    }
    
    a {
        color: var(--primary-color);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #000;
        --secondary-color: #d4733f;
    }
}
