@font-face {
    font-family: myFont;
    font-style: normal;
    src: url('fonts/century-schoolbook/C059-Roman.woff2')  format('truetype');
    font-display: swap;
  }
@font-face {
    font-family: myFont;
    font-style: italic;
    src: url('fonts/century-schoolbook/C059-Italic.woff2')  format('truetype');
    font-display: swap;
    }
@font-face {
    font-family: myFontHeader;
    font-style: normal;
    src: url('fonts/dancing-script/DancingScript-Regular.woff2')  format('truetype');
    font-display: swap;
    }
@font-face {
    font-family: myFontHeader;
    font-style: normal;
    src: url('fonts/dancing-script/DancingScript-Bold.woff2')  format('truetype');
    font-display: swap;
    }
:root { /* Variablen */
    --margin-side: 10%;
    --font-size: 1.25rem;

    --color-back-header: #a4b8c5;
    --color-banner: rgb(224, 224, 224);
    --banner-radius: 20px;
    --color-header-strich: black;


    --color-font-dark: #1c1c1c;
    --color-font-light: #eeeeee;
    --color-light-mode-primary: #0a5495;


    --color-black-white-rgb: 0,0,0;
    --color-font: #1c1c1c;
    --color-font-reversed: #eeeeee;
    --color-shadow: lightslategray;
    --color-background: rgba(0, 0, 0, 0);
    --color-bg: rgb(225, 225, 225);
    --color-primary: #0a5495;
}

.darkTheme{ /* dark */
    --color-black-white-rgb: 255, 255, 255;
    --color-font: #eeeeee;
    --color-font-reversed: #1c1c1c;
    --color-shadow: rgb(17, 19, 22);
    --color-background: rgba(0, 0, 0, 0.85);
    --color-bg: rgb(32, 32, 32);
    --color-primary: #2d7bc1;
}
::selection {
    background-color: var(--color-primary);
    color: white;
}
:focus-visible{
    outline: 2px solid var(--color-primary);
}
* { 
    box-sizing: border-box;
    font-family: 'myFont', Georgia, 'Times New Roman', serif;
}
html {
    background-color: var(--color-bg);
    height: 100%;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}
body{
    color: var(--color-font);
    line-height: 1.6em;
    margin: 0;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url(images/background/PaperStructureLight.webp);
    background-repeat: repeat;
    background-size: auto;
    pointer-events: none;
}
body.darkTheme::before {
    background-image: url(images/background/PaperStructureDark.webp);
}
main {
  padding: env(safe-area-inset-top, 0)
           env(safe-area-inset-right, 0)
           env(safe-area-inset-bottom, 0)
           env(safe-area-inset-left, 0);
}
button {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
}
p {
    hyphens: auto;
    text-align: justify;
}
main{
    flex: 1;
}
option {
    color: var(--color-font-dark);
}
.buttonAsLink{
    background-color: transparent;
    border: none;
    color: var(--color-font);
    font-family: 'myFont', Georgia, 'Times New Roman', serif;
    line-height: 1.6em;
    margin: 0;
    padding: 0;
    text-decoration: underline;
}
.buttonAsLink:hover,
.buttonAsLink:focus{
    color: var(--color-primary);
    cursor: pointer;
}
.ueberschrift{
    text-align: center;
    margin: min(max(5%, 50px), 200px) var(--margin-side) min(max(8%, 60px), 200px) var(--margin-side);

}
.ueberschrift *, h1,h2,h3{
    font-family: "myFontHeader", 'Segoe Script', 'Lucida Handwriting', 'Apple Chancery', cursive;
    color: var(--color-primary);
    hyphens: auto;
    text-align: center;
    max-width: 100%;
}
h1{
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: clamp(3rem, 5vw, 4rem);
    width: fit-content;
}
.container h1 {
    margin: 0 auto 3rem auto;
}
h2{
    line-height: 3rem;
    font-size: 2.75rem;
}
h3{
    line-height: 2.5rem;
    font-size: 2rem;
}
.anfzeichen{
    font-family: 'myFont', Georgia, 'Times New Roman', serif;
    margin: 0 3px;
}
a, .link{
    color: var(--color-font);
}
a:hover, .link:hover{
    color: var(--color-primary);
}

