/* styles.css */

/* =====================================================
   CSS VARIABLES & THEME
   ===================================================== */
:root {
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Colors - Modern Slate & Indigo Theme */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --primary: #4f46e5; /* Indigo 600 */
    --primary-glow: rgba(79, 70, 229, 0.15);
    --primary-hover: #4338ca;
    
    --accent: #0ea5e9; /* Sky 500 */

    /* Borders & Shadows */
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px -5px var(--primary-glow);

    /* Spacing & Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --container-width: 1000px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0f172a;
        --bg-surface: #1e293b;
        --bg-surface-hover: #334155;
        
        --text-main: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;

        --border: #334155;
        --border-hover: #475569;
        
        --primary: #6366f1; /* Indigo 500 */
        --primary-glow: rgba(99, 102, 241, 0.2);
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* =====================================================
   LANGUAGE SWITCHER LOGIC
   ===================================================== */
body[data-active-lang="de"] [data-lang="en"],
body[data-active-lang="en"] [data-lang="de"] {
    display: none !important;
}

body[data-active-lang="de"] [data-lang="de"],
body[data-active-lang="en"] [data-lang="en"] {
    display: var(--original-display, inline);
}

.nav-lang-switch button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
}

.nav-lang-switch button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.section-spacer {
    padding: 5rem 0;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    background: rgba(var(--bg-body), 0.8);/*  Transparent Fallback */
    /*background-color: var(--bg-surface);  Solid fallback */
    backdrop-filter: blur(12px); /* This provides the transparency effect */
    -webkit-backdrop-filter: blur(12px);
    /*border-bottom: 1px solid rgba(128, 128, 128, 0.1);*/
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-name {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
    z-index: 1002;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =====================================================
   HERO SECTION (Index Only)
   ===================================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--primary-glow);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-body {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-body p {
    margin-bottom: 1rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.pill {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-body);
    border: 1px solid var(--text-main);
}

.btn-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: var(--bg-surface);
}

/* =====================================================
   SECTIONS GENERAL
   ===================================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    max-width: 600px;
}

/* =====================================================
   TABLE STYLES (For Hardware Guidelines)
   ===================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

table th, table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--bg-surface-hover);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background-color: var(--bg-surface-hover);
}

/* =====================================================
   SERVICES (Bento Grid)
   ===================================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .card::before {
        background: radial-gradient(
            800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.08),
            transparent 40%
        );
    }
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.badge-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-free { 
    background: #dcfce7; 
    color: #15803d; 
    border: 1px solid #86efac; 
    
}

.badge-remote { background: #e0f2fe; color: #0369a1; }
.badge-regional { background: #dcfce7; color: #15803d; }
.badge-new { background: #f3e8ff; color: #7e22ce; }

@media (prefers-color-scheme: dark) {
    .badge-remote { background: #0c4a6e; color: #e0f2fe; }
    .badge-regional { background: #14532d; color: #dcfce7; }
    .badge-new { background: #581c87; color: #f3e8ff; }
    .badge-free { background: #14532d; color: #dcfce7; border-color: #22c55e; }
}

.service-full {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(79, 70, 229, 0.03) 100%);
    border: 1px solid var(--border);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.example-box {
    background: var(--bg-surface);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.example-box h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.example-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =====================================================
   PROJECTS SECTION
   ===================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    /*border-color: var(--primary);*/
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes links to bottom */
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background-color: var(--bg-surface-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.project-link.secondary {
    color: var(--text-secondary);
}

/* =====================================================
   NOTEBOOK SECTION
   ===================================================== */
.notebook-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.entry {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: default;
    cursor: pointer; /* Forces the hand pointer on hover */
}

.entry:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.entry-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 100px;
}

.entry-content {
    flex: 1;
}

.entry-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.entry-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* =====================================================
   BLOG POST STYLES
   ===================================================== */
.blog-post {
    width: 100%;
    max-width: var(--container-width); /* Matches homepage width */
    margin: 0 auto;
    padding-top: 2rem;
}

/* HEADER SECTION */
.blog-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Metadata Pills */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.blog-meta-item {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-category {
    background: var(--primary-glow);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

/* Typography */
.blog-title {
    font-size: clamp(2rem, 4vw, 3rem); /* Larger, responsive title */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px; /* Keep subtitle slightly narrower for readability */
}

/* CONTENT BODY */
.blog-content {
    font-size: 1.125rem; /* Slightly larger body text */
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    /* Visual Anchor */
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.blog-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.75rem;
}

.blog-content ul {
    list-style: none; /* Explicitly remove bullets */
    list-style-type: none; /* Force removal */
    padding-left: 0;
    margin-bottom: 2rem;
}

/* Unordered Lists (Bullets) */
.blog-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content ul li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Ordered Lists (Numbers) */
.blog-content ol {
    list-style: none; /* Remove default browser numbers */
    counter-reset: item; /* Create a custom counter */
    padding-left: 0;
    margin-bottom: 2rem;
}

.blog-content ol li {
    position: relative;
    padding-left: 2.5rem; /* More space for the number */
    margin-bottom: 0.75rem;
    counter-increment: item; /* Increment the counter */
}

/* Create the custom number */
.blog-content ol li::before {
    content: counter(item) "."; /* Display the number */
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem; /* Fixed width for alignment */
    text-align: right;
}

.blog-content strong {
    color: var(--text-main);
    font-weight: 700;
}

/* SPECIAL BOXES */
.spec-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
}

.spec-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.spec-item {
    display: flex;
    flex-direction: column; /* Stack label and value */
    gap: 0.25rem;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.spec-value {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

/* Highlight / Callout Box */
.highlight-box {
    background: linear-gradient(135deg, var(--bg-surface-hover) 0%, rgba(79, 70, 229, 0.05) 100%);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
    overflow: hidden;
}

/* Decorative Quote Mark */
.highlight-box::before {
    content: "“";
    position: absolute;
    top: -1rem;
    left: 0.5rem;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-5px); /* Subtle movement */
}

@media (max-width: 768px) {
    .spec-list {
        grid-template-columns: 1fr;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* =====================================================
   COLLAPSIBLE LISTS (For Blog Posts)
   ===================================================== */
.collapsible-wrapper {
    margin-bottom: 2rem;
}

.collapsible-header {
    cursor: pointer;
    padding: 1rem;
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.collapsible-header:hover {
    background-color: var(--border);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-bottom: 2rem;
}

.collapsible-content.open {
    /* JS will set specific height, or a large max-height */
    max-height: 1000px; 
    overflow-y: auto;
}

.blog-content .member-list {
    list-style: none; /* Remove default numbers */
    counter-reset: member-counter; /* Create a specific counter for this list */
    padding: 1rem;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.blog-content .member-list li {
    list-style-type: none;
    padding-left: 2.5rem;
    padding-top: 0; /* Remove top padding */
    padding-bottom: 0.5rem; /* Keep bottom spacing */
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-hover);
    width: 100%;
    box-sizing: border-box;
    counter-increment: member-counter;
    position: relative;
    line-height: 1.5; /* Ensure consistent line height */
}

/* Create the custom number */
.blog-content .member-list   li::before {
    content: counter(member-counter) "."; /* Display the number */
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0; /* Align to the very top */
    line-height: 1.5; /* Match the list item's line height */
    width: 2rem;
    text-align: right;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.collapsible-header.active .toggle-icon {
    transform: rotate(180deg);
}

/* =====================================================
   AI DISCLOSURE FOOTER
   ===================================================== */
.ai-disclosure {
    margin-top: 3rem;
    padding: 1rem 1.5rem;
    background: rgba(79, 70, 229, 0.03);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.ai-disclosure strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.ai-disclosure p {
    margin: 0;
    line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
    .ai-disclosure {
        background: rgba(99, 102, 241, 0.05);
        border-color: rgba(99, 102, 241, 0.15);
    }
}

/* =====================================================
   PRICING SECTION
   ===================================================== */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Decorative top border */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1rem 0;
    letter-spacing: -2px;
}

.pricing-sub {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-body {
    text-align: left;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-surface-hover);
    border-radius: var(--radius-md);
}

.pricing-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-top: 1.5rem;
}

.pricing-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
}

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

.pricing-footer {
    margin-top: 2rem;
}

/* =====================================================
   PRICING SECTION (Grid Layout)
   ===================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Ensures cards are same height */
}

.pricing-tier {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;/* Transition */
    position: relative;
}

.pricing-tier:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    /*border-color: var(--border-hover);*/
}

/* Highlight the middle tier */
.pricing-tier.featured {
    /*border-color: var(--primary);*/
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
    z-index: 1;
}

.pricing-tier.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1rem 0;
    letter-spacing: -1px;
}

.pricing-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 2.8em; /* Aligns headers visually */
}

.pricing-body {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.pricing-footer {
    margin-top: auto;
}

/* Mobile adjustment for pricing */
@media (max-width: 768px) {
    .pricing-tier.featured {
        transform: none;
    }
    .pricing-tier.featured:hover {
        transform: translateY(-5px);
    }
}

/* =====================================================
   NEW PRICING / COLLABORATION SECTION
   ===================================================== */
.collab-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: stretch;
}

.collab-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.collab-intro {
    justify-content: center;
    text-align: center;
}

.collab-intro h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.collab-intro p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.exchange-box {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: left;
}

.exchange-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.exchange-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
}

