@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-700.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-600.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-700.woff2') format('woff2');
}

:root {
    --bg: #FFF5EE;
    --surface: #FFF5EE;
    --surface-line: #2b2f3b;
    --accent: #00b2ee;       /* terminal amber — status / signal */
    --accent-soft: #d4a13d33;
    --accent-teal: #1c1f28;  /* secondary — "online" state */
    --text: #1c1f28;
    --text-muted: #2b2f3b;

    --font-display: 'JetBrains Mono', ui-monospace, monospace;
    --font-body: 'Inter', system-ui, sans-serif;

    --max-w: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.page {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------
   Hero / boot sequence
   --------------------------------------------------------- */
.hero {
    padding: 96px 0 64px;
}

.boot {
    margin-top: 12px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: 4px;
    display: inline-block;
}

.boot-line {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent-teal);
    letter-spacing: 0.02em;
}

.cursor {
    display: inline-block;
    color: #2b2f3b;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin: 0 0 12px;
}

h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.5vw, 1.9rem);
    line-height: 1.25;
    margin: 0 0 24px;
}

h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 100ch;
    margin: 0 0 0px;
}

.tree-branch {
    margin-bottom: 32px;
}

.tree-leaves {
    position: relative;
    list-style: circle;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    color: var(--text);
    padding-left: 26px;
    font-size: 0.95rem;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-top .eyebrow {
    margin: 0;
}

.hero-top .boot {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--accent);
    color: #FFF5EE;
}

.btn-primary:hover { background: #00bfff; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--surface-line);
}

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

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */
.section {
    padding: 56px 0;
    border-top: 1px
}

/* ---------------------------------------------------------
   Tabs
   --------------------------------------------------------- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--surface-line);
}

.tab {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
    color: var(--text);
    border-color: var(--surface-line);
}

.tab.active {
    background: var(--accent);
    color: #FFF5EE;
    border-color: var(--accent);
}

/* ---------------------------------------------------------
   Contact form
   --------------------------------------------------------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 480px;
    margin: 32px 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: 6px;
    padding: 10px 12px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-field .validation-message {
    color: #d64545;
    font-size: 0.82rem;
    margin: 0;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    color: #1a5c33;
    background: #9AFF9A33;
    border: 1px solid #9AFF9A;
    border-radius: 6px;
    padding: 14px 16px;
    max-width: 480px;
}

.form-error {
    color: #d64545;
    font-size: 0.9rem;
    margin: -6px 0 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.hero-logo {
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    margin-top: -36px
}

@media (max-width: 560px) {
    .hero-header {
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .hero-logo {
        width: 220px;
        height: auto;
        margin-top: 0;
    }
}

/* ---------------------------------------------------------
   Ablauf-Karten
   --------------------------------------------------------- */
.steps {
    list-style: none;
    margin: 24px 0 48px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.step-card {
    background: #ffffff80;
    border: 1px solid #2b2f3b26;
    border-radius: 8px;
    padding: 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFF5EE;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.step-card h3 {
    margin-bottom: 8px;
}

.step-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   Leistungs-Karten mit Beispiel
   --------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0 48px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #ffffff80;
    border: 1px solid #2b2f3b26;
    border-radius: 8px;
    padding: 24px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card > p {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-example {
    margin: auto 0 0 !important;   /* schiebt die Box an den Kartenboden */
    padding: 12px 14px;
    background: #DEF3FC;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text);
}

.service-group {
    margin-top: 40px;
}

.group-heading {
    font-size: 1.25rem;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.group-intro {
    margin: 0 0 4px;
    color: var(--text-muted);
    max-width: 70ch;
}

.service-group .service-grid {
    margin-top: 16px;
    margin-bottom: 0;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #2b2f3b26;
    border-radius: 8px;
    overflow: hidden;
}

.project-body {
    padding: 32px 36px;
}

.project-image {
    order: 2;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top left;
    display: block;
    border-right: 1px solid #2b2f3b26;
}

.project-body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 75ch;
}

.project-image.portrait {
    width: auto;
    max-width: 100%;
    height: 520px;              /* Anzeigehöhe des Handy-Screenshots */
    aspect-ratio: auto;         /* hebt das 16:9 auf */
    object-fit: contain;
    margin: 0 auto;             /* zentriert */
    padding: 24px 0;
    box-sizing: content-box;
    border-top: none;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding: 24px 0 40px;
    border-top: 1px solid var(--surface-line);
}

.footer-meta {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.stats-range {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.stats-table th {
    font-family: var(--font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-align: left;
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--surface-line);
}

.stats-table td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--surface-line);
}

.stats-table td:first-child {
    font-family: var(--font-display);
}

.stats-table td:not(:first-child) {
    font-variant-numeric: tabular-nums;
}