/* =========================================================
   BASIS & TYPOGRAPHIE
   ========================================================= */
   body {
    font-family: 'Georgia', Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* KORREKTUR: Helles Grau-Blau für einen sanften Hintergrund (wie zuvor besprochen) */
    background-color: #f0f4f7; 
    color: #333;
    line-height: 1.6;
}

/* =========================================================
   CONTAINER & STRUKTUR
   ========================================================= */
   .container {
    max-width: 1200px; 
    width: 90%; 
    margin: 50px auto; 
    /* WIEDERHERSTELLUNG: Weisser Hintergrund mit 95% Deckkraft */
    background-color: rgba(255, 255, 255, 0.7); /* Reduzierte Deckkraft auf 70% */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container-small {
    max-width: 900px;
}

section {
    padding: 20px 0;
}

/* =========================================================
   HEADER & ÜBERSCHRIFTEN
   ========================================================= */
header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #a3c2e0; /* Trennlinie: Akzent-Blau */
}

/* =========================================================
   SEKTION ÜBER MICH (GRAFISCHE AUFBEREITUNG)
   ========================================================= */
   #ueber {
    text-align: center; 
    max-width: 800px;
    margin: 30px auto; 
    padding: 30px;
    /* BEIBEHALTEN: Zentriert die BLOCK-Elemente wie Überschriften */
    
    
    background-color: #ffffff; 
    border-radius: 12px; 
    border: 1px solid #dcdfe4; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05); 
}

/* NEU: Stellt den Textfluss für Fließtext wieder auf linksbündig */
#ueber p,
#ueber h3 {
    text-align: left;
}
#ueber h2 {
    /* Nur die Haupt-Überschrift soll zentriert bleiben (optional) */
    text-align: center;
}

/* Anpassung der Listen innerhalb dieser Sektion (wie gehabt) */
#ueber ul {
    /* BEIBEHALTEN: Zentriert die Liste als Block */
    width: fit-content; 
    margin: 20px auto; 
}

/* Entfernt die linke blaue Linie von den LI-Elementen in dieser Sektion,
   da sie linksbündig war und bei Zentrierung stören könnte. */
#ueber li {
    border-left: none; 
    background-color: transparent; 
    padding: 5px 0; 
    margin-bottom: 5px;
    /* WICHTIG: Sollte der Text in der Liste zu lang sein, muss er linksbündig sein */
    text-align: left; 
}

#schwerpunkte {
    text-align: center;
}
#kontakt {
    text-align: center;
    color: #2c3e50; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
}

/* =========================================================
   HEADER & ÜBERSCHRIFTEN (Fügen Sie dies hier ein)
   ========================================================= */

/* Setzt den H1 in der Referenzen-Sektion auf den Look des H2 */
#referenzen h1 {
    color: #2c3e50; /* Dunklere Hauptfarbe */
    
    /* ERSETZT: Entfernen der harten Linie, um es luftiger zu machen */
    border-bottom: none; 
    display: flex; /* Damit Text und Bild nebeneinander sind */
    align-items: center; /* Vertikale Zentrierung */
    justify-content: center; /* Horizontale Zentrierung */
    gap: 10px; /* Abstand zwischen Bild und Text */
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 10px; /* Reduziert den Abstand zur neuen Welle */
    font-size: 2em; /* Etwas größer für mehr Präsenz */
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1); 
    text-align: center; 
}

.h1-icon {
    width: 20%; /* Größe des Icons anpassen */
    height: auto;
    vertical-align: middle; /* Für bessere Ausrichtung, falls kein Flexbox verwendet wird */
    /* Zusätzliche kleine Anpassungen, falls nötig */
    /* margin-right: 10px; */ 
}




/* =========================================================
   ...

/* 2. Link-Stil für den H1-Namen (damit er nicht blau und unterstrichen ist) */
.header-link {
    text-decoration: none; /* Unterstreichung entfernen */
    color: inherit;       /* Farbe vom H1 erben */
    display: block;       /* Wichtig, damit der gesamte H1-Bereich klickbar ist */
}

