﻿/*

        (c) 2025 by Schmidt & Tooren, Oldenburg, Bremen

        Datei: LAYOUT.CSS
        Stand: 24.07.2025
*/

body {
    margin: 0px;
    font-family: arial,helvetica;
    font-size: 1em;
    /*    --theme-main-color: #fac422;
    --theme-accent-color: #7a7a7a;
    --theme-light-color: #dddddd;
    --theme-lighter-color: #f1f1f1;*/
    /**/
    /*  --theme-main-color: #bc0000;
    --theme-accent-color: #7a7a7a;
    --theme-light-color: #ecf0f3;
    --theme-lighter-color: #006598;*/
    /**/
    --theme-main-color: #bc0000; /* rot */
    --theme-accent-color: #7a7a7a; /* grau Menüpunkt aktiv und Text */
    --theme-accent-color: #006598;
    /*--theme-accent-color: #3384ad; */
    --theme-light-color: #3384ad; /* Balken Zeitraum Veröffentlichung */
    --theme-lighter-color: #ecf0f3; /* blauer Balken im Header */
    --theme-text-color: #7a7a7a;
    color: var(--theme-text-color);
}

*{  box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-text-size-adjust: none;
    
}

@font-face {
    font-family: 'OpenSans-Regular';
    src: url('../Fonts/OpenSans-Regular-webfont.woff') format('woff');
}

@font-face {
    font-family: 'OpenSans-Bold';
    src: url('../Fonts/OpenSans-Bold-webfont.woff') format('woff');
}

*.hidden
{
    display: none;
    }


h1, h2, h3, h4 {
    font-family: 'OpenSans-Bold';
    color: var(--theme-main-color);
    font-weight: normal;
}

h3, h4 {
    color: var(--theme-text-color);
}

h1 {
    font-family: 'OpenSans-Regular';
    font-size: 2.3em;
    line-height: 1.3em;
    margin-bottom: 0.4em;
}

@media (max-width: 800px) {
    h1 {
        font-size: 2.0em;
    }
}

h2 {
    font-size: 1.6em;
    margin-bottom: 0.6rem;
}

h3 {
    font-size: 1.4rem;
    line-height: 2rem;
    margin: 0.625rem 0rem
}

p {
    font-size: 1.25rem;
    line-height: 2rem;
    margin: 0px;
    margin-bottom: 10px;
}

li {
    font-size: 1.25rem;
    line-height: 2rem;
}

a {
    font-size: 1.25rem;
    line-height: 2rem;
    color: var(--theme-main-color);
}

strong {
    font-family: 'OpenSans-Bold';
    font-weight: normal;
}

table {
    font-size: 1.0em;
    margin-bottom: 10px;
}

table td
{
    vertical-align: top;
    padding-right: 30px;
    }

header#mainHeader {
    width: 100%;
    border-bottom: 7px solid var(--theme-main-color);
    outline: 23px solid var(--theme-light-color);
    margin-bottom: 83px;
}

header#mainHeader section {
    max-width: 1620px;
    min-width: 320px;
    height: 160px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    gap: 1em;
}

@media (max-width: 2000px) {
    header#mainHeader section {
        max-width: 1024px;
    }
}

@media (max-width: 1312px) {
    header#mainHeader section {
        height: 100px;
    }
}

header#mainHeader section .logoCustomer {

    width: 260px;
    height: 107px;
    align-self: center;
}

@media (max-width: 1312px) {
    header#mainHeader section .logoCustomer {
        width: 200px;
        height: 82px;

    }
}

header#mainHeader section .title {
    font-family: 'OpenSans-Bold';
    color: var(--theme-main-color);
    font-weight: normal;
    font-size: 2.8em;
    /*margin-bottom: 8px;*/
    align-self: flex-end;
}

@media (max-width: 1312px) {
    header#mainHeader {
        margin-bottom: 26px;
    }

    header#mainHeader section .title {
        font-size: 2.0em;
        /*margin-bottom: 0px;*/
    }
    
}


@media (max-width: 800px) {

    header#mainHeader section {
        height: auto;
        gap: 0.5em;
        flex-direction: column;
    }

    header#mainHeader section .logoCustomer {
        
        align-self: flex-start;
    }

    header#mainHeader section .title {
        
        align-self: flex-start;
    }
}

