/* ========================================
   HERZENSVISIONEN BASEL - CUSTOM STYLES
   Modern, Empathetic & Relationship-Focused Design
======================================== */

/* CSS Variables für konsistente Farben */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --warning-color: #e67e22;
    --purple-color: #9b59b6;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #7f8c8d;
    --white-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    --gradient-secondary: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    --gradient-soft: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-medium: 0 15px 50px rgba(0,0,0,0.15);
    --shadow-strong: 0 20px 60px rgba(0,0,0,0.2);
    --border-radius: 15px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset und Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    font-weight: 400;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Marcellus', serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    font-weight: 300;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar-collapse {
    flex-grow: 1;
}

.navbar-nav {
    align-items: center;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown-menu {
    background: white;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 1rem;
    margin-top: 0.5rem;
    min-width: 250px;
}

.dropdown-item {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--gradient-soft);
    color: var(--dark-color);
    transform: translateX(5px);
}

/* Buttons */
.btn-default {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-default::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn-default:hover::before {
    left: 100%;
}

.btn-default:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    color: white;
    text-decoration: none;
}

.btn-default.btn-highlighted {
    background: var(--gradient-secondary);
}

.btn-default.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-default.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.hero-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content-body p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-content-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-network-info {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.hero-network-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.hero-network-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Section Styling */
section, .about-us, .service, .philosophy, .testimonials, .network-section, .contact {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-us {
    background: var(--white-color);
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Service Section */
.service {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-item {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-item .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-item:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.service-item .icon-box img {
    width: 40px;
    height: 40px;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Philosophy Section */
.philosophy {
    background: white;
}

.philosophy-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.philosophy-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials {
    background: var(--gradient-soft);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,50 Q30,20 50,50 T90,50" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.3;
}

.testimonial-item {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
    margin: 2rem;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--primary-color);
    font-family: 'Marcellus', serif;
}

.author-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Network Section */
.network-section {
    background: #f8f9fa;
}

.network-item {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.network-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.network-item:hover::before {
    transform: scaleX(1);
}

.network-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.network-item h3, .network-item h4 {
    margin-bottom: 1rem;
}

.network-item a {
    text-decoration: none;
    transition: var(--transition);
}

.network-item a:hover {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background: white;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-info-item:hover {
    background: var(--gradient-soft);
    transform: translateX(10px);
}

.contact-info-item .icon-box {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.contact-info-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-info-content p {
    margin-bottom: 0;
    color: var(--gray-color);
}

/* Form Styles */
.contact-form {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-small);
    padding: 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 1.5rem;
}

.footer-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #bdc3c7;
}

.footer-network {
    margin: 2rem 0;
}

.footer-network p {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-project {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

.footer-project p {
    color: #95a5a6;
    margin-bottom: 0;
}

.footer-project a {
    color: #bdc3c7;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-project a:hover {
    color: var(--primary-color);
}

.footer-copyright p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Text Animation */
.text-anime-style-2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Animation */
.image-anime img {
    transition: var(--transition);
}

.image-anime:hover img {
    transform: scale(1.05);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-container {
    text-align: center;
}

.loading {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-icon img {
    width: 60px;
    height: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content-footer {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .hero-image img {
        transform: none;
    }
    
    section, .about-us, .service, .philosophy, .testimonials, .network-section, .contact {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        background: transparent;
    }
    
    .navbar-toggler span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--dark-color);
        margin: 5px 0;
        transition: var(--transition);
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #f8f9fa;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-item .icon-box {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .btn-default {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-item,
    .network-item,
    .testimonial-item {
        padding: 2rem;
        margin: 1rem;
    }
    
    .hero-network-info {
        padding: 0.75rem;
    }
    
    .hero-network-info p {
        font-size: 0.85rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-soft: 0 2px 10px rgba(0,0,0,0.3);
        --shadow-medium: 0 4px 20px rgba(0,0,0,0.4);
        --shadow-strong: 0 6px 30px rgba(0,0,0,0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-image img {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .main-header,
    .preloader,
    .btn-default {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}