/* --- 1. DAS SAAS-FARBSCHEMA & VARIABLEN --- */
:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --border-color: #30363d;
    --text-main: #f8fafc;
    --text-muted: #8b949e;
    --accent-glow: #1e5aa0;
    --accent-bright: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1e5aa0 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtiler Glow-Effekt im Hintergrund für Premium-Look */
body::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 90, 160, 0.15) 0%, rgba(13, 17, 23, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 2. HEADER & NAVIGATION --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Abstand zwischen Bild und Text */
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 36px; /* Passt ideal zur Schriftgröße */
    width: auto;
    border-radius: 8px; /* Gibt dem Logo schöne runde Ecken */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Leichter Schatten, damit es sich vom Hintergrund abhebt */
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05); /* Schöner Hover-Effekt auch fürs Logo */
}

.logo span {
    color: var(--accent-bright);
}

/* --- 3. DER HERO BEREICH --- */
.hero {
    padding: 100px 0 120px 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.hero-content > * {
    animation: hero-fade-in 0.7s ease both;
}

.hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-content > *:nth-child(4) { animation-delay: 0.24s; }

.hero-terminal {
    animation: hero-fade-in 0.7s ease both;
    animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .hero-terminal {
        animation: none;
    }
}

/* --- 3b. CODE-TERMINAL VISUAL --- */
.terminal-window {
    background: #0a0e14;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-dot--red { background: #ff5f56; }
.terminal-dot--yellow { background: #ffbd2e; }
.terminal-dot--green { background: #27c93f; }

.terminal-title {
    margin-left: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.terminal-body {
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.terminal-body pre {
    margin: 0 0 10px 0;
    white-space: pre-wrap;
    font-family: inherit;
}

.terminal-body pre:last-child {
    margin-bottom: 0;
}

.terminal-prompt {
    color: var(--accent-bright);
    font-weight: 600;
}

.terminal-path {
    color: var(--text-muted);
}

.terminal-output {
    color: var(--text-muted);
}

.terminal-success {
    color: #27c93f;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--accent-bright);
    vertical-align: text-bottom;
    animation: terminal-blink 1s steps(1) infinite;
}

@keyframes terminal-blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .terminal-cursor {
        animation: none;
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-bright);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Grün für "Verfügbar" */
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #10b981;
}

.hero h1 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 4vw, 4.25rem);
    margin: 0 0 20px 0;
    letter-spacing: -1.5px;
    line-height: 1.1;
    padding-bottom: 10px;
    background: linear-gradient(90deg, #ffffff, #8b949e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero p strong {
    color: var(--text-main);
    font-weight: 500;
}

.action-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(30, 90, 160, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

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

.btn:focus {
    outline: 2px solid var(--accent-bright);
}


.btn-secondary:hover {
    border-color: var(--accent-glow);
    background: rgba(30, 90, 160, 0.05);
    transform: translateY(-2px);
}

/* --- 4. PROJEKTE BEREICH --- */
.projects-section {
    padding: 80px 0;
    scroll-margin-top: 50px;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

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

.card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Hover-Glow-Effekt für Karten */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #4b5563;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card h3 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(139, 148, 158, 0.1);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(139, 148, 158, 0.2);
    transition: all 0.2s;
}

.card:hover .tag {
    color: var(--accent-bright);
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.05);
}

.card-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
    margin-top: auto;
}

.card-link svg {
    margin-left: 6px;
    transition: transform 0.2s;
}

.card-link:hover {
    color: var(--accent-bright);
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* --- 5. CTA / KONTAKT BEREICH --- */
.cta-section {
    margin: 80px 0;
    padding: 60px 40px;
    background: linear-gradient(to right, var(--surface-color), #0d1117);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 2rem;
    margin: 0 0 16px 0;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 32px auto;
}

/* Spezifische Anpassungen für den Kontakt-Bereich */
#kontakt {
    padding: 50px 20px;
    max-width: 600px;
    margin: 80px auto;
}

#kontakt h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

#kontakt p {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- 6. DER FOOTER --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.copyright {
    color: #4b5563;
    font-size: 0.85rem;
    margin: 0;
}

/* Scroll-Reveal (Klasse wird per JS gesetzt, siehe js/reveal.js) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .terminal-body {
        font-size: 0.8rem;
        padding: 16px;
    }
    .cta-section {
        padding: 40px 20px;
    }
    /* WICHTIG: Das hier sorgt dafür, dass Handys nicht versuchen 2 Spalten anzuzeigen */
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