main, footer 
{   
    display: block; 
    
    max-width: 1620px;
    min-width: 320px;
    
    min-height: 400px;
    
    background-color: #ffffff;
    padding: 16px;
    
    margin-left: auto;
    margin-right: auto;
         
    }

@media (max-width: 2000px) {
    main, footer {
        max-width: 1024px;
    }
}
    
footer
{
    min-height: 0;    
    text-align: right;
    font-size: 0.8em;
    }    
    
#sandglass
{
                 
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;   
    -webkit-align-items: center;
    -webkit-justify-content: center;
                                            
    position:absolute;
    top: 100px;    
    left: 0px;
    right: 0px;        
                
    visibility:hidden;
    }




nav.menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 1%;
    margin-bottom: 1em;
}

nav.menu .item {
    background-color: var(--theme-main-color);
    font-family: 'OpenSans-Bold';
    font-size: 1.25rem;
    /*line-height: 2rem;*/
    color: #ffffff;
    flex-basis: 100px;
    flex-grow: 1;
    text-align: center;
}
    
   
nav.menu .item.active
{
    background-color: var(--theme-accent-color);
    /*padding: 1em;
    padding-left: 2%;
    padding-right: 2%;*/
    padding: 0.6em;
    }

nav.menu .item a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    /*padding: 1em;
    padding-left: 2%;
    padding-right: 2%;*/
    padding: 0.6em;
}
    
nav.menu .item a:hover
{
    background-color: var(--theme-accent-color);
    }


@media (max-width: 800px) {
    nav.menu {
        row-gap: 0.5em;
        margin-bottom: 0.5em;
    }

    nav.menu .item {
        min-width: 100%;
        text-align: left;
    }

    nav.menu .item.active {
        padding-left: 3%;
        padding-right: 3%;
    }

    nav.menu .item a {
        padding-left: 3%;
        padding-right: 3%;
    }
}

nav.breadcrumb
{
    border: 1px solid #0069B3;
    border-left: 0px;
    border-right: 0px;
    margin-bottom: 10px;
    font-size: 0.75em;
    padding:3px;
    }



nav.breadcrumb .item, nav.breadcrumb .hint
{
    display: inline-block;
    }

nav.breadcrumb .item:after
{
    content: ">";
    margin-left: 4px;
    margin-right: 4px;    
    }
    
nav.breadcrumb .item:last-child:after
{
    content: "";       
    } 
    
nav.breadcrumb .item a
{
    text-decoration: none;
    color: #000000;
    }    
    
nav.breadcrumb .item a:hover
{
    text-decoration: underline;
    }
    
nav.breadcrumb .item a .description
{
    display: none;
    }
    
@media (max-width: 570px)  
{
    nav.breadcrumb
    {
        font-size: 0.8em;
    }
    
    nav.breadcrumb .item, nav.breadcrumb .hint
    {
        display: block;
    }
    
    nav.breadcrumb .item:after
    {
        content: "";
        margin-left: 0px;
        margin-right: 0px;    
    }
    
    nav.breadcrumb .item a .description
    {
        display: inline;
    }    
    
}
  
img.overviewMap
{
    width: 100%;
    max-width: 1024px;
    margin-bottom: 10px;   

    }    

section.articles article
{    
    margin-bottom: 10px;    
    }
    
section.articles article h3
{    
    font-size: 1.3em;
    margin: 0px;    
    }

section.articles article p {
    margin: 3px;
    margin-left: 0px;
}
       
    
section.articles article p.keyValuePairs
{
       
    font-size: 1.0em;
    }

section.articles article p.keyValuePairs :nth-child(odd)
{
    display: inline-block;
    width: 100px;
    vertical-align: top;
    }

section.articles article p.keyValuePairs :nth-child(even)
{
    display: inline-block;
    width: calc(100% - 100px);
    vertical-align: top;
    font-weight: bold;
    }



    
section.articles article nav.level
{
    text-align: right;
    margin-bottom: 4px;
    }

@media (max-width: 570px) {
    section.articles article nav.level {
        text-align: left;
    }
}
    
section.articles article nav.level a
{
    display: inline-block;
    min-width: 280px;
    font-family: 'OpenSans-Bold';

    color: #ffffff;

    background-color: var(--theme-main-color);
    
    padding: 10px;
    padding-left: 14px;
    padding-right: 14px;
    text-align: center;
    text-decoration: none;       
    }  
    
section.articles article nav.level a:hover
{
   
    }