.header-link:hover h1 {
    color: #3498db; /* H1-Farbe beim Hover zum Akzent-Blau wechseln */
    cursor: pointer;
}

h2 {
    color: #3498db; /* Unterüberschrift: Mittleres Blau */
    border-bottom: 1px solid #e0e0e0; /* Trennlinie: Helles Grau */
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 20px;
}

h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-top: 0;
}


/* --- HAUPTNAVIGATION --- */
.hauptnavigation {
    margin-top: 20px;
    padding: 10px 0;
    font-size: 1.1em;
    font-weight: bold;
    
    /* Flexbox für die responsive Anordnung */
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 15px 25px;  
}

.hauptnavigation a {
    color: #2c3e50; 
    text-decoration: none;
    padding: 5px 10px; 
    border-radius: 5px; 
    transition: background-color 0.2s, color 0.2s; 
}

/* 1. Responsiver Hover-Effekt (für Desktop) */
.hauptnavigation a:hover {
    color: white; 
    background-color: #3498db; 
    text-decoration: none;
}

/* 2. Effekt beim Drücken/Tippen (für Mobile/Desktop) */
.hauptnavigation a:active, 
.hauptnavigation a:focus  
{
    color: white;
    background-color: #2980b9; 
    outline: none; 
}

/* --- Responsivität für die Navigation --- */
@media (max-width: 600px) {
    .hauptnavigation {
        padding: 5px 0;
        gap: 10px 15px; 
    }
    
    .hauptnavigation a {
        font-size: 1em;
        padding: 8px 12px; 
    }
}

/* =========================================================
   SEKTIONS-LAYOUT (FÜR ÜBER-MICH-SEITE)
   ========================================================= */

/* Der Haupt-Flexbox-Container für Text und Bild */
.inhalt-layout {
    display: flex;
    gap: 40px; 
    align-items: flex-start; 
    margin-top: 30px;
}

/* Der Container für den gesamten Textblock (optional) */
.text-block {
    flex: 1; 
}

/* =========================================================
   GRAFIKEN & ICONS
   ========================================================= */

/* Stil für das Banner-Bild im Header */
.header-banner {
    width: 300px;              
    flex-shrink: 0;            
    height: auto;
    object-fit: cover;         
    border-radius: 15px;      
    border: 1px solid #353a3d; 
    margin-top: 10px;          
}


/* Pfeil-Icon auf der Über-mich-Seite */
.pfeil-icon {
    width: 60px; 
    height: auto;
    border: 2px solid #2c3e50; 
    padding: 5px;
    margin: 10px auto 0 auto; 
    border-radius: 8px;
    transition: opacity 0.3s;
}
.pfeil-icon:hover {
    opacity: 0.8;
}

/* Stil für das Profilbild, das RECHTS VOM TEXT steht */
.profilbild-rechts {
    width: 300px;              
    flex-shrink: 0;            
    height: auto;
    object-fit: cover;         
    border-radius: 8px;        
    border: 3px solid #3498db; 
    margin-top: 10px;          
}

/* =========================================================
   KACHELN & LEISTUNGEN
   ========================================================= */


   .leistung-card h3,
   .leistung-card p,
   .leistung-card ul,
   .leistung-card li {
       text-align: left; 
   }

.kacheln-layout {
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin-top: 20px;
    justify-content: center; 
}

.leistung-card {
    flex: 1 1 calc(50% - 10px); 
    max-width: calc(50% - 10px); 
    background-color: #f8f8f8; 
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: center;
}

@media (min-width: 900px) {
    .leistung-card {
        flex: 1 1 calc(33.333% - 14px); 
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 600px) {
    .leistung-card {
        flex: 1 1 100%; 
        max-width: 100%;
    }
}

.leistung-card h3 {
    color: #3498db; 
    margin-bottom: 10px;
}

.leistung-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.2); 
}

