
/* CSS Custom Properties */
:root {
    --ti-primary: #336699;
    --ti-accent: #74B42C;
}

/* WICHTIG: Web Components als Block-Elemente definieren */
ti-header, ti-footer {
    display: block;
}

/* Sicherstellen, dass der Footer keinen Flex-Grow hat, 
   damit er nur so viel Platz einnimmt, wie er braucht */
ti-footer {
    flex-shrink: 0;
}

/* Der Main-Teil muss wachsen, um den Footer nach unten zu drücken */
main {
    flex: 1 0 auto;
    margin-top: 32px !important;
    margin-bottom: 32px !important;
}

/* Body-Struktur beibehalten */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1320px;
    margin: 12px auto 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 1.0625rem; /* 17px base */
}

h1 {
    color: var(--ti-accent);
    font-weight: 400 !important;
    margin-bottom: 1.2rem;
}

/* Links global */
a {
    color: var(--ti-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ti-accent);
}

.navbar {
    border-bottom: 2px solid var(--ti-primary);
    margin-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ti-nav-link {
    color: var(--ti-primary) !important;
    font-weight: 600;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.ti-nav-link:hover {
    color: var(--ti-accent) !important;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.ti-nav-link.active {
    color: var(--ti-accent) !important;
}

/* Den äußeren Button anpassen */
.navbar-toggler {
    padding: 0.25rem 0.25rem;
    font-size: 1.2rem;
    border-width: 1.6px;
}

/* Das eigentliche Hamburger-Icon (die Striche) anpassen */
.navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
}

.footer {
    margin-top: auto;
    border-top: 2px solid var(--ti-primary) !important;
    padding-top: 24px !important;
    padding-bottom: 2rem !important;
    background-color: white !important;
}

.ti-footer-title {
    color: rgb(85, 85, 85);
    font-size: 12.6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ti-footer-text {
    color: rgb(85, 85, 85) !important;
    font-size: 14px;
    font-weight: 400;
}

.ti-footer-copyright {
    font-size: 14px;
    color: rgb(85, 85, 85) !important;
}

.ti-footer-impressum {
    color: rgb(85, 85, 85) !important;
}

.ti-footer-impressum:hover {
    color: var(--ti-accent) !important;
}

/* Material Icons in Kursseiten */
.material-icons {
    color: var(--ti-primary);
}

/* Footer Telefon-Icon */
.ti-footer-text .bi-telephone {
    color: var(--ti-primary);
}

/* Kursseiten: Section-Titel etwas kleiner */
main section h2 {
    font-size: 1.5rem;
}