/* ===========================
   akkas.eu — Design System
   =========================== */

/* --- CSS Variables (Light Theme) --- */
:root {
    --bg: #f9f9f9;
    --container-bg: #fff;
    --card-bg: #e3f2fd;
    --input-bg: #fff;
    --input-border: #ddd;
    --input-text: #222;
    --input-placeholder: #888;
    --text: #222;
    --subtitle: #a0a0a0;
    --primary: #0077cc;
    --tab-bg-active: #e6f0fa;
    --tab-shadow: 0 2px 12px 0 rgba(0, 119, 204, 0.08);
    --tab-underline: linear-gradient(90deg, #5bbcff 0%, #0077cc 100%);
    --footer-bg: #f8f9fa;
    --footer-text: #666;
    --modal-bg: #fff;
    --modal-overlay: rgba(0, 0, 0, 0.5);
}

/* --- Dark Theme --- */
.dark-mode {
    --bg: #181c22;
    --container-bg: #23272f;
    --card-bg: #232f3a;
    --input-bg: #23272f;
    --input-border: #444c56;
    --input-text: #f3f3f3;
    --input-placeholder: #888;
    --text: #f3f3f3;
    --subtitle: #b3b3b3;
    --primary: #5bbcff;
    --tab-bg-active: #22304a;
    --tab-shadow: 0 2px 12px 0 rgba(91, 188, 255, 0.10);
    --tab-underline: linear-gradient(90deg, #5bbcff 0%, #0077cc 100%);
    --footer-bg: #23272f;
    --footer-text: #b3b3b3;
    --modal-bg: #23272f;
    --modal-overlay: rgba(0, 0, 0, 0.7);
}

/* --- Base --- */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* --- Neural Network Background --- */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.container,
.language-switcher,
.theme-toggle,
.impressum-modal,
.success-modal {
    position: relative;
    z-index: 1;
}

/* --- Language Switcher --- */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--container-bg);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 5px;
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--subtitle);
    transition: all 0.3s ease;
}

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

.lang-btn:hover:not(.active) {
    background: #f0f0f0;
    color: #333;
}

/* --- Container --- */
.container {
    max-width: 1000px;
    margin: 20px auto;
    background: var(--container-bg);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 80px;
}

/* --- Header --- */
.header {
    text-align: center;
    padding: 40px 40px 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

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

.widgets-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* --- Calendar Widget --- */
.calendar-widget {
    background: var(--tab-bg-active);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 12px;
    min-width: 160px;
    max-width: 220px;
    font-size: 0.85rem;
    margin: 30px auto 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    font-size: 0.75rem;
    padding: 3px 0;
    border-radius: 4px;
}

.calendar-day.today {
    background: #2ecc40;
    color: #fff;
    font-weight: 500;
}

.calendar-day.other-month {
    opacity: 0.4;
}

/* --- Profile Picture --- */
.profile-pic {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: block;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Header Typography --- */
.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    color: var(--subtitle);
}

/* --- Tabs Navigation --- */
.tabs-nav {
    display: flex;
    background: var(--container-bg);
    border-bottom: 1px solid #e0e0e0;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    padding: 18px 22px;
    background: none;
    border: none;
    color: var(--subtitle);
    font-size: 0.97rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 140px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    text-align: center;
}

.tab-button:hover {
    background: #f8f9fa;
    color: #333;
}

.tab-button.active {
    color: var(--primary);
    background: var(--tab-bg-active);
    box-shadow: var(--tab-shadow);
    position: relative;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tab-underline);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 2px 8px 0 rgba(0, 119, 204, 0.10);
}

