/* Basis-Schriftart und Text */
body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    /*line-height: 1.7;*/
    color: #222;
}
/* Bilder */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}
/* Absatztext */
p {
    margin: 0.8em 0;
}
/* Links */
a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.markdown a:visited {
    color: #1a73e8;
}

video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Keine "#" nach den überschriften (hugo-book spezifisch */
.markdown .anchor {
    display: none;
}

/* Überschriften */
h1 {
    font-size: 2.2em;   /* ca. 34px */
    line-height: 1.25 !important;
    font-weight: bold !important;
    margin-bottom: 0.5em;
    padding-bottom: 0.2em; /* Platz zwischen Text und Linie */
    border-bottom: 2px solid #ccc; /* Farbe und Dicke der Linie */
}

h2 {
    font-size: 1.8em;   /* ca. 28px */
    line-height: 1.25 !important;
    margin-top: 1.5em;
    font-weight: 700 !important;
    margin-bottom: 0.5em;
}

.scg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scg-left {

}

.scg-middle {
    flex: 1; /* nimmt den Platz in der Mitte ein */
}

.scg-right {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.scg-flag {
    width: 32px;
    height: 32px;
    margin-top: -10px;
}

h3 {
    font-size: 1.4em;   /* ca. 24px */
    line-height: 1.25 !important;
    margin-top: 1.2em;
    font-weight: 700 !important;
    margin-bottom: 0.4em;
}


/* Scrolling fix to MD headlines */
:root { --header-offset: 110px; } /* Höhe deines fixen Headers */
:where(h1,h2,h3,h4,h5,h6)[id] {
    scroll-margin-top: var(--header-offset);
}
@media (min-width: 896px) {
    /* We do not have header in full-width, so no scrolling here */
    :root { --header-offset: 15px; }
}
/* EOF Scrolling CSS */


.book-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white; /* ggf. anpassen */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional für etwas Schatten */
}



/* Zeilenabstand menu links */
.book-menu-content ul {
    line-height: 1.0;
}

.responsive-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.responsive-images img {
    max-width: 100%;
    height: auto;
    width: calc(33% - 1rem);
}

.scg-img-two-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.scg-img-two-row img {
    max-width: 100%;
    height: auto;
    width: calc(40% - 1rem);
}


.scg-img-full img {
    margin-top:30px;
    max-width: 100%;
    height: auto;
    width: calc(80% - 1rem);
}

.scg-img-half img {
    max-width: 100%;
    height: auto;
    width: calc(50% - 1rem);
}

.scg-img-third img {
    max-width: 100%;
    height: auto;
    width: calc(33% - 1rem);
}

@media (max-width: 768px) {
    .responsive-images img {
        width: 100%;
    }
    .scg-img-full img {
        margin-top:10px;
        width: 100%;
    }
    .scg-img-half img {
        margin-top:10px;
        width: 100%;
    }
    .scg-img-third img {
        margin-top:10px;
        width: 100%;
    }
}





.scg-headbox {
    margin-top:40px;
}
.scg-logo-left {
    padding-left:25px;
    padding-right:25px;
}
.scg-logo-mobile {
    width:100px;
}
.scg-contentbox {
    margin-top:40px;
}

/* Kapitel Kacheln für die Startseite */
.scg-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}
.scg-box {
    flex: 1 1 calc(25% - 10px);
    background: #f1eeee;
    padding: 30px 20px 10px 20px;
    text-align: center;
}
.scg-box-inner {
    height: 180px;
    color: #222;
}


@media (max-width: 1150px) {
    .scg-box-inner {
        height: 120px;
    }
}
@media (max-width: 700px) {
    .scg-box-inner {
        height: 180px;
    }
}
@media (max-width: 500px) {
    .scg-box-inner {
        height: 120px;
    }
}
@media (max-width: 1150px) {
    .scg-box {
        flex: 1 1 calc(50% - 10px);
    }
}
@media (max-width: 500px) {
    .scg-box {
        flex: 1 1 100%;
    }
}
.scg-link-box {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}
.scg-more {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 0.9em;
    color: #0073e6;
    text-decoration: none;
}
/* eof Kapitel Kacheln */

/* svg icon für die haupt kapitel */
.scg-icon-text {
    display: flex;
    align-items: center;   /* vertikal zentrieren */
    gap: 8px;              /* Abstand zwischen Icon und Text */
}
.scg-icon-text-img {
    display: block;
}
@media (max-width: 700px) {
    .scg-icon-text-img {
        display:none;
    }
}

/* Content Boxen Anfang jedes Kapitel */
.scg-content-box {
    margin-top:30px;
}


/* nur Homepage Button auf Startseite */
.scg-hp-button-wrapper {
    text-align: right;
    margin-bottom: 10px;
}
.scg-hp-button {
    margin-top:-25px !important;
    float: right;
    background-color: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size:14px;
    text-decoration: none;
}
.scg-hp-button:hover {
    text-decoration: none;
    background-color: #28a745;
}

a.scg-hp-button:visited {
    color: #fff; /* Textfarbe für besuchten Button */
}
/* Hover für besuchten Link */
a.scg-hp-button:visited:hover {
    color: #fff; /* andere Textfarbe beim Hover + visited */
}
