/* Gilt automatisch für absolut JEDEN Text auf deiner Seite */
* {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

/* ==========================================================================
   1. Zusätzlich für die Download-Seite
   ========================================================================== */

/* --- EDLES TEXT-DOWNLOAD-STYLING (MARINEBLAU & FETT) --- */

/* Entfernt das Listensymbol und den Standard-Abstand links */
.download-kategorie ul {
  list-style-type: none !important; /* Löscht die Punkte vollständig */
  padding-left: 0 !important;       /* Verhindert den Einzug nach rechts */ 
  margin-left: 0 !important;
}

.download-kategorie li {
  margin-bottom: 25px !important;   /* Schafft Luft zwischen den Downloads */
}

/* Der neue, elegante Text-Button */
.download-button {
  display: inline-block !important;
  background-color: transparent !important; /* Kein klobiger Hintergrund mehr */
  color: #000080 !important;        /* Echtes, klassisches Marineblau (Navy) */
  font-weight: normal !important;     /* Keine Fettschrift */
  text-decoration: underline !important; /* Ein eleganter Unterstrich zeigt: Hier klicken! */
  padding: 4px 0 !important;        /* Minimaler Abstand für eine feine Optik */
  font-size: 0.8rem !important;    /* Macht die Überschrift minimal präsenter */
  transition: color 0.2s ease !important;
}

/* Hover-Effekt: Wenn man mit der Maus darüberfährt */
.download-button:hover {
  color: #00004d !important;        /* Wird beim Darüberfahren ein edles Stück dunkler */
  text-decoration: none !important; /* Der Unterstrich verschwindet spielerisch beim Hovern */
}


/* ==========================================================================
   2. GEMEINSAME BASIS-STILE (Für alle Seiten)
   ========================================================================== */
 @font-face {
  font-family: 'Lexend';
  src: url('fonts/lexend-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Study Night';
  src: url('fonts/studynight.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
body {
    font-family: 'Lexend', Arial, sans-serif;
    background-image: url('img/sandstein.jpg'); 
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: #fcfbf9;
    color: #2c3e2b; /* Tiefes Waldgrün */
    line-height: 1.4;
    margin: 0;
    padding: 40px 20px 80px 20px;
}

.container {
    width: 95%;
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
}

/* Der Footer mit dem automatischen CSS-Datum */
.site-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(44, 62, 43, 0.2);
    font-size: 0.8rem;
    font-style: italic;
}
.site-footer a {
    color: #2c3e2b;
    text-decoration: none;
    margin: 0 15px;
    font-style: italic;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* HIER WIRD DAS DATUM ZENTRAL ÜBER CSS EINGEFÜGT */
.site-footer::after {
    display: block;
    content: "© MRL Services | Stand: September 2026"; /* Hier ändern Sie das Datum für alle Seiten */
    margin-top: 15px;
    font-size: 0.7rem;
    font-style: normal;
    color: rgba(44, 62, 43, 0.7);
}

/* ==========================================================================
   3. STILE NUR FÜR DIE STARTSEITE (index.html)
   ========================================================================== */

 /* Verpackung für das neue, breite Banner */
 .banner-bereich {
 text-align: center; 
 margin-top: 15px; 
 margin-bottom: 30px; /* Erhöht für etwas mehr Luft zur Trennlinie */
 width: 100%;
 padding-bottom: 15px; /* Abstand zwischen dem Bild und der Linie */
 border-bottom: 1px solid rgba(44, 62, 43, 0.2); /* Die neue, dezente waldgrüne Linie */
 }

 
 /* Macht das breite Banner am PC edel und auf dem Handy fließend flexibel */
 .haupt-banner-img {
 width: 100%;
 max-width: 650px; /* Perfekte Breite für den PC-Bildschirm */
 height: auto; 
 display: inline-block;
 }
 
 /* Überschrift behält den persönlichen Charakter */
 .haupt-titel { 
 font-family: 'Study Night', 'Lexend', sans-serif;
 font-size: 2.5rem; 
 font-style: italic;
 margin-top: 15px; 
 margin-bottom: 50px; 
 text-align: center; 
 text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
 line-height: 1.1;
 }
 
 .p {
 font-size: 0.8rem;
 margin-bottom: 15px;
 text-align: left;
 text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
 }

/* ==========================================================================
NEUES STARTSEITEN-LAYOUT (Karten untereinander mit Überlappung)
========================================================================== */
.zielgruppen-container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 0; 
    width: 100%;
    margin-top: 0px; 
    margin-bottom: 40px;
}

.zielgruppen-container a {
    display: block;
    width: 100%; 
    max-width: 650px; /* Perfekte Breite für PC */
    position: relative; 
    transition: transform 0.2s ease-in-out, z-index 0.2s; 
}

/* Neu definierte, saubere Bild-Klasse */
.bild-office {
    width: 100%;
    height: auto;
    display: block;
}
.bild-alltag {
    margin-top: -80px;
    width: 100%;
    height: auto;
    display: block;
}
.bild-fachberatung {
    margin-top: 10px;
    width: 100%;
    height: auto;
    display: block;
}

.zielgruppen-container a:hover {
    transform: scale(1.03); 
    z-index: 10; 
    box-shadow: 0 10px 25px rgba(44, 62, 43, 0.2); 
}

/* ==========================================================================
   4. STILE NUR FÜR DIE UNTERSEITEN (alltagshilfe.html, office.html, etc.)
   ========================================================================== */
.subpage-nav {
    position: sticky; 
    top: 0; 
    background-image: url('img/sandstein.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: 100; 
    margin-bottom: 30px;
    padding-bottom: 15px;
    padding-top: 10px; 
    border-bottom: 1px solid rgba(44, 62, 43, 0.2);
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
}
.subpage-nav a {
    color: #2c3e2b;
    text-decoration: none;
    font-size: 0.8rem;
    font-style: italic;
    margin-right: 15px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
}
.subpage-nav a.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.subpage-nav a:hover {
    text-decoration: underline;
}

.spalten {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;padding: 10px;
  margin-left: 0px !important;
  gap: 20px !important; 
  text-align: left;
  width: 100% !important;
}

.header-text-block {
    flex: 1 1 65% !important;
    padding-right: 20px !important;
}
.header-bild-block {
    flex: 1 1 35%;
    width: 100% !important;
    justify-content: flex-end !important; 
}

h1, h2, .subtitle { 
    font-family: 'Study Night', 'Lexend', Arial, sans-serif;
    font-style: italic; 
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
    margin-top: 0;
    margin-bottom: 8px;
    
}
h1 {
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
    line-height: 1.2;
    text-align: left;
    margin-bottom: 15px; 
}
h2 {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
    margin-top: 15px;
    text-align: left;
    margin-bottom: 15px;
}
h3 {
 font-size: 0.8rem;
 text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
 font-style: bold;
 margin-bottom: 15px;
 text-align: left;
 
}

.wieh2 {
 font-family: 'Study Night', 'Lexend', sans-serif;
 font-size: 1.5rem; 
 font-style: italic;
 margin-top: 15px; 
 margin-bottom: 50px; 
 text-align: center; 
 text-shadow: 1px 1px 3px rgba(255,255,255,0.9);

}

.einleitung-text {
    font-size: 0.8rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
    margin-top: 5;
    margin-bottom: 12px;
    text-align: left;

}

.alltag-liste {
    font-size: 0.8rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
    margin-top: 10px;
    margin-bottom: 5px;
    padding-left: 25px;
    list-style-type: square;
}
.alltag-liste li {
    margin-bottom: 5px;
    font-size: 0.8rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
}

.unterliste {
    list-style-type: circle;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
}
.unterliste li {
    margin-bottom: 6px;
    font-size: 0.8rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
}

.trennlinie {
    border: 0;
    height: 1px;
    background: rgba(44, 62, 43, 0.2);
    margin: 25px 0;
    margin-top: 0;
    margin-bottom: 0;
}
.mail-link {
    color: #2c3e2b;
    text-decoration: underline;
}
.p_klein { height: 10px;}


/* ==========================================================================
   5. GLOBALER MOBIL-SCHUTZ & SMARTPHONE-RETTUNG
   ========================================================================== */
@media (max-width: 440px) {
    html, body {
        margin: 0 !important;
        padding: 20px 10px 60px 10px !important; 
        max-width: 100% !important;
        overflow-x: hidden; 
    }
    .container {
        width: 100% !important; 
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* Mobil-Korrekturen für die Startseite */
    .haupt-banner-img {
        width: 100%;
        max-width: 440px;
        display: flex;
    }
    
    .haupt-titel {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
/* ==========================================================================
5. GLOBALER MOBIL-SCHUTZ & SMARTPHONE-RETTUNG
========================================================================== */
@media (max-width: 750px) {

    html, body {
        margin: 0 !important;
        padding: 20px 10px 60px 10px !important; 
        max-width: 100% !important;
        overflow-x: hidden !important; 
    }

    .container {
        width: 100% !important; 
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Mobil-Korrekturen für das Hauptbanner */
    .haupt-banner-img {
        width: 100% !important;
        max-width: 440px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .haupt-titel {
        font-size: 1.6rem !important;
        margin-bottom: 25px !important;
    }

    /* ==========================================================================
    MOBIL-RETTUNG FÜR DIE NEUEN TEXT-KARTEN (Volle Breite)
    ========================================================================== */
    
    /* 1. Container zwingt die Elemente sauber untereinander */
    .zielgruppen-container {
        display: flex !important;
        flex-direction: column !important; 
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* 2. Die Links dürfen auf dem Handy die volle Breite nutzen */
    .zielgruppen-container a {
        display: block !important;
        width: 100% !important; 
        max-width: 100% !important; /* Löscht die alte 260px-Bremse */
        height: auto !important; 
    }

/* 3. RADIKALE KORREKTUR: Erzwingt die Bildanzeige und löscht alte Blockaden */
    .zielgruppen-container img, 
    .zielgruppen-container a img {
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important; 
    }

    .bild-office {
        margin-top: 0 !important;
    }
    
    .bild-alltag {
        position: relative !important;
        transform: translateY(-40px) !important; /* Schiebt das Bild visuell nach oben */
        margin-bottom: -40px !important;        /* Verhindert ein Loch nach unten */
        z-index: 999 !important;                 /* Legt es über den Text darüber */
    }
    
    .bild-fachberatung {
         position: relative !important;
        transform: translateY(-40px) !important; /* Schiebt das Bild visuell nach oben */
        margin-bottom: -40px !important;        /* Verhindert ein Loch nach unten */
        z-index: 999 !important;                 /* Legt es über den Text darüber */
    }

    /* Mobil-Korrekturen für die Unterseiten */
    .subpage-nav {
        display: flex !important;
        flex-wrap: wrap !important; 
        justify-content: center !important; 
        gap: 8px 12px !important; 
    }

    .subpage-nav a {
        display: inline-block !important;
        flex: 0 0 auto !important; 
        white-space: nowrap !important; 
    }

    .spalten {
        flex-direction: column-reverse !important; 
        text-align: left !important;
        gap: 10px !important;
    }

    .einleitung-text {
        text-align: left !important;
    }

    .alltag-liste {
        padding-left: 20px !important;
        text-align: left !important; 
    }

    .header-text-block {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        padding-right: 0 !important;
    }

    .header-bild-block {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    /* Schließt das Loch ausschließlich unter dem Puzzleteil auf dem Smartphone */
    .mehr-erfahren-titel {
        margin-top: -20px !important; /* Zieht NUR diese Überschrift auf dem Handy hoch */
    }

} /* Hier endet der Media-Query-Block korrekt! */
