:root {
    --rot:#c72121;
    --dunkel:#842020;
    --gelb:#ffe16b;
    --creme:#fff8df;
    --text:#382c20
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:100px
}

body {
    margin:0;
    background:var(--creme);
    color:var(--text);
    font:16px/1.55 Arial,Helvetica,sans-serif
}

a {
    color:inherit
}

a:focus-visible,button:focus-visible,#vorhang:focus-visible,summary:focus-visible {
    outline:3px solid #2365b5;
    outline-offset:3px
}

.skip {
    position:absolute;
    left:-9999px
}

.skip:focus {
    left:15px;
    top:15px;
    z-index:200;
    background:white;
    padding:10px
}

header {
    position:sticky;
    top:0;
    z-index:5;
    background:#fff8e8ee;
    border-bottom:3px solid var(--rot);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:14px 4%;
    flex-wrap:wrap;
    backdrop-filter:blur(8px)
}

header .logo {
    font-size:24px;
    color:var(--rot);
    font-weight:900;
    text-decoration:none
}

nav {
    display:flex;
    gap:20px;
    flex-wrap:wrap
}

nav a {
    font-weight:bold;
    text-decoration:none
}

nav a:hover {
    color:var(--rot)
}

#zurueck {
    border:2px solid var(--rot);
    border-radius:25px;
    background:white;
    color:var(--rot);
    font-weight:bold;
    padding:8px 13px;
    cursor:pointer
}

.hero {
    background:linear-gradient(115deg,#fff7d4,#ffe076);
    border-bottom:6px solid var(--rot);
    padding:90px max(24px,calc((100vw - 1120px)/2))
}

.kicker {
    color:var(--rot);
    font-size:12px;
    font-weight:900;
    letter-spacing:2px
}

.hero h1 {
    font-size:clamp(42px,6vw,76px);
    line-height:1.1;
    letter-spacing:-2px;
    margin:15px 0
}

.hero h1 em {
    font-style:normal;
    color:var(--rot)
}

.hero>p:not(.kicker) {
    max-width:640px;
    font-size:20px
}

.btn {
    display:inline-block;
    border-radius:28px;
    padding:13px 23px;
    text-decoration:none;
    font-weight:bold;
    margin:10px 8px 0 0
}

.btn.rot {
    background:var(--rot);
    color:white
}

.btn.hell {
    background:white;
    color:var(--rot);
    border:2px solid var(--rot)
}

.btn.weiss {
    background:white;
    color:var(--rot)
}

.bereich {
    max-width:1170px;
    margin:auto;
    padding:75px 25px
}

.bereich h2,.demo h2,.kontakt h2 {
    font-size:clamp(30px,4vw,45px);
    line-height:1.2;
    margin:8px 0 15px
}

.bereich#funktionen {
    text-align:center
}

.intro {
    max-width:700px;
    margin:0 auto 45px;
    color:#6a5946
}

.raster {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:32px 15px
}

.raster>a {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-decoration:none;
    border-radius:18px;
    padding:12px;
    transition:transform .2s,background .2s
}

.raster>a:hover {
    background:#fff0bf;
    transform:translateY(-6px)
}

.raster b {
    color:var(--rot);
    font-size:20px;
    margin-top:15px
}

.raster small {
    color:#65523e
}

.kreis {
    width:min(100%,205px);
    aspect-ratio:1;
    border:8px solid var(--rot);
    border-radius:50%;
    background:radial-gradient(circle at 30% 20%,white,#fff7e3 60%,#fbdca2);
    box-shadow:0 8px 0 #a3212122,0 12px 22px #0002;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden
}

.chart {
    font-size:110px;
    color:var(--rot);
    font-weight:900;
    line-height:1
}

.zahl {
    background:#392e27;
    color:#ffde73;
    font:900 25px monospace;
    padding:8px;
    border-radius:5px
}

.donut {
    width:112px;
    height:112px;
    border-radius:50%;
    background:conic-gradient(var(--rot) 0 40%,#f0b820 40% 76%,#4b8abd 76%);
    position:relative
}

.donut:after {
    content:'';
    position:absolute;
    inset:28px;
    background:#fff8e6;
    border-radius:50%
}

.details {
    padding-top:20px
}

.detailraster {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px
}

.detailraster article {
    background:white;
    border:1px solid #e6d3a2;
    border-left:5px solid var(--rot);
    border-radius:10px;
    padding:18px;
    scroll-margin-top:100px
}

.detailraster h3 {
    color:var(--rot);
    margin:0 0 6px
}

.detailraster p {
    margin:0
}

.demo {
    background:var(--rot);
    color:white;
    padding:60px max(24px,calc((100vw - 1120px)/2));
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px
}

.demo .kicker {
    color:var(--gelb)
}

.demo p {
    max-width:650px
}

.faq details {
    border-bottom:1px solid #dbc68e;
    padding:18px 0
}

.faq summary {
    cursor:pointer;
    font-weight:bold;
    font-size:18px
}

.kontakt {
    max-width:1120px;
    margin:20px auto 65px;
    text-align:center;
    background:#ffe995;
    border-radius:22px;
    padding:55px 24px
}

footer {
    background:#5b2d23;
    color:white;
    padding:24px 4%;
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
    font-size:13px
}

#vorhang {
    position:fixed;
    inset:0;
    z-index:100;
    background:#e9e1d3;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    box-shadow:16px 0 28px #0005;
    transition:transform 3.2s cubic-bezier(.75,0,.22,1),visibility 0s linear 3.2s
}

#vorhang.offen {
    transform:translateX(-105%);
    visibility:hidden;
    pointer-events:none
}

#vorhang .bild {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center
}

#vorhang img {
    position:relative;
    z-index:1;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center
}

#vorhang .fallback {
    position:absolute;
    inset:0;
    background:#e9e1d3;
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#b91b1b;
    font-size:70px;
    font-weight:900;
    text-align:center
}

#vorhang .fallback strong {
    font-size:clamp(36px,7vw,85px)
}

#vorhang .fallback span {
    font-size:clamp(18px,3vw,35px)
}

#vorhang .hinweis {
    position:absolute;
    z-index:3;
    bottom:25px;
    left:50%;
    transform:translateX(-50%);
    background:#b51b1beF;
    color:white;
    padding:10px 22px;
    border:2px solid var(--gelb);
    border-radius:40px;
    font-weight:bold;
    white-space:nowrap;
    box-shadow:0 5px 18px #0005
}

@media(max-width:800px) {
    header nav {
        order:3;
        width:100%;
        justify-content:center
    }
    .detailraster {
        grid-template-columns:repeat(2,1fr)
    }
    .demo {
        flex-direction:column;
        align-items:flex-start
    }
}

@media(max-width:530px) {
    .raster {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:15px 5px
    }
    .kreis {
        width:min(100%,155px);
        border-width:6px
    }
    .chart {
        font-size:80px
    }
    .raster b {
        font-size:16px
    }
    .raster small {
        font-size:12px
    }
    .detailraster {
        grid-template-columns:1fr
    }
    .hero h1 {
        letter-spacing:-1px
    }
    .kontakt {
        margin:20px 14px 50px
    }
    header nav {
        gap:13px
    }
    header nav a {
        font-size:13px
    }
    #vorhang .hinweis {
        font-size:12px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto
    }
    #vorhang {
        transition:none
    }
    .raster>a {
        transition:none
    }
}