/* Anpassung für den "Mehr zur Person" Button */
.mehr-info-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    margin-top: 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.mehr-info-button:hover {
    background-color: #2980b9;
}


/* =========================================================
   INHALT & LISTEN
   ========================================================= */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    background-color: #f8fcff; 
    margin-bottom: 10px;
    padding: 10px;
    border-left: 5px solid #5fa2dd; 
    border-radius: 4px;
}

address {
    font-style: normal;
    margin-bottom: 20px;
}


/* =========================================================
   REFERENZEN (TESTIMONIALS) - SANFT & GEOMETRISCH
   ========================================================= */

   .referenzen-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    
    /* KRITISCH: Zwingt alle Karten einer Reihe zur gleichen Höhe (behebt das Überlappungs-Problem) */
    align-items: stretch; 
    
    justify-items: center; 
    margin-top: 30px;
    padding: 0 20px;
    padding-bottom: 50px; /* Kann beibehalten werden, falls der Footer etwas Abstand braucht */
}

/* 1. Basis-Stil für die Karte (Standard: Weiß) */
.testimonial-card {
    width: 100%;
    height: 100%; /* KRITISCH: Streckt die Karte im Grid */
    background-color: #ffffff; 
    border: 1px solid #f0f0f0; /* Subtiler Rand */
    
    border-radius: 15px; 
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* 2. Stil des Zitats (Text) */
.testimonial-card .zitat {
    /* NEU: Fügt einen oberen Abstand hinzu, damit der Text unter dem großen Anführungszeichen beginnt */
    margin-top: 30px; 
    /* NEU: Stellt sicher, dass das Zitat relativ zur Karte positioniert wird */
    position: relative; 
    padding-left: 20px; /* Optional: Schafft etwas Platz für das Anführungszeichen */
}

/* 2. Farb-Akzent: Jede zweite Karte (Hellblau) */
.testimonial-card:nth-child(even) {
    background-color: #f5fcff; 
    border: 1px solid #e0efff;
}

/* 3. Farb-Akzent: Jede dritte Karte (Sand/Pastellgelb) */
.testimonial-card:nth-child(3n) {
    background-color: #fffaf5; 
    border: 1px solid #fff3e6;
}

.testimonial-card:hover {
    transform: scale(1.03); 
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2); 
}

/* Stil für die Zitat-Quelle (Name des Klienten) */
.testimonial-card .quelle {
    text-align: right;
    font-weight: bold;
    color: #3498db; /* Akzent-Blau für den Namen */
    font-style: normal;
    font-size: 1.1em;
    padding-right: 0;
    margin-top: 20px;
}

/* Stil für das große Anführungszeichen (Vor dem Zitat) */
.testimonial-card .zitat:before {
    content: "“"; 
    font-size: 4.5em; /* Wir nehmen die größere Größe für mehr Wirkung */
    line-height: 0.1em;
    position: absolute;
    top: 5px;
    left: 0;
    color: #a3c2e0; /* Sanfteres Blau */
}

/* --- NEU: ZITAT-TYPOGRAPHIE VERBESSERN --- */


.testimonial-card:hover {
    transform: scale(1.03); 
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2); 
}

/* KRITISCH: DIESEN GESAMTEN BLOCK MÜSSEN SIE LÖSCHEN, da er die Überlappung verursacht */
/* .testimonial-card:nth-child(even) {
    transform: translateY(20px);
    margin-top: 10px; 
}
*/

.testimonial-card:hover {
    transform: scale(1.03); 
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2); 
}

/* Setzt den Anführungszeichen-Stil auf eine stärkere Farbe */
.testimonial-card .zitat:before {
    content: "“"; 
    font-size: 4.5em; /* Etwas größer */
    line-height: 0.1em;
    position: absolute;
    top: -5px;
    left: -20px;
    color: #a3c2e0; /* Sanfteres Blau für das Zeichen */
}

