* {
    margin: 0;
    padding: 0;
    text-indent: 0;
    text-decoration: none;
    line-height: 1.5em;
    font-style: normal;
    box-sizing: border-box;
    font-size: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

#main {
    margin: 0 auto;
    color: rgb(0, 0, 102);
    border-width: 2.5vw 2.5vw 0;
    border-style: solid;
    border-color: transparent;
    padding: 2.5vw 5vw 4rem;
    position: relative;
    max-width: 87.5rem;
}

#main #container {
    padding: 0;
    background-color: transparent;
    width: 100%;
    margin: auto;
}

#main #aussparung {
    display: block;
    position: absolute;
    width: 100%;
    height: 2rem;
    bottom: 0;
    left: 0;
    z-index: 1;
}

#footer {
    margin: 0 auto;
    padding: 0 2.5vw 1rem;
    background: #ffffff;
    max-width: 87.5rem;
    color: rgb(0, 0, 102);
}

#footer>div {
    position: relative;
}

#web a {
    font-size: 1em;
    font-weight: bold;
    color: rgb(0, 0, 102);
    position: relative;
    bottom: 0.6vw;
}

#logo img {
    max-width: 33vw;
    height: auto;
}

#illustration {
    overflow: visible;
    position: relative;
}

#illustration img {
    position: relative;
    width: 100%;
    height: auto;
}

#siegel {
   position: absolute;
   bottom: -2rem;
   left: -1rem;
   opacity: 0.95;
   z-index: 9999;
   transform: rotate(-7deg);
}

#textbox {
    position: relative;
    margin: 3rem 0 0;
}

.flexbox {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
}

.section {
    margin: 1.25rem 0;
    position: relative;
}

.section:last-of-type {
    margin-bottom: 0;
}

.section:last-of-type>* {
    margin-bottom: 0;
}

.position-right {
    position: relative;
    text-align: right;
}

h1,
h2,
h3 {
    font-weight: normal;
}

h1,
h2 {
    font-family: "Calluna", Georgia, "Times New Roman", Times, serif;
}

h1 {
    font-size: 2em;
    margin: 1.825rem 0 0;
    color: rgb(153, 0, 51);
}

h2 {
    font-size: 1.5em;
    margin: 0 0 1.825rem;
}

h3 {
    font-size: 1.2em;
    margin: 1.25rem 0 0.25rem;
}

h4 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 1.5rem 0 0.25rem;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25em;
}

p,
ul {
    margin-bottom: 1.5rem;
}

ul {
    margin-left: 1em;
}

ul.grid {
    margin: 0.5rem 0;
    /* flexbox */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

ul.grid li {
    list-style: none;
    margin: 0.275rem 0;
    text-align: center;
    min-width: 9rem;
    /* flexbox */
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 20%;
}

.title {
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

a.button {
    font-size: 0.875em;
    line-height: 3.75em;
    padding: 0.8125em 2.8em;
    width: auto;
    box-sizing: border-box;
    margin-right: 0.875em;
    margin-bottom: 0.75em;
    vertical-align: baseline;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
    font-stretch: normal;
    cursor: pointer;
    border: 1px solid rgb(153, 0, 51);
    background-color: rgb(153, 0, 51);
    color: #fff;
    transition: 0.5s;
    white-space: nowrap;
}

a.button:hover {
    background-color: transparent;
    color: #990033;
}

.button.blau {
    border-color: rgb(0, 0, 102);
    background-color: rgb(0, 0, 102);
}

.button.blau:hover {
    background-color: transparent;
    color: rgb(0, 0, 102);
}

.margin.top {
    margin-top: 1.5rem;
}

.margin.bottom {
    margin-bottom: 3rem;
}

.noscreen {
    display: none;
}

#qrcode {
    justify-content: flex-start;
    align-items: center;
}

#qrcode p {
    width: 12em;
}


/* --- SVG --- */

#rahmen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    z-index: -1;
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

svg line {
    stroke-width: 6;
    stroke: rgb(0, 0, 102);
    fill: none;
    stroke-linejoin: miter;
}

svg line.deckend {
    stroke: #fff;
}

svg line.vertical {
    stroke-width: 3;
}


/* --- media queries --- */

@media screen and (max-width: 67rem) {
    /* 67rem => 1072px */
    #main {
        padding: 2.5vw 2.5vw 4rem;
    }
    #siegel {
      left: -1.5vw;
      transform: rotate(-3deg);
    }
    #siegel img {
       width: 90%;
       height: auto;
    }
}

@media screen and (max-width: 36rem) {
    /* 36rem => 576px */
    #logo img {
        max-width: 40vw;
    }
    #siegel img {
       width: 80%;
       height: auto;
    }
}

@media screen and (max-width: 30rem) {
    /* 30rem => 480px */
    * {
        font-size: 97.5%;
    }
    #textbox {
        margin: 0;
    }
    #siegel {
      bottom: -0.8rem;
    }
    #siegel img {
      max-width: 30vw;
    }
    ul.grid {
        grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
        gap: 0 0.5rem;
    }
}

@media print {
    * {
        font-size: 10pt;
    }
    body {
        width: 100% !important;
    }
    .noprint,
    a.button {
        display: none !important;
    }
    .noscreen {
        display: block;
    }
    #main {
        border-width: 0;
        padding: 0;
    }
    #main #container {
        padding: 0;
    }
    #siegel {
      bottom: -0.875rem;
      left: 0.5rem;
      transform: none;
    }
    #siegel img {
      width: 70%;
      height: auto;
    }
    #textbox {
        margin: 0;
        padding: 0 0 10mm;
    }
    p,
    ul {
        margin-bottom: 0.75rem;
    }
    .section {
        page-break-inside: avoid;
    }
    a[href]::after {
        content: none !important;
    }
    ul.grid li {
        min-width: auto;
    }
    h1 {
        font-size: 18pt;
    }
    h2 {
        font-size: 14pt;
    }
    h4 {
        font-size: 11pt;
    }
    /*
    #rahmen {
        position: fixed;
        width: 100%;
        height: 23.7cm;
    }
    #aussparung {
        position: fixed;
        width: 100%;
        top: 23cm;
    }
    */
    #footer {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        position: fixed;
        bottom: 0;
    }
    .flexbox {
        display: flex;
    }
    #logo img {
        max-width: 82mm;
    }
    #qrcode img {
        max-width: 24mm;
        height: auto;
    }
    #qrcode p {
        line-height: 1.2;
    }
}

@page {
    size: a4 portrait;
    margin: 8mm 19mm;
}