/* style.css - Globale Styles für intelicon SOFTWARE DEVELOPMENT GMBH */

:root {
    /* CI-Farbpalette basierend auf dem Logo */
    --ci-blue: #003a6a;    
    --ci-gray: #8a8d91;    
    --ci-silver-light: #e2e5e9; 
    --ci-silver-med: #ced4da;   
    --ci-white: #ffffff;
    --ci-black: #111111;
    --text-main: #333b42;  
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--ci-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ci-silver-med);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 58, 106, 0.05);
}

.logo img {
    height: 45px;
    display: block;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--ci-gray);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--ci-blue);
}

.back-link {
    color: var(--ci-blue);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* --- Das rotierende Horn im Header --- */
.header-horn-container {
    perspective: 1000px; 
    display: flex;
    align-items: center;
}

.header-horn {
    height: 35px; 
    mix-blend-mode: multiply; 
    animation: rotate-y-slow 15s linear infinite;
}

@keyframes rotate-y-slow {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--ci-blue);
    color: var(--ci-white);
    border: 2px solid var(--ci-blue);
    box-shadow: 0 4px 15px rgba(0, 58, 106, 0.2);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--ci-blue);
}

.btn-outline {
    background-color: transparent;
    color: var(--ci-gray);
    border: 2px solid var(--ci-gray);
}

.btn-outline:hover {
    background-color: var(--ci-gray);
    color: var(--ci-white);
}

/* --- Typografie & Content Layout (Impressum & Datenschutz) --- */
.content {
    padding: 5% 10%;
    max-width: 1000px;
    margin: 6rem auto 0; /* Margin top für fixed Header */
}

h1 {
    color: var(--ci-blue);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--ci-silver-light);
    padding-bottom: 0.5rem;
}

h2 {
    color: var(--ci-blue);
    font-size: 1.2rem;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p, ul {
    margin-bottom: 1rem;
}

ul {
    padding-left: 1.5rem;
}

a {
    color: var(--ci-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Hero Section (Index) --- */
.hero {
    background-color: var(--ci-silver-light);
    padding: 12rem 5% 8rem;
    position: relative;
    overflow: hidden; 
    min-height: 85vh;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--ci-blue);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    border: none;
}

.hero-text h1 span {
    color: var(--ci-gray);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

/* --- Terminal Window --- */
.terminal {
    flex: 1;
    background: var(--ci-black);
    border-radius: 8px;
    border: 1px solid var(--ci-gray);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 2;
    position: relative;
    max-width: 550px;
}

.terminal-header {
    background: var(--ci-silver-med);
    padding: 0.6rem 1rem;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--ci-gray);
}

.dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot:nth-child(1) { background-color: #666; }
.dot:nth-child(2) { background-color: #888; }
.dot:nth-child(3) { background-color: #aaa; }

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: var(--ci-silver-light);
    line-height: 1.6;
    height: 280px; 
    overflow-y: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
}

.terminal-content {
    display: flex;
    flex-direction: column;
}

.terminal-body .prompt { color: var(--ci-white); font-weight: bold; }
.terminal-body .cmd { color: var(--ci-silver-light); }
.terminal-body .output { color: var(--ci-gray); margin-top: 0.3rem; }
.terminal-body .debug { color: #555; }
.terminal-body .success { color: var(--ci-white); font-weight: bold; margin-top: 1rem; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--ci-white); animation: blink 1s step-end infinite; vertical-align: middle; }

@keyframes blink { 50% { opacity: 0; } }

/* --- Engineering Services --- */
.services {
    padding: 8rem 5%;
    background-color: var(--ci-white);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--ci-blue);
    margin-bottom: 1rem;
    border: none;
}

.section-header p {
    color: var(--ci-gray);
    font-size: 1.1rem;
    font-weight: 500;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--ci-white);
    border: 1px solid var(--ci-silver-med);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--ci-silver-med), var(--ci-gray));
    transition: background 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(138, 141, 145, 0.15);
    border-color: var(--ci-gray);
}

.card:hover::before {
    background: var(--ci-blue);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--ci-blue);
    margin-bottom: 1.5rem;
    font-family: monospace;
    font-weight: bold;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--ci-blue);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-main);
}

/* --- Tech Stack --- */
.tech-stack {
    padding: 6rem 5%;
    background-color: var(--ci-blue);
    color: var(--ci-white);
    text-align: center;
}

.tech-stack h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ci-white);
    border: none;
}

.tech-stack p {
    color: var(--ci-silver-light);
    margin-bottom: 3rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag {
    background: transparent;
    border: 1px solid var(--ci-silver-med);
    color: var(--ci-white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: monospace;
    font-size: 1rem;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--ci-white);
    color: var(--ci-blue);
    border-color: var(--ci-white);
}

/* --- Footer --- */
footer {
    background-color: var(--ci-gray);
    color: var(--ci-white);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--ci-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--ci-silver-med);
    padding-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--ci-silver-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--ci-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--ci-silver-med);
    color: var(--ci-silver-light);
    font-size: 0.9rem;
}

/* --- Formular Styles --- */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--ci-blue);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--ci-silver-med);
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ci-blue);
    box-shadow: 0 0 0 2px rgba(0, 58, 106, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding-top: 10rem;
        text-align: center;
    }
    .terminal {
        width: 100%;
        text-align: left;
    }
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .header-controls {
        flex-direction: column;
        gap: 1rem;
    }
}
