/* Hand-drawn style CSS for German Pension Consulting Website */

/* Import Google Fonts for hand-drawn style */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Patrick+Hand&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kalam', cursive;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fefefe;
    overflow-x: hidden;
}

/* Hand-drawn border effect */
.hand-drawn-border {
    position: relative;
    border: 3px solid #2c3e50;
    border-radius: 15px;
}

.hand-drawn-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #3498db;
    border-radius: 18px;
    transform: rotate(-0.5deg);
    z-index: -1;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ecf0f1;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #e74c3c 0px,
        #e74c3c 10px,
        transparent 10px,
        transparent 20px
    );
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.logo {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
    transform: rotate(-1deg);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
    transform: skewX(-20deg);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 200px;
    height: 150px;
    margin-bottom: 2rem;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.2));
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: rotate(-1deg);
}

.hero p {
    font-size: 1.2rem;
    color: #f8f9fa;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 25px;
    transform: rotate(1deg);
    transition: all 0.3s ease;
    border: 3px solid #c0392b;
    position: relative;
}

.cta-button:hover {
    transform: rotate(-1deg) scale(1.05);
    background-color: #c0392b;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
}

/* Services Section */
.services {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        #3498db 0px,
        #3498db 10px,
        transparent 10px,
        transparent 20px
    );
}

.services h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    transform: rotate(-0.5deg);
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #e74c3c;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #3498db;
    position: relative;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
}

.service-card:nth-child(even) {
    transform: rotate(-0.5deg);
}

.service-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #7f8c8d;
}

/* Testimonials */
.testimonials {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    transform: rotate(0.5deg);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background-color: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    transform: rotate(-0.5deg);
    backdrop-filter: blur(10px);
}

.testimonial:nth-child(even) {
    transform: rotate(0.5deg);
}

.testimonial-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial cite {
    font-weight: 700;
    color: #f39c12;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background-color: #ecf0f1;
}

.contact h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    transform: rotate(-0.5deg);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid #3498db;
    transform: rotate(0.5deg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #7f8c8d;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: rotate(15deg) scale(1.1);
}

.newsletter-form {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid #e74c3c;
    transform: rotate(-0.5deg);
}

.newsletter-form h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3498db;
    transform: rotate(0.5deg);
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(1deg);
}

.newsletter-form button:hover {
    background-color: #c0392b;
    transform: rotate(-1deg) scale(1.05);
}

/* Blog Preview */
.blog-preview {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.blog-preview h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    transform: rotate(0.5deg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #95a5a6;
    transform: rotate(0.3deg);
    transition: all 0.3s ease;
}

.blog-card:nth-child(even) {
    transform: rotate(-0.3deg);
}

.blog-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 8px 15px rgba(149, 165, 166, 0.3);
}

.blog-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.blog-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2rem;
}

.blog-card h3 a:hover {
    color: #3498db;
}

.blog-card p {
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #e74c3c 0px,
        #e74c3c 15px,
        #f39c12 15px,
        #f39c12 30px,
        #3498db 30px,
        #3498db 45px
    );
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
    transform: rotate(-2deg);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-icon {
    width: 40px;
    height: 40px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons button {
    padding: 8px 16px;
    border: 2px solid white;
    background-color: transparent;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Kalam', cursive;
    transition: all 0.3s ease;
}

.cookie-buttons button:hover {
    background-color: white;
    color: #2c3e50;
    transform: rotate(-1deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .services-grid,
    .testimonials-container,
    .contact-content,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* About Page Styles */
.about-hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 60px 60px;
}

.about-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-hero .hero-image {
    width: 180px;
    height: 150px;
    margin-bottom: 2rem;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.2));
}

.about-hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: rotate(-1deg);
}

.about-hero p {
    font-size: 1.2rem;
    color: #f8f9fa;
    max-width: 600px;
    margin: 0 auto;
}

.company-info {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.company-story,
.team-section,
.services-detail,
.why-choose-us {
    background-color: white;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 20px;
    border: 3px solid #3498db;
    position: relative;
    transform: rotate(0.3deg);
}

.company-story:nth-child(even),
.team-section:nth-child(even),
.services-detail:nth-child(even),
.why-choose-us:nth-child(even) {
    transform: rotate(-0.3deg);
    border-color: #e74c3c;
}

.section-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.company-story h2,
.team-section h2,
.services-detail h2,
.why-choose-us h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    transform: rotate(-0.5deg);
    position: relative;
}

.company-story h2::after,
.team-section h2::after,
.services-detail h2::after,
.why-choose-us h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #f39c12;
    border-radius: 2px;
    transform: rotate(1deg);
}

.company-story h3 {
    font-size: 1.5rem;
    color: #e74c3c;
    margin: 2rem 0 1rem 0;
    transform: rotate(0.5deg);
}

.company-story p,
.service-detail p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.team-member {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #95a5a6;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
}

.team-member:nth-child(even) {
    transform: rotate(-0.5deg);
}

.team-member:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 20px rgba(149, 165, 166, 0.3);
    border-color: #3498db;
}

.team-photo {
    width: 120px;
    height: 140px;
    margin-bottom: 1rem;
    border-radius: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.team-member h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transform: rotate(-0.3deg);
}

.team-member p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.team-member p strong {
    color: #e74c3c;
    font-weight: 700;
}

/* Services Detail Styles */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-detail {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #27ae60;
    transform: rotate(0.3deg);
    transition: all 0.3s ease;
}

.service-detail:nth-child(even) {
    transform: rotate(-0.3deg);
    border-color: #e74c3c;
}

.service-detail:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 8px 15px rgba(39, 174, 96, 0.2);
}

.service-detail h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

/* Advantages Section Styles */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #9b59b6;
    transform: rotate(0.4deg);
    transition: all 0.3s ease;
}

.advantage:nth-child(even) {
    transform: rotate(-0.4deg);
    border-color: #f39c12;
}

.advantage:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.3);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.advantage h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    transform: rotate(-0.3deg);
}

.advantage p {
    color: #7f8c8d;
}

/* Contact CTA Section */
.contact-cta {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    transform: rotate(-0.5deg);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 40px 40px;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: rotate(0.5deg);
    position: relative;
    z-index: 1;
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.contact-cta .cta-button {
    position: relative;
    z-index: 1;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .team-grid,
    .services-list,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .company-story,
    .team-section,
    .services-detail,
    .why-choose-us {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 100px;
        height: 120px;
    }
    
    .section-icon {
        width: 60px;
        height: 60px;
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.service-icon,
.testimonial-icon,
.contact-icon,
.blog-icon,
.section-icon,
.team-photo,
.advantage-icon {
    animation: float 3s ease-in-out infinite;
}

.service-icon { animation-delay: 0s; }
.testimonial-icon { animation-delay: 0.5s; }
.contact-icon { animation-delay: 1s; }
.blog-icon { animation-delay: 1.5s; }
.section-icon { animation-delay: 0.3s; }
.team-photo { animation-delay: 0.7s; }
.advantage-icon { animation-delay: 1.2s; }