@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700;800;900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* FARBPALETTE & THEME VARIABLES */
:root {
    --bg-color: #0b120f;          /* Extrem dunkles Smaragd-Anthrazit */
    --primary-color: #005a36;     /* Smaragdgrün */
    --text-color: #f4f7f5;        /* Helles Salbeigrau als Textfarbe */
    --accent-color: #e64082;      /* Pink bleibt identisch */
    
    /* Dark Mode UI-Komponenten (Default) */
    --card-bg: #121e18;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --header-bg: rgba(11, 18, 15, 0.9);
    --contact-bg: #13201a;
    --contact-text: #f4f7f5;
    --white: #ffffff;
}

body.light-mode {
    --bg-color: #f4f7f5;          /* Helles Salbeigrau/Weiß */
    --primary-color: #005a36;     /* Dunkelgrün/Smaragdgrün */
    --text-color: #005a36;        /* Dunkle Textfarbe */
    --accent-color: #e64082;      /* Pink bleibt identisch */
    
    /* Light Mode UI-Komponenten */
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 90, 54, 0.05);
    --header-bg: rgba(244, 247, 245, 0.9);
    --contact-bg: #005a36;
    --contact-text: #ffffff;
}


/* RESET & BASICS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* General Link Styling */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* TYPOGRAFIE (Groß & Klar - Fluid & Balanciert) */
h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem); /* Dynamische Skalierung für Mobile */
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    transition: color 0.3s ease;
}

h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    transition: color 0.3s ease;
}

