:root {
    --bg: #fff;
    --bg2: #f2f2f2;
    --ink: #000;
    --mute: #595959;
    --line: #d9d9d9;
    --acc: #1f5f4a;
    --acc-ink: #fff;
    --panel: #000;
    --panel-ink: #fff;
    --logo-filter: none;
    --e: cubic-bezier(.2, .7, .1, 1);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media(prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b0b0b;
        --bg2: #151515;
        --ink: #fff;
        --mute: #a9a9a9;
        --line: #2c2c2c;
        --acc: #52b393;
        --acc-ink: #000;
        --panel: #1a1a1a;
        --logo-filter: invert(1)
    }
}

:root[data-theme="dark"] {
    --bg: #0b0b0b;
    --bg2: #151515;
    --ink: #fff;
    --mute: #a9a9a9;
    --line: #2c2c2c;
    --acc: #52b393;
    --acc-ink: #000;
    --panel: #1a1a1a;
    --logo-filter: invert(1)
}

*,
*::before,
*::after {
    box-sizing: inherit
}

html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px)
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif
}

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

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--acc);
    outline-offset: 3px
}

.wrap {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto
}

h1,
h2,
h3,
.brand b {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 700;
    margin: 0
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    line-height: 1.15
}

h3 {
    font-size: 1.4rem
}

.mute {
    color: var(--mute)
}

/* Intro-Vorhang (einmal pro Sitzung) */
#cur {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    background: #000;
    color: #fff;
    transition: transform 1s var(--e)
}

#cur img {
    height: 120px;
    filter: invert(1);
    animation: in 1s var(--e) both
}

#cur span {
    font: 700 1.4rem "Playfair Display", Georgia, serif;
    animation: in 1s .15s var(--e) both
}

#cur.go {
    transform: translateY(-100%)
}

@keyframes in {
    from {
        opacity: 0;
        transform: translateY(16px)
    }
}

#bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--acc);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 60
}

/* Kopfzeile */
.top {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transition: transform .35s var(--e)
}

.top.hide {
    transform: translateY(-110%)
}

.hd {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .55rem 0
}

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

.brand img {
    height: 52px;
    width: auto;
    filter: var(--logo-filter)
}

.brand b {
    font-size: 1.15rem;
    display: none
}

nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .45s var(--e), visibility .45s
}

nav.open {
    clip-path: inset(0);
    visibility: visible
}

nav a {
    padding: .8rem 0;
    font: 700 1.5rem "Playfair Display", Georgia, serif;
    text-decoration: none;
    border-bottom: 1px solid var(--line)
}

.lk {
    background: linear-gradient(currentColor, currentColor) 0 100%/0 2px no-repeat;
    transition: background-size .3s var(--e)
}

.lk:hover,
nav a[aria-current] {
    background-size: 100% 2px
}

#burger {
    width: 48px;
    height: 48px;
    border: 2px solid var(--ink);
    border-radius: 4px;
    background: none;
    color: var(--ink);
    display: grid;
    place-content: center;
    gap: 6px;
    cursor: pointer
}

#burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform .3s var(--e)
}

#burger[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg)
}

#burger[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg)
}

.hcta {
    display: none
}

@media(min-width:560px) {
    .brand b {
        display: block
    }
}

@media(min-width:960px) {
    nav {
        position: static;
        display: flex;
        gap: 2rem;
        padding: 0;
        border: 0;
        clip-path: none;
        visibility: visible;
        background: none
    }

    nav a {
        padding: .3rem 0;
        font: 500 1rem "Instrument Sans", system-ui, sans-serif;
        border: 0;
        color: var(--mute);
        background-position: 0 100%
    }

    nav a:hover,
    nav a[aria-current] {
        color: var(--ink)
    }

    #burger {
        display: none
    }

    .hcta {
        display: inline-flex
    }
}

/* Buttons */
.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .7rem 1.4rem;
    border: 2px solid var(--ink);
    border-radius: 4px;
    font: 600 1rem inherit;
    font-family: inherit;
    text-decoration: none;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    transition: color .3s, border-color .3s
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    transform: translateX(-101%);
    transition: transform .4s var(--e)
}

.btn:hover {
    color: var(--bg)
}

.btn:hover::before {
    transform: none
}