.myFont{
    font-family: 'myFont', Georgia, 'Times New Roman', serif;
}
.container{
    padding: 0;
    max-width: 1000px;
    width: 80%;
    margin: 60px auto 40px auto;
}
.centered{
    display: grid;
    place-items: center;
}

/* Texteinschub ab 2. Zeile. Für nur 1. Zeile: text-indent pos.*/
.textEinschub{
    text-indent: -20px;
    padding-left: 20px;
}
#header{
    /* background-color: var(--color-back-header); */
    text-align: center;
}
.img-container{
    /* border: 3px solid red;; */
    max-width: 650px; /* Logo frame size = logo size*/
    margin: 0 auto; /* Abstand von oben zu Logo und Rest auto damit mittig*/
    padding-top: 30px;
}
.no-wrap{
    white-space: nowrap;
}
.img-container a:focus{
    outline: none;
}
.headerLogo{
    padding: 0 40px 0 40px;
    width: 100%;
}
.headercolor{
    background-color: var(--color-back-header);
}
#nav{
    padding: 20px;
    display: flex;
    text-align: center; /* vertikal */
    justify-content: center;  /* horizontal */
}
#nav a{
    color: var(--color-font);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.5rem;
    margin-right: 25px;
    margin-left: 25px;
    letter-spacing: 0.02em;

    /* text-decoration: underline; */
    border-bottom: 2px solid var(--color-primary);
    padding: 5px;
}

#nav a:hover {
    color: var(--color-primary);
    border: none;
}
/* Sub navbar*/
.has-subnav {
  position: relative;
  display: inline-flex;
}

.has-subnav:hover .sub-nav {
  display: flex;
}

.sub-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: var(--color-bg);
  border: 2px solid var(--color-font);
  border-radius: 5px;
  padding: 0.5em;
  z-index: 1000;
  min-width: 200px;
  text-align: left;
}

.sub-nav::before {
content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--color-font);
  z-index: 1001;
}

#sub-nav a {
  display: block;
  font-size: 1.2rem;
  padding-top: 1rem;
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
  width: fit-content;
}

#sub-nav a:first-of-type {
    padding-top: 0;
}