.exchange-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Task List Styles */
.task-category {
    margin-bottom: 2rem;
}

.task-category:last-child {
    margin-bottom: 0;
}

.task-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.task-category {
    margin-bottom: 2rem;
}

.task-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.task-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}
/*
.task-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    top: -2px;
}
*/
/* =====================================================
   Accordion Styles
   ===================================================== */
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0;
    text-align: left;
    color: inherit;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
} 
   
/* =====================================================
   CONTACT SECTION (Modernized)
   ===================================================== */
.contact-section {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
    border-top: 1px solid var(--border);
    padding-bottom: 6rem; /* Extra space at bottom */
}

.contact-card {
    background: rgba(255, 255, 255, 0.7); /* Glass effect base */
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    max-width: 700px; /* Slightly wider for new layout */
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px); /* The blur effect */
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark mode adjustment for glass effect */
@media (prefers-color-scheme: dark) {
    .contact-card {
        background: rgba(30, 41, 59, 0.7); /* Darker glass */
    }
}

.contact-links {
    display: flex;
    flex-direction: column; /* Keeps them in one column */
    gap: 1rem;
    margin-top: 2rem;
    /* These two lines force equal width */
    width: 100%;           /* Make the container full width */
    align-items: stretch;  /* Force all children (buttons) to stretch to fill width */
}

