/* --- Basis & Variablen --- */
:root {
    --primary-color: #00d4ff;
    --text-color: #1a2b48;
    --bg-light: #f4f4f4;
    --white: #fff;
    --background-link: url('img/bg-network.png');
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section {
    padding: 60px 0;
}

.fullscreen {
    flex: 1;
}

.bg-light {
    background-color: var(--bg-light);
}

.min-height {
    min-height: 70vh;
}

/* --- Typografie & Buttons --- */
h1, h2, h3 {
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

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

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #003d82;
}

/* --- Navigation --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 55px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
}

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

/* --- Hero Sektion --- */
.hero {
    background-image: var(--background-link); 
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6); /* Dunkler Overlay für bessere Lesbarkeit */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* --- Referenzen Grid --- */
.grid-references {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

/* --- Kontaktformular --- */
.contact-form {
    max-width: 600px;
    margin: auto;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    resize: none;
}

.success { color: green; text-align: center; margin-bottom: 20px; font-weight: bold;}
.error { color: red; text-align: center; margin-bottom: 20px; font-weight: bold;}

/* --- Footer --- */
footer {
    background: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-flex {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: #ccc;
}

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

/* --- Responsive Anpassungen --- */
@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}