/* 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;
    overflow: visible;
    justify-content: space-between;
    align-items: center;
    background-color: #2c2c2c;
    padding: 1rem 2rem;
    position: relative;
    min-height: 80px;
    top: 0;
    z-index: 1000;
}
.menu-toggle {
    display: none;
    position: absolute;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    background: #e63946;
    border: none;
    top: 40px;
    right: 18px;
    color: white;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 99999;
}
  
.logo {
    font-size: 1.5rem;
    color: #e63946;
    font-weight: bold;
}

/* Desktop Navigation */
nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    margin-left: auto;
}


nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;

    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;
    margin-top: 20px;
    padding: 4rem 2rem;
    background-color: #333;
}


.BildRep img {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* Optional: damit das Bild nicht größer als der Container wird */
}


.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Tabellentext Leistungs Section */

.leistung {
    background: #1e1e1e;
    position: relative;
    max-width:1200px;
    margin-left:5px;
    padding-right:520px;
}


.LstgBild {
    position: fixed;

    left: 350px;
    top: 320px;
    width: 800px;
    background:#1e1e1e;
    padding:1px;
    border-radius:1px;
    z-index:10;
}


.LstgBild img {
    width:100%;
    height:auto;
    display:block;
}
.buchstabe {
    font-size: 2rem;
    font-weight: bold;
    color: #e63946;
    margin-top: 20px;
    margin-left: 50px;
}

.begriffe {
    font-size: 0.95rem;
    margin-left: 70px;
    line-height: 1.8;
    color: #ddd;
}

.begriffe a {
    color: #ddd;
    /* text-decoration: none; */
}

.begriffe a:hover {
   color: #F7FA92;
    font-size: 1.2rem
}

.begriffe a:visited {
    color: #86FAA4;
}

.btn {
    background-color: #e63946;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn1 {
    background-color: #64D9FD;
    color: #FD3008;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn1:hover {
    background: #0056b3;
}

.service-item {
    position: relative;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 30px auto;
    padding: 10px;
}

/* Bilder */
.image-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Text im Grid */
.grid-text {
    grid-column: span 4; /* ganze Zeile */
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
    color: #f1f1f1;
}

.image-grid img:hover {
    transform: scale(1.05);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Leistungsbilder */

.serviceimage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 10px;
}

.serviceimage-grid img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.serviceimg-wrapper {
    position: relative;
    overflow: hidden;
}

.serviceimg-wrapper img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Leistungsbilder 4er*/

.quadroimage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 10px;
}

.quadroimage-grid img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
/*.quadroimage-wrapper {
    position: relative;
    overflow: hidden;
}

.quadroimage-wrapper img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}/*/
/* Großbild Quadro*/

.quadratisches-bild {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 400px;
    gap: 15px;
    margin: 30px auto;
    padding: 10px;

}


.quadratisches-bild img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: container;
}



.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Tooltip */
.img-tooltip {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);

    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;

    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Hover */
.img-wrapper:hover .img-tooltip,
.serviceimg-wrapper:hover .img-tooltip {
    opacity: 1;
}


.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;
    cursor: pointer;
    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 */
}

/* Texttabelle */
.Menuegrid-text {
    grid-column: span 4; /* ganze Zeile */
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
    color: #f1f1f1;
}




/* =========================
   WRAPPER
========================= */
.info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
     margin-top: 20px;
}

/* =========================
   BUTTON
========================= */
#showInfo {
    display: inline-block;
    background: #e63946;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

/* =========================
   INFO SECTION (SLIDE)
========================= */
#infoSection {
    width: 100%;
    max-width: 800px;
    margin: 5px auto;
    box-sizing: border-box;

    background: #f0f0f0;
    color: #000;
    padding: 20px;
    border-radius: 8px;

    max-height: 0;
    overflow: hidden;

    opacity: 0;

    transition: max-height 0.5s ease, opacity 0.3s ease;

    pointer-events: none;
}


/* unterschiedliche Breiten */
#infoSection.info-small {
    max-width: 580px;
    text-align: center;
	
}

#infoSection.info-large {
    max-width: 900px;
}

#infoSection.info-long.visible {
    max-width: 1100px;
    max-height: 6000px;
}


/* sichtbar */
#infoSection.visible {
    max-height: 2000px;
    opacity: 1;
    pointer-events: auto;
}


/* =========================
   MOBILE
========================= */


/* Tablet */
@media (max-width: 1100px) {

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Handy */
@media (max-width: 768px) {

    .image-grid {
        grid-template-columns: 1fr;
    }


    .serviceimage-grid {
        grid-template-columns: 1fr;
    }


    .grid-text {
        grid-column: span 1;
    }


    .LstgBild {
        display: none;
    }


    .logo {
        font-size: 1.2rem;
        max-width: calc(100% - 80px);
        white-space: normal;
        line-height: 1.2;
        overflow-wrap: break-word;
    }


    #infoSection {
        width: calc(100% - 30px);
        margin: 5px auto;
        padding: 20px;
    }


  /* Hamburger nur mobil */

.menu-toggle {
    display: flex;
}


/* Mobile Navigation */

nav {
    position: absolute;
    top: 80px;
    right: 0;
    width: 220px;

    background: #2c2c2c;
    opacity: 1;

    transform: translateX(100%);
    transition: transform 0.3s ease;

    z-index: 1100;
}


nav.active {
    transform: translateX(0);
}


nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 15px 20px;
    align-items: flex-end;    /* Menüpunkte rechtsbündig */
    background: #2c2c2c;
    gab: 12px;
}


nav ul li {
    padding: 8px 0;
}


nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: #f1f1f1;
}