.selected{
    color: var(--color-primary) !important;
    text-decoration: none !important;
    border: none !important;
}
.mobilenav{
    display: none;
}
.mobilenav .selected{
    color: var(--color-light-mode-primary) !important;
}
.sunIcon{
    height: 100%;
    fill:#fcdb33;
    /* height: 45px; */
}
.moonIcon{
    height: 100%;
    fill: rgb(0, 0, 0);
}
.darkModeToggle{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 25px;
    width: 35px;
    cursor: pointer;
    padding: 0px;
    background-color: transparent;
    border: none;
}
.section {
  margin: 12vh 0;
}
.section:first-of-type {
  margin-top: 0;
}
.section-top-margin {
    margin-top: 12vh !important;
}
.section > h1,
.section > h2,
.section > h3 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: clamp(3rem, 5vw, 4rem);
  margin: 0 auto 1.5rem auto;
}
.section{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section p {
    width: 100%;
}
.section a {
  width: fit-content;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.section .buttons {
    display: flex;
    flex-direction: row;
    gap: 3rem;
}
.hide{
    display: none !important;
}
.show{
    display: block;
}
#header .headerStrichBox{
    background: linear-gradient(var(--color-back-header) 42%, transparent 42%) no-repeat;
    text-align: center;
}
.headerStrich{
    max-width: 900px;
    margin: 0 20px 0 20px;
    fill: var(--color-header-strich);    
}
.bitUp{
    transform: translateY(-40%);
}
.customStrich{
    width: 100%;
    height: 30px;
    bottom: 0;
    align-self: center;
}
.relative{
    /* border: 2px solid maroon; */
    position: relative;
    width: 100%;
}
.absolute{
    position: absolute;
}
.menu-icon{
    width: 30px;
    display: none;
}
.no-margin-top{
    margin-top: 0 !important;
}
.underline{
    text-decoration: underline;
}
.inhalt2Spalten{
    /* border: 5px solid orange; */
    display: flex;
    gap: 10%;
}
.inhalt2Spalten > *{
    flex: 1;
}

.button{
  text-decoration: none;

  cursor: pointer;
  padding: 8px;
  color: var(--color-font-light);
  background-color: var(--color-light-mode-primary);
  border: 3px solid var(--color-light-mode-primary);
  border-radius: 5px;
  box-shadow: 3px 3px 3px var(--color-shadow);
}
.button:hover,
.button:focus{
  background-color: transparent;
  color: var(--color-font);
}

.star::after{
    content: '*';
}
.fussnote{
    font-size: 1rem;
}
.fussnote::before{
    content: '*';
}
.shadow{
    box-shadow: 10px 12px 10px var(--color-shadow);
}

.strich * {
    stroke: var(--color-font);
    fill: var(--color-font);
    opacity: .9;
}

@media (min-width: 1000px) {
    .strich {
        transform: scaleY(.8);
    }
}
@media (min-width: 1400px) {
    .strich {
        transform: scaleY(.6);
    }
}
@media (min-width: 1800px) {
    .strich {
        transform: scaleY(.3);
    }
}

/* STARTSEITE */
.start-grid{
    display: grid;
    grid-template-columns: 2fr 1fr;
    place-items: center;
    gap: 10%;
}
.start-links-grid{
    grid-column-start: 1;
    grid-column-end: 2;
}
.start-rechts-grid{
    grid-column-start: 2;
    grid-column-end: 3;
}
.warnungen{
    background-color: rgba(255, 255, 0, 0.5);

}
.warnungen .container{
    padding: 10px 0;
}
.warnungen .container > p{
    font-size: 1rem;
    line-height: 2em;
}
.bergBild{
    margin: 0 0 30px 30px;
    width: min(30%, 400px);
    float: right;
}


/* BUTTON */
.button-section{
    display: flex;
    justify-content: center;
}



/* FOOTER */
#footer{
    background-color: var(--color-back-header);
    color: var(--color-font-dark);
    padding-top: 40px; /* Abstand Buttons nach oben zu Inhalt der Seite */
    padding-bottom: 25px; /* Abstand copyright zu Boden der seite */
    margin-top: 4%;

}
.grid-container-footer{
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    /* grid-template-rows: 1fr 1fr; */
    align-items: center;
    padding: 0 100px 0 100px;
}
.grid-item-social{
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row: 1;
    justify-self: right;
}
.grid-item-social svg{
    width: 30px;
}
.grid-item-copyright{
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row: 2;
    justify-self: left;
}
.grid-item-links{
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row: 2;
    justify-self: right;
}
#footer a{
    text-decoration: none;
    margin-left: 20px;
    color: var(--color-font-dark);
}
#footer a:hover,
#footer .selected{
    color: var(--color-light-mode-primary) !important;
}

#footer p{
    text-align: center;
    hyphens: none;
    color: var(--color-font-dark);
}






/*Für Handys */
@media(min-width:1120px){
    .mobilenav{ /* Wenn Display wieder größer, muss mobilenav verschwinden (wenn noch offen) */
        display: none !important;
    }
}

