:root {
    --bg-dark: #1f303f;          /* Dunkler Hintergrund aus deinen Baukasten-Meta-Tags */
    --card-bg: #283e51;          /* Leicht hellerer Blau-Ton für Inhalte/Karten */
    --accent-blue: #4a90e2;      /* Akzentfarbe für Links und Highlights */
    --text-main: #e0e6ed;        /* Gut lesbarer, hellgrauer Text */
    --text-muted: #9bb0c1;       /* Abgedunkelter Text für Nebensächliches */
    --border-color: #385268;     /* Zarte Rahmen zur Abgrenzung */
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background-color: rgba(31, 48, 63, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
	src: url('assets/mh_logo.png');
    height: 48px;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav a:hover, nav a.active {
    background-color: var(--border-color);
    color: #ffffff;
}

/* Hauptbereich */
main {
    max-width: 1000px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

/* Karten & Container */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

h1.page-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
}

h2 {
    color: #ffffff;
    font-size: 1.35rem;
    margin: 1.5rem 0 0.8rem 0;
}

p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

a:hover {
    text-decoration: underline;
}

/* Zweispaltige Abschnitte (z.B. Über mich / Kontakt) */
.flex-grid {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0;
}

.flex-grid .text-col { flex: 1; }
.flex-grid .img-col { flex: 1; text-align: center; }

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* Leistungs-Grid auf der Über-Mich-Seite */
.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.service-item strong {
    color: var(--accent-blue);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Technologieliste / Badges */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.badge {
    background-color: var(--border-color);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Formular Styling für Kontakt */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    color: #ffffff;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
}

button.btn-submit {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button.btn-submit:hover {
    background-color: #357abd;
}

/* Footer */
footer {
    background-color: #15222e;
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile responsive Navigation */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1rem; }
    .flex-grid { flex-direction: column; }
}