* {
	margin: 0;
	padding: 0;
	color: #000000;
    box-sizing: border-box;
}

body {
	background-image: url('AI_Gemini_Background.jpg');
	background-attachment: fixed;
	background-size: cover;
    background-color: #1d1d1d;
    margin: 0;
    min-height: 100vh;
}

/* Für den Fließtext (Maximale Lesbarkeit auf allen Systemen) */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* Für die Überschriften (Klassischer Times-New-Roman-Look) */
h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", Times, Georgia, serif;
	color: #888888;
}

h1, h2 {
    margin: 10px 0 10px 0;
    padding: 0;
    font-style: italic;
    font-weight: bold;
}

h3 {
    margin: 10px 0 10px 0;
    padding: 0;
    font-weight: bold;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p {
    margin-bottom: 20px;
}

.container  {
	width: 100%;
	max-width: 1280px;
}

.main-content {
	width: 100%;
	max-width: 1140px;
	margin: 25px auto;
	padding: 20px;
	background-color: #eeeeee;
}
@media screen and (max-width: 768px) {
    .main-content {
        margin: 0px auto;
    }
}

img {
	width: 100%;
	height: auto;
}

p {
	font-size: 16px;
}

a {
	text-decoration: none;
	color: #0077ff;
}

a:hover {
	text-decoration: underline;
	color: #0000ff;
}

/* MENÜ */

nav.navbar {
	width: 100%;
	padding: 0 0 10px 0;
	margin: 0 0 25px 0;
}

nav.navbar ul {
	list-style-type: none;	
}

nav.navbar ul li:first-child {
	float: left;
	padding-left: 0px;
}

nav.navbar ul li {
	float: right;
	padding-left: 10px;
}
nav.navbar ul li a {
	font-size: 20px;
}
nav.navbar ul li.active a {
	color: #0000ff;
	text-decoration: underline;
}

/* BURGER MENÜ / RESPONSIVE DESIGN (Content verschieben statt Layer) */

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggler-icon {
    font-size: 28px;
    font-weight: bold;
    color: #333333;
}

#menu-toggle {
    display: none;
}

/* Mobile Ansicht (unter 768px) */
@media screen and (max-width: 768px) {
    nav.navbar .container {
        display: flex;
        flex-direction: column; /* Elemente untereinander anordnen */
        align-items: flex-start;   /* Burger-Button rechts ausrichten */
    }

    #menu-toggle {
        display: block;
    }

    /* Menü standardmäßig komplett verstecken */
    #main-navigation {
        display: none;
        margin-bottom: 0;
    }

    /* Wenn aktiv, wird das Menü als normaler Blockfluss angezeigt und schiebt alles nach unten */
    #main-navigation.active {
        display: block;
    }
    nav.navbar ul li {
        float: none;
        padding: 3px 0;
    }    
}

/* CARDS+GRIDS */

/* Raster für die Kacheln (3 Spalten auf großen Bildschirmen, responsiv) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; /* Abstand zwischen den Kacheln */
}

/* Einzelne Kachel als Flexbox für gleiche Höhen */
.card { 
    border: 1px solid #aaaaaa;
    border-radius: 0.375rem;
}

.card-grid .card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Bild-Anpassung */
.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Verhindert Verzerrungen des Bildes */
}

/* Inhaltsbereich */
.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Nimmt den verbleibenden Platz ein */
    padding: 1.25rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.card-text {
    margin-bottom: 1rem;
}

/* Container für Links, damit diese sauber untereinander stehen */
.card-links {
    margin-top: auto; /* Schiebt die Links nach unten, falls Platz ist */
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Ersetzt die vielen <br>-Tags */
}

.card-link:hover {
    text-decoration: underline;
}

/* Fußzeile der Kachel */
.card-footer {
    padding: 0.75rem 1.25rem;
    background-color: #dddddd;
    border-top: 1px solid #aaaaaa;
}

.text-muted {
    color: #666666;
    font-size: 0.875rem;
}

/* FOOTER */

footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #999999;
    color: #999999;
    text-align: center;
}