/* --- Tab Content --- */
.tab-content {
    display: none;
    padding: 40px;
    animation: fadeInUp 0.4s ease;
    min-height: 500px;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Styles --- */
.section h2 {
    color: var(--text);
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
}

.section h3 {
    color: var(--primary);
    margin-bottom: 10px;
    margin-top: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

.section p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
}

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

.section li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.section li::before {
    content: '▸';
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 8px;
}

/* --- Skills Grid --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.skill-category {
    background: var(--tab-bg-active);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.skill-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* --- Contact Info --- */
.contact-info {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    margin: 5px;
    display: inline-block;
    border-radius: 25px;
    background: var(--container-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary, #0077cc, 0.3);
}

/* --- Experience & Education Items --- */
.experience-item,
.education-item {
    background: var(--tab-bg-active);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.experience-item h3,
.education-item h3 {
    margin-top: 0;
}

/* --- Volunteer Items --- */
.volunteer-item {
    background: var(--tab-bg-active);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.volunteer-item h3 {
    margin-top: 0;
    color: var(--primary);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 30px;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 10px;
}

/* --- Impressum Link --- */
.impressum-link {
    display: block;
    font-size: 1.15rem;
    font-family: 'Inter', sans-serif;
    text-decoration: underline;
    color: var(--text);
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
}

/* --- Impressum Modal --- */
.impressum-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: var(--modal-overlay);
    justify-content: center;
    align-items: center;
}

.impressum-modal.active {
    display: flex;
}

.impressum-modal-content {
    background: var(--modal-bg);
    border-radius: 16px;
    max-width: 600px;
    width: 90vw;
    padding: 40px 30px 30px 30px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    font-family: 'Inter', sans-serif;
}

.impressum-modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    background: none;
    border: none;
}

/* --- About Intro --- */
.about-intro {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

/* --- Contact Form --- */
.contact-form {
    margin-top: 40px;
    background: var(--tab-bg-active);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, background 0.3s, color 0.3s;
    background: var(--input-bg);
    color: var(--input-text);
    box-sizing: border-box;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0077cc;
    box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--input-placeholder);
    opacity: 1;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #005fa3;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* --- Blog Styles --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: var(--container-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 1.3rem;
}

.blog-date {
    color: var(--subtitle);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-excerpt {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #005fa3;
}

.blog-subtitle {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 2px;
    margin-top: 0;
    font-weight: 400;
    opacity: 1;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--modal-bg);
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.blog-post {
    line-height: 1.8;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.blog-post h2 {
    color: var(--text);
    margin-bottom: 20px;
}

.blog-post p {
    margin-bottom: 20px;
    color: #444;
}

/* --- Success Modal --- */
.success-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: var(--modal-overlay);
    justify-content: center;
    align-items: center;
}

.success-modal.active {
    display: flex;
}

.success-modal-content {
    background: var(--modal-bg);
    border-radius: 18px;
    padding: 40px 30px 30px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    text-align: center;
    min-width: 260px;
    max-width: 90vw;
}

.success-check {
    font-size: 3.2rem;
    color: #2ecc40;
    margin-bottom: 18px;
}

.success-message {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 18px;
}

.success-close-btn {
    background: #2ecc40;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.success-close-btn:hover {
    background: #27ae38;
}

/* --- Contact Form Container --- */
.contact-form-container {
    flex: 1;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* --- Google Form --- */
.google-form-iframe {
    width: 100%;
    height: 600px;
    border: none;
    background: transparent;
    filter: var(--form-filter);
}

[data-theme="dark"] .google-form-iframe {
    --form-filter: invert(1) hue-rotate(180deg);
}

/* --- Language Content --- */
.language-content {
    display: none;
}

.language-content.active {
    display: block;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2001;
    background: var(--container-bg);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

/* --- German Tab Override --- */
html[lang="de"] .tab-button {
    font-size: 0.93rem;
    min-width: 150px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        margin-top: 80px;
    }

    .tabs-nav {
        flex-wrap: wrap;
        gap: 4px;
    }

    .tab-button {
        min-width: 110px;
        font-size: 0.89rem;
        padding: 11px 6px;
    }

    .tab-content {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .widgets-section {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .calendar-widget {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
    }

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

    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .impressum-modal-content {
        padding: 20px 10px 15px 10px;
    }
}