/*General CSS*/

:root {
    --md-primary-fg-color: #333333;
    --md-primary-bg-color: #ffffff;
    --md-accent-color: #009B77;
    --nav-text: grey;
    --head-color: #6d6d6d;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.md-header {
    box-shadow: none;
}

.md-tabs {
    box-shadow: none;
}

/*Header*/
.academic-header {
    display: grid;
    grid-template-columns: 4rem 1fr;
    column-gap: 1.5rem;
    align-items: start;
    margin-top: 4.5rem !important;
    margin-left: 1rem;
}

.header_logo {
    height: 60px;
    width: auto;
    justify-self: center;
    grid-column: 1;
    margin: 0;
    margin-top: 0.3rem;
    padding: 0;
    margin-left: 0.3rem;
}

.academic-header__inner {
    grid-column: 2;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.academic-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    
    margin: 0;
    padding: 0;
}

.academic-header__title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
    margin: 0;
    padding: 0;
    
}

.academic-header__nav {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
}

.academic-header__nav {
    display: flex;
    justify-content: left;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

.academic-header__nav a {
    color: #444;
    font-size: 0.9rem;
    text-decoration: none;
}

.academic-header__nav a:hover {
    color: #000;
}

.academic-header__toggle {
    display: none;
}

.title-main {
    font-weight: bold; 
    font-size: 1.5rem;
    color: var(--head-color);
    margin: 0;
    padding: 0;
}

.title-sub{
    font-weight: normal; 
    font-size: 1.4rem;
    opacity: 0.9;
    color: var(--head-color);
    margin: 0;
    padding: 0;
}



/*Content*/

.md-main {
    background: #fff;
}

/* 1. Set up the two-column grid layout */
.md-main__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 850px) 240px !important; /* Content first, then TOC space */
    gap: 3rem !important; /* Spacing between the text and the right sidebar */
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 2. Hide the primary (left navigation) sidebar completely */
.md-sidebar--primary {
    display: none !important;
}

/* 3. FORCE the content column into the first slot on the left */
.md-content {
    grid-column: 1 !important;
    order: 1 !important; /* Visual positioning priority */
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 4. FORCE the secondary (TOC) sidebar into the second slot on the right */
.md-sidebar--secondary {
    display: block !important;
    position: static !important; /* Unlocks the built-in theme script layout overrides */
    grid-column: 2 !important;
    order: 2 !important; /* Visual positioning priority */
}

/* 5. Match the header and content left margin perfectly */
.md-content__inner {
    padding-left: 4.5rem !important; /* Your uniform site-wide left margin */
    margin-left: 0 !important;
    margin-right: auto !important;
}
.md-typeset {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
}


/*Headings*/
.md-typeset h1 {
    color: var(--md-accent-color);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.md-typeset h2 {
    font-size: 1.2rem;
    font-weight: 525;
    padding-bottom: 0.2rem;
    margin-top: 1rem;
}

.md-typeset h3 {
    font-size: 1.0rem;
    font-weight: 500;
}

/*Links*/

.md-typeset a {
    color: var(--nav-text);
}

.md-typeset a:hover {
    text-decoration: underline;
    color: var(--md-accent-color);
}

.md-typeset a:visited {
    color: var(--nav-text);
}

/*Nav*/

.md-nav {
    font-size: 0.85rem;
}

.md-nav__link {
    color: #444;
}

.md-nav__link:hover {
    color: var(--md-accent-color) !important;
}

.md-nav__link--active {
    font-weight: 600;
}

/*Right Sidebar*/

.md-sidebar--secondary {
    overflow: visible;
    margin-top: 30px;
}

.md-sidebar--secondary .md-sidebar__scrollwrap {
    overflow: visible;
}

.md-sidebar--secondary .md-sidebar__inner {
    overflow: visible;
}

.md-sidebar--secondary .md-sidebar__scrollwrap {
    scrollbar-width: none;
}

.md-sidebar--secondary .md-sidebar__scrollwrap::-webkit-scrollbar {
    display: none;
}

/*Footer*/
.footer-icon{
    width: 130%; 
    position: relative; 
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: block; 
    height: auto;
}
.md-footer {
    background-color: white !important;
    color: black;
    margin-top: 0 !important;
    padding-top: 0 !important;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
}

.md-footer-meta, 
.md-footer-meta__inner {
    background-color: white;
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
}

.footer {
    margin-left: 0;
    padding-left: 6.5rem;
    width: 100%;
}

.footer p{
    font-size: 0.55rem ;
}
/* Hide Material's left navigation */
.md-sidebar--primary {
    display: none;
}

/* Let the content use the space */
.md-main__inner {
    margin-left: 0;
}

.md-content {
    max-width: 900px;
    margin: 0 auto;
}

/*Center Desktop Layout*/

.md-main {
    width: 100%;
}

.md-main__inner {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 2rem;
}

/* Hide Material sidebars */
.md-sidebar--primary {
    display: none !important;
}

/* Center the actual documentation */
.md-content {
    width: 100%;
    max-width: 850px;
    margin: 0 auto !important;
}

.md-content__inner {
    margin: 0;
    padding: 2rem 0;
}

/*Blockquote*/
.md-typeset blockquote {
    margin: 1rem 0;
    padding: 0.1rem;
    background-color: white; 
    border-left: none !important;
    border-radius: 2px; /* Rounded corners */
    color: var(--head-color);
}

/* Remove bottom margin on the last paragraph inside to prevent uneven padding */
.md-typeset blockquote > :last-child {
    margin-bottom: 0;
}

/*Tables*/
.md-typeset table:not([class]) {
  border: none;
  box-shadow: none;
}

.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  border-left: none;
  border-right: none;
}

.md-typeset table:not([class]) tr {
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) tr:last-child {
  border-bottom: none;
}


/*Split-Screen Layout*/

@media screen and (max-width: 900px) {

    .academic-header__inner {
        padding: 1.25rem 1rem;
    }

    .academic-header__title {
        font-size: 1.25rem;
    }

    /* Show hamburger */
    .academic-header__toggle {
        display: block;

        border: none;
        background: none;

        font-size: 1.5rem;
        cursor: pointer;

        color: #333;
        padding: 0.25rem;
    }

    /* Hide navigation initially */
    .academic-header__nav {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding: 0;

        border-top: 1px solid #ddd;
    }

    /* Show navigation when hamburger is clicked */
    .academic-header__nav.is-open {
        display: flex;
    }

    .academic-header__nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }

    .academic-header {
        grid-template-columns: 90px 1fr;
        column-gap: 0.5rem;
        align-items: start;
        margin-top: 0.1rem !important;
        margin-left: 1.2rem;
    }

    .header_logo {
        height: 60px;
        width: auto;
        grid-column: 1;
        margin-top: 1.5rem;
    }

    
    .academic-header__title {
        line-height: 0.1;
    }

    .academic-header__toggle { 
        margin-top: 20px; 
    }

    .md-content__inner {
        padding-left: 4.5rem !important;
    }

    .md-sidebar--secondary .md-nav__title { 
        text-align: left !important; 
        padding: 0;
        margin: 0;
    } 
}