.btn.pri {
    background: var(--acc);
    border-color: var(--acc);
    color: var(--acc-ink)
}

.btn.pri:hover {
    border-color: var(--ink);
    color: var(--bg)
}

.hcta {
    min-height: 44px;
    padding: .5rem 1.1rem
}

/* Animationen */
.rv {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--e), transform .8s var(--e);
    transition-delay: var(--d, 0s)
}

.rv.in {
    opacity: 1;
    transform: none
}

h1.rv,
.ph.rv,
.sky.rv {
    opacity: 1;
    transform: none
}

.ln {
    display: block;
    overflow: hidden;
    line-height: 1.15
}

.ln+.ln {
    border-top: 2px solid var(--ink)
}

.ln i {
    display: block;
    font-style: normal;
    transform: translateY(110%);
    transition: transform 1s var(--e)
}

.in .ln:nth-child(2) i {
    transition-delay: .12s
}

.in .ln:nth-child(3) i {
    transition-delay: .24s
}

.in .ln i {
    transform: none
}

.ph {
    position: relative;
    overflow: hidden;
    border-radius: 4px
}

.ph::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--line);
    transform-origin: top;
    transition: transform 1.1s var(--e);
    transition-delay: var(--d, 0s);
    pointer-events: none
}

.ph.in::after {
    transform: scaleY(0)
}

.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.25);
    transition: transform 1.6s var(--e)
}

.ph.in img {
    transform: none
}

.sky {
    display: block;
    width: 100%;
    height: 56px;
    color: var(--ink)
}

.sky path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    vector-effect: non-scaling-stroke;
    transition: stroke-dashoffset 2.4s var(--e)
}

.sky.in path {
    stroke-dashoffset: 0
}

main {
    transition: opacity .22s, transform .22s
}

main.out {
    opacity: 0;
    transform: translateY(10px)
}

.mq {
    overflow: hidden;
    border-block: 2px solid var(--ink);
    padding: 1rem 0
}

.mq div {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    width: max-content;
    animation: mq 40s linear infinite
}

.mq:hover div {
    animation-play-state: paused
}

.mq span {
    font: 700 clamp(1.6rem, 4vw, 2.4rem) "Playfair Display", Georgia, serif;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink)
}

.mq i {
    width: .7rem;
    height: .7rem;
    background: var(--acc);
    transform: rotate(45deg)
}

@keyframes mq {
    to {
        transform: translateX(-50%)
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    .rv {
        opacity: 1 !important;
        transform: none !important
    }

    .ln i {
        transform: none !important
    }

    .ph::after {
        display: none
    }

    .ph img {
        transform: none !important
    }

    .sky path {
        stroke-dashoffset: 0
    }

    #cur {
        display: none
    }
}

/* Seiten */
.sec {
    padding: 4rem 0
}

.head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem
}

.pagehd {
    padding: 3.5rem 0 2.75rem;
    background: var(--bg2);
    border-bottom: 1px solid var(--line)
}

.pagehd h1 {
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    line-height: 1.1
}

.pagehd p {
    max-width: 36rem;
    margin: 1.25rem 0 0;
    font-size: 1.1rem
}

.hero {
    background: var(--bg2);
    border-bottom: 1px solid var(--line)
}

.hg {
    display: grid;
    gap: 2rem;
    padding: 2.5rem 0 3rem
}

.tag {
    margin: 0 0 1rem;
    font-weight: 500;
    font-size: 1.05rem
}

.hero h1 {
    font-size: clamp(2.5rem, 9.5vw, 5.2rem);
    line-height: 1.1;
    letter-spacing: -.01em
}

.lead {
    max-width: 34rem;
    margin: 1.5rem 0 1.75rem;
    font-size: 1.125rem
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem
}

.px {
    will-change: transform
}

.hero .ph {
    aspect-ratio: 5/4
}

.hero .ph img {
    object-position: 35% 55%
}

@media(min-width:900px) {
    .hg {
        grid-template-columns: 1.05fr 1fr;
        align-items: center;
        gap: 3.5rem;
        padding: 4rem 0 4.5rem
    }

    .hero .ph {
        aspect-ratio: 4/5
    }
}

.pns {
    display: grid;
    gap: 1.5rem
}

