/* 
 * Main Stylesheet for KI-Recht Kanzlei Landing Page
 * Author: Manus AI
 * Version: 1.0
 */

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #777;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50;
    
    /* Risk Level Colors */
    --risk-unacceptable: #e74c3c;
    --risk-high: #f39c12;
    --risk-limited: #3498db;
    --risk-minimal: #2ecc71;
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;
    
    /* Borders */
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-color);
}

p {
    margin-bottom: 20px;
}

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

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

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

section {
    padding: var(--section-padding);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

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

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

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 0;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.language-selector {
    display: flex;
    align-items: center;
}

.language-selector a {
    margin-left: 10px;
    font-weight: 500;
    color: var(--text-light);
}

.language-selector a.active {
    color: var(--secondary-color);
}

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

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

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0 100px;
    text-align: center;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.hero h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--light-color);
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--bg-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-highlights {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.highlight {
    text-align: center;
}

.highlight i {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.highlight h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 30px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 500;
    position: relative;
}

.service-link::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.service-link:hover::after {
    margin-left: 10px;
}

/* ===== EXPERTISE SECTION ===== */
.expertise {
    background-color: var(--bg-light);
}

.expertise-content {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.expertise-text {
    flex: 1;
}

.expertise-text h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.expertise-text h3:first-child {
    margin-top: 0;
}

.expertise-visual {
    flex: 1;
}

.timeline {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

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

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    border-left: 2px solid var(--secondary-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.risk-classification {
    margin-top: 50px;
}

.risk-classification h3 {
    text-align: center;
    margin-bottom: 30px;
}

.risk-levels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.risk-level {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    border-top: 5px solid;
}

.risk-unacceptable {
    border-color: var(--risk-unacceptable);
}

.risk-high {
    border-color: var(--risk-high);
}

.risk-limited {
    border-color: var(--risk-limited);
}

.risk-minimal {
    border-color: var(--risk-minimal);
}

.risk-level h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.risk-level p {
    font-style: italic;
    margin-bottom: 15px;
}

/* ===== CASES SECTION ===== */
.cases-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.case-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.case-image {
    flex: 1;
    min-height: 300px;
    background-color: var(--bg-light);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    flex: 2;
    padding: 30px;
}

.case-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.case-result {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.testimonials {
    text-align: center;
}

.testimonials h3 {
    margin-bottom: 30px;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.testimonial p {
    font-size: 18px;
    font-style: italic;
    position: relative;
}

.testimonial p::before {
    content: '"';
    font-size: 60px;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
}

.testimonial-author {
    margin-top: 20px;
}

/* ===== TEAM SECTION ===== */
.team {
    background-color: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.member-position {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

/* ===== BLOG SECTION ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.blog-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 500;
    position: relative;
}

.blog-link::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.blog-link:hover::after {
    margin-left: 10px;
}

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

/* ===== COMPLIANCE CHECK SECTION ===== */
.compliance-check {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../images/compliance-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.compliance-check .section-header h2,
.compliance-check .section-header p {
    color: white;
}

.compliance-check .section-header h2::after {
    background-color: white;
}

.compliance-check-content {
    max-width: 700px;
    margin: 0 auto;
}

.compliance-check-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-map {
    margin-top: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-form {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 16px;
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links-column {
    flex: 1;
    min-width: 150px;
}

.footer-links-column h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column li {
    margin-bottom: 10px;
}

.footer-links-column a {
    color: #ccc;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

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

.newsletter input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    font-family: var(--body-font);
    font-size: 14px;
}

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .about-content,
    .expertise-content,
    .contact-content {
        flex-direction: column;
    }
    
    .case-card {
        flex-direction: column;
    }
    
    .case-image {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 30px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .about-highlights {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active ul {
        flex-direction: column;
    }
    
    .main-nav.active li {
        margin: 10px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 26px;
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .risk-levels {
        grid-template-columns: 1fr;
    }
    
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
