*, *::before, *::after { box-sizing: border-box; }

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin-block-end: 0;
    font-family: var(--font-base);
}

ul[role="list"], ol[role="list"] {
    list-style: none;
}

button {
    font: inherit;
}

body, html {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    padding: 0;
}

h1, h2, h3, h4, button, input, label {
    line-height: 1.1;
    /* font-family: 'Oswald'; */
}

h1, h2, h3, h4 { font-size: var(--size-step-3); }
.error { text-align: center; }
img, picture {
    max-width: 100%;
    display: block;
    height: auto;
    margin: 0 auto;
}

p.center {
     max-width: 100%;
    display: block;
    height: auto;
    margin: 0 auto;
    line-height: 1.4;
}
a:not([class]) {
    text-decoration-skip-ink: auto;
    white-space: nowrap;
    color: currentColor;
}

a {
    text-decoration: underline;
}

:target {
    scroll-margin-block: 5ex;
}

/* Root Variables */
:root {
    --color-dark: #404040;
    --color-light: #fafafa;
    --color-primary: #0a5694;
    --color-secondary: #09487C;

    --font-base: sans-serif;

    --space-s: clamp(1rem, 0.92rem + 0.39vw, 1.25rem);
    --space-m: clamp(1.5rem, 1.38rem + 0.58vw, 1.875rem);
    --space-l: clamp(2rem, 1.84rem + 0.78vw, 2.5rem);
    --space-xl: clamp(3rem, 2.77rem + 1.17vw, 3.75rem);

    --size-step-1: clamp(1.1875rem, 1.01rem + 0.87vw, 1.75rem);
    --size-step-2: clamp(1.4375rem, 1.11rem + 1.65vw, 2.5rem);
    --size-step-3: clamp(1.75rem, 1.19rem + 2.82vw, 3.5625rem);

    --gutter: var(--space-m);
    --border-radius: var(--size-step-1);

    --transition-base: 250ms ease;
    --transition-fade: 200ms ease;

    --tracking: -0.05ch;
}

:root {
    font-size: clamp(14px, 1rem + 0.25vw, 18px);
}
/* oswald-regular - latin */
/* @font-face { */
/*   font-display: swap; /\* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. *\/ */
/*   font-family: 'Oswald'; */
/*   font-style: normal; */
/*   font-weight: 400; */
/*   src: url('../fonts/oswald-v53-latin-regular.woff2') format('woff2'); /\* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ *\/ */
/* } */

/* Custom CSS */
header {
    grid-area: header;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

header img {
    width: 100vw;
    height: auto;
}

.headingline span {
    /* font-family: var(--font-spanhead); */
    color: #767676;
    font-weight: 200;
}

h1, h2, h3{
    font-size: 2.5rem;
    font-weight: 300;
    color: #444;
    text-align: center;
}

p, a {
    font-size: var(--size-step-0);
    line-height: 1;
    margin-bottom: var(--space-s);
    text-align: left;
    max-width: 80ch;
    margin-left: 1rem;
    padding-right: 1rem;
}
footer {
    display: grid;
    grid-template-columns: 1fr;
    background-color: #767676;
    color: #fff;
    align-items: center;
    justify-items: center;
    text-align: center;
}

footer > *:first-child { order: 2; }

#impressum, #datenschutz { margin-left: var(--space-l); }

.subtle {
    color: #fff;
    font-weight: 300;
    font-size: 1rem;
}

.ssvg {
    width: 60%;
    color: #fff;
}

h2 span {
    /* font-family: var(--font-spanhead); */
    color: #767676;
    font-weight: 200;
}

#fullsizelogo {
    display: block;
    margin: auto;
    width: 35vw;
    height: auto;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
#fbkohLogo {
    max-width: 5rem;
    display: inline-block;
    margin-left: 2rem;
}
.square {
    width: 80vw;
    margin-top: 2rem;
}

svg#email {
    width: 10rem;
    align-self: center;
}

.landscape {
    width: 80vw;
    margin-top: 2rem;
}
.portrait {
    width: 80vw;
    margin-top: 2rem;
}