section.articles article section {
    border: 1px solid var(--theme-main-color);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}              

section.articles article section.periods
{
    
    border:0px;
    font-size: 1.25em;
    line-height: 1.2em;
    color: #000000;
    
    padding: 0px;
    
    display: flex;
    display: -webkit-flex;
    
    justify-content: space-between;
    -webkit-justify-content: space-between;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
}

section.articles article section.periods div {
    padding: 10px;
    padding-left: 6px;
    padding-right: 6px;
    background-color: var(--theme-lighter-color);
    margin-bottom: 4px;
}

section.articles article section.periods div:nth-child(odd) {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

section.articles article section.periods div:nth-child(even) {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

section.articles article section.periods div:nth-child(1n)
{      
    flex-basis: 60%;
    flex-grow: 1;
    }
    
section.articles article section.periods div:nth-child(2n)
{      
    text-align: right;
    flex-basis: 40%;
    flex-grow: 1;
    
    }    
    
@media (max-width: 700px)  
{

    section.articles article section.periods div {
        width: 100%;
    }        
    
    section.articles article section.periods div:nth-child(1n)
    {
        flex-basis: unset;
        margin-bottom: 0px;
        }
        
    section.articles article section.periods div:nth-child(2n)
    {
        flex-basis: unset;
        margin-bottom: 2px;
        text-align: left;
        }

    section.articles article section.periods div:nth-child(odd) {
        padding-bottom: 3px;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    section.articles article section.periods div:nth-child(even) {
        padding-top: 3px;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
    }
    
}

section.articles article section.official {
    border: 0px;
    font-size: 1.25rem;
    line-height: 1.2rem;
    color: var(--theme-text-color);
    padding: 0px;
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
} 

section.articles article section.official a
{
    line-height: 1.2rem;
    color: var(--theme-text-color);
    }

section.articles article section.official div
{
    padding: 4px;
    padding-left: 1px;
    padding-right: 4px;
    
    flex: 1 1 auto;
    
    }
    
section.articles article section.official div:nth-child(3n)
{    
    text-align: right;
}

@media (max-width: 980px) {
    section.articles article section.official div {
        flex: 1 1 100%;
    }


    section.articles article section.official div:nth-child(3n) {
        text-align: left;
    }
}

/*@media (max-width: 620px)  
{
    section.articles article section.official
    {    
        font-size: 0.75em;
    }
}*/

/*@media (max-width: 570px)  
{
    section.articles article section.official
    {    
        font-size: 0.8em;
    }
    
    section.articles article section.official div
    {    
        flex: 1 1 100%;  
    }
    
    section.articles article section.official div:nth-child(3n)
    {        
        text-align: left;
    }
    
}*/

section.message
{
    border: 1px solid #a0a0a0;
    min-height: 90px;
    background-repeat: no-repeat;
    background-position: 10px 5px;
    
    padding: 10px;
    padding-left: 80px;
    margin-bottom: 10px;
            
    }
    
section.message h2
{
    margin: 0px;
    margin-bottom: 5px;
            
    }
    
section.message p
{
    /*font-size: 0.8em;*/
    margin: 0px;
    margin-bottom: 5px;
    }       
 
section.message.info
{
    background-color: #ebf7ee;    
    background-image: url(../pix/Msg0.gif);
    }
    
section.message.error
{
    background-color: #f8f1f7;  
    background-image: url(../pix/Msg1.gif);   
    }        

section.message.question
{
    background-color: #f8f1f7;
    background-image: url(../pix/Msg2.gif);     
    }
    
nav.buttonBar, div.buttonBar
{
    text-align: right;
    display: block;
    margin-bottom: 10px;
    
    
    
    }

nav.buttonBar input[type='button'], nav.buttonBar input[type='submit'], div.buttonBar button
{
    
    display: inline-block;
    min-width: 100px;
    margin-left: 5px;
    margin-bottom: 3px;
    }          
    
                
header.stepline
{
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    
    padding-bottom: 3px;
    border-bottom: 1px solid #000000;
    
    margin-bottom: 10px;
    align-items: baseline;
    } 
    
    
header.stepline h1
{
    margin: 0px;   
    }
       
header.stepline .step
{
    font-size: 0.8em;
    font-weight: bold;
    }    

@media (max-width: 500px)
{
    header.stepline h1
    {
        font-size: 1em;   
    }   
} 
    
        