:root {
    --bg: #0b0e12;
    --bg-panel: #12161c;
    --border: #242a33;
    --text: #e8ebf0;
    --text-dim: #8b95a3;
    --accent: #34d399;
    --accent-dim: #1f6b52;
    --danger: #ff6b6b;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
}

a {
    color: var(--accent);
}

img {
    max-width: 100%;
}

/* --- Kopfzeile / Navigation --- */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 0.75rem;
}

.site-brand {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.site-brand strong {
    color: var(--accent);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.75rem;
    font-size: 0.8rem;
}

.nav-item {
    color: var(--text-dim);
    cursor: default;
    user-select: none;
}

.nav-item.active {
    color: var(--text);
    font-weight: 600;
}

.nav-item.active::before {
    content: "> ";
    color: var(--accent);
}

.nav-hint {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.7rem;
    margin-top: 0.6rem;
}

/* --- Layout --- */
.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1.25rem 1rem;
    gap: 1.25rem;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.site-footer {
    text-align: center;
    padding: 1rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    border-top: 1px solid var(--border);
}

/* --- Terminal-Fenster (CLI) --- */
.term-window {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 220px;
}

.term-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #171c24;
    border-bottom: 1px solid var(--border);
}

.term-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
}

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

.term-title {
    margin-left: 0.5rem;
    color: var(--text-dim);
    font-size: 0.75rem;
}

.term-output {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1rem;
    line-height: 1.5;
    -webkit-overflow-scrolling: touch;
}

.term-output .term-line-cmd {
    color: var(--text-dim);
}

.term-output .term-line-error {
    color: var(--danger);
}

.term-inputrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--border);
}

.term-prompt {
    color: var(--accent);
}

.term-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent);
    font: inherit;
    font-size: 16px; /* verhindert Auto-Zoom bei Fokus auf iOS */
}

.term-input::placeholder {
    color: var(--accent-dim);
}

/* --- Seiteninhalt --- */
.page-title {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.page-title-center {
    text-align: center;
}

.hero-block {
    text-align: center;
    color: var(--text-dim);
    line-height: 1.6;
}

.about-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.about-photo {
    flex: 0 0 auto;
    width: 220px;
    border-radius: 10px;
    border: 2px solid var(--border);
}

.about-text {
    flex: 1 1 320px;
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.9rem;
}

.about-text p {
    margin: 0 0 0.85rem;
}

.contact-card {
    align-self: center;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

.contact-card h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 0.6rem;
    transition: border-color 0.15s ease;
}

.contact-link:hover {
    border-color: var(--accent);
}

.contact-link svg {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.contact-label {
    color: var(--text-dim);
    font-size: 0.7rem;
    display: block;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
}

/* --- Projekte / Carousel --- */
.project-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.project-nav-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.project-nav-btn:hover {
    border-color: var(--accent);
}

.project-card {
    flex: 1;
    max-width: 420px;
    min-height: 140px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.project-card .label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.project-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 640px) {
    .about-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
