/* Global Styles */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #5a5a5a;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    height: 200px;
    min-width: 300px;
    position: relative;
}

.header-title {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3em;
    color: #111111;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1;
}

.header-image-container {
    position: relative;
    z-index: 0;
}

header img {
    height: 150px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header a:hover {
    color: black;
}

nav ul {
    list-style: none;
    padding: 0;
}

/* Standard-Navigation */
nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Hamburger-Menü für mobile Geräte */
.menu-icon {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 600px) {
    .menu-icon {
        display: block;
        position: absolute;
        left: 20px;
        top: 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #5a5a5a;
        padding: 0;
        margin: 0;
        position: absolute;
        width: 100%;
        top: 170px;
        left: 0;
        text-align: center;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }
}

main {
    padding: 1rem;
    flex: 1;
    margin: 0 auto;
}

/* ============================= */
/* Hero-Bereich                  */
/* ============================= */
.hero {
    background: #e2e2e2;
    padding: 30px;
    border-radius: 10px;
}

/* Flexibles Layout für Hero */
.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
}

.hero-text {
    flex: 1 1 400px;
    min-width: 260px;
}

.hero-image img {
    width: auto;        /* Automatische Breite */
    max-width: 280px;   /* Desktop: nie größer als 280px */
    height: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Responsiv: Bild unter Text */
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 599px) {
    .hero-image img {
        max-width: 200px;  /* Handy: maximal 200px */
        width: auto;
        margin: 0 auto;
        display: block;
    }
}

.hero h1 {
    margin-top: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.overview {
    background: #fff;
    padding: 2rem;
    margin-top: 1rem;
    border: 1px solid #ddd;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    width: 100%;
}

footer a {
    color:#fff;
}

/* ------------------- */
/* Über mich */
.about {
    overflow: auto;
    background: #e2e2e2;
    padding: 30px;
    border-radius: 10px;
}

.about h2, .about h1 {
    margin-top: 0;
}

.floating-image {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
}

.services {
    background: #e2e2e2;
    padding: 30px;
    border-radius: 10px;
}

.services h2, .services h1 {
    margin-top: 0;
}

.billing {
    background: #e2e2e2;
    padding: 30px;
    border-radius: 10px;
    margin-top: 10px;
}

.billing h2 {
    margin-top: 0;
}

.references {
    background: #e2e2e2;
    padding: 30px;
    border-radius: 10px;
}

.references h2, .references h1 {
    margin-top: 0;
}

.contact {
    background: #e2e2e2;
    padding: 30px;
    border-radius: 10px;
}

.contact h2, .contact h1 {
    margin-top: 0;
}

.contact form {
    max-width: 600px;
    margin-left: 0;
}

.form-group {
    display: flex;
    align-items:start;
    margin-bottom: 15px;
}

.contact label {
    min-width: 10.5em;
    display: inline-block;
}

.contact input, .message textarea {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px;
}

.message textarea {
    height: 100px;
    min-width: 12.5em;
    resize: both;
}

.message label {
    vertical-align: top;
}

.contact button {
    width: 100px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

.contact button:hover {
    background-color: #45a049;
}

.inline {
    display: inline;
}

.xing p {
    position: relative;
    bottom: 10px;
}

.fa-xing {
    color: #111111;
    font-size: 40px;
    padding-left: 5px;
    text-decoration: none;
}

.fa-xing:hover {
    color: #c6f16d;
    text-shadow: 2px 2px #01575d;
}

/* Anpassungen in Abhängigkeit der Bildschirmgröße */

/* Für Smartphones */
@media (max-width: 599px) {
    .floating-image {
        width: 100px;
    }
    main {
        max-width: 599px;
    }
}

/* Für Tablets */
@media (min-width: 600px) and (max-width: 1199px) {
    .floating-image {
        width: 300px;
    }
    main {
        min-width: 600px;
        max-width: 1199px;
    }
}

/* Für Desktops */
@media (min-width: 1200px) {
    .floating-image {
        width: 500px;
    }
    main {
        width: 1200px;
    }
}