@media screen and (max-width: 750px) {
    .md-content__inner {
        padding-left: 1rem !important;
    }
}

/*Mobile Layout*/

@media screen and (max-width: 650px) {
    
    .md-main__inner { 
        display: flex !important; 
        flex-direction: column !important; 
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        gap: 0 !important; 
    }

    .md-sidebar--primary { 
        display: none !important; 
    }

    .md-sidebar--secondary { 
        display: block !important; 
        position: static !important; 
        order: 1 !important; 
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0 !important; 
        padding: 0 !important; 
    } 
    
    .md-sidebar--secondary .md-sidebar__scrollwrap, .md-sidebar--secondary .md-sidebar__inner { 
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0 !important; 
        padding: 0.5rem 1rem 0 1rem!important; }

    .md-content { 
        grid-column: auto !important; 
        order: 2 !important; 
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        padding-right: 0.7rem !important;
    }

    .md-content__inner { 
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0 !important; 
        padding: 2rem 0 !important; 
        padding-left: 2rem !important; 
        padding-right: 0 !important; 
    }

    .md-sidebar--secondary .md-sidebar__inner { 
        width: auto !important; 
        margin: 0 auto !important;
    }

    .md-sidebar--secondary .md-nav__title { 
        font-size: 1.1rem;
        font-weight: 525;
        text-align: left !important; 
        padding-left: 0 !important;
    } 
    
    .md-sidebar--secondary .md-nav { 
        text-align: left !important; 
    }

    .md-sidebar--secondary .md-nav__link { 
        font-family: Arial, Helvetica, sans-serif !important; 
        font-size: 0.8rem !important; 
        line-height: 1.7 !important; 
        font-weight: 400 !important; 
        color: #333 !important; }

    .footer-icon{
        width: 100%; 
        position: relative; 
    }

    .footer {
        padding-left: 2rem;
        
        padding-right: 0.7rem;
    }
}

table.KalTable 
{
   border-spacing: 10px 5px;
   border-collapse: separate;
   width: 100%;
   font-size: 80%;
}

.KalTable caption 
{
   font-weight: normal;
   text-align: left;
   background-color:#FFFFFF;
   margin: 0px;
   margin-left: 0.5em;
}

.forwardbutton 
{
  color : #009b77;
  font-weight: bold;
}

.backbutton 
{
  color : #009b77;
  font-weight: bold;
}

.KalTable td hr 
{
   margin: 0px;
}

.KalTable td
{
   border: 0px;
   vertical-align: top;
}

.KalTable th   
{
   vertical-align: top;
   text-align: left;
}

.date
{
   font-weight: normal;
   margin-top: 0;
   margin-bottom: 0;
}
.time
{
   font-weight: normal;
   margin-top: 0;
   margin-bottom: 0;
}

p.org
{
   font-weight: normal;
   margin-top: 0;
   margin-bottom: 0;
}

p.veranstalter
{
   font-weight: normal;
   font-style: italic;
   margin-top: 0;
   margin-bottom: 0;
   display: none;    
}

p.referent
{
   font-weight: normal;
   margin-top: 0;
   margin-bottom: 0;
}

p.titel
{
   font-weight: normal;
   color: #009b77;
   margin-top: 0;
   margin-bottom: 0;
}

p.gastgeber
{
   font-weight: normal;
   font-style: italic;
   margin-top: 0;
   margin-bottom: 0;
}

p.beschreibung
{
   font-weight: normal;
   margin-top: 0;
   margin-bottom: 0;
}

p.nachsitzung
{
   font-weight: normal;
   font-style: italic;
   margin-top: 0;
   margin-bottom: 0;
}

.important
{
   font-weight: normal;
   xxcolor: #ff0000;
   margin-top: 0;
   margin-bottom: 0;
}

p.ort
{
   font-weight: normal;
   margin-top: 0;
   margin-bottom: 0;
}

