/* style.css - Webseite StudioLaMagica.de - July 2025 */
/* Allgemeine Stile für den Body und Standard-Schriftarten */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header-Bereich */
header {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    text-align: center; /* Zentriert Logo und Navigation */
}

.header-top {
    display: flex;
    justify-content: center; /* Zentriert das Logo im Flex-Container */
    align-items: center;
    padding: 10px 20px;
}

.site-logo {
    max-width: 600px; /* Dein gewünschter Wert */
    height: auto; /* Höhe automatisch anpassen */
    display: block; /* Stellt sicher, dass das Bild ein Blockelement ist */
}

/* Navigationsbereich */
.header-nav-container {
    background-color: #333;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: center; /* Zentriert die Navigationselemente */
    flex-wrap: wrap; /* Ermöglicht Umbruch auf kleineren Bildschirmen */
    gap: 20px; /* Abstand zwischen Navigationselementen */
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Verhindert Zeilenumbruch innerhalb eines Links */
}

nav a:hover {
    background-color: #7FBA27; /* Akzentfarbe beim Hover für Navigationslinks */
    border-radius: 44px;
}

/* Hauptinhaltsbereich */
main {
    max-width: 1200px; /* Begrenzt die maximale Breite des Hauptinhalts */
    margin: 20px auto; /* Zentriert den Hauptinhaltsbereich */
    padding: 0 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Allgemeine Sektionen für Inhalte auf der Startseite */
.content-section {
    background-color: #fff;
    padding: 40px 20px;
    margin-bottom: 20px; /* Abstand zwischen den Blöcken */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center; /* Zentriert den Inhalt in den Sektionen */
}

.light-bg {
    background-color: #e9e9e9; /* Leichterer Hintergrund für abwechselnde Blöcke */
}

/* Überschriften in den Sektionen */
.section-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.2em;
}

/* Stil für den grauen Untertitel-Kasten */
.subtitle-text {
    background-color: #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    color: #555;
}

/* Stil für Haupt-Textblöcke */
.intro-text {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
    text-align: center;
}

.intro-text p {
    margin-bottom: 15px;
}

/* Stil für das Portraitbild */
.profile-portrait {
    max-width: 30%; /* Stellt sicher, dass das Bild responsiv ist */
    height: auto;
    display: block; /* Macht das Bild zu einem Blockelement */
    margin: 30px auto; /* Zentriert das Bild horizontal und gibt vertikalen Abstand */
    border-radius: 8px; /* Leicht abgerundete Ecken, falls gewünscht */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Leichter Schatten für Tiefe */
}

/* Entfernt die Punkte vor den Listen in den intro-text Abschnitten */
.intro-text ul {
    list-style: none; /* Entfernt die Standard-Aufzählungspunkte */
    padding: 0; /* Entfernt den Standard-Padding links von Listen */
    margin: 0 auto 15px auto; /* Zentriert die Liste und gibt Abstand */
    text-align: center; /* Zentriert die Liste selbst */
    max-width: 800px; /* Begrenzt die Breite der Liste für bessere Lesbarkeit */
}

.intro-text ul li {
    margin-bottom: 5px; /* Kleiner Abstand zwischen den Listenelementen */
}


/* Hero Section Spezifisch */
#hero.hero-section {
    /* Hintergrundbild einbinden mit dunklem Overlay für bessere Lesbarkeit */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../bilder/hero/StudioLaMagica_Titelbild.jpg') no-repeat center center/cover;
    color: #fff; /* Textfarbe auf weiß setzen */
    padding: 80px 20px;
    margin-bottom: 20px;
    box-shadow: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#hero.hero-section .hero-content {
    text-align: center;
}

#hero.hero-section h1 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 10px;
}

#hero.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #7FBA27; /* Deine Akzentfarbe für Buttons */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
    font-weight: bold;
}

.button:hover {
    background-color: #6a9b22; /* Eine etwas dunklere Version der Akzentfarbe für den Hover-Effekt */
}

/* Leistungen Grid */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    justify-content: center; /* Zentriert Grid-Items, wenn weniger als volle Reihe */
}

/* NEUE DEFINITION: Link-Element, das die gesamte Kachel umschließt */
.leistung-item-link {
    text-decoration: none; /* Entfernt die Unterstreichung des Links */
    color: inherit;        /* Vererbt die Textfarbe von der Kachel (z.B. #333) */
    display: block;        /* Macht den Link zu einem Block-Element, das die ganze Kachel ausfüllt */
    transition: transform 0.2s ease-in-out; /* Übergibt den Hover-Effekt auf den Link */
    border-radius: 8px; /* Für abgerundete Ecken, wenn Link um Kachel liegt */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Schatten, hierher verschoben! */
}

.leistung-item-link:hover {
    transform: translateY(-5px); /* Der gleiche Hover-Effekt wie zuvor, hierher verschoben! */
}

/* ANGEPASSTE DEFINITION: Die Kachel selbst (ohne die Link-spezifischen Stile) */
.leistung-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%; /* Wichtig, damit alle Kacheln gleich hoch sind, wenn der Link außen ist */
    display: flex; /* Um den Inhalt innerhalb der Kachel auszurichten */
    flex-direction: column; /* Inhalt untereinander */
    justify-content: space-between; /* Verteilt Inhalt */
    /* Hier ist KEIN box-shadow und KEINE transition mehr, da diese jetzt auf .leistung-item-link liegen! */
}

