/* base.css */

/* Import der Farbvariablen aus dem Ordner assets/css/variables/ */
@import url('./variables/colors.css');

/* Globaler Reset und Box-Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* HTML-Grundregeln */
html {
    scroll-behavior: smooth;
}

/* Body-Grundregeln */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
        "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    color: #333333;
    background-color: #f1f1f1;
    line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #ffffff;
    }
}

/* Zustand: body.menu-open */
body.menu-open {
    overflow: hidden;
}

/* Standard-Link-Stile */
a {
    text-decoration: none;
    color: inherit;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Utility-Klasse: Versteckte Überschrift (für SEO oder Screenreader) */
.hidden-h1 {
    position: absolute;
    left: -9999px;
}

/* Globaler Container – seitenübergreifend verwendeter Wrapper */
#global-wrapper {
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    /* background-color: #fff; */
}

@media screen and (min-width: 1104px) {
    #global-wrapper {
        max-width: 1104px;
    }
}

:target {
    scroll-margin-top: 5.5rem;
}

/* Back-to-Top Button – global, falls auf allen Seiten genutzt */
#back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--color-default);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.12);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    filter: brightness(0.9);
}

#back-to-top:active {
    filter: brightness(0.9);
}

#back-to-top svg {
    width: 48px;
    height: 48px;
    pointer-events: none;
}

/* Basis-Stile für Bilder */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Basis-Stile für Listen */
ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
    margin: 0;
    padding: 0;
}

/* Kontakt Button – global, falls auf allen Seiten genutzt */
#kontakt {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;

    width: 148px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    border-radius: 24px;
    background: transparent;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.12);

    cursor: pointer;
    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease, transform 0.15s ease;
    z-index: 1000;
}

#kontakt.show {
    opacity: 1;
    pointer-events: auto;
}

#kontakt:active {
    transform: translateY(0);
}

#kontakt .kontakt-button {
    width: 100%;
    height: 100%;
}

#kontakt .button-bg {
    fill: var(--color-default);
    transition: fill 0.2s ease;
}

#kontakt .kontakt-button {
    color: #ffffff;
}