/* Grundlayout */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #1e1e1e;
    color: #f1f1f1;

    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c2c2c;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    color: #e63946;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #e63946;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: url('assets/images/werkstatt.jpg') center/cover no-repeat;
    background-color: #333;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: #e63946;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.Bild img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* Optional: damit das Bild nicht größer als der Container wird */
}

/* Services */
.services {
    padding: 2rem;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-item {
    background-color: #2c2c2c;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.service-item:hover {
    background-color: #3d3d3d;
}

/* Footer fixieren am unteren Rand */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #2c2c2c;
    color: #aaa;
    margin-top: auto; /* Schiebt Footer ans Seitenende */
}

/* Slide-In Info Section */
#infoSection {
    position: relative;
    background: #f0f0f0;
    color: #000;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 600px;

    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;

    pointer-events: none; /* Nicht klickbar wenn versteckt */
}

#infoSection.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Link "Infos anzeigen" mittig fixiert */
#showInfo {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

#showInfo:hover {
    background-color: #b82f3f;
}
