/* Grundlegende Stile */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f9;
}

/* Container für Zentrierung und Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #004080;
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  display: block;
}

@media (max-width: 480px) {
  .logo img {
    max-height: 150px;
  }
}

.logo span {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
}

.nav-links a:hover {
    color: #00aaff;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
        display: none;
    }

    .navbar.active .nav-links {
        display: flex;
    }
}

/* Hero-Sektion */
#hero {
    background-color: #004080;
    color: #ffffff;
    text-align: center;
    padding: 00px 20px 60px;
    border-bottom: 4px solid #00aaff;
}

#hero h1 {
    margin: 0 0 20px;
    font-size: 3rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #00aaff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #008bb5;
}

/* Dienstleistungen */
#services {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

#services h2 {
    margin-bottom: 40px;
    color: #004080;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service h3 {
    margin-top: 0;
    color: white;
}

.service p {
    font-size: 1rem;
    color: white;
}

/* Über uns */
#about {
    padding: 60px 20px;
    background-color: #eeeeee;
    text-align: center;
}

#about h2 {
    color: #004080;
    margin-bottom: 20px;
}

/* Kontakt */
#contact {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

form button {
    background-color: #00aaff;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #008bb5;
}

/* Footer */
footer {
    background-color: #004080;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #dddddd;
}

/* Medienabfragen */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-group {
        text-align: center;
    }
}

.service-link {
    text-decoration: none; /* keine Unterstreichung */
    color: inherit;        /* Schriftfarbe übernehmen */
    display: block;        /* damit der ganze Bereich klickbar ist */
}
.service-link:hover {
    /* Optional: schöner Hover-Effekt */
    background-color: #f0f0f0;
    cursor: pointer;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;

/* Bild-Hintergründe für Services */
.service-pc {
    background-image: url('../images/pc-hilfe.jpg');
}

.service-software {
    background-image: url('../images/software.jpg');
}

.service-hardware {
    background-image: url('../images/hardware.jpg');
}

.service-datenrettung {
    background-image: url('../images/datenrettung.jpg');
}

/* Allgemeiner Stil für Service-Kacheln mit Bild */
.service {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white; /* Text auf dunklem Bild */
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* Overlay für bessere Lesbarkeit */
.service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.service h3,
.service p {
    position: relative;
    z-index: 1;
    text-align: left;
}


/* Beim Hover: Overlay ausblenden */
.service:hover::before {
    background: transparent;
}

/* Beim Hover: Text ausblenden */
.service:hover h3,
.service:hover p {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Standard: sanfte Übergänge für Overlay und Text */
.service::before,
.service h3,
.service p {
    transition: background 0.3s ease, opacity 0.3s ease;
}
