/* Root Variables */
:root {
    --primary-bg: #fff;
    --primary-text: #353d49;
    --secondary-text: #252627;
    --link-color: #879094;
    --shadow-color: rgba(0, 0, 0, 0.15);
}

/* 
@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #252627;
        --primary-text: #fff;
        --secondary-text: #fefefe;
        --link-color: #9fb1b6;
    }

    img {
        opacity: 90%;
    }
}*/ 

/* Font Faces */
@font-face {
    font-family: 'OpenSauceOne';
    src: url('/fonts/OpenSauceOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSauceOne';
    src: url('/fonts/OpenSauceOne-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Base Elements Styles */
html {
    background-color: var(--primary-bg);
}

body {
    font-family: 'OpenSauceOne', sans-serif;
    color: var(--secondary-text);
    min-height: 100vh;
    margin: 0 auto;
    line-height: 1.6;
}

a,
a:visited {
    color: var(--link-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--primary-text);
}

details {
    padding: 0.5rem 0;
}

ul {
    padding: 0;
}

img {
    max-width: 100%;
}

figure {
    display: flex;
    justify-content: center;
    align-items: center;
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

form {
    display: flex;
    flex-direction: column;
    background: var(--primary-bg);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}

label {
    margin: 10px;
    font-size: 0.85rem;
    color: var(--primary-text);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--shadow-color);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--link-color);
    box-shadow: 0 4px 8px var(--shadow-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--link-color);
    outline: none;
}

button {
    width: 100%;
    padding: 10px;
    margin: 15px auto;
    background-color: var(--primary-text);
    color: var(--primary-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--primary-bg);
}

::placeholder {
    color: var(--primary-bg);
}


/* Navigation Styles */
nav ul {
    display: flex;
    margin: 0.5rem 0;
    padding: 0; 
}

nav ul li {
    display: inline;
    list-style: none;
    margin: 0.5rem;
}

nav a {
    text-decoration: none;
}

.container {
    display: flex;
}

.row {
    flex-direction: row;
}

.col {
    flex-direction: column;
}

aside.tableOfContentContainer {
    position: webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: start;
    min-width: 200px;
    font-size: 0.9rem;
}

nav#TableOfContents li.active::before {
    content: "\279c";
    display: inline-block;
    width: 20px;
    margin-left: -20px;
}

nav#TableOfContents ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.pages a.active {
    font-weight: 1000;
}

/* Header Styles */

header {
    display: flex;
    flex-direction: row; /* Horizontale Anordnung von Logo und Balken */
    align-items: center; /* Vertikale Ausrichtung von Logo und Balken */
    padding: 10px 20px;
    background-color: #ac0634;
    height: 70px; /* Stelle sicher, dass der Header ausreichend Platz hat */
    width: 100%;  /* Setzt die Breite auf 100%, um sicherzustellen, dass der Header die gesamte Breite einnimmt */
    box-sizing: border-box; /* Inkludiere Padding und Border in der Breitenberechnung */
    position: fixed; /* Stellt sicher, dass der Header relativ zur Seite positioniert ist */
    top: 0;
    left: 0;
    z-index: 1000; /* Stellt sicher, dass der Header immer oben ist */
}

.header-container {
    display: flex;  /* Macht Logo und Balken horizontal nebeneinander */
    align-items: center;  /* Zentriert beide Elemente vertikal */
    width: 100%; /* Stellt sicher, dass die Container die gesamte Breite einnimmt */
}

.logo {
    margin-right: 0;  /* Abstand zwischen Logo und Balken */
}

header .logo img {
    height: 70px; /* Stelle sicher, dass das Logo die gewünschte Höhe hat */
}

/* Roter Balken neben dem Logo */

.header-bar {
    background-color: #ac0634;  /* Rote Farbe für den Balken, gleich wie der Header */
    height: 70px;  /* Die Höhe des Balkens wird an das Logo angepasst */
    flex-grow: 1;  /* Breite des Balkens, anpassbar */
}
nav {
    margin-left: 20px; /* Abstand zwischen Balken und Navigation */
}