#applemaps, #googlemaps, #osm {
    height: 120px;
    padding: 10px;
}

#kontakt p {
    text-align: center;
    font-size: var(--size-step-2);
    padding: 2rem;
}

#kontakt p span {
    /* font-family: var(--font-spanhead); */
    font-weight: 200;
    color: #666;
}

#kontakt {
    align-items: center;
    justify-items: center;
    text-align: center;
}

nav {
    position: relative;
    width: 100%;
}

.nav-link {
    display: inline-block;
    margin: 0 0.5rem;
    text-decoration: none;
    color: #000;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}

.nav-link.current, .foot-link.current { border-color: #6D9DC5 }

.foot-link {
    display: inline-block;
    border-bottom: 2px solid #808080;
    padding-bottom: 3px;
    color: #fff;
}
.foot-link:hover { color: #ff0000; }
.foot-link.current { color: #fff;  }

footer p {
    text-align: center;
    color: #fff;
}


#navToggle {
    display: block;
    cursor: pointer;
    position: fixed;
    top: 30px;
    right: 5px;
    z-index: 101;
    align-self: center;
}

#navToggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: #000;
    transition: transform 0.3s ease;
}

#navToggle.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }

#navToggle.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

#navToggle.active span { background-color: #fff; }

#navLinks {
    display: grid;
    grid-template-columns: 1fr;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: #000;
    transform: translateX(-100%);
    opacity: 0;
    justify-items: center;
    align-content: center;
    z-index: 99;
}

#navLinks a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}

nav > section { display: none; }

#navToggle.active + #navLinks {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#facebookicon, #instagramicon {
    height: 100px;
    padding: 10px;
}

#redframe {
    border: 4px solid #ff0000;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    display: inline-block;
}

#phonemail {
    text-align: center; /* Center the content */
    padding: 1rem 0; /* Optional padding for better spacing */
}

#phonemail svg {
    fill: #fff; /* Set the SVG color to white */
    width: 25vw; /* Set the width to 10% of the viewport width */
    max-width: 30%; /* Ensure the width does not exceed 10% of the viewport width */
    height: auto; /* Maintain the aspect ratio */
    display: inline-block; /* Ensure it is inline-block for proper spacing */
    transition: fill 0.3s ease; /* Smooth transition for color changes */
    padding: 0.8rem;
}
figcaption {
    text-align: center;
}

@media (max-width: 321px) {
    body, h1, article {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

@media (min-width: 936px) {
    #navToggle { display: none; }

    #navLinks {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, auto));
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        transform: none;
        opacity: 1;
        justify-content: center;
        align-content: center;
        gap: -5px;
    }
    picture.exponat {
        max-width: 50vw;
    }
    #navLinks a {
        display: inline-block;
        margin: 0 5px;
        color: #000;
        font-size: 1rem;
    }
    #navLinks a.footer-link { display: none; }

    nav > section { display: block; }

    footer > *:first-child {
        order: initial;
    }

    footer {
        grid-template-columns: repeat(3, 1fr);
    }

    footer > *:not(:last-child) {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    footer a { font-size: 0.9rem; }


    #karte {
        display: block;
        margin-bottom: 2rem;
    }

    #mkarte {
        display: none;
    }

    article#marken {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        grid-gap: 30px;
        padding: 40px;
        align-items: center;
        justify-items: center;
    }

    .msvg { padding: 2rem; }

    .blocky {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 2rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    p.social {
        font-size: 2.8rem;
    }

    svg#email {
        width: 20vw;
    }

    h1 { font-size: var(--size-step-3); }
}
.icon-title {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between SVG and h3 */
    margin-top: 2rem;
}

h3 {
    margin: 0; /* Remove default margin from h3 */
    padding-left: 6rem;
    font-size: 1rem;
}
h2 {
    font-size: 2rem;
}
h1 {
    font-size: 2.5rem;
}
html { background: #FBF8EA;}
.fitthis {
    max-width: 85vw;
}
p.center { text-align: center;
           max-width: 80vw;
           margin: 0 auto;}
