/* Hand-drawn styling for German Financial Planning Course */

@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Caveat:wght@400;500;600;700&display=swap');

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

:root {
    --primary-color: #2E7D32;
    --secondary-color: #FF6B35;
    --accent-color: #FFC107;
    --text-dark: #2C3E50;
    --text-light: #34495E;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --border-color: #E9ECEF;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Kalam', cursive;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden;
}

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

/* Hand-drawn elements */
.hand-drawn-border {
    position: relative;
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    transform: rotate(-0.5deg);
}

.hand-drawn-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    transform: rotate(1deg);
    z-index: -1;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-white);
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-text h1 {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    transform: rotate(-1deg);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-graphic img {
    width: 100%;
    height: auto;
    max-width: 500px;
    transform: rotate(2deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-family: 'Kalam', cursive;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    transform: rotate(-0.5deg);
}

.btn:hover {
    transform: rotate(0deg) scale(1.05);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #1B5E20;
    border-color: #1B5E20;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: #E55722;
    border-color: #E55722;
}

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

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

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

section h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    transform: rotate(-1deg);
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 30px 0 15px;
    transform: rotate(0.5deg);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-text ul {
    list-style: none;
    margin: 20px 0;
}

.about-text li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Services Section */
.services {
    background: var(--background-light);
}

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

.service-card {
    background: var(--background-white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    position: relative;
    border: 2px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px) rotate(-0.5deg);
}

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

.service-icon img {
    width: 80px;
    height: 80px;
}

.service-card h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

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

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

.testimonial-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    position: relative;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-content h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-content span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    background: var(--background-light);
}

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

.blog-card {
    background: var(--background-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease;
    transform: rotate(0.5deg);
}

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

.blog-icon {
    margin-bottom: 15px;
}

.blog-icon img {
    width: 50px;
    height: 50px;
}

.blog-content h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content a:hover {
    color: var(--secondary-color);
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* Blog Articles (Hidden) */
.blog-article {
    background: var(--background-white);
    padding: 80px 0;
    min-height: 60vh;
}

.blog-article.hidden {
    display: none;
}

/* Subscription Section */
.subscribe {
    background: var(--primary-color);
    color: white;
}

.subscribe h2 {
    color: white;
}

.subscribe p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.subscription-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--background-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transform: rotate(-0.5deg);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscription-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Legal Section */
.legal {
    background: var(--background-light);
    padding: 40px 0;
}

.legal h2 {
    margin-bottom: 30px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--secondary-color);
}

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

.modal-content {
    background-color: var(--background-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

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

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #CCC;
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
}

.thanks-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transform: rotate(-0.5deg);
}

.thanks-content h1 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thanks-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.thanks-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Mobile Menu Styles */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

.nav.mobile-open {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--background-white);
    box-shadow: var(--shadow-medium);
    z-index: 998;
    padding: 20px 0;
}

.nav.mobile-open ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nav.mobile-open a {
    font-size: 1.2rem;
    padding: 10px 20px;
    display: block;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .legal-links {
        flex-direction: column;
        align-items: center;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .subscription-form {
        padding: 30px 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
    }
}

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

/* Animation for hand-drawn elements */
@keyframes drawBorder {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Utility classes */
.hidden {
    display: none;
}

.show {
    display: block;
}

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

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}
