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

:root {
    --bg-main: #d8d4cc;
    --bg-top: #f3f1ec;

    --surface: #fbfaf7;
    --surface-strong: #ffffff;
    --surface-header: #f3f1ec;

    --text: #4e5456;
    --text-soft: #6f7578;
    --headline: #2f3436;
    --link: #1f1f1f;
    --footer-link: #2f3436;

    --border: rgba(47, 52, 54, 0.10);
    --icon-border: rgba(47, 52, 54, 0.08);

    --shadow-soft: 0 16px 38px rgba(23, 32, 37, 0.10);
    --shadow-icon: 0 8px 18px rgba(23, 32, 37, 0.08);
    --shadow-icon-hover: 0 12px 24px rgba(23, 32, 37, 0.14);

    --radius: 22px;

    --content-max: 900px;
    --footer-max: 1200px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-top) 0 118px, var(--bg-main) 118px 100%);
    overflow-x: hidden;
    position: relative;
}

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

a {
    color: var(--link);
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

.site {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-art {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.page-art--top-right {
    top: 110px;
    right: 36px;
    width: 250px;
    height: 95px;
    background-image: url("../images/sys_Images/kacheln_0.png");
    opacity: 1;
}

.page-art--bottom-left {
    left: 120px;
    bottom: 40px;
    width: 240px;
    height: 220px;
    background-image: url("../images/sys_Images/kacheln_1.png");
    opacity: 1;
}

/* Logo-Leiste */
.brand-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: var(--surface-header);
}

.brand-bar__crop {
    width: min(100%, 560px);
    height: 108px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: var(--surface-header);
}

.brand-bar__logo {
    width: 560px;
    max-width: none;
    height: auto;
    display: block;
    transform: translateY(-170px);
}

.hero {
    width: 100%;
    text-align: center;
    padding: 10px 18px 28px;
}

.hero-kicker {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-soft);
}

h1,
h2 {
    margin: 0;
    color: var(--headline);
}

h1 {
    font-size: 2.4rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

h2 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.hero-text {
    max-width: 42rem;
    margin: 0 auto;
}

.content-band {
    width: 100%;
    padding: 0 18px 24px;
    flex: 1;
}

.content-grid {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.social-section {
    text-align: center;
}

.social-hint {
    margin-bottom: 14px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--icon-border);
    box-shadow: var(--shadow-icon);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-icon-hover);
}

.social-icons img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.site-footer {
    width: 100%;
    max-width: var(--footer-max);
    margin: 0 auto;
    padding: 8px 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.site-footer a {
    color: var(--footer-link);
    font-weight: 600;
    padding: 4px 8px;
}

.site--legal .hero {
    padding: 8px 18px 20px;
}

.site--legal h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.site--legal .hero-text {
    max-width: 32rem;
}

.site--legal .info-box {
    padding: 18px 18px;
}

.legal-box p + p {
    margin-top: 12px;
}

.site--legal .legal-box p {
    line-height: 1.55;
}

@media (min-width: 640px) {
    .brand-bar__crop {
        width: min(100%, 560px);
        height: 108px;
        background: var(--surface-header);
    }

    .brand-bar__logo {
        width: 640px;
        transform: translateY(-194px);
    }

    .hero {
        padding: 14px 24px 34px;
    }

    .content-band {
        padding: 0 24px 28px;
    }

    .site-footer {
        padding: 10px 24px 34px;
        flex-direction: row;
        justify-content: center;
        gap: 18px;
    }

    h1 {
        font-size: 3.1rem;
    }
}

@media (min-width: 900px) {
.brand-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: var(--surface-header);
    overflow: hidden;
}

.brand-bar__crop {
    width: 100%;
    max-width: 420px;
    height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;

-webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
);
mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
);
}

.brand-bar__logo {
    width: 420px;
    max-width: none;
    height: auto;
    display: block;
    transform: translateY(-112px);
}

    .hero {
        padding: 16px 40px 44px;
    }

    .hero-kicker {
        margin: 0 0 10px;
        font-size: 1rem;
        line-height: 1.5;
        color: var(--text-soft);
    }

    h1 {
        font-size: 4.2rem;
    }

    p {
        font-size: 1.08rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 22px;
        max-width: 900px;
    }

    .info-box {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 20px 18px;
        box-shadow: var(--shadow-soft);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .social-icons a {
        width: 60px;
        height: 60px;
    }

    .social-icons img {
        width: 30px;
        height: 30px;
    }

    .site-footer {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 8px 18px 28px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: auto;
    }

    .page-art--top-right {
        top: -90px;
        right: -200px;
        width: 900px;
        height: 900px;
        background-image: url("../images/sys_Images/kacheln_1.png");
        background-position: top right;
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 1;
    }

    .page-art--bottom-left {
        left: 30%;
        bottom: -590px;
        width: 1500px;
        height: 1500px;
        background-image: url("../images/sys_Images/kacheln_0.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        opacity: 1;
        transform: translateX(-50%) scaleX(-1);
    }
}

@media (max-width: 899px) {
    .page-art--top-right {
        top: 60px;
        right: 16px;
        width: 180px;
        height: 90px;
        opacity: 1;
    }

    .page-art--bottom-left {
        left: 20px;
        bottom: 20px;
        width: 180px;
        height: 160px;
        opacity: 1;
    }

    .page-art--bottom-right {
        right: 20px;
        bottom: 16px;
        width: 120px;
        height: 50px;
        opacity: 1;
    }
}