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

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* =================================
   Header Styles
   ================================= */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 20px;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav > a, .dropbtn {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    padding-bottom: 0.5rem;
    font-size: inherit;
    font-family: inherit;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    top: 100%;
    margin-top: 0;
    left: 0;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* =================================
   Main & Hero Section
   ================================= */
main {
    min-height: calc(100vh - 200px);
}

#hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

#hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

.hero-lead {
    font-size: 1.5rem;
    font-weight: 500;
}

/* =================================
   About Section
   ================================= */
#about {
    padding: 4rem 0;
    background-color: var(--white);
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

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

.about-content > p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.value-item {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.value-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.value-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* =================================
   Services Section
   ================================= */
#services {
    padding: 4rem 0;
}

#services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.25rem;
}

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

.service-link-external {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-link-external:hover {
    background-color: var(--primary-hover);
}

/* =================================
   Imprint Page
   ================================= */
#imprint {
    padding: 3rem 0;
}

#imprint h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.imprint-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.imprint-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.imprint-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.imprint-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.imprint-section h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.imprint-section p {
    color: var(--text-light);
    line-height: 1.8;
}

.imprint-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.imprint-section a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* =================================
   Footer Styles
   ================================= */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

/* =================================
   Responsive Design
   ================================= */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    nav {
        gap: 1rem;
        justify-content: center;
    }

    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    #services h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        justify-content: center;
        text-align: center;
    }

    .imprint-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    nav {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    #hero {
        padding: 3rem 0;
    }

    #hero h2 {
        font-size: 1.5rem;
    }

    #services {
        padding: 2rem 0;
    }
}

/* =================================
   Service Detail Pages
   ================================= */
#service-detail {
    padding: 2rem 0 4rem;
}

.service-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.service-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.service-main h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-main h2:first-of-type {
    margin-top: 0;
}

.service-main h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-main p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.service-main ul, .service-main ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-main li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-light);
}

.service-detail-image {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.service-cta {
    background: linear-gradient(135deg, #4c51bf 0%, #5b21b6 100%);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 3rem;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.service-cta p {
    color: #f8fafc;
}

.cta-note {
    color: #f8fafc;
    margin-top: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-box {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.sidebar-box dl {
    margin: 0;
}

.sidebar-box dt {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.75rem;
}

.sidebar-box dt:first-child {
    margin-top: 0;
}

.sidebar-box dd {
    color: var(--text-light);
    margin-left: 0;
    margin-bottom: 0.5rem;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.related-services a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.related-services a:hover {
    text-decoration: underline;
}

/* =================================
   Blog Post Pages
   ================================= */
#blog-post {
    padding: 2rem 0;
}

.blog-container {
    max-width: 800px;
}

.post-header {
    position: static;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 0.5rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.95rem;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content code {
    background-color: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.post-footer {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.post-footer .back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.35rem;
}

.post-footer .back-link:hover {
    transform: translateX(-4px);
    background-color: var(--bg-light);
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .service-detail-content {
        grid-template-columns: 1fr;
    }

    .service-header h1 {
        font-size: 2rem;
    }
}