p {
    font-size: clamp(1rem, 4vw, 1.15rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
    text-wrap: pretty;
    transition: color 0.3s ease;
}

/* HIGHLIGHTS */
.highlight-pink {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.highlight-green-bg {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* STICKY HEADER (Minimalistisch & Mobil-Optimiert via Flexbox) */
header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: background-color 0.3s ease;
}

.logo-container {
    width: 70px; /* +20% vergrößert */
    height: 70px;
    padding: 3px;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    box-shadow: 5px 5px 0px var(--accent-color); /* Kräftiger brutalistischer Schatten */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease, background-color 0.3s ease;
}

.logo-container:hover,
.logo-container:active {
    transform: translate(5px, 5px);
    box-shadow: none;
}

.logo-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.logo-svg text {
    font-family: 'Space Mono', 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 900;
    font-size: 26px;
    fill: var(--text-color);
    letter-spacing: 1px;
    transition: fill 0.3s ease;
}

.logo-svg .logo-dot {
    fill: var(--accent-color);
    transition: fill 0.3s ease;
}

.btn-theme-toggle {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 900;
    font-family: 'Space Mono', 'JetBrains Mono', 'Courier New', monospace;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 3px 3px 0px var(--primary-color);
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease, border-color 0.3s ease;
}

.btn-theme-toggle:hover,
.btn-theme-toggle:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

@media (min-width: 768px) {
    header {
        padding: 1.5rem;
    }
}

/* SEKTIONEN STRUKTUR */
section {
    padding: 4rem 1.5rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* HERO SEKTION */
#hero {
    padding-top: 2rem;
    min-height: 85vh;
}

.hero-category {
    font-size: clamp(0.75rem, 3.5vw, 1.1rem);
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-align: left;
    transition: color 0.3s ease;
}

.hero-dot {
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* BUTTONS (CTA) */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0; /* Kantiges, modernes Design */
    text-align: center;
    box-shadow: 4px 4px 0px var(--primary-color);
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* KARTEN / PLATZHALTER FÜR CORES */
.grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border: 2px solid var(--text-color);
    border-left: 6px solid var(--accent-color);
    box-shadow: 5px 5px 0px var(--accent-color);
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease, border-color 0.3s ease;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* CONTACT SEKTION (Dunkler Kontrastwechsel) */
#contact {
    background-color: var(--contact-bg);
    color: var(--contact-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

#contact h2 {
    color: var(--contact-text);
    transition: color 0.3s ease;
}

#contact p {
    color: var(--contact-text);
    opacity: 0.85;
    transition: color 0.3s ease;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    border: 2px solid var(--contact-text);
    box-shadow: 5px 5px 0px var(--accent-color);
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary.btn-outline {
    background-color: var(--contact-bg);
    border: 2px solid var(--accent-color);
    box-shadow: 5px 5px 0px var(--accent-color);
}

/* FOOTER & THEME TOGGLE */
footer {
    padding: 2rem 1.5rem;
    background: var(--contact-bg);
    color: var(--white);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-text {
    margin-bottom: 0;
    opacity: 0.85;
    color: var(--white);
}

.footer-text a {
    color: var(--white);
    text-decoration: underline;
}



/* DESKTOP OPTIMIERUNG (Responsive) */
@media (min-width: 768px) {
    h1 { font-size: clamp(3.5rem, 8vw, 5.5rem); }
    h2 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
    section { padding: 6rem 10%; }
    .grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .btn-primary { width: auto; display: inline-block; }
    .contact-wrapper {
        flex-direction: row;
        max-width: 600px;
        gap: 1.5rem;
    }
}

/* INVERTIERTER HOVER-EFFEKT (Brutalist-Push) */
.card:hover,
.card:active,
.btn-secondary:hover,
.btn-secondary:active {
    transform: translate(5px, 5px);
    box-shadow: none;
}

/* SCROLL-REVEAL FOR EXPERTISE CARDS */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.15s ease;
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card:nth-child(1) { transition-delay: 0s; }
.reveal-card:nth-child(2) { transition-delay: 0.1s; }
.reveal-card:nth-child(3) { transition-delay: 0.2s; }

/* HERO TYPING EFFECT CURSOR */
.typing-cursor::after {
    content: '_';
    display: inline-block;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    font-weight: 900;
    color: var(--accent-color);
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* OVERRIDES FOR ERFAHRUNG.HTML INTERNAL STYLES IN DARK MODE */
.log-details-list li strong {
    color: var(--accent-color) !important;
}
body.light-mode .log-details-list li strong {
    color: var(--primary-color) !important;
}
.cat-title {
    color: var(--accent-color) !important;
}
body.light-mode .cat-title {
    color: var(--primary-color) !important;
}

/* MCP-READY BADGE IN FOOTER */
.mcp-badge {
    font-family: 'Space Mono', 'JetBrains Mono', 'Courier New', monospace !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
    display: inline-block !important;
    padding: 0.3rem 0.6rem !important;
    border: 2px solid transparent !important;
    background-color: transparent !important;
    cursor: pointer !important;
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                background-color 0.15s ease, 
                color 0.15s ease, 
                border-color 0.15s ease !important;
}

.mcp-badge .mcp-status {
    color: var(--accent-color) !important;
    font-weight: 900 !important;
    transition: color 0.15s ease !important;
}

.mcp-badge:hover,
.mcp-badge:active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: translate(2px, 2px) !important;
    text-decoration: none !important;
}

.mcp-badge:hover,
.mcp-badge:hover .mcp-status,
.mcp-badge:active,
.mcp-badge:active .mcp-status {
    color: var(--bg-color) !important;
}

/* SYSTEM-PAGES / MCP PAGE TYPOGRAPHY & LAYOUT */
#mcp-status {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

#mcp-status ul {
    list-style-type: square;
    margin-left: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

#mcp-status li {
    margin-bottom: 0.75rem;
    font-size: clamp(1rem, 4vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-color);
}

/* Code styling for terminal look */
code {
    font-family: 'Space Mono', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9em;
    background-color: color-mix(in srgb, var(--text-color) 8%, transparent);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: inherit;
    word-break: break-all;
}
/* NUTRITION PAGE (ernaehrung.html) SPECIFIC STYLES */
#ernaehrung-intro,
.ernaehrung-section {
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

.teaser-subtext {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 2.5rem;
}

/* Compact section design with subtle border-bottom separator */
.ernaehrung-section {
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent) !important;
    padding-bottom: 2.5rem !important;
    margin-bottom: 2.5rem !important;
}

/* Remove the border for the last section (Tipps2go) */
.ernaehrung-section:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Monospace Formula / Log Block (Gerafft) */
.monospace-log {
    font-family: 'Space Mono', 'JetBrains Mono', 'Courier New', monospace !important;
    font-size: clamp(0.9rem, 3.5vw, 1.05rem) !important;
    line-height: 1.5 !important;
    color: var(--text-color) !important;
    background-color: color-mix(in srgb, var(--text-color) 4%, transparent) !important;
    border-left: 3px solid var(--accent-color) !important;
    padding: 1rem 1.2rem !important;
    margin: 1.2rem 0 !important;
    display: block !important;
}

.monospace-log ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.monospace-log li {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin-bottom: 0.4rem !important;
}

.monospace-log li::before {
    content: "> " !important;
    color: var(--accent-color) !important;
    font-weight: 900 !important;
}

/* Custom compact Tipps List */
.tipps-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1rem 0 !important;
}

.tipps-list li {
    font-size: clamp(1rem, 4vw, 1.15rem) !important;
    line-height: 1.4 !important; /* Knackige, kompakte Zeilenhöhe */
    margin-bottom: 0.8rem !important; /* Spacing */
    color: var(--text-color) !important;
}

.tipps-list li::before {
    content: "+ ";
    color: #e64082 !important; /* Leuchtend pink */
    font-weight: bold;
    margin-right: 0.75rem;
}

/* ==========================================================================
   FAKE-KI CHAT-WIDGET (G.O.D. - BRUTALIST & SCROLL-OPTIMIZED)
   ========================================================================== */
.chat-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--text-color);
    box-shadow: 5px 5px 0px var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    /* Transition explizit OHNE 'bottom', um Ruckeln beim Scroll-Verschieben zu verhindern */
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: pulse-brutalist 2.5s infinite;
}

