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

body {
    font-family: "Golos Text", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    line-height: 1.6;
    color: #333;
    background-color: #fff;
    hyphens: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------------------------
   Header / Navigation
--------------------------- */
header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.navbar .logo img {
    height: 100px;
}

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

.nav-links li a {
    font-size: 1.4rem;
    font-weight: bold;
    color: #800000; /* dunkelrot */
}

.contact-btn {
    background: #800000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.contact-btn:hover {
    background: #a00000;
}

/* Burger-Menü für mobile */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: none;
}

.burger span {
    height: 3px;
    width: 25px;
    background: #800000;
    margin-bottom: 4px;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 1rem;
}

.mobile-menu ul li {
    padding: 0.5rem 0;
}

.mobile-menu ul li a {
    color: #800000;
    font-weight: bold;
}

/* ---------------------------
   Hero Section
--------------------------- */
.hero {
    background: #f9f9f9;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: #800000;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.4rem;
    color: #555;
    max-width: 1100px;
    margin: auto;
}

/* ---------------------------
   Sections
--------------------------- */
section {
    padding: 4rem 2rem;
    scroll-margin-top: 120px; /* Höhe des Headers plus ein bisschen Puffer */
}

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

/* Über uns */
#about p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #444;
}

/* Leistungen / Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    flex: 1;
    min-width: 250px;
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.card h3 {
    color: #800000;
    margin-bottom: 1rem;
}

/* ---------------------------
   Referenzen / Projekte
--------------------------- */
.projects-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.flip-card {
    perspective: 1000px;
    flex: 1 1 300px;
    min-width: 300px;
    max-width: 350px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 150px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.flip-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.card-back {
    background: #f5f5f5;
    color: #800000;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.card-back h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card p {
    hyphens: auto;
}

.card-back p {
    font-size: 0.9rem;
    color: #444;
}

/* ---------------------------
   Kontakt
--------------------------- */
.contact {
    text-align: center;
    background: #f9f9f9;
}

.contact p {
    margin: 0.5rem 0;
}

.contact .contact-btn.large {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
}

/* ---------------------------
   Footer
--------------------------- */
footer {
    text-align: center;
    padding: 2rem;
    background: #800000;
    color: #fff;
    font-size: 0.9rem;
}

/* ---------------------------
   Responsive
--------------------------- */
@media (max-width: 900px) {
    .navbar .logo img {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .cards {
        flex-direction: column;
    }
    section {
        scroll-margin-top: 60px; /* Höhe des Headers plus ein bisschen Puffer */
    }
}