/* Stil der Quelle (Kundenname) hervorheben */
.testimonial-card .quelle {
    text-align: right;
    font-weight: bold;
    color: #3498db; /* Akzent-Blau für den Namen */
    font-style: normal;
    font-size: 1.1em;
    padding-right: 0; /* Entferne den Padding, falls er die Ausrichtung stört */
}

.testimonial-card .zitat:before {
    content: "“"; 
    font-size: 4em;
    line-height: 0.1em;
    position: absolute;
    top: 5px;
    left: 0;
    color: rgba(52, 152, 219, 0.3); 
}

.testimonial-card .quelle {
    text-align: right;
    font-weight: bold;
    color: #2c3e50; 
    margin-top: 20px; 
    padding-right: 15px;
}


/* =========================================================
   LINKS & BUTTONS
   ========================================================= */

/* Generelle Link-Stile (L-V-H-A) */
a:link, a:visited {
    color: #3498db;          
    text-decoration: none;
}

a:hover {
    color: #2980b9;          
    text-decoration: underline; 
}

/* WhatsApp Button */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background-color: #25D366; 
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Highlight Link (z.B. Vitarights) */
.highlight-link {
    display: block;
    width: fit-content;      
    margin: 20px auto;       
    padding: 10px;
    background-color: #e6f7ff;
    border: 1px solid #3498db;
    border-radius: 5px;
    text-align: center;      
}

.highlight-link a {
    color: #2980b9; 
    font-weight: bold;
}

/* Stil für den Zurück-Link-Container (Vertikale Anordnung) */
.zurueck-vertikal {
    display: flex;             
    flex-direction: column;    
    justify-content: center;   
    align-items: center;       
    text-decoration: none;     /* Standardmäßig keine Unterstreichung */
    margin: 30px auto 0 auto;  
    font-size: 1.0em;
    color: #3498db;            
    gap: 5px;                  
}

/* NEU: Entfernt die Unterstreichung beim Hover NUR für diesen Link */
.zurueck-vertikal:hover {
    text-decoration: none; /* Keine Unterstreichung beim Hover */
    /* Optional: Wenn Sie möchten, dass die Farbe sich nicht ändert,
       könnten Sie auch 'color: #3498db;' hier hinzufügen,
       falls der globale a:hover die Farbe ändern würde. */
}



/* =========================================================
   SCROLL-TO-TOP BUTTON (PFEIL NACH OBEN)
   ========================================================= */

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    
    display: none; 
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    
    background-color: #3498db; 
    color: white;
    border-radius: 50%; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    
    transition: background-color 0.3s, opacity 0.3s;
    z-index: 1000; 
}

#scroll-to-top:hover {
    background-color: #2980b9; 
    cursor: pointer;
}

/* =========================================================
   RESPONSIVE VIDEO-EINBETTUNG (16:9 Format)
   ========================================================= */