@media(max-width:1120px){

    /* HEADER */
    #header .headerStrich{
        display: none;
    }
    #nav,
    #sub-nav{     
        display: none;
    }
    
    h2{
        font-size: 2.5rem;
    }
    /* menu burger icon */
    .menu-icon-flex{
        /* border: 1px solid red; */
        display: flex;
        justify-content: space-between;
        padding: 20px;
        align-items: center;
        max-height: 120px;
    }

    .menu-icon-flex .img-container{
        margin: 0;
        padding-top: 0;
    }
    .menu-icon-flex img{ 
        padding-left: 10px;
        padding-right: 15%;
        height: 50px;
        width: auto;
    }
    .headerLogo{
        /* border: 1px solid rgb(0, 132, 255); */
        display: flex;
        align-items: center;
    }
    .menu-btn {
        text-align: initial; /* weil bei #header text-align: center */
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 60px;
        cursor: pointer;
        transition: all .3s ease-in-out;
        /* border: 3px solid rgb(143, 12, 12); */
    }
    .menu-btn-burger {
        width: 30px;
        height: 4px;
        background: rgb(0, 0, 0);
        border-radius: 4px;
        transition: all .3s ease-in-out;
    }
    .menu-btn-burger::before,
    .menu-btn-burger::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 4px;
        background: rgb(0, 0, 0);
        border-radius: 4px;
        transition: all .3s ease-in-out;
    }
    .menu-btn-burger::before {
     transform: translateY(-12px);
    }
    .menu-btn-burger::after {
        transform: translateY(12px);
    }
    /* ANIMATION */
    .menu-btn.open .menu-btn-burger {
        transform: translateX(-50px);
        background: transparent;
        box-shadow: none;
    }
    .menu-btn.open .menu-btn-burger::before {
        transform: rotate(45deg) translate(35px, -35px);
    }
    .menu-btn.open .menu-btn-burger::after {
        transform: rotate(-45deg) translate(35px, 35px);
    }

    .mobile-header-strich{
        display: initial;
        max-width: 400px;

        margin: 0 20px 0 20px;
        fill: rgb(0, 0, 0);    

    }
    .mobilenav{
        display: flex;
        background-color: var(--color-back-header);
        flex-direction: column;
        text-align: center; /* vertikal */
        justify-content: center;  /* horizontal */
        padding-bottom: 20px;
        transform: translateY(-20px);
    }
    .mobilenav a{
        color: #333333;
        line-height: 180%;
        font-weight: bold;
        text-decoration: none;
        font-size: 1.5rem;
        width: fit-content;
    }
    .navLinkContainer{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .mobile-sub-nav{
      justify-content: center;
      padding-left: 4rem;
      margin: 0 auto;

    }
    .mobile-sub-nav > * {
      justify-content: left;
    }
    .mobile-sub-nav a{
      font-size: 1.1rem;
    }
    .darkModeToggle{
        line-height: 180%;

        height: 35px;
        padding: 2px;
        margin: 10px 0;
        width: fit-content;
    }


    .bergBild{
        width: 40%;
    }


    /* ALLGEMEIN */
    .start-grid{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        place-items: center;
        gap: 0;
    
    }
    .rechteSpalte{
        grid-row-start: 1;
        grid-row-end: 1;
    }
    .linkeSpalte{
        grid-row-start: 2;
        grid-row-end: 2;
    }
    .container,
    .ueberschrift{
        width: 90%;
    }
    .ueberschrift{
        margin-bottom: 8%;
    }
    .grid-leistungen{
        /* border: 5px solid red; */
        margin: 60px 25px;
        gap: 3rem;

    }
    .grid-elem-leistung > *{
        padding: 30px 25px;
    }
    .inhalt2Spalten{
        flex-direction: column;
        gap: 3rem;
    }



    /* FOOTER */
    #footer a{
        margin-left: 0;
    }
    .grid-item-social a{
        margin-right: 20px;
    }
    .grid-item-social a:last-child{
        margin-right: 0;
    }

    .grid-container-footer{
        /* border: 3px solid rgb(214, 28, 28); */
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* grid-template-rows: 1fr 1fr 1fr 1fr; */
        align-items: center;
        padding-left: 10px;
        padding-right: 10px;
        gap: 1rem;
        overflow: visible;
    }
    .grid-item-social{
        /* border: 3px solid rgb(28, 214, 40); */
        grid-column-start: 1;
        grid-column-end: -1;
        grid-row: 1;
        justify-self: center;
        align-items: center;  
    }
    .grid-item-social svg{
        width: 30px;
    }
    .grid-item-copyright{
        /* background-color: greenyellow; */
        /* border: 3px solid rgb(28, 121, 214); */
        grid-column-start: 1;
        grid-column-end: -1;
        grid-row: 3;
        justify-self: center;
        align-items: center;
        text-align: center;
    }
    .grid-item-links{
        /* background-color: rebeccapurple; */
        /* border: 3px solid rgb(214, 183, 28); */
        grid-column-start: 1;
        grid-column-end: -1;
        grid-row: 2;
        justify-self: center;
        align-items: center;
        text-align: center;
        
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 30px;
    }
    .grid-item-links > * {
        white-space: nowrap;
        flex: 1 0 10px;
    }




}
@media(max-width: 450px){
    .bergBild{
        margin: 0;
        float: none;
        width: 100%;
    }

}




