 .site-grid,
.grid-child.container-nav,
.header.container-header
{
    max-width: 1200px !important;
    margin-inline: auto !important;
}

.site-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    column-gap: 0px; /* Abstand zwischen linker Flucht und Sidebar */
}

 /* Padding für Mobilgeräte (damit Text nicht am Rand klebt) */
@media (max-width: 991.98px) {
    .site-grid {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
} 

/* 2. Banner und Header zentrieren & stylen */
.header, 
.container-banner {
    grid-column: main-start / main-end !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1200px !important;
  background-image: linear-gradient(135deg, #a00000 0%, #600000 100%); /* Farbverlauf im Banner von li nach rechts */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Der gewünschte Schatten */
    background-color: #ffffff;
 }

/* 4. Den Hintergrund der Seite dezent absetzen */
body {
    background-color: #FFFFFF !important; /* Kein Rot mehr, sondern ein sanftes Grau, zurückgesetzt auf weiß, damit startbild nicht abhebt */
}

/* Menü/Abstand zwischen Banner und Inhaltsframe */
.header, .container-banner {
    margin-bottom: 0px !important;
}

/* Abstand über dem Banner einfügen */
header.header {
    margin-top: 15px !important;
}

.header, 
.container-banner,
.container-banner img {
    /* Rundet alle vier Ecken ab */
    border-radius: 9px !important; 
    
    /* Wichtig: Verhindert, dass das Bild über die Rundung des Containers ragt */
    overflow: hidden !important; 
}

/* Rand über dem gesamten Banner */
.header, .container-banner {
    border: 3px solid rgba(204, 204, 255, 1) !important;  /* hellblau */ 
 }

/* Den Hauptinhalt nach rechts schieben, damit er bündig mit dem Banner ist.  */
.site-grid > .main-fullwidth, 
.site-grid > .grid-child {
    padding-left: 0px !important;
}

/* Die einzelnen Links/Listenpunkte im Inneren */
.sidebar-left ul li {
    list-style: none;
    border-bottom: 1px solid #951010; /* Der Rahmen um die Links und die Trennliinien */
}

/* Sidebar-Titel */
.card-header  {
  color: white;
  background: #8E0000;
  border-radius: 10px !important;
  margin-top: -5px; 
  padding-top: 5px;
  padding-bottom: 10px;
  padding-left: 22px;
  overflow: hidden !important;
  border: 3px solid #CCCCFF !important;
 }

.sidebar-menu ul li a {
    color: #ffffff !important;   /* Weiße Schrift für Kontrast */
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    transition: background 0.3s; /* Weicher Übergang beim Drüberfahren */
}

/* Hover-Effekt: Wenn man mit der Maus über einen Link fährt */
.sidebar-left ul li a:hover {
    background-color: #970000;   /* Etwas helleres Rot beim Hovern */
    color: #ffffff;
  text-decoration: none;
}

.sidebar-menu li {
  margin-bottom: 0.8rem; /* Veringert die Abstände zw. den Menüpunkten */
}

.sidebar-menu a {
  display: block;
  padding: 0.1rem 0.4rem; /* Abstände über dem Text, 2. Wert: Abstand zum Innenrahmen */
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.2;   /* Wichtig für mehrzeilige Einträge */
}

/* Container des Menüs */
.sidebar-menu {
    background-color: #f8f9fa; /* Dezenter Hintergrund */
    border-radius: 10px;
    padding: 0px !important; /* Bündig mit der Kante, schiebt den Innenrahmen nach außen */
    border: 1px solid #DFE3E7; /* überschreibt den roten innen-border mit grau */
}


  .sidebar-menu a {
  white-space: normal;   /* erlaubt Zeilenumbruch */
  line-height: 1.4;
  word-break: break-word;
}

   @media (min-width: 992px) {
  .sidebar-left {
    flex: 0 0 250px;   /* feste Sidebar-Breite */
    max-width: 250px;
    border-radius: 10px;
  }
}
 
footer.footer {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 1.7rem 1rem; /* Ein bisschen Abstand nach innen */
}

/* Falls der Hintergrund des Footers trotzdem über die ganze Breite gehen soll, 
   aber nur der INHALT auf 1200px begrenzt sein soll: */
.footer .container-component {
    max-width: 1200px;
    margin: 0 auto;
} 

/* Den Footer-Bereich formatieren */
footer.footer {
    max-width: 1200px;
    margin: 1.6rem auto; /* 2rem Abstand nach oben/unten, auto zentriert */
    width: 100%;
    
    /* hellblauer Rand #CCCCFF - muss in rgba angegeben sein! */
    border: 3px solid rgba(204, 204, 255, 1) !important; 
    
    /* Abrundung (Radius) */
    border-radius: 9px; 
  }

     footer.footer {
    /* ... deine anderen Werte (max-width, border, etc.) ... */
    
    /* Erster Wert = Oben/Unten, Zweiter Wert = Links/Rechts */
    padding: 0px 0px; 
    
    /* Falls Joomla standardmäßig noch Mindesthöhen erzwingt: */
    min-height: auto; 
}
     footer.footer p {
    margin-top: 0;
    margin-bottom: 0;       
    line-height: 1.8; /* Verringert die Zellenhöhe zusätzlich */
}

  .bild_mit_rahmen {
    border: 4px solid #DCDCDC; /* Rahmen, Farbe hellgrau */
    outline: 1px solid darkgray; /* 1px Außenrahmen, Farbe hellgrau */
    border-radius: 5px;      
    padding: 0;               /* Kein Abstand zwischen Bild und Rand */
    overflow: hidden;
    display: block; /* Verhindert kleine Lücken unter dem Bild */
} 
.ueberschrift {
    background-color: #800000; /* Weinrot */
    color: #ffffff !important;  /* Weißer Text */
    text-align: center !important;        
    font-family: Helvetica, Arial, sans-serif !important; /* Helvetica mit Fallback */
    font-size: 12px !important;           
  font-weight: normal !important;          
      padding: 1px 12px !important;         /* Abstand Text zu Rand (oben/unten, links/rechts) */
    border: 3px solid #CCCCFF !important;  /* hellvioletter Rahmen */
    border-radius: 7px !important;        /* abgerundete Ecken */
        display: inline-block !important;      /* Sorgt für korrekte Abstände */    }
 }

/* Den Weiterlesen-Button stylen */
.readmore .btn {
    background-color: #970000; /* Deine Wunschfarbe */
    color: #fff;
    border-radius: 6px;
    padding: 5px 10px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s ease;
}

.roter_button {
    background-color: #944551; /* Weinrot */
    color: #ffffff !important;  /* Weißer Text */
    padding: 1px 8px;         /* Abstand Text zu Rand (oben/unten, links/rechts) */
    border: 2px solid rgba(204, 204, 255, 1);               /* hellblau */
    border-radius: 5px;        /* abgerundete Ecken */
    text-decoration: none;      /* Unterstreichung vom Link entfernen */
    display: inline-block;      /* Sorgt für korrekte Abstände */
    font-weight: normal;          /* Text etwas dicker */
    cursor: pointer;            /* Zeigt die Hand beim Drüberfahren */
}

.meine-box1 {
    background-color: #E9F0E6; /* Mint-Grau */
    border: 1px solid #6c757d;
    margin-right: 5px;
    border-radius: 5px;
    padding: 5px 10px 0px 10px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* overflow: hidden; ENTFERNT, damit Buttons sichtbar bleiben */
    overflow: visible; 
}