/* Individual Contact Item Styling */
.contact-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    position: relative;
    flex: 1; /* Equal width */
    justify-content: flex-start;
}

.contact-link-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-surface-hover);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-surface-hover);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* =====================================================
   LEGAL PAGES (Impressum & Datenschutz)
   ===================================================== */
.legal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.legal-card h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.legal-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-card li {
    margin-bottom: 0.5rem;
}

.legal-card a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.highlight {
    background: rgba(79, 70, 229, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--text-main);
}

.contact-box {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* =====================================================
   FOOTER & SOCIAL LINKS
   ===================================================== */
footer {
    padding: 3rem 0; /* Increased padding slightly */
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background-color: var(--bg-surface); /* Optional: distinct background */
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0; /* Space above and below icons */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-surface-hover);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* Ensure the emoji inside HuggingFace icon is centered vertically */
.social-icon span {
    line-height: 1;
}

/* =====================================================
   CUSTOM BULLET STYLES (Collaboration Section)
   ===================================================== */

/* Base styles for all custom bullets to ensure alignment */
.bullets-check, 
.bullets-terminal, 
.bullets-gear, 
.bullets-arrow {
    padding-left: 1.5rem; /* Indent the list */
}

/* 1. Web Development: The Checkmark */
.bullets-check {
    list-style-type: "✓  ";
}

/* 2. Local AI: The Terminal Prompt */
.bullets-terminal {
    list-style-type: ">  ";
}

/* 3. IT Support: The Gear */
.bullets-gear {
    list-style-type: "⚙  ";
}

/* 4. Important Info: The Arrow */
.bullets-arrow {
    list-style-type: "→  ";
}
/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .service-grid, .examples-grid {
        grid-template-columns: 1fr;
    }

    .entry {
        flex-direction: column;
        gap: 0.5rem;
    }

    .entry-date {
        min-width: auto;
        font-size: 0.75rem;
        opacity: 0.8;
    }

    .legal-card {
        padding: 1.5rem;
    }
    
    /* --- BLOCK FOR BLOG MOBILE STYLES --- */
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
        padding-left: 0; /* Remove left padding */
        border-left: none; /* Remove left border */
        border-top: 4px solid var(--primary); /* Add top border instead */
        padding-top: 1rem; /* Add padding top */
    }

    .spec-list {
        grid-template-columns: 1fr; /* Stack specs on mobile */
    }
    
    .collab-grid {
    grid-template-columns: 1fr;
    }
    
    /* Force contact buttons to stack on mobile */
    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }
    /* ----------------------------------------------- */
}
