/* Basis-Styles: LiveGoals Design inspiriert von xgamer.mobirisesite.com */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #1f2937;
    line-height: 1.6;
    min-height: 100vh;
}

body.dark {
    background: linear-gradient(135deg, #0f1419 0%, #1a2f4a 100%);
    color: #e5e7eb;
}

/* Theme color variables to keep typography consistent across modes */
:root {
    --text-main: #111827; /* default paragraph color (light mode) */
    --heading-main: #0f172a;
}

body.dark {
    --text-main: #cfe8ff; /* stylish cool-blue paragraph text */
    --heading-main: #eaf6ff; /* cool-blue headings */
}

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

/* ============ Header ============ */
header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
}

/* header::after removed to avoid duplicate underline when page navigation is present */

.header-top {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
}

/* Header Seiten-Navigation */
.page-nav {
    display: inline-flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
    position: relative;
}

.page-nav .nav-link {
    color: inherit;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s;
}

.page-nav .nav-link:hover {
    background: rgba(102,126,234,0.12);
    transform: translateY(-2px);
}

.page-nav::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    height: 3px;
    width: 220px; /* längere Linie unter der Navigation */
    max-width: 90%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.theme-toggle {
    position: static;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 10px;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

h1 {
    margin: 0 0 10px;
    font-size: 3em;
    font-weight: 700;
    transition: color 0.3s;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#subtitle {
    margin: 0;
    font-size: 1.2em;
    color: #6b7280;
    font-weight: 400;
}

body.dark #subtitle {
    color: #9ca3af;
}

/* ============ Header Social Links ============ */
.header-social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

.social-link-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.social-link-small i {
    font-size: 18px;
}

.social-link-small:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* ============ Buttons ============ */
.btn-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ============ Section Titles ============ */
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* ============ Section Bubbles ============ */
.section-bubble {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section-bubble:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark .section-bubble {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark .section-bubble:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============ Goals Grid ============ */
.goals-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.goal-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark .goal-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark .goal-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.goal-image {
    width: 100%;
    height: auto;
    flex: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    overflow: hidden;
}

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

.goal-content {
    padding: 15px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.goal-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 5px;
    color: #1f2937;
    line-height: 1.2;
}

body.dark .goal-title {
    color: #e5e7eb;
}

.goal-status {
    font-size: 0.75em;
    color: #667eea;
    margin-bottom: 3px;
    font-weight: 500;
}

body.dark .goal-status {
    color: #818cf8;
}

.goal-description {
    font-size: 0.8em;
    color: #6b7280;
    margin: 5px 0;
    line-height: 1.3;
    display: none;
}

body.dark .goal-description {
    color: #9ca3af;
}

.goal-progress {
    font-size: 0.75em;
    color: #6b7280;
    margin-top: 3px;
}

body.dark .goal-progress {
    color: #9ca3af;
}

/* More Goals Card */
.more-goals-card .goal-title a,
.more-goals-card .goal-status a {
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-goals-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.more-goals-card .goal-image {
    cursor: pointer;
}

/* ============ About Section ============ */
.about-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

body.dark .about-section {
    background-color: transparent;
    box-shadow: none;
}

.about-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.about-column {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.about-column:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

body.dark .about-column {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark .about-column:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.about-column h3 {
    margin: 0 0 15px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--heading-main);
}

/* heading color controlled by variables above */

.about-column p {
    margin: 0;
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-main);
    cursor: text;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

/* Make about boxes more visible in light mode */
body:not(.dark) .about-column {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,23,42,0.06);
    padding: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(16,24,40,0.06);
}

body:not(.dark) .about-column h3 {
    color: #0f172a;
}

.about-column p:focus {
    outline: none;
    background-color: rgba(102, 126, 234, 0.1);
}

/* Keep about paragraph text formatting consistent across themes */

/* ============ Social Section ============ */
.social-section {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0;
}

body.index-page .social-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    gap: 18px 20px;
    justify-items: center;
    align-items: center;
    max-width: 340px;
    margin: 0 auto;
}
body.index-page .social-link:nth-child(1) { grid-row: 1; grid-column: 2; }
body.index-page .social-link:nth-child(2) { grid-row: 1; grid-column: 4; }
body.index-page .social-link:nth-child(3) { grid-row: 2; grid-column: 1; }
body.index-page .social-link:nth-child(4) { grid-row: 2; grid-column: 3; }
body.index-page .social-link:nth-child(5) { grid-row: 2; grid-column: 5; }

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    font-size: 28px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.social-link i {
    font-size: 28px;
}

.social-link:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Linktree vertical buttons */
.linktree-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.social-item {
    display: block;
}

.social-btn {
    width: 320px;
    max-width: 90vw;
    height: 72px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 20px;
    background: linear-gradient(135deg, rgba(70,80,160,0.95), rgba(110,58,138,0.95));
    color: white;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.05);
}

.social-btn i {
    font-size: 28px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-text {
    font-weight: 600;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.36);
}

body.dark .social-btn {
    background: linear-gradient(135deg, rgba(20,28,40,0.9), rgba(36,40,60,0.9));
    border: 1px solid rgba(255,255,255,0.04);
}

/* ============ Kontakt Section ============ */
.contact-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

body.dark .contact-section {
    background-color: transparent;
    box-shadow: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    background-color: white;
    color: #1f2937;
}

body.dark .contact-form .form-group input,
body.dark .contact-form .form-group textarea {
    background-color: #374151;
    color: #e5e7eb;
    border-color: #4b5563;
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #1f2937;
}

body.dark .contact-form .form-group label {
    color: #e5e7eb;
}

.contact-form .btn-primary {
    align-self: flex-start;
}

/* ============ Modal ============ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body.dark .modal-content {
    background-color: #1f2937;
}

.modal h2 {
    margin-top: 0;
    color: #1f2937;
}

body.dark .modal h2 {
    color: #e5e7eb;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
}

.close:hover {
    color: #1f2937;
}

body.dark .close:hover {
    color: #e5e7eb;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

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

body.dark .form-group input,
body.dark .form-group textarea,
body.dark .form-group select {
    background-color: #374151;
    color: #e5e7eb;
    border-color: #4b5563;
}

/* ============ Responsive Design ============ */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2em;
    }

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

    .section-title {
        font-size: 1.5em;
    }

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

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    #subtitle {
        font-size: 1em;
    }

    .goals-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .goal-image {
        height: 150px;
        font-size: 2.5em;
    }

    .goal-content {
        padding: 15px;
    }

    .social-links {
        gap: 15px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .section-title {
        font-size: 1.3em;
        margin: 30px 0 20px;
    }

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

/* ============ Footer ============ */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
}

body.dark .footer {
    color: #9ca3af;
    border-top-color: rgba(255, 255, 255, 0.05);
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.8rem;
}