.video-container {
    max-width: 800px; 
    margin: 30px auto;
    position: relative;
    /* Dies erzeugt den 16:9-Abstand (wichtig für die Höhe) */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* WICHTIG: Stellt sicher, dass das Video das Seitenverhältnis ausfüllt */
.video-container iframe,
.video-container .html5-video { /* NEU: Fügen Sie die Klasse für das eigene Video hinzu */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================================
   FUSSZEILE & LAUFSCHRIFT
   ========================================================= */
footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9em;
    color: #777;
    border-top: 1px solid #e0e0e0; 
}

/* LAUFSCHRIFT */
@keyframes laufen {
    0% { transform: translateX(100%); }   
    100% { transform: translateX(-100%); }  
}

.laufschrift-container {
    width: 100%;
    overflow: hidden; 
    background-color: #f0f8ff; 
    border: 1px solid #a3c2e0;
    padding: 8px 0;
    margin-top: 15px; 
}

.lauftext {
    animation: laufen 20s linear infinite; 
    white-space: nowrap; 
    margin: 0; 
    font-weight: bold;
    /* KORREKTUR: Konsistente Farbe (Akzent-Blau) */
    color: #3498db; 
}

.lauftext:hover {
    animation-play-state: paused;
}

.kontakt-link {
    display: block;
    width: fit-content;
    margin: 25px auto; 
    
    /* Visuelle Hervorhebung: Wird zum Button */
    background-color: white; /* Hintergrund ist Akzent-Blau */
    color: black; /* Text ist weiß, damit er auf dem blauen Hintergrund sichtbar ist */
    font-weight: 700; 
    font-size: 1.15em;
    text-transform: uppercase; 
    text-decoration: none;
    
    padding: 12px 25px;
    border-radius: 8px;
    
    /* 3D-Effekt und Hover-Vorbereitung */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.kontakt-link:hover {
    background-color: #2980b9; /* Dunkler beim Hover */
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Schatten vertieft sich */
    transform: translateY(-3px); /* Button hebt sich leicht an */
}


/* =========================================================
   MEDIEN-QUERIES (RESPONSIVENESS)
   ========================================================= */

/* Mobile-First-Optimierung für kleinere Bildschirme */
@media (max-width: 600px) {
    /* 1. CONTAINER: Weniger Rand und Füllung auf dem Handy */
    .container {
        /* Oben/Unten 20px, Links/Rechts 0px */
        margin: 20px 0; 
        /* Innenabstand reduzieren, um den Inhalt zu maximieren */
        padding: 20px 15px; 
        /* Passt sich der vollen Breite an */
        width: 100%; 
        box-sizing: border-box; /* Stellt sicher, dass Padding und Border in die Breite eingerechnet werden */
    }

    /* 2. REFERENZEN: Weniger Lücken */
    .referenzen-layout {
        /* Reduziert den Abstand zwischen den Testimonial-Karten */
        gap: 20px; 
        /* Entfernt den horizontalen Padding, da er jetzt im .container ist */
        padding: 0; 
    }
    
    /* 3. SCHRIFTGRÖSSE: Macht Zitate etwas kleiner, damit sie besser passen */
    .testimonial-card .zitat {
        font-size: 0.95em;
    }
    
    /* 4. ANFÜHRUNGSZEICHEN: Muss korrigiert werden, da der Container jetzt weniger Padding hat */
    .testimonial-card .zitat:before {
        font-size: 3em; 
        top: 0px; 
        left: -5px; /* Etwas nach links, um es sichtbar zu machen */
    }
    
    /* 5. ZURÜCK-LINK */
    .zurueck-vertikal {
        margin: 20px auto 0 auto;
    }

    /* NEU: Stapelt Text und Bild untereinander bei kleinen Bildschirmen */
    .inhalt-layout {
        flex-direction: column;
        align-items: center; 
        gap: 20px;
    }
    
    /* NEU: Stellt sicher, dass Profilbilder auf Mobilgeräten nicht zu breit sind */
    .profilbild-rechts,
    .header-banner {
        width: 100%;
        max-width: 250px; /* Oder eine feste Maximalbreite */
    }
}


/* Wenn Sie möchten, dass die Referenzen-Karten bei 600px immer 100% Breite haben (was sie sollten): */
@media (max-width: 600px) {
    .testimonial-card {
        width: 100%; 
        max-width: 100%; 
    }
}

/* =========================================================
   SEITENSPEZIFISCHE HINTERGRÜNDE (NUR KUNDEN.HTML)
   ========================================================= */

   .seite-referenzen {
    background-image: url(/bilder/finger.png); 
    background-size: cover;
    background-color: transparent;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    /* Hintergrund-Überlagerung für bessere Lesbarkeit */
    background-blend-mode: overlay;
}

/* WICHTIG: Das Haupt-Container-Element sollte weiterhin eine undurchsichtige 
   weiße Farbe haben, damit der Inhalt gut lesbar ist. Das ist in Ihrem 
   bestehenden .container-Stil bereits so festgelegt: 
   .container { background-color: white; } */

