/* Self-hosted fonts for GDPR compliance */
/* Outfit - latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit - latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono - latin-ext */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono - latin */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-primary: #0a0e14;
    --bg-secondary: #21262d;
    --bg-tertiary: #111820;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --accent-cyan: #00d4aa;
    --accent-cyan-dim: #00d4aa33;
    --accent-blue: #58a6ff;
    --accent-orange: #f78166;
    --accent-purple: #a371f7;
    --border-color: #21262d;
    --glow-cyan: 0 0 30px rgba(0, 212, 170, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '>';
    color: var(--text-muted);
    animation: blink 1s infinite;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-cyan);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.btn-primary:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

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

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

/* Terminal Window */
.terminal-float {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-52%) translateX(-5px); }
}

.terminal-header {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

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

.terminal-title {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    background: var(--bg-tertiary);
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: typeIn 0.5s forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2s; }
.terminal-line:nth-child(5) { animation-delay: 2.5s; }
.terminal-line:nth-child(6) { animation-delay: 3s; }

@keyframes typeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.terminal-command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 1rem;
}

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

/* Services Section */
.services {
    padding: 8rem 4rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid .service-card {
    grid-column: span 2;
}

.services-grid .service-card:nth-child(4) {
    grid-column: 2 / 4;
}

.services-grid .service-card:nth-child(5) {
    grid-column: 4 / 6;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-grid .service-card,
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: auto;
    }
}

.service-card {
    grid-column: span 2;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan-dim);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    
}

.service-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--accent-cyan);
 
    
}

/* Center the last two items in the second row (3-2 layout) */
.service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* About Section */
.about {
    padding: 8rem 4rem;
    position: relative;
    z-index: 1;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.about-visual {
    position: relative;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.code-header svg {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
}

.code-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.9;
    background: var(--bg-tertiary);
}

.code-line {
    display: flex;
}

.line-number {
    color: var(--text-muted);
    width: 2rem;
    user-select: none;
}

.code-keyword { color: var(--accent-purple); }
.code-string { color: var(--accent-orange); }
.code-property { color: var(--accent-blue); }
.code-value { color: var(--accent-cyan); }
.code-comment { color: var(--text-muted); font-style: italic; }

/* Contact Section */
.contact {
    padding: 8rem 4rem;
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--accent-cyan);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    outline: none;
    
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-dim);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(4px) translateY(-4px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Honeypot field - hidden from users */
.form-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Form status messages */
.form-status {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-status.success {
    background: rgba(39, 202, 64, 0.1);
    border: 1px solid rgba(39, 202, 64, 0.3);
    color: #27ca40;
}

.form-status.error {
    background: rgba(247, 129, 102, 0.1);
    border: 1px solid rgba(247, 129, 102, 0.3);
    color: var(--accent-orange);
}

/* Privacy Checkbox */
.form-checkbox {
    margin-bottom: 1.5rem;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 3px;
}

.form-checkbox input[type="checkbox"]:hover {
    border-color: var(--accent-cyan);
}

.form-checkbox input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-dim);
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid var(--bg-primary);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.form-checkbox span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--accent-cyan);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* Legal Pages (Impressum, Datenschutz) */
.legal-page {
    min-height: 100vh;
    padding: 8rem 4rem 4rem;
    position: relative;
    z-index: 1;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

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

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.legal-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

.legal-content {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-details {
    display: grid;
    grid-template-columns: minmax(150px, auto) 1fr;
    gap: 0.75rem 1.5rem;
    margin: 1rem 0;
}

.legal-details dt {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-details dd {
    color: var(--text-primary);
}

.legal-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.legal-address {
    font-style: normal;
    line-height: 1.8;
    margin: 1rem 0;
    color: var(--text-primary);
}

.legal-section a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
    .terminal-float {
        display: none;
    }
}

@media (max-width: 900px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero, .services, .about, .contact, .legal-page {
        padding: 6rem 2rem;
    }

    /* Switch to 2-column layout */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: span 1;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    /* Switch to single-column layout */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .overview-card {
        padding: 1.5rem;
    }

    .overview-card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .overview-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .legal-details {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .legal-details dt {
        margin-top: 0.75rem;
    }

    .legal-details dd {
        margin-bottom: 0.5rem;
    }
}
/* WhatsApp CTA */
.whatsapp-cta {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 8px;
    background: rgba(0, 212, 170, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
 
.whatsapp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.06), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
 
.whatsapp-cta:hover {
    border-color: rgba(0, 212, 170, 0.5);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}
 
.whatsapp-cta:hover::before {
    opacity: 1;
}
 
.whatsapp-cta-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}
 
.whatsapp-cta-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    transition: background 0.3s ease;
}
 
.whatsapp-cta:hover .whatsapp-cta-icon {
    background: rgba(0, 212, 170, 0.2);
}
 
.whatsapp-cta-icon svg {
    width: 24px;
    height: 24px;
}
 
.whatsapp-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
 
.whatsapp-cta-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}
 
.whatsapp-cta-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 300;
}
 