.chat-fab:hover,
.chat-fab:active {
    transform: translate(5px, 5px);
    box-shadow: none;
    animation: none;
}

.chat-fab.open {
    display: none;
}

@keyframes pulse-brutalist {
    0% { outline: 0px solid color-mix(in srgb, var(--accent-color) 80%, transparent); outline-offset: 0px; }
    50% { outline: 10px solid color-mix(in srgb, var(--accent-color) 0%, transparent); outline-offset: 10px; }
    100% { outline: 0px solid transparent; outline-offset: 0px; }
}

.chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 380px;
    background-color: var(--card-bg);
    border: 2px solid var(--text-color);
    box-shadow: 8px 8px 0px var(--primary-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--text-color);
}

.chat-header h3 {
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.chat-info-trigger {
    position: relative;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    opacity: 0.7;
    user-select: none;
}

.chat-info-trigger:hover {
    opacity: 1;
}

.chat-tooltip {
    display: none;
    position: absolute;
    top: 130%;
    left: 0;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    font-family: 'Space Mono', monospace;
    text-transform: none;
    font-weight: 400;
    white-space: nowrap;
    z-index: 1010;
    box-shadow: 4px 4px 0px var(--accent-color);
}

.chat-info-trigger:hover .chat-tooltip {
    display: block;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.close-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.chat-window {
    padding: 1.2rem;
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-color);
}

.msg {
    padding: 0.8rem 1rem;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
    text-wrap: pretty;
}

.bot-msg {
    align-self: flex-start;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-left: 4px solid var(--primary-color);
}

.user-msg {
    align-self: flex-end;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
    border-right: 4px solid var(--accent-color);
}

.msg.typing {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    opacity: 0.7;
    animation: blink 1s infinite;
}

.chat-input-area {
    display: flex;
    border-top: 2px solid var(--text-color);
    background-color: var(--card-bg);
}

#chat-input {
    flex: 1;
    padding: 1rem;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

#chat-input::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

#send-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-left: 2px solid var(--text-color);
    padding: 0 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#send-btn:hover {
    background-color: var(--primary-color);
}

@media (max-width: 600px) {
    .chat-container {
        width: 100vw;
        height: 100dvh;
        bottom: 0 !important; /* Auf Mobile immer Fullscreen unten fixiert */
        right: 0;
        box-shadow: none;
        border: none;
    }
    
    .chat-window {
        flex: 1;
        height: auto;
    }
    
    .chat-fab {
        bottom: 1.5rem !important;
        right: 1.5rem;
    }
    
    .chat-tooltip {
        left: auto;
        right: 0;
    }
}



