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

:root {
    --primary-color: #1F2A33;   /* Anthrazit: Ueberschriften (dunkel, kontrastreich) */
    --header-bg: #33424E;       /* hellerer Anthrazit-Balken: Header + Footer */
    --secondary-color: #7DB928; /* Logo-Gruen: Buttons, Links, Akzente */
    --secondary-dark: #6AA31F;  /* Gruen fuer Hover-Zustaende */
    --hero-green: #4D7F18;      /* dunkleres Gruen fuer den Hero-Verlauf (weisser Text lesbar) */
    --text-color: #333;
    --light-bg: #F1F3F5;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--header-bg);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo h1 {
    font-size: 1.8rem;
}

/* Logo-Bild im Header: weisse, abgerundete Flaeche, damit die Wortmarke
   auf dem Header sauber sitzt. Bewusst kompakt gehalten. */
.logo-img {
    display: block;
    height: 104px;
    width: auto;
    background-color: var(--white);
    padding: 5px 12px;
    border-radius: 6px;
}

/* Zweispaltiges Intro (Foto + Text nebeneinander), z. B. "Warum ask4web". */
.intro-split {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.intro-split .text {
    flex: 1;
}

.intro-split .text p {
    text-align: left;
}

/* Portraet: kompakt, damit der Text daneben gut lesbar bleibt. */
.portrait {
    flex: 0 0 180px;
    width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portrait-caption {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.75rem;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navigation Bar Link Styling */
.navbar a,
.navbar a:link,
.navbar a:visited {
    color: inherit; /* Erbt die Farbe vom Elternelement (z.B. h1) */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

/* Hover-Effekt nur für die Navigations-Punkte, nicht für das Logo */
.navbar .nav-links a:hover {
    text-decoration: underline; /* Fügt eine Unterstreichung beim Hover hinzu */
}

/* Hero Section */
.hero {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 6rem 0;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color); /* gruener Akzentstreifen */
}

.hero h1,
.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color); /* Anthrazit auf hellem Grund -> gut lesbar */
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Anthrazit-Text auf Gruen -> guter Kontrast */
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-dark); /* Dunkleres Grün für den Hover-Effekt */
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Projects Section */
.projects {
    background-color: var(--white);
}

.projects p {
    text-align: left;
}

/* Services Section */
.services {
    background-color: var(--white);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Gallery Section */
.gallery {
    background-color: #f9f9f9;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

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

.contact a:hover {
    text-decoration: underline;
}

/* Contact card (styled Telefon/Mobil/E-Mail) */
.contact-card {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--white);
    border: 1px solid var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 2rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border-radius: 50%;
    color: var(--white);
}

.contact-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.3;
}

.contact-detail .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
}

.contact-card a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-card a:hover {
    color: var(--secondary-dark);
    text-decoration: none;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    margin: 0 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--header-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero h1,
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .intro-split {
        flex-direction: column;
        text-align: center;
    }

    .intro-split .text p {
        text-align: left;
    }

    .portrait {
        flex-basis: auto;
        width: 60%;
        max-width: 220px;
    }

    .logo-img {
        height: 80px;
    }
}