.pn {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden
}

.pn .ph {
    border-radius: 0;
    aspect-ratio: 16/9
}

.pn>div {
    padding: 1.5rem 1.5rem 1.75rem
}

.pn h3 {
    margin-bottom: 1rem
}

.pn ul {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0
}

.pn li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .65rem 0;
    border-top: 1px solid var(--line);
    font-weight: 500
}

.pn li::before {
    content: "";
    flex: none;
    width: .45rem;
    height: .85rem;
    margin: 0 .25rem .25rem .1rem;
    border: solid var(--acc);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg)
}

.more {
    font-weight: 600;
    text-decoration: none
}

@media(min-width:760px) {
    .pns {
        grid-template-columns: 1fr 1fr
    }
}

.grp {
    display: grid;
    gap: 1.5rem;
    padding: 3rem 0;
    border-top: 2px solid var(--ink)
}

.grp aside .ph {
    margin-top: 1.25rem;
    aspect-ratio: 16/10
}

.row {
    position: relative;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    transition: padding .35s var(--e)
}

.row::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    height: 2px;
    width: 0;
    background: var(--acc);
    transition: width .5s var(--e)
}

.row:hover::before {
    width: 100%
}

.row:hover {
    padding-left: .9rem
}

.row h3 {
    margin: 0 0 .25rem
}

.row p {
    margin: 0
}

@media(min-width:900px) {
    .grp {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem
    }

    .grp aside>div {
        position: sticky;
        top: 100px
    }
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.chips button {
    min-height: 44px;
    padding: .4rem 1.1rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: none;
    color: var(--ink);
    font: 600 .95rem inherit;
    font-family: inherit;
    cursor: pointer;
    transition: background .25s, color .25s
}

.chips button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--bg)
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem
}

.grid figure {
    margin: 0
}

.grid figure[hidden] {
    display: none
}

.grid figure.sh {
    animation: pop .45s var(--e)
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(.95)
    }
}

.grid button {
    all: unset;
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
    background: var(--line)
}

.grid button:focus-visible {
    outline: 3px solid var(--acc);
    outline-offset: 3px
}

.grid img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform .8s var(--e)
}

.grid button:hover img {
    transform: scale(1.07)
}

.grid figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem .8rem .7rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    transform: translateY(40%);
    opacity: .0;
    transition: transform .45s var(--e), opacity .45s
}

.grid button:hover figcaption,
.grid button:focus-visible figcaption {
    transform: none;
    opacity: 1
}

@media(hover:none) {
    .grid figcaption {
        transform: none;
        opacity: 1
    }
}

@media(min-width:700px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem
    }
}

@media(min-width:1000px) {
    .grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

.teaser {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem
}

.teaser .ph {
    aspect-ratio: 4/5;
    display: block
}

@media(min-width:800px) {
    .teaser {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem
    }
}

dialog {
    border: 0;
    padding: 0;
    background: transparent;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    max-height: 100vh;
    color: #fff
}

dialog::backdrop {
    background: rgba(0, 0, 0, .93)
}

.lbx {
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .75rem;
    padding: 1rem
}

.lbx img {
    max-height: 78vh;
    max-width: 100%;
    border-radius: 4px
}

.lbx button {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer
}

.lbx .x {
    top: 1rem;
    right: 1rem
}

.lbx .p {
    left: 1rem;
    top: 50%
}

.lbx .n {
    right: 1rem;
    top: 50%
}

.band {
    background: var(--panel);
    color: var(--panel-ink);
    padding: 4rem 0
}

.band .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem
}

.band h2 {
    max-width: 30rem
}

.band .btn {
    border-color: #fff;
    color: #fff
}

.band .btn::before {
    background: #fff
}

.band .btn:hover {
    color: #000
}

.two {
    display: grid;
    gap: 2.5rem
}

@media(min-width:900px) {
    .two {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start
    }
}

.two p {
    max-width: 34rem
}

.steps {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
    counter-reset: s
}

.steps li {
    list-style: none;
    counter-increment: s;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 4px
}

.steps li::before {
    content: counter(s);
    display: block;
    margin-bottom: .5rem;
    font: 700 2.2rem "Playfair Display", Georgia, serif;
    color: var(--acc)
}