.whatsapp-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}
 
.whatsapp-cta:hover .whatsapp-btn {
    box-shadow: var(--glow-cyan);
}
 
.whatsapp-btn svg {
    transition: transform 0.3s ease;
}
 
.whatsapp-cta:hover .whatsapp-btn svg {
    transform: translateX(4px);
}
 
@media (max-width: 600px) {
    .whatsapp-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
 
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}
 

/* ============================================================
   LEISTUNGEN PAGE
   ============================================================ */

/* ── Page Hero ── */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 10rem 4rem 5rem;
    position: relative;
    z-index: 1;
}

.page-hero-content {
    max-width: 900px;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.page-hero h1 span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Leistungen Intro Grid ── */
.leistungen-intro {
    padding: 0 4rem 6rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.intro-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.intro-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.highlight-item:hover {
    border-color: rgba(0, 212, 170, 0.3);
}

.highlight-icon {
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-icon svg {
    width: 18px;
    height: 18px;
}

.highlight-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.highlight-text strong {
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
}

/* ── Leistungs-Bereiche ── */
.leistungen-bereiche {
    padding: 4rem 4rem 6rem;
    position: relative;
    z-index: 1;
}

.bereich-block {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid var(--border-color);
}

.bereich-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.bereich-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.bereich-header.reverse {
    direction: rtl;
}

.bereich-header.reverse > * {
    direction: ltr;
}

.bereich-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bereich-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-cyan);
}

.bereich-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.bereich-title span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bereich-description {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

/* Feature Cards */
.bereich-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-3px);
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent-cyan-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.feature-card-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* Bereich Visual Panel */
.bereich-visual {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.visual-header {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visual-dots {
    display: flex;
    gap: 0.4rem;
}

.visual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.visual-dot.red    { background: #ff5f56; }
.visual-dot.yellow { background: #ffbd2e; }
.visual-dot.green  { background: #27ca40; }

.visual-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

.visual-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.9;
    background: var(--bg-tertiary);
}

/* Visual line helpers */
.vl         { display: flex; gap: 0.75rem; align-items: baseline; }
.vl-prompt  { color: var(--accent-cyan); }
.vl-cmd     { color: var(--text-primary); }
.vl-out     { color: var(--text-secondary); padding-left: 1.25rem; }
.vl-ok      { color: #27ca40; padding-left: 1.25rem; }
.vl-warn    { color: #ffbd2e; padding-left: 1.25rem; }
.vl-comment { color: var(--text-muted); padding-left: 1.25rem; font-style: italic; }

/* Tool Badges */
.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tool-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(0, 212, 170, 0.2);
    padding: 0.25rem 0.7rem;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

/* ── Pakete / Betreuungsmodelle ── */
.pakete-section {
    padding: 6rem 4rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, transparent, rgba(0, 212, 170, 0.02), transparent);
}

.pakete-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem auto 0;
}

.paket-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.paket-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 170, 0.3);
}

.paket-card.featured {
    border-color: var(--accent-cyan);
    background: linear-gradient(145deg, var(--bg-secondary), rgba(0, 212, 170, 0.05));
}

.paket-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
}

.paket-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.paket-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.paket-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.paket-features {
    list-style: none;
    flex: 1;
    margin-bottom: 2rem;
}

.paket-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.paket-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 2px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l2.5 2.5L12 5' stroke='%2300d4aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.paket-cta {
    text-align: center;
}

/* ── Prozess Timeline ── */
.prozess-section {
    padding: 6rem 4rem;
    position: relative;
    z-index: 1;
}

.prozess-timeline {
    max-width: 900px;
    margin: 4rem auto 0;
    position: relative;
}

.prozess-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}

.prozess-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.prozess-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.step-content {
    padding-top: 0.75rem;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

/* ── Final CTA Box ── */
.final-cta-section {
    padding: 6rem 4rem;
    position: relative;
    z-index: 1;
}

.final-cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.final-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 170, 0.08), transparent 70%);
    pointer-events: none;
}

.final-cta-box .section-tag {
    margin-bottom: 1.5rem;
}

.final-cta-box h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.final-cta-box p {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Services Overview (index.html teaser) ── */
.services-overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto 3.5rem;
}

@media (min-width: 900px) {
    .services-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .services-overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.overview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.overview-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-4px);
}

.overview-card:hover::before {
    transform: scaleX(1);
}

.overview-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 1.25rem;
}

.overview-card-icon svg {
    width: 24px;
    height: 24px;
}

.overview-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.overview-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.services-overview-cta {
    text-align: center;
}

/* ── Responsive – Leistungen page ── */
@media (max-width: 1000px) {
    .intro-grid,
    .bereich-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bereich-header.reverse {
        direction: ltr;
    }

    .bereich-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .pakete-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    .page-hero,
    .leistungen-bereiche,
    .pakete-section,
    .prozess-section,
    .final-cta-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .leistungen-intro {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .bereich-features {
        grid-template-columns: 1fr;
    }

    .final-cta-box {
        padding: 2.5rem 1.5rem;
    }
}