nav ul {
    display: flex; /* Horizontale Anordnung der Navigationselemente */
    padding: 0;
    margin: 0;
    list-style: none; /* Entfernt Aufzählungszeichen */
}

nav ul li {
    margin-right: 15px; /* Abstand zwischen den Navigationspunkten */
}

nav a {
    text-decoration: none; /* Entfernt Unterstreichung */
    color: #fff; /* Weiß für die Links, damit sie auf dem roten Hintergrund sichtbar sind */
}

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 0px;
}

.hero-image img {
    max-width: 100%;  /* Das Bild wird maximal so groß wie sein Container */
    height: 100%;     /* Die Höhe passt sich proportional zur Breite an */
    object-fit: cover; /* Das Bild wird so skaliert, dass es den Container vollständig ausfüllt */
}

.hero div {
    padding: 0 1rem;
}

.hero h1,
.hero p,
.hero .subtitle {
    margin: 0;
}

.hero h1 {
    margin-bottom: 60px;
    color: var(--primary-text);
}

/* Search Styles */

.hero .search form {
    padding: 2rem;
}

.form-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
}

.form-inline input[type="text"] {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid var(--primary-bg);
    border-radius: 4px;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-inline input[type="text"]:focus {
    border-color: var(--shadow-color);
}

.form-inline button {
    min-height: 34px;
    padding: 8px 16px;
    background-color: var(--link-color);
    color: var(--primary-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-inline button:hover {
    background-color: var(--link-color);
}

ul.search-results {
    list-style-type: none;
}

ul.search-results li {
    padding: 0.5rem 1rem;
}

ul.search-results li a {
    font-weight: bold;
}

/* Blog Cards Styles */
.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 20px;
}

.card {
    background-color: transparent;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 16px 48px var(--shadow-color);
}

.card .text {
    padding: 0 1rem;
}

.card .text .small {
    font-size: 0.9rem;
}

.card a {
    color: var(--primary-text);
}

/* Contact Section */
.contact {
    text-align: center;
    margin: 5rem auto;
}

/* Post Styles */
.post {
    padding: 0 1rem;
}

.post ul {
    padding-left: 2rem;
}

.aff {
    max-width: 80%;
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
    margin: 0 auto;
    padding-top: 4rem;
}

/* Footer Styles 
footer {
    display: grid;
    align-items: center;
    padding: 20px;
    color: var(--primary-text);
    font-size: 0.8rem;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;

footer div {
    min-width: 5rem;
}*/

@media (prefers-color-scheme: dark) {
    footer .social-media a,
    footer .social-media a img {
        filter: brightness(50%) invert(75%);
    }
}

@media (max-width: 768px) {
    .header-bar {
        width: 100%; /* Balken nimmt auf kleineren Bildschirmen die volle Breite ein */
    }
    .hero-image img {
        width: 100%;  /* Setzt die Breite auf 100% für kleinere Bildschirme */
        height: auto; /* Höhe passt sich automatisch an */
    }
  
}

footer .social-media a img {
    height: 20px;
    padding: 0.5rem;
}

footer .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .logo img {
    height: 50px;
}

footer .logo p {
    margin: 5px 0 0;
    font-size: 0.8rem;
}

/* Pagination Styles */
.pagination {
    min-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 1rem;
}

.pagination .pages {
    a {
        padding: 0 1rem;
    }
}

/* Markdown Styles */
.post h1 {
    font-size: 1.4rem;
}

.post h2 {
    margin-top: 3rem; 
}

/* Responsive Styles */
@media (max-width: 600px) {
    footer {
        flex-direction: column;
        text-align: center;
    }

    .blog-cards {
        grid-template-columns: 1fr;
    }

    aside.tableOfContentContainer {
        display: none;
    }
}

@media (min-width: 641px) {
    .hero {
        min-height: 300px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .card h2 {
        font-size: 1.3rem;

    }

    .container {
        margin: 3rem auto;
        max-width: 800px;
    }

    .post {
        max-width: 800px;
        padding: 0 2rem;
    }

    nav ul {
        padding: 0 !important;
    }

    nav ul li {
        margin-left: 1rem;
    }
}

/* Base style for code blocks */
pre {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    border-radius: 8px;
    overflow-x: auto;
    padding: 1em;
    line-height: 1.4;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
}

code {
    padding: 0.2em 0.4em;
}

pre,
code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Abschnitt für die Partner-Logos */
.partners {
    text-align: center;
    padding: 20px 0;
    margin: 0 auto;
}

.partners h2 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Abstand zwischen den Logos */
}

.partner-logos img {
    width: 150px;
    height: 100px; /* Das Bild behält sein Seitenverhältnis */
    object-fit: contain; /* Behält das Seitenverhältnis des Logos bei */
}

/* Container für die Steckbriefe */


.team-member {

    display: flex;
    align-items: flex-start;
    padding-top: 60px;
    padding-bottom: 40px;
    justify-content: flex-start;  /* richtet die Elemente nach links aus */
    flex-wrap: wrap !important; /* Ermöglicht Zeilenumbruch, wenn nötig */
    width: 100%; /* Stellt sicher, dass der Container die gesamte verfügbare Breite nutzt */
}

.team-member-photo img {
    
    max-height: 300px !important;    
    margin-right: 30px;        /* Abstand rechts, falls das Bild neben dem Text stehen soll */
 /* Macht das Bild so hoch wie der Container */
    object-fit: cover; /* Stellt sicher, dass das Bild den Container ausfüllt */
    border-radius: 0;
    width: auto;
    background-color: #bbcdca;  /* Hintergrundfarbe für den Kreis, falls das Bild nicht quadratisch ist */
    padding: 5px;  /* Optional: fügt einen kleinen Abstand um das Bild hinzu */
    max-width: 250px !important;           /* Optional: Beschränkt die Breite auf 100% des Containers, falls notwendig */
    display: flex;
    align-items: center;
    margin-top: 0;
}

.team-member-info {
    flex: 1;
    max-width: 600px;
    font-size: 1em;
    margin-left: 20px; /* Füge Abstand auf der linken Seite hinzu */
    width: 100%; /* Macht sicher, dass es den gesamten verfügbaren Platz ausnutzt */
    box-sizing: border-box !important; /* Stellt sicher, dass Padding und Border in der Breite berücksichtigt werden */
}


.team-member-info h3 {
    margin: 0;
    font-size: 1em;
}

.team-member-info p {
    margin: 0;
    color: #888;
    font-weight: normal;
    font-size: 1em;
    padding-bottom: 20px;
    word-wrap: break-word !important; /* Bricht lange Wörter */
    overflow-wrap: break-word !important; /* Für bessere Browserkompatibilität */
}

.team-copyright {
    font-size: 0.7rem; /* Etwas kleinere Schrift */
    color: #888; /* Dezente Farbe */
    text-align: center; /* Zentriert am Ende der Seite */
    margin: 20px 0;
}


/* /css/tabs.css */

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.back-button {
    display: inline-block;
    background-color: rgba(172, 6, 52, 0.7);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #ac0634;
    color: white;

}

.subchapter-links a {
    color: #176732 !important; /* Smaragdgrün */ 
    font-size: 18px !important;
    font-weight: bold;
    text-decoration: none; /* Entferne die Standard-Unterstreichung */
    margin-bottom: 28px !important;
    display: block; /* Jeder Link wird in einer neuen Zeile angezeigt */
}

.subchapter-links a:hover {
    color: #879094 !important;  /* Etwas dunkleres Smaragdgrün beim Hover */
}

.footer-links {
    margin-top: 30px;  /* Dieser Wert kann angepasst werden */
}
