:root {
    --flblue: #303f9f;
    --text: #191919;
    --muted: #555;
    --delim: #ccc;
    --footer: #494949;
    --footer-text: #f0f0f0;
    --surface: #ffffff;
    --background-top: rgba(170, 170, 170, 0.2);
    --background-end: #fafafa;
}

html {
    scroll-padding-top: 6rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Helvetica, Verdana, Arial, sans-serif;
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: var(--background-end);
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    z-index: -1;

    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-image:
        linear-gradient(to bottom, var(--background-top) 0%, var(--background-end) 100%),
        url("../images/background.jpg");
}

.skip-link {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    padding: 0.75rem 1rem;
    background: var(--footer);
    color: var(--surface);
}
.skip-link:focus {
    position: fixed;
    left: .5rem; top: .5rem;
    width: auto; height: auto;
    clip: auto;
    overflow: visible;
    z-index: 1000;
}

.header-contact {
    background: var(--surface);
    padding-top:0.4em;
    font-size: 0.75em;
}

a { text-decoration: underline; text-decoration-color: #a0a0a080; }
.footer-contact a { text-decoration-color: #f0f0f080;}
a:hover { text-decoration-color: currentColor; }

.external-link {
    width: 1em;
    height: 1em;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-image: url("../images/external-link.svg");

    margin-left: 0.3em;
    bottom: -2px;
    position: relative;
}

header {
    padding-bottom: 1.5rem;
}

.main-centered {
    width: 96%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 6rem;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    min-height: 5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0;
    order: 1;
}

.nav-menu li {
    padding-right: 0.6em;
    margin-left: 0.6em;
    border-right: 1px solid var(--flblue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7em;
}

.nav-menu li:first-child {
    margin-left: 0;
}

.nav-menu li:last-child {
    padding-right: 0;
    border-right: none;
}

.nav-menu a {
    color: var(--flblue);
}

.nav-menu a[aria-current] {
    color: var(--text);
    text-decoration: underline;
}
.nav-menu a:hover {
    color: var(--text);
}

.logo-header {
    width: auto;
    object-fit: contain;
    max-width: 100%;
    height: 5rem;
    transition: height 180ms ease;
}

.nav-logo {
    margin-left: 1rem;
    order: 2;
    height: 5rem;
    display: flex;
    align-items: center;
}

.logo-footer {
    display: block;
    width: 24rem;
    max-width: 95%;
    height: auto;
    margin-left: auto;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1.6rem;
    height: 2px;
    margin: 5px 0;
    background: var(--flblue);
    transition: margin 180ms ease, transform 180ms ease, background 180ms ease;
}

nav.is-stuck .logo-header {
    height: 3rem;
}

.nav-shadow {
    box-shadow: 0 0.3rem 0.3rem rgba(0, 0, 0, 0.15);
    height: 6rem;
    background: var(--surface);
    transition: height 180ms ease;
}

nav.is-stuck .nav-shadow {
    height: 5rem;
}

main {
    margin-top: 4rem;
}

h1, h2, .image-link-title {
  color: var(--flblue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 2.5em; margin-top: 0; }
h2 { font-size: 2.0em; margin-top: 0; }
.image-link-title { font-size: 1.8em; }

.content-container {
    display: flex;
    margin-bottom: 2rem;
    flex-direction: row;
    justify-content: space-between;
}

.text-container {
    margin-bottom: 3rem;
}

.map-side {
    width: 48%;
    margin-right: 2rem;
}

.map-image {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  object-position: center;
}

.space-below {
    margin-bottom: 5rem;
}

.row-group-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 3rem;
    flex-direction: row;
    justify-content: space-between;
}

.image-link-group {
    max-width: 31%;
    text-align: right;
}

@media (max-width: 990px) {
    .image-link-group {
        max-width: 48%;
        margin-bottom: 2rem;
    }
}
@media (max-width: 680px) {
    .image-link-group {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

.image-link-group a {
    position: relative;
}

.image-link-group a:hover {
    text-decoration: none;
    --muted: var(--text);
}

.image-link-group a:hover * {
    text-decoration: underline;
}

.image-link-group .read-more {
    color: var(--muted);
    margin-right: 0.15em;
}

.arrow-right {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    margin-left: 0.3em;
    border-top: 2px solid var(--muted);
    border-right: 2px solid var(--muted);
    transform: rotate(45deg);
}

.text-side p {
    font-family: Arial, sans-serif;
}

.text-side {
    width: 48%;
}
section ul {
    padding-left: 2rem;
}
.image-side {
    max-width: 48%;
    text-align: right;
    margin: 0 0 1rem 0;
}
img.side-full {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.image-side > figcaption {
    color: var(--muted);
    font-size: 0.8em;
}

.image-side > figcaption.map-label {
    color: var(--text);
    font-size: 1em;
    text-align: left;
}

figcaption ul {
    margin: 0;
    list-style-type: none;
    padding-left: 0%;
}

figcaption img {
    height: 1.5em;
    vertical-align: middle;
    margin-right: 0.4em;
}

hr {
    border: none;
    height: 1px;
    background-color: var(--delim);
    margin-bottom: 3rem;
}

.footer-container {
    background: var(--footer);
    color: var(--footer-text);
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.footer-contact p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.footer-contact p:last-child {
    margin-bottom: 0;
}

.footer-contact {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-contact a {
    color: var(--footer-text);
}

.flex-row-spaced {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-imprint {
    background: var(--surface);
    padding-top:0.7rem;
    padding-bottom:0.7rem;
    font-size: 0.75em;
}
.footer-imprint a {
    color: var(--text);
}

.link-group {
    text-align: right;
}

.link-group a {
    margin-left: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}

.form-group label {
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--delim);
  border-radius: 2px;
}

/* Ein einfacher, schicker Button */
.kontakt-formular button {
  width: 100%;
  padding: 0.6em;
  font-size: 1em;
  color: var(--flblue);
  border: 1px solid var(--flblue);
  border-radius: 2px;
  background-color: transparent;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.kontakt-formular button:hover,
.kontakt-formular button:focus {
  background-color: var(--flblue);
  color: white;
}

input,
textarea {
    font-size: 1rem;
    font-family: inherit;
}

.form-text-wide {
    display: none;
}

.kontakt-formular span {
    display: inline-block;
    margin-bottom: 1rem;
}

/* Medium screens: logo above the links */
@media (max-width: 760px) {
    html {
        scroll-padding-top: 10rem;
    }

    .nav-inner {
        flex-direction: column;
    }

    .nav-logo {
        order: 1;
        justify-content: center;
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    nav {
        min-height: 9rem;
        top: 0;
    }
    nav.is-stuck .logo-header {
        height: 4rem;
    }

    .nav-menu {
        order: 2;
        justify-content: center;
    }

    .nav-menu li {
        font-size: 1.5em;
    }

    .nav-shadow {
        height: 9rem;
    }
    nav.is-stuck .nav-shadow {
        height: 9rem;
    }

    .content-container {
        flex-direction: column;
    }
    .space-below {
        margin-bottom: 2rem;
    }
    .text-side {
        width: 100%;
    }
    .thank-you {
        order: -1;
    }

    .image-side {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    footer .image-side {
        margin-right: 0;
    }
    .footer-container {
        padding-top: 3rem;
    }
    .footer-contact {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 760px) and (max-height: 640px) {
    html {
        scroll-padding-top: 4.5rem;
    }
    nav {
        min-height: 9rem;
        top: -5.5rem;
    }
}

/* Narrow screens: hamburger menu */
@media (max-width: 520px) {
    html {
        scroll-padding-top: 6rem;
    }
    main {
        margin-top: 3rem;
    }

    .nav-logo {
        order: 1;
        margin-bottom: 0;
    }

    .nav-toggle {
        display: block;
        order: 2;
    }

    .nav-toggle.activated span:first-child {
        transform: rotate(45deg);
        margin-top: 10px;
        margin-bottom: 0;
    }

    .nav-toggle.activated span:nth-child(2) {
        transform: rotate(-45deg);
        margin: -2px 0px;
    }

    .nav-toggle.activated span:last-child {
        background: transparent;
    }

    nav.is-stuck .logo-header {
        height: 3rem;
    }
    nav {
        min-height: 5rem;
        top: 0;
    }

    .nav-shadow {
        height: 6rem;
    }
    nav.is-stuck .nav-shadow {
        height: 5rem;
    }

    .nav-inner {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1rem;
        background: var(--surface);
        box-shadow: 0 4px 8px rgba(0,0,0,0.12);
        order: 3;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li {
        padding: 0.5rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--delim);
        margin-left: 0;
    }

    .nav-menu li:last-child {
        border-bottom: 0;
    }
}
