/* =========================
   Variablen
   ========================= */

:root {
    --color-text: #334155;
    --color-border: #cbd5e1;
    --color-bg: white;
    --radius: .375rem;
    --container-width: 64rem;
}

/* =========================
   Grundelemente
   ========================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    overflow-y: scroll;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: ui-sans-serif, system-ui, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    font: inherit;
}

/* =========================
   Layout
   ========================= */
 
.main {
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 1rem;
    padding-top: 6rem;
}  

.section {
    border:1px solid var(--color-border);
    border-radius:var(--radius);
    padding:1.5rem;
    margin-bottom:1.5rem;
    display:flow-root;
} 

/* =========================
   Header
   ========================= */

.header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    z-index: 1000;
}

.header-inner {
    max-width: var(--container-width);
    margin-inline: auto;
    height: 4rem;
    padding-inline: 1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: .75rem;
}

.logo {
    height: 2rem;
    width: auto;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* =========================
   Navigation
   ========================= */

.nav-mobile {
    display: flex;
    flex-direction: column;
}

.nav-mobile > div + div {
    margin-top: 1.5rem;
}

.nav-mobile > div {
    display: flex;
    flex-direction: column;
}

.nav-mobile a {
    padding-block: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.nav-responsive {
    display: none;
    flex-direction: row;
    align-items: center;
}

.nav-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-desktop > div + div, .nav-responsive > div + div {
    margin-left: 4rem;
}

.nav-desktop > div, .nav-responsive > div {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-toggle, .nav-toggle-responsive {
    font-size: 1.25rem;
    text-decoration: none;
}

/* =========================
   Typografie
   ========================= */

a {
    text-decoration: underline;
    color: inherit;
    text-underline-offset: .125rem;
}

nav a {
    text-decoration: none;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: .75rem;
}

/* =========================
   Icons
   ========================= */

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    fill: currentColor;
}

/* =========================
   Buttons
   ========================= */

.button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    padding: .5rem 1rem;
    text-decoration: none;
    cursor: pointer;
}

/* =========================
   Formulare
   ========================= */

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form .button {
    align-self: flex-start;
}

.field {
    width: 100%;
    border:1px solid var(--color-border);
    border-radius:var(--radius);
    background:var(--color-bg);
    padding: .5rem .75rem;
}

.blocklabel {
    display: block;
    margin-bottom: .5rem;
}

.inlinelabel {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.inlinelabel + .inlinelabel {
    margin-top: .5rem;
}

/* =========================
   Tabellen
   ========================= */

table {
    width: 100%;
}

th, td {
    padding-block: 1rem;
    border-bottom: 1px solid var(--color-border);   
}

th {
    font-weight: 600;
}

/* =========================
   Details
   ========================= */

.summary {
    cursor: pointer;
    font-weight: 500;
}

.details {
    border-bottom:1px solid var(--color-border);
    padding-block: .75rem;
}

.details-content {
    margin-top: .75rem;
}

/* =========================
   Cards
   ========================= */
   
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* =========================
   Adressen
   ========================= */

address {
    font-style: normal;
}

.address-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

/* =========================
   Bilder
   ========================= */

.heroimage {
    width: 100%;
    border-radius:var(--radius);
    margin-bottom: 2rem;
    /*
    aspect-ratio: 16 / 6;
    object-fit: cover;
    */
}

.contentimage {
    float: left;
    width: 10rem;
    border-radius:var(--radius);
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

/* =========================
   Hilfsklassen
   ========================= */

.left   { 
    text-align:left; 
}

.center { 
    text-align:center; 
}

.right  { 
    text-align:right; 
}

.active {
    text-decoration: underline;
    text-underline-offset: .25rem;
}

/* =========================
   Responsive
   ========================= */
   
@media (min-width: 1024px) {
    .nav-responsive {
        display: flex;
    }

    .nav-toggle-responsive {
        display: none;
    }
}

