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

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

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

/* Root Variables */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #5a8fd6;
    --accent-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-radius: 15px;
    --shadow: 0 8px 32px rgba(44, 90, 160, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: 'Kalam', cursive;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Hand-drawn elements */
.hand-drawn {
    filter: url(#roughPaper);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 3px;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn-cta, .btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent-color), #ff8a80);
    color: var(--white);
    transform: rotate(-1deg);
}

.btn-cta:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(44, 90, 160, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: var(--transition);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-category {
    margin: 20px 0;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.cookie-modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-text h1 {
    font-size: 1.8rem;
    margin: 0;
    transform: rotate(-2deg);
}

.logo-text p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-light);
    font-style: italic;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20S-10 18.954-10 30s8.954 20 20 20 20-8.954 20-20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    text-align: left;
    transform: rotate(-1deg);
}

.hero-text h2::after {
    display: none;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 100px 0;
}

.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--background-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    transform: rotate(1deg);
}

.service-card:nth-child(2) {
    transform: rotate(-1deg);
}

.service-card:nth-child(3) {
    transform: rotate(1.5deg);
}

.service-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.15);
}

.service-card h3 {
    margin: 25px 0 20px;
    font-size: 1.6rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.service-icon {
    margin-bottom: 20px;
}

/* About Preview */
.about-preview {
    background: linear-gradient(135deg, var(--background-light), #e3f2fd);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text h2::after {
    left: 0;
    transform: none;
}

/* Testimonials */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial {
    background: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transform: rotate(-0.5deg);
}

.testimonial:nth-child(2) {
    transform: rotate(0.8deg);
}

.testimonial:nth-child(3) {
    transform: rotate(-1.2deg);
}

.testimonial:hover {
    transform: rotate(0deg) translateY(-5px);
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 20px 0;
    color: var(--text-dark);
}

.testimonial cite {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* Blog Preview */
.blog-preview {
    background: linear-gradient(135deg, var(--background-light), #f3e5f5);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: rotate(0.5deg);
}

.blog-card:nth-child(2) {
    transform: rotate(-0.8deg);
}

.blog-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.15);
}

.blog-card h3 {
    padding: 20px 25px 10px;
    font-size: 1.4rem;
}

.blog-card p {
    padding: 0 25px;
    color: var(--text-light);
    font-size: 1rem;
}

.blog-card .read-more {
    display: inline-block;
    padding: 15px 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.blog-card .read-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.blog-all {
    text-align: center;
    margin-top: 50px;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: rotate(0.5deg);
}

.contact-form:hover {
    transform: rotate(0deg);
}

.contact-form h3 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(90, 143, 214, 0.1);
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #34495e);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: row;
        gap: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 100px 30px 30px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }
    
    .nav.mobile-menu-open {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }
    
    .nav a {
        font-size: 1.2rem;
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .btn-cta, .btn-primary, .btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Animation classes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

/* Article Page Styles */
.article-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.article-content {
    padding: 80px 0;
}

.article-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-text .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

.article-text h2 {
    color: var(--primary-color);
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: left;
    font-size: 2rem;
}

.article-text h2::after {
    display: none;
}

.article-text h3 {
    color: var(--secondary-color);
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.article-text h4 {
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.article-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-text ul, .article-text ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.article-text li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.info-box, .example-box, .tip-box, .cta-box {
    margin: 40px 0;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.info-box {
    background: #e3f2fd;
    border-left-color: var(--primary-color);
}

.example-box {
    background: #f3e5f5;
    border-left-color: var(--secondary-color);
}

.tip-box {
    background: #e8f5e8;
    border-left-color: #4CAF50;
}

.cta-box {
    background: var(--background-light);
    text-align: center;
    border-left-color: var(--accent-color);
}

.info-box h3, .example-box h3, .tip-box h3, .cta-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.author-box, .related-articles, .contact-cta {
    background: var(--background-light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.author-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

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

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 15px;
}

.related-articles a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.related-articles a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.contact-cta {
    text-align: center;
}

.contact-cta h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-cta p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Mobile Article Styles */
@media (max-width: 768px) {
    .article-header {
        padding: 130px 0 50px;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }
    
    .article-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .article-meta span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .article-text {
        font-size: 1rem;
    }
    
    .article-text h2 {
        font-size: 1.7rem;
        margin-top: 40px;
    }
    
    .article-text h3 {
        font-size: 1.4rem;
        margin-top: 30px;
    }
    
    .info-box, .example-box, .tip-box, .cta-box {
        padding: 20px;
        margin: 30px 0;
    }
    
    .article-sidebar {
        position: static;
        top: auto;
        height: auto;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}