.leistung-item h3 {
    color: #333; /* Stellt sicher, dass die Überschrift die korrekte Farbe hat */
    margin-bottom: 10px;
    font-size: 1.4em;
}

.leistung-item p {
    margin-bottom: 20px;
    flex-grow: 1; /* Lässt den Text den verfügbaren Platz einnehmen */
}

/* Stil für die Bilder in den Leistungs-Items */
.leistung-img {
    max-width: 100%; /* Bild füllt die Breite des Containers aus (wenn schon auf 300px skaliert) */
    height: auto; /* Höhe proportional anpassen */
    border-radius: 4px; /* Leicht abgerundete Ecken */
    margin-bottom: 15px; /* Abstand zum Text darunter */
    display: block; /* Macht das Bild zu einem Blockelement */
    margin-left: auto; /* Zentrierung des Bildes innerhalb des leistung-item */
    margin-right: auto; /* Zentrierung des Bildes innerhalb des leistung-item */
}

/* .button-small Regeln sind jetzt überflüssig und werden entfernt/auskommentiert */
.button-small {
    display: none;
}


/* Kunden-Logo-Grid (Angepasst für 4x5 Layout) */
.client-logo-grid {
    display: grid; /* Wechsel von Flexbox zu Grid */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Versucht 4 Spalten von 200px, passt sich aber an */
    gap: 25px; /* Abstand zwischen den Logos */
    margin-top: 30px;
    max-width: 1000px; /* Begrenzt die Breite des Grids */
    margin-left: auto;
    margin-right: auto;
    justify-items: center; /* Zentriert die Items innerhalb ihrer Grid-Zellen */
    align-items: center; /* Zentriert die Items vertikal in ihren Grid-Zellen */
}

.client-logo-item {
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex; /* Weiterhin Flexbox innerhalb des Items, um das Bild zu zentrieren */
    justify-content: center;
    align-items: center;
    width: 200px; /* Feste Breite für die Kachel */
    height: 60px; /* Feste Höhe für die Kachel */
    overflow: hidden;
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Galerie-Layout (für Imagebilder, Produktfotos, Räume & Gebäude) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Kontaktbereich */
.contact-section {
    background-color: #fff;
    padding: 30px;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.contact-section p {
    margin-bottom: 10px;
}

.contact-section a {
    color: #007bff;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Footer-Bereich */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 40px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Stil für den 360°-Panorama-Einbettungsbereich (panoramafotos.html) */
.panorama-embed {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.panorama-embed h2 {
    margin-bottom: 20px;
    color: #333;
}

.panorama-embed .embed-container {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    height: 0;
    margin-bottom: 30px;
    background-color: #e9e9e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.panorama-embed .embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Media Queries für Responsive Design */
@media (max-width: 992px) { /* Tablet Querformat */
    .site-logo {
        max-width: 400px;
    }

    #hero.hero-section h1 { /* Angepasste H1-Größe für Tablets */
        font-size: 2.5em; /* Etwas kleiner als Standard */
    }

    #hero.hero-section p { /* Angepasste P-Größe für Tablets */
        font-size: 1.2em; /* Etwas kleiner als Standard */
    }

    .client-logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Dann 3 oder 4 Logos, je nach Breite */
        gap: 20px;
    }
    .client-logo-item {
        width: 180px;
        height: 55px;
    }
}

@media (max-width: 768px) {  /* kleineres Format */
    .site-logo {
        max-width: 350px;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    h1 {
        font-size: 2em;
    }

    .subtitle-text {
        font-size: 1em;
        padding: 10px 15px;
    }

    .intro-text, .contact-section p {
        font-size: 0.95em;
    }

    .gallery-grid, .leistungen-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf kleineren Bildschirmen */
    }

    #hero.hero-section h1 { /* H1-Größe für Smartphones */
        font-size: 2.2em; /* Oder auch kleiner, je nachdem wie es aussieht */
    }

    #hero.hero-section p { /* P-Größe für Smartphones */
        font-size: 1.0em; /* Normale Schriftgröße für Lesbarkeit */
    }

    .section-title {
        font-size: 1.8em;
    }

    .client-logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 2 oder 3 Logos pro Reihe */
        gap: 15px;
    }
    .client-logo-item {
        width: 150px;
        height: 45px;
    }
}

@media (max-width: 480px) { /* Smartphone Hochformat */
    .site-logo {
        max-width: 280px;
    }

    main {
        padding: 0 10px;
    }

    .contact-section {
        padding: 20px;
    }

    #hero.hero-section h1 { /* H1-Größe noch kleiner für sehr kleine Bildschirme */
        font-size: 1.8em; /* Probier hier aus, was am besten passt */
    }

    #hero.hero-section p { /* P-Größe noch kleiner für sehr kleine Bildschirme */
        font-size: 0.9em; /* Oder 0.8em, wenn nötig */
    }

    .client-logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Eher 2 Logos pro Reihe */
        gap: 10px;
    }
    .client-logo-item {
        width: 120px;
        height: 35px;
    }
}