.steps b {
    display: block;
    font-size: 1.1rem
}

@media(min-width:800px) {
    .steps {
        grid-template-columns: repeat(3, 1fr)
    }
}

.cc {
    display: block;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    text-decoration: none;
    transition: border-color .25s, transform .35s var(--e)
}

.cc:hover {
    border-color: var(--acc);
    transform: translateX(6px)
}

.cc small {
    display: block;
    color: var(--mute)
}

.cc strong {
    font-size: 1.25rem;
    overflow-wrap: anywhere
}

form {
    display: grid;
    gap: 1rem
}

label {
    display: grid;
    gap: .35rem;
    font-weight: 500
}

input,
select,
textarea {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid var(--mute);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
    font: inherit
}

textarea {
    min-height: 140px;
    resize: vertical
}

.legal h2 {
    font-size: 1.4rem;
    margin: 2rem 0 .5rem
}

footer {
    border-top: 2px solid var(--ink);
    padding: 3rem 0 2rem
}

.fg {
    display: grid;
    gap: 2rem
}

.fg img {
    height: 72px;
    width: auto;
    filter: var(--logo-filter)
}

.fg h4 {
    margin: 0 0 .6rem;
    font-size: 1rem
}

.fg a {
    display: block;
    padding: .2rem 0;
    text-decoration: none;
    color: var(--mute)
}

.fg a:hover {
    color: var(--ink)
}

.fg p {
    margin: 0
}

.copy {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--mute);
    font-size: .9rem
}

@media(min-width:800px) {
    .fg {
        grid-template-columns: 1.2fr 1fr 1fr 1fr 1.1fr
    }
}

#totop {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--acc);
    color: var(--acc-ink);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .3s, transform .4s var(--e);
    z-index: 40
}

#totop.on {
    opacity: 1;
    transform: none;
    pointer-events: auto
}
.wa-float {
    position: fixed;
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 40;
    transition: transform 0.3s var(--e), filter 0.3s;
}
.wa-float:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}
.wa-float svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

/* v2: Bauplan-Raster, große R, Spalten, FAQ */
.hero{background:var(--bg2) radial-gradient(var(--line) 1.3px,transparent 1.4px) 0 0/24px 24px}
.alt{background:var(--bg2);border-block:1px solid var(--line)}
.lede{margin:0;font:700 clamp(1.6rem,4.2vw,2.5rem)/1.25 "Playfair Display",Georgia,serif;max-width:none}
.pils{display:grid;gap:0}
.pil{display:grid;grid-template-columns:auto 1fr;column-gap:1.5rem;padding:2rem 0;border-top:2px solid var(--ink)}
.pil .R{grid-row:1/5;font:700 clamp(5rem,18vw,9rem)/.8 "Playfair Display",Georgia,serif;color:transparent;-webkit-text-stroke:2px var(--ink);transition:color .5s var(--e)}
.pil:hover .R{color:var(--acc);-webkit-text-stroke-color:var(--acc)}
.pil p{margin:.5rem 0 1rem;max-width:34rem}
.pil ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.pil li{padding:.25rem .8rem;border:1px solid var(--line);border-radius:99px;font-size:.9rem;background:var(--bg)}
@media(min-width:900px){.pils{grid-template-columns:repeat(3,1fr);gap:2rem}.pil{display:block}.pil .R{display:block;margin-bottom:1.25rem}}
.cols{display:grid;gap:1.5rem}.cols>div{padding-left:1.1rem;border-left:3px solid var(--acc)}.cols p{margin:.4rem 0 0}
@media(min-width:760px){.cols{grid-template-columns:repeat(2,1fr)}.cols.c3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1000px){.cols{grid-template-columns:repeat(4,1fr)}.cols.c3{grid-template-columns:repeat(3,1fr)}.steps.s4{grid-template-columns:repeat(4,1fr)}}
.faq h2{margin-bottom:1.5rem}.faq details{border-top:1px solid var(--line);padding:.2rem 0}.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{display:flex;justify-content:space-between;gap:1rem;align-items:center;min-height:56px;font-weight:600;font-size:1.1rem;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.6rem;color:var(--acc);transition:transform .35s var(--e)}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{margin:0 0 1.2rem;max-width:40rem;animation:in .5s var(--e)}
