@CHARSET "UTF-8";
/* ========= Grundfarben & Variablen ========= */
:root {
    --color-primary: hsl(210, 60%, 25%);
    --color-accent: hsl(210, 60%, 25%, 0.75);
    --color-bg: hsl(210, 60%, 25%, 0.05);
    --color-text: hsl(0, 0%, 15%);
    --color-nav: hsl(0, 0%, 98%);
    --color-footer: var(--color-nav);
    --color-nav-accent: hsl(160, 35%, 45%, 0.55);
    --color-nav-border-bottom: hsl(160, 35%, 45%);
    --color-logo-highlight: hsl(210, 60%, 25%);
    --color-logo: var(--color-nav);
    
    /* ======== Logo ==========*/
    --color-logo-border: hsl(160, 35%, 45%);
    --border-thickness: 0.25em;

    /* ======= Header ========*/
    --color-bg-header: hsla(210, 60%, 25%, 85%);

    /* ======= Font, spaces ========*/
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --radius: 0.25rem;

    /* ======= List icons ========*/
    --list-icon-tel-bright: url(/images/icon_tel.png);
    --list-icon-fax-bright: url(/images/icon_fax.png);
    --list-icon-email-bright: url(/images/icon_email.png);
    --list-icon-tel-dark: url(/images/icon_tel_dark.png);
    --list-icon-fax-dark: url(/images/icon_fax_dark.png);
    --list-icon-email-dark: url(/images/icon_email_dark.png);
    
    /* ======= List icons ========*/
    --list-icon-tel: var(--list-icon-tel-bright);
    --list-icon-fax: var(--list-icon-fax-bright);
    --list-icon-email: var(--list-icon-email-bright);
    
}

/* ========= Dark Mode (automatisch + optional) ========= */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: hsl(160, 35%, 45%);
        --color-accent:  hsl(160, 35%, 45%, 0.75);
        --color-bg: hsl(210, 60%, 15%, 0.95);
        --color-text: hsl(0, 0%, 98%);

        /* ======= List icons ========*/
        --list-icon-tel: var(--list-icon-tel-dark);
        --list-icon-fax: var(--list-icon-fax-dark);
        --list-icon-email: var(--list-icon-email-dark);
    }
}

/* ========= Basiselemente ========= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    margin-top: max(12vh,6rem);
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}
a {
    text-decoration: none;
    /*color: var(--color-text);*/
}
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--space-xs) var(--space-s);
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

.logo {

    margin: 0;
    color: var(--color-logo);
    
    & table {
        border-collapse: collapse;
        & td {
            padding: 0 0.2em;
        }
        & .highlight {
            color: var(--color-logo-highlight);
            font-size: 1.5em;
            font-weight: bold;
            padding: 0 0.1em;
            background-color: white;
            border-radius: 0.1em;
            margin: 0 0.1em;
        }

        & .border-radius{
            border-radius: 0.1em;
        }
        & .border-top {
            border-top: var(--border-thickness) solid var(--color-logo-border);
        }
        & .border-bottom {
            border-bottom: var(--border-thickness) solid var(--color-logo-border);
        }
        & .border-right {
            border-right: var(--border-thickness) solid var(--color-logo-border);
        }
        & .border-left {
            border-left: var(--border-thickness) solid var(--color-logo-border);
        }
    }
}

/* ========= Header ========= */
header {
    position: fixed;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 1.4em;
    padding: var(--space-xs);
    background-color: var(--color-bg-header);
    backdrop-filter: blur(3px);
    min-height: 12vh;
    max-height: 6rem;
    top: 0;
    left: 0;

    & .logo {
        font-size: 0.7em;
        min-width: fit-content;
    }
}

/* ========= Navigation ========= */
.hamburger{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4em;
    background: none;
    border: none;

    & svg {
        stroke: var(--color-nav);
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }
    & .hamburger_lineX{
        stroke-width: 0;
    }
}
.hamburger-open{
    .hamburger_line{
        stroke-width: 0;
    }
    .hamburger_lineX{
        stroke-width: 2;
    }
}
nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
    margin: 0;

    & ul {
        display: none;
        list-style: none;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
        padding-right: 1em;
    }

    & .navigation-list-open {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        font-size: 0.9em;
    }

    & a {
        text-decoration: none;
        font-weight: bold;
        color: var(--color-nav);
    }

    & a:focus,
        & a:hover {
        color: var(--color-nav-accent);
        border-bottom: 0.2em solid var(--color-nav-accent);
    }

}
[aria-current="page"]{
    border-bottom: 0.2em solid var(--color-nav-border-bottom);
}

@media all and (min-width: 50em) {
    .hamburger{
        display: none;
    }
    header {
        align-items: center;
    }
    nav{
        & ul{
            position: static;
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: var(--space-s);
            backdrop-filter: none;

            & li {
                margin: 0;
            }
        }
    }

}

/* ========= Hauptinhalt ========= */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;

    /*    & .first{
            margin-top: 12vh;
        }*/
    & section {
        padding: 1em;
    }
    & a {
        color: var(--color-text);
    }

}

h1, h2 {
    line-height: 1.3;
}

h2 {
    color: var(--color-primary);
    border-bottom: 0.2rem solid var(--color-primary);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-s);
}

p, li {
    margin-bottom: var(--space-s);
}

.info ul {
    padding-left: 0;
    list-style-type: none;

    & li {
        background-size: contain;
        background-repeat: no-repeat;
    }

    & li.tel {
        padding-left: 2em;
        background-image: var(--list-icon-tel);
    }
    & li.fax {
        padding-left: 2em;
        background-image: var(--list-icon-fax);
    }
    & li.email {
        padding-left: 2em;
        background-image: var(--list-icon-email);
    }
}

#impressum a,
#datenschutz a {
    text-decoration: underline;
}
.image-wrapper {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.intro{
    background-image: url("/images/header.svg");
/*    background-image: url("/images/intro_peter.webp");*/
    #intro-heading{
        color: var(--color-text);
    }
}

.leistungen {
    & ul {
        display: flex;
        padding: 0;
        align-items: flex-start;
        justify-content: center;
        flex-wrap: wrap;
    }
    & li {
        list-style-type: none;
        font-size: 1.3em;
        width: 20ch;
        display: grid;
        justify-items: center;

        & p {
            text-align: center;
            margin: 1rem auto;
        }

        & img {
            height: 2.5em;
        }
    }
}
/* ========= Buttons ========= */
.button {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: var(--space-xs) var(--space-m);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.button:hover,
.button:focus {
    background: var(--color-primary);
}

/* ========= Footer ========= */
footer {
    display: flex;
    flex-direction: column;
    gap: 1em;
    background: var(--color-bg-header);
    color: var(--color-footer);
    padding: var(--space-s);
    font-size: 0.9rem;

    & .logo {
        margin-top: 1.5em;
    }
    & a {
        color: var(--color-footer);
    }
    & .info {
    & li.tel {
        background-image: var(--list-icon-tel-dark);
    }
    & li.fax {
        background-image: var(--list-icon-fax-dark);
    }
    & li.email {
        background-image: var(--list-icon-email-dark);
    }

    }
}

/* ========= Responsive Design ========= */
@media (min-width: 50em) {
    main {
        align-items: center;
        & section {
            width: 50em;
        }
    }
    .leistungen {
        & ul {
            justify-content: flex-start;
        }
    }
    h1 {
        font-size: 2rem;
    }

    footer {
        flex-direction: row;
        gap: 2.5em;
        justify-content: center;
    }
}
