/*
* Copyright (C) 2019-2025 Falk Appel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
:root {
    /* support dark mode */
     color-scheme: light dark;
    /* basic color definition */
    /*#5a5a5a*/
     --dark-gray: rgb(90, 90, 90);
    /* #323232*/
     --darker-gray: rgb(50, 50, 50);
     --medium-gray: rgb(180, 180, 180);
    /* #DDDDDD*/
     --light-gray: rgb(221, 221, 221);
      /* #e8e9eb*/
     --lighter-gray: rgb(240, 240, 250);
    /* #FFAB28*/
     --orange: rgb(255, 171, 40);
    /*#AA0022*/
     --red: rgb(170, 0, 34);
    /*#fafafa*/
     --white: rgb(250, 250, 250);
    /* default : light scheme */
     --main-color: var(--orange);
     --border-color: var(--medium-gray);
     --contrast-color: var(--orange);
     --text-color: var(--dark-gray);
     --text-color-heading: var(--dark-gray);
     --text-color-inverse: var(--light-gray);
     --background-color: var(--lighter-gray);
    /* font sizes */
     --font-size-small: 10px;
     --font-size-normal: 14px;
     --font-size-large: 18px;
     --font-size-extra-large: 24px;
     --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
     --gallery-picture-size: 300px;
}
/* support dark mode */
 @media (prefers-color-scheme: dark) {
     :root {
        /* dark scheme */
         --main-color: var(--orange);
         --contrast-color: var(--orange);
         --text-color: var(--light-gray);
         --text-color-heading: var(--darker-gray);
         --text-color-inverse: var(--darker-gray);
         --background-color: var(--darker-gray);
    }
}
/* fonts */
 @font-face {
     font-family: the-sans;
     src: url(../fonts/Atkinson-Hyperlegible-Regular-102.ttf);
}
 @font-face {
     font-family: the-sans;
     src: url(../fonts/Atkinson-Hyperlegible-Bold-102.ttf);
     font-weight: bold;
}
 @font-face {
     font-family: the-sans-bold;
     src: url(../fonts/Atkinson-Hyperlegible-Bold-102.ttf);
}
/* ensure border-box */
 * {
     box-sizing: border-box;
     font-family: the-sans;
}
/* define columns and rows */
/* for small witdh: */
 [class*="col-"] {
     width: 100%;
}
 [class*="col-"] {
     float: left;
     padding-bottom: 0vmax;
     padding-left: 0vmax;
     padding-right: 0vmax;
}

 .centered {
     display: flex;
     justify-content: center;
}
/* styling */
 html {
     background-color: var(--background-color);
     color: var(--text-color);
}
 .logo {
     background-color: var(--main-color);
     padding: 1vmax;
     align-content: center;
     text-align: center;
     font-size: var(--font-size-large);
}
 .content {
      padding-top: 0px;
      padding-bottom: 0px;
      padding-left: 1vmax;
      padding-right: 1vmax;
     font-size: var(--font-size-normal);
}
 .footer {
     align-content: center;
     text-align: center;
     font-size: var(--font-size-small);
}
 .translation {
     padding-top: 0vmax;
     padding-bottom: 0.5vmax;
     padding-left: 0vmax;
     padding-right: 0vmax;
     align-content: right;
     text-align: right;
     font-size: var(--font-size-small);
}
 .heading {
     margin-bottom: 1vmax;
     margin-top: 1vmax;
     padding-top: 0.5vmax;
     padding-bottom: 0.5vmax;
     padding-left: 1vmax;
     padding-right: 1vmax;
     color: var(--text-color-heading);
     font-color: var(--text-color-heading);
     font-size: var(--font-size-normal);
     font-weight: bold;
     background-color: var(--main-color);
     display: flex;
     align-items: center;
}
.heading-label {
    margin:0px;
    flex-grow: 1;
}
.heading_icon {
     width: 24px;
     height: 24px;
}
 li.selected {
     background-color: var(--contrast-color);
     color: var(--text-color-inverse);
}
 h1 {
     font-size: var(--font-size-extra-large);
     font-family: the-sans-bold;
     text-align: center;
}
 h2 {
     font-size: var(--font-size-large);
}
 h3 {
     font-size: var(--font-size-normal);
}
 a:link {
     color: var(--text-color);
}
 a:visited {
     color: var(--contrast-color);
}
 img {
     max-width: 100%;
     height: auto;
}
.topimage {
     width: 0%;
     height: 0%;
}
.icon {
     width: 32px;
     height: 32px;
     margin: 1vmax;
}

.external-links {
     justify-content: center;
     text-decoration: none;
     text-align: center;
}
 a.external-links {
     text-decoration: none;
}
 img.external-links {
     height: auto;
     max-height: 65px;
     margin: 1vmax;
}
 picture.external-links {
     height: auto;
     max-height: 65px;
     margin: 1vmax;
}
 img.foto {
     border-radius: 0%;
     margin: 1vmax;
}
 .gallery {
     display: grid;
     padding: 0.5vmax;
     grid-gap: 0.5vmax;
     grid-template-columns: repeat( auto-fit, minmax(var(--gallery-picture-size), 1fr) );
}
 img.gallery-img {
     max-height: var(--gallery-picture-size);
     max-width: var(--gallery-picture-size);
}
 .gallery-img > div {
     text-align: center;
     grid-row: auto;
     display: flex;
     justify-content: center;
}
 .gallery-card{
     border: 2px solid var(--border-color);
     border-radius: 5px;
     padding: 0.5vmax;
}
 p.comment {
     font-style: italic;
     margin-left:1vmax;
     margin-right:1vmax;
}
/* for wide screens: */
 @media only screen and (min-width: 738px) {
     .col-1 {
         width: 8.33vw;
    }
     .col-2 {
         width: 16.66vw;
    }
     .col-3 {
         width: 25vw;
    }
     .col-4 {
         width: 33.33vw;
    }
     .col-5 {
         width: 41.66vw;
    }
     .col-6 {
         width: 50vw;
    }
     .col-7 {
         width: 58.33vw;
    }
     .col-8 {
         width: 66.66vw;
    }
     .col-9 {
         width: 75vw;
    }
     .col-10 {
         width: 83.33vw;
    }
     .col-11 {
         width: 91.66vw;
    }
     .col-12 {
         width: 100vw;
    }
     .logo {
         height: 10vmax;
    }
     .topimage {
         padding-top: 0vmax;
         padding-bottom: 0vmax;
         padding-left: 1vmax;
         padding-right: 0vmax;
         height: 10vmax;
    }
     .topimage img {
         max-width: 100%;
         height: 100%;
    }
     img.foto {
         border-radius: 50%;
    }
}
/* for wider screens: */
 @media only screen and (min-width: 1800px) {
     .col-1 {
         width: 150px;
    }
     .col-2 {
         width: 300px;
    }
     .col-3 {
         width: 450px;
    }
     .col-4 {
         width: 600px;
    }
     .col-5 {
         width: 750px;
    }
     .col-6 {
         width: 900px;
    }
     .col-7 {
         width: 1050px;
    }
     .col-8 {
         width: 1200px;
    }
     .col-9 {
         width: 1350px;
    }
     .col-10 {
         width: 1500px;
    }
     .col-11 {
         width: 1650px;
    }
     .col-12 {
         width: 1800px;
    }
     .logo {
         height: 180px;
    }
     .topimage {
         padding-left: 18px;
         height: 180px;
    }
}
