/* Design-System SecondFloor — einheitlich mit dem Formate-Abschnitt */
@font-face {
    font-family: "Glacial Indifference";
    src: url("assets/fonts/GlacialIndifference-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Glacial Indifference";
    src: url("assets/fonts/GlacialIndifference-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-macadamia: #FAF6EF;
    --color-logo-bg: #EEE5D6;
    --color-charcoal: #221E1A;
    --color-sand: #7A5640;
    --color-sand-hover: #634431;
    --color-cream: #EEE5D6;
    --color-oak: #E3D2B8;
    --color-stone: #7C7266;
    --color-line: #CFC2AE;
    --color-sun: #F2D79A;
    
    --font-heading: "Glacial Indifference", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Quicksand", "Helvetica Neue", Arial, sans-serif;
    --font-micro: "Quicksand", "Helvetica Neue", Arial, sans-serif;
    
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.25s ease;
}

@media (min-width: 993px) {
    html {
        scroll-padding-top: 7.8rem;
    }
    .navbar {
        padding: 1.05rem 0;
    }
    .navbar.scrolled {
        padding: 0.7rem 0;
    }
    .logo-img {
        width: 310px !important;
        max-height: 114px !important;
    }
    .navbar.scrolled .logo-img {
        width: 230px !important;
        max-height: 82px !important;
    }
    .nav-links {
        gap: 2.4rem;
    }
    .nav-link {
        font-size: 1.08rem;
    }
    .nav-links .btn-primary {
        font-size: 1rem;
        padding: 0.68rem 1.75rem;
    }
    .hero {
        padding-top: 8rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-macadamia);
    color: var(--color-charcoal);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
    font-size: 1.85rem;
    color: var(--color-sand);
    display: block;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

/* Glassmorphic Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.85rem 0;
    z-index: 100;
    transition: var(--transition-medium);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 246, 239, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: auto !important;
    width: 240px !important;
    max-height: 88px !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
    transition: var(--transition-medium) !important;
    flex-shrink: 0;
}

.navbar.scrolled .logo-img {
    max-height: 64px !important;
    width: 180px !important;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-style: normal;
    font-weight: 400;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-sand);
}

.nav-links .btn-primary {
    font-size: 0.9rem;
    padding: 0.55rem 1.45rem;
    white-space: nowrap;
}

/* Weiche Buttons ohne harte Konturen */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 2.15rem;
    background-color: var(--color-charcoal);
    color: var(--color-macadamia);
    text-decoration: none;
    font-family: var(--font-micro);
    font-size: 0.93rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 2rem;
    transition: var(--transition-medium);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 43, 42, 0.1);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2.15rem;
    background-color: transparent;
    color: var(--color-charcoal);
    text-decoration: none;
    font-family: var(--font-micro);
    font-size: 0.93rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--color-line);
    border-radius: 2rem;
    transition: var(--transition-medium);
}

.btn-secondary:hover {
    border-color: var(--color-charcoal);
    background-color: rgba(45, 43, 42, 0.02);
    transform: translateY(-2px);
}

/* Cozy Hero: mittig, etwas höher — klassische Startseite */
.hero {
    position: relative;
    height: 100svh;
    max-height: 100svh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 6.5rem 2.5rem 1.75rem;
    gap: 2.5rem;
    box-sizing: border-box;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 3;
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.4s;
    text-align: left;
}

.hero-tag {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(3rem, 5.2vw, 5.4rem);
    color: var(--color-charcoal);
    margin-bottom: 1.5rem;
    display: block;
    letter-spacing: -0.02em;
    line-height: 0.95;
}

.hero-title {
    font-size: clamp(3rem, 5.2vw, 5.4rem);
    line-height: 0.95;
    margin-bottom: 1.6rem;
    color: var(--color-charcoal);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.25vw, 1.22rem);
    margin-bottom: 2.4rem;
    color: var(--color-stone);
    opacity: 1;
    font-weight: 400;
    max-width: 38rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.15rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    padding: 0.95rem 2.4rem;
    font-size: 1rem;
}

.hero-visual {
    position: relative;
    flex: 0 1 46%;
    width: min(46%, 540px);
    max-width: 540px;
    height: min(68svh, 640px);
    margin: 0;
    overflow: visible;
    z-index: 1;
    align-self: center;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    background: var(--color-logo-bg);
    border: 1.4px solid var(--color-line);
    border-radius: 50% 50% 1.15rem 1.15rem / 28% 28% 1.15rem 1.15rem;
    box-shadow:
        inset 0 0 0 1px rgba(250, 246, 239, 0.65),
        0 22px 44px -32px rgba(34, 30, 26, 0.28);
}

.hero-slider__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0.7rem 0.7rem / 26% 26% 0.7rem 0.7rem;
    overflow: hidden;
    background-color: var(--color-cream);
    opacity: 0;
    transform: scale(0.99);
    animation: scaleIn 1.2s forwards 0.15s;
}

.hero-slider__viewport::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 18px 36px rgba(34, 30, 26, 0.1);
    background: linear-gradient(180deg, rgba(34, 30, 26, 0.08) 0%, transparent 22%, transparent 72%, rgba(34, 30, 26, 0.16) 100%);
}

.hero-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.hero-slide img,
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide:first-child img {
    object-position: 45% 60%;
}

.hero-slide:nth-child(2) img {
    object-position: 50% 65%;
}

.hero-slide:nth-child(3) img {
    object-position: 50% 45%;
}

.hero-slide__caption {
    position: absolute;
    left: 50%;
    bottom: 1.35rem;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-macadamia);
    text-shadow: 0 8px 24px rgba(34, 30, 26, 0.45);
    pointer-events: none;
    white-space: nowrap;
}

.hero-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 50%;
    background: rgba(250, 246, 239, 0.62);
    color: var(--color-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    transition: var(--transition-fast);
}

.hero-slider__btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.hero-slider__btn:hover,
.hero-slider__btn:focus-visible {
    background: var(--color-charcoal);
    color: var(--color-macadamia);
    outline: none;
}

.hero-slider__btn--prev { left: 0.85rem; }
.hero-slider__btn--next { right: 0.85rem; }

.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.hero-slider__dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(250, 246, 239, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-slider__dot.is-active {
    width: 1.15rem;
    background: var(--color-macadamia);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__track {
        transition: none;
    }
}

/* Space Section */
.space-section {
    padding: 8rem 0;
    background-color: var(--color-macadamia);
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

.space-text {
    max-width: 600px;
}

.section-title {
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--color-stone);
    opacity: 1;
    margin-bottom: 2rem;
}

.space-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.space-features li {
    font-size: 1rem;
    color: var(--color-stone);
    position: relative;
    padding-left: 2rem;
}

.space-features li::before {
    content: "·";
    position: absolute;
    left: 0.5rem;
    top: -0.2rem;
    font-size: 2.2rem;
    color: var(--color-sand);
    line-height: 1;
}

.space-features strong {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    display: block;
    color: var(--color-charcoal);
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

/* Seamless 2D Architectural SVG Plan Integration */
.sketch-card-seamless {
    background-color: transparent;
    padding: 0;
    width: 100%;
}

.sketch-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.sketch-intro {
    font-size: 1rem;
    color: var(--color-stone);
    opacity: 1;
    margin-bottom: 2rem;
}

.sketch-blend-container {
    background-color: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Veredeltes Gemini-SVG Style */
.sketch-svg-seamless {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    transition: var(--transition-medium);
}

.sketch-svg-seamless rect, 
.sketch-svg-seamless line {
    transition: all 0.4s ease;
}

/* Subtiler Interaktions-Effekt auf dem Grundriss */
.sketch-svg-seamless rect:hover {
    fill-opacity: 0.5;
    stroke: var(--color-sand);
}

.space-gallery {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.main-photo-card {
    border-radius: 0 0 10rem 10rem; /* Umgekehrt weicher Bogen */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    height: 380px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.main-photo-card:hover .gallery-img {
    transform: scale(1.04);
}

/* Focus Section */
.focus-section {
    padding: 8rem 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header-centered {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 4.5rem auto;
}

.section-header-centered .section-title {
    margin-bottom: 1.5rem;
}

.focus-section .section-header-centered {
    max-width: 1120px;
}

.focus-section .section-title {
    white-space: nowrap;
    font-size: clamp(2.1rem, 3.6vw, 3.35rem);
}

.focus-subline-main,
.focus-subline-extra {
    display: block;
}

.focus-subline-main {
    white-space: nowrap;
}

.focus-subline-extra {
    margin-top: 0.55rem;
}

.focus-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.focus-card {
    background-color: var(--color-cream);
    padding: 2.8rem 2.1rem 2.6rem;
    border-radius: 2.2rem;
    text-align: center;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.55s ease, background-color 0.45s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(215, 195, 179, 0.18);
}

.focus-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    background-color: var(--color-cream);
}

@media (hover: hover) {
    .focus-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 40px rgba(215, 195, 179, 0.22);
        background-color: var(--color-logo-bg);
    }

    .focus-card:hover .focus-icon-box {
        background-color: var(--color-macadamia);
        color: var(--color-sand);
        transform: scale(1.06);
    }
}

.focus-icon-box {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.6rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-macadamia);
    border-radius: 50%;
    color: var(--color-sand);
    transition: var(--transition-medium);
}

.focus-icon-box svg {
    width: 38px;
    height: 38px;
}

.focus-card h3 {
    font-size: 1.85rem;
    font-weight: 400;
    margin-bottom: 0.35rem;
    font-style: normal;
    line-height: 1.1;
}

.focus-card-tag {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.82rem;
    color: var(--color-stone);
    margin-bottom: 1.15rem !important;
    opacity: 1 !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em;
}

.focus-card p {
    font-size: 1rem;
    color: var(--color-stone);
    opacity: 1;
    font-weight: 400;
    line-height: 1.6;
}

.focus-service {
    margin-top: 3.2rem;
    background-color: var(--color-logo-bg);
    border-radius: 2rem;
    padding: 2.4rem 2.8rem;
    text-align: center;
    border: 1px solid rgba(215, 195, 179, 0.2);
}

.focus-service h3 {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.4rem;
}

.focus-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 2.5rem;
    text-align: left;
}

.focus-service-grid p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--color-stone);
    opacity: 1;
}

.focus-service-grid strong {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.93rem;
    color: var(--color-charcoal);
}

/* Calming Inquiry Form */
.contact-section {
    padding: 8rem 2.5rem;
    background-color: var(--color-macadamia);
}

.contact-card-container {
    max-width: 850px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 4.5rem;
    border-radius: 3rem;
    box-shadow: 0 20px 50px rgba(45, 43, 42, 0.02);
    border: 1px solid rgba(0,0,0,0.01);
    position: relative;
    overflow: hidden;
}

.contact-card-container.is-sent .contact-header,
.contact-card-container.is-sent .cozy-form {
    visibility: hidden;
    pointer-events: none;
}

.form-success {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2.5rem;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
}

.contact-card-container.is-sent .form-success,
.contact-card-container.is-sent .form-success[hidden] {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    animation: formSuccessIn 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.form-success__mark {
    position: relative;
    width: 7.5rem;
    margin-bottom: 1.2rem;
}

.form-success__mark .form-logo {
    width: 100%;
    margin: 0;
}

.form-success__badge {
    position: absolute;
    right: -0.9rem;
    bottom: -0.3rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #ffffff;
}

.form-success__ring {
    fill: none;
    stroke: var(--color-sand);
    stroke-width: 2.2;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
}

.form-success__check {
    fill: none;
    stroke: var(--color-charcoal);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
}

.contact-card-container.is-sent .form-success__ring {
    animation: formRing 0.7s ease forwards;
}

.contact-card-container.is-sent .form-success__ring {
    animation-delay: 0.55s;
}

.contact-card-container.is-sent .form-success__check {
    animation: formCheck 0.45s 1s ease forwards;
}

/* --- Logo baut sich mit dem Formular auf ------------------------------- */
.form-logo {
    display: block;
    width: 7rem;
    height: auto;
    margin: 0 auto 1.4rem;
    overflow: visible;
}

.fl-parts path,
.fl-ghost path {
    fill: none;
    stroke: var(--color-sand);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fl-ghost path {
    stroke: var(--color-line);
    opacity: 0.45;
}

.fl-parts .fl-frame,
.fl-parts .fl-sofa path,
.fl-parts .fl-plant path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    /* round caps would otherwise leave a dot at the start of an undrawn line */
    stroke-opacity: 0;
    transition: stroke-dashoffset 0.9s cubic-bezier(0.45, 0.05, 0.25, 1), stroke-opacity 0.15s linear;
}

.fl-parts .fl-frame { transition-duration: 1.3s; }
.fl-parts .fl-sofa path:nth-child(2) { transition-delay: 0.35s; }
.fl-parts .fl-sofa path:nth-child(3) { transition-delay: 0.5s; }
.fl-parts .fl-sofa path:nth-child(4) { transition-delay: 0.65s; }
.fl-parts .fl-plant path:nth-child(2) { transition-delay: 0.3s; }
.fl-parts .fl-plant path:nth-child(3) { transition-delay: 0.5s; }
.fl-parts .fl-plant path:nth-child(4) { transition-delay: 0.62s; }
.fl-parts .fl-plant path:nth-child(5) { transition-delay: 0.74s; }
.fl-parts .fl-plant path:nth-child(6) { transition-delay: 0.86s; }

.has-name .fl-parts .fl-frame,
.has-email .fl-parts .fl-sofa path,
.has-purpose .fl-parts .fl-plant path,
.form-logo--done .fl-parts path {
    stroke-dashoffset: 0;
    stroke-opacity: 1;
}

.fl-parts .fl-lamp {
    opacity: 0;
    transform-box: view-box;
    transform-origin: 60px 18px;
}

.has-message .fl-parts .fl-lamp,
.form-logo--done .fl-parts .fl-lamp {
    opacity: 1;
    animation: flLampDrop 1.1s cubic-bezier(0.25, 0.9, 0.3, 1) both;
}

.fl-bulb {
    transition: fill 0.6s ease;
}

.fl-glow {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.is-lit .fl-glow,
.form-logo--done .fl-glow {
    opacity: 1;
    animation: flGlow 2.6s ease-in-out 0.9s infinite alternate;
}

.is-lit .fl-parts .fl-bulb,
.form-logo--done .fl-parts .fl-bulb {
    fill: #FFE8A6;
}

@keyframes flLampDrop {
    0% { opacity: 0; transform: translateY(-30px); }
    45% { opacity: 1; transform: translateY(2px) rotate(0deg); }
    65% { transform: translateY(0) rotate(4deg); }
    82% { transform: rotate(-2deg); }
    100% { opacity: 1; transform: none; }
}

@keyframes flGlow {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .fl-parts .fl-frame,
    .fl-parts .fl-sofa path,
    .fl-parts .fl-plant path,
    .fl-glow {
        transition: none;
    }
    .has-message .fl-parts .fl-lamp,
    .form-logo--done .fl-parts .fl-lamp,
    .is-lit .fl-glow,
    .form-logo--done .fl-glow {
        animation: none;
    }
}

.form-success h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    color: var(--color-charcoal);
}

.form-success p {
    max-width: 32rem;
    margin: 0 0 1.8rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-stone);
}

@keyframes formSuccessIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes formRing {
    to { stroke-dashoffset: 0; }
}

@keyframes formCheck {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .contact-card-container.is-sent .form-success,
    .contact-card-container.is-sent .form-success__ring,
    .contact-card-container.is-sent .form-success__check {
        animation: none;
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

.contact-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.contact-header h2 {
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1rem;
    color: var(--color-stone);
    opacity: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cozy-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-stone);
    padding-left: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.1rem;
    border: 1px solid rgba(45, 43, 42, 0.08);
    border-radius: 1rem;
    background-color: var(--color-macadamia);
    font-family: var(--font-body);
    color: var(--color-charcoal);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-sand);
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(215, 195, 179, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232D2B2A' stroke-width='1.2'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
    cursor: pointer;
}

.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.93rem;
    color: var(--color-stone);
    min-height: 1.4em;
}

.form-status.is-ok {
    color: var(--color-sand);
}

.form-status.is-error {
    color: #8a3a32;
}

.submit-btn {
    width: 100%;
    padding: 1.1rem;
}

/* Cozy Footer */
.footer {
    background-color: var(--color-cream);
    padding: 5rem 2.5rem 3rem 2.5rem;
    border-top: 1px solid rgba(215, 195, 179, 0.15);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    max-width: 280px;
    text-align: center;
}

.footer-logo {
    height: auto;
    max-height: 140px;
    width: 280px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 0.35rem auto;
    display: block;
}

.footer-brand p {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.93rem;
    color: var(--color-stone);
    opacity: 1;
    margin: 0;
    text-align: center;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    justify-self: end;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--color-charcoal);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-style: normal;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-sand);
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-stone);
    opacity: 1;
}

.footer-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    max-width: none;
}

.footer-instagram-title {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin: 0 0 1.4rem 0;
    color: var(--color-charcoal);
    line-height: 1.1;
}

.footer-instagram-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.insta-polaroid {
    position: relative;
    margin: 0;
    width: 132px;
    height: 168px;
    padding: 0.55rem 0.55rem 1.1rem 0.55rem;
    background: #ffffff;
    border-radius: 0.35rem;
    box-shadow: 0 12px 28px rgba(45, 43, 42, 0.1);
    z-index: 1;
}

.insta-polaroid::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    width: 52px;
    height: 18px;
    background: rgba(250, 247, 242, 0.82);
    border: 1px solid rgba(215, 195, 179, 0.35);
    transform: translateX(-50%);
    box-shadow: 0 1px 3px rgba(45, 43, 42, 0.08);
}

.insta-polaroid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.insta-polaroid--left {
    transform: rotate(-8deg) translateY(8px);
}

.insta-polaroid--left::before {
    transform: translateX(-50%) rotate(4deg);
}

.insta-polaroid--right {
    transform: rotate(7deg) translateY(10px);
}

.insta-polaroid--right::before {
    transform: translateX(-50%) rotate(-5deg);
}

.insta-logo-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: var(--color-charcoal);
    border-radius: 1.35rem;
    transition: var(--transition-fast);
}

.insta-logo-link svg {
    width: 48px;
    height: 48px;
}

.insta-logo-link:hover {
    color: var(--color-sand);
    transform: scale(1.08);
}

/* Keyframe Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInUp {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Simple Responsive Rules */
@media (max-width: 992px) {
    html {
        scroll-padding-top: 10.5rem;
    }
    .navbar {
        padding: 0.45rem 0 0.55rem;
        background: rgba(250, 246, 239, 0.96);
    }
    .navbar.scrolled {
        padding: 0.3rem 0 0.45rem;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 0 1rem 0.15rem;
    }
    .brand-logo {
        width: 100%;
        justify-content: center;
    }
    .logo-img {
        height: auto !important;
        width: 200px !important;
        max-height: 72px !important;
        object-position: center center !important;
        margin: 0 auto;
    }
    .navbar.scrolled .logo-img {
        height: auto !important;
        width: 160px !important;
        max-height: 56px !important;
    }
    .nav-links {
        width: 100%;
        max-width: 560px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: nowrap;
        padding: 0.15rem 0 0;
    }
    .nav-link {
        font-size: 0.92rem;
    }
    .nav-links .btn-primary {
        font-size: 0.85rem;
        padding: 0.42rem 1rem;
        flex-shrink: 0;
    }
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto;
        max-height: none;
        min-height: auto;
        padding: 10.5rem 1.5rem 2.5rem;
        gap: 2rem;
        overflow: visible;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-right: 0;
        padding: 0 1.5rem 2rem 1.5rem;
        flex: none;
    }
    .hero-subtitle {
        max-width: 36rem;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        width: min(100%, 28.5rem);
        max-width: 28.5rem;
        height: min(48svh, 430px);
        min-height: 260px;
        flex: none;
        margin: 0.35rem auto 0;
    }
    .hero-slider {
        padding: 0.42rem;
    }
    .hero-slider__viewport {
        border-radius: 50% 50% 0.65rem 0.65rem / 26% 26% 0.65rem 0.65rem;
    }
    .hero-slider__btn {
        width: 2rem;
        height: 2rem;
    }
    .hero-slider__btn--prev { left: 0.7rem; }
    .hero-slider__btn--next { right: 0.7rem; }
    .hero-slide__caption {
        font-size: 1rem;
        bottom: 1.1rem;
    }
    .hero-slider__viewport::before {
        box-shadow: inset 0 14px 28px rgba(34, 30, 26, 0.1);
        background: linear-gradient(180deg, rgba(34, 30, 26, 0.08) 0%, transparent 22%, transparent 72%, rgba(34, 30, 26, 0.16) 100%);
    }
    .section-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .space-gallery {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    .focus-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .focus-section .section-title,
    .focus-subline-main {
        white-space: normal;
    }
    .focus-icon-box {
        width: 64px;
        height: 64px;
    }
    .focus-icon-box svg {
        width: 32px;
        height: 32px;
    }
    .focus-card {
        padding: 2.2rem 1.5rem 2rem;
    }
    .focus-service-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-card-container {
        padding: 2.5rem;
        border-radius: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 2.5rem;
    }
    .footer-meta {
        align-items: center;
        justify-self: center;
    }
}

/* Smartphone Mobile Optimization */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 3.9rem;
        scroll-padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
    }
    body {
        padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
    }
    .navbar {
        top: 0;
        padding: 0.35rem 0;
        background: rgba(250, 246, 239, 0.96);
        box-shadow: none;
    }
    .navbar.scrolled {
        padding: 0.25rem 0;
    }
    /* backdrop-filter would make the fixed bottom nav position relative to the navbar */
    .navbar,
    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .space-section {
        padding: 1.75rem 0 3.5rem;
    }
    .section-container {
        padding: 0 1.25rem;
        gap: 2.5rem;
    }
    .contact-section {
        padding: 1.75rem 0.9rem 3.5rem;
    }
    .contact-card-container {
        padding: 1.5rem 1.25rem;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0 0.75rem;
    }
    .logo-img {
        height: auto !important;
        width: 168px !important;
        max-height: 58px !important;
        object-position: center center !important;
    }
    .navbar.scrolled .logo-img {
        height: auto !important;
        width: 148px !important;
        max-height: 50px !important;
    }
    .nav-links {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        width: 100%;
        max-width: none;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        justify-items: stretch;
        gap: 0.4rem;
        flex-wrap: nowrap;
        padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
        background: rgba(250, 246, 239, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid var(--color-line);
        box-shadow: 0 -10px 28px rgba(34, 30, 26, 0.05);
    }
    .nav-link {
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.78rem;
        font-weight: 500;
        white-space: nowrap;
        padding: 0;
        min-height: 2.55rem;
        line-height: 1;
        letter-spacing: 0;
    }
    .btn-primary.nav-link, .nav-links .btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: none;
        flex: none;
        box-sizing: border-box;
        padding: 0 0.5rem;
        min-height: 2.55rem;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0;
        line-height: 1;
        white-space: nowrap;
        text-align: center;
        border-radius: 999px;
        box-shadow: none;
    }
    .nav-links .btn-primary:hover {
        transform: none;
        background-color: var(--color-charcoal);
        color: var(--color-macadamia);
        box-shadow: none;
    }
    .hero {
        /* fixed bottom nav overlays the viewport, so the hero ends above it */
        height: calc(100svh - 4.6rem - env(safe-area-inset-bottom, 0px));
        min-height: 540px;
        max-height: none;
        justify-content: flex-start;
        gap: 1rem;
        padding: 5.1rem 1rem 0.9rem;
    }
    .hero-content {
        padding: 0;
    }
    .hero-title {
        margin-bottom: 0.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    .hero-actions {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        flex: 0 1 auto;
        padding: 0.7rem 1rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .hero-visual {
        flex: 1 1 auto;
        /* narrower on short screens so the arch keeps a window-like proportion */
        width: min(100%, 24rem, max(14rem, calc((100svh - 30rem) * 1.15)));
        max-width: none;
        height: auto;
        min-height: 200px;
        max-height: 470px;
        margin: 0 auto;
    }
    .hero-slider {
        position: absolute;
        inset: 0;
        height: auto;
    }
    @media (max-height: 720px) {
        .hero {
            padding-top: 4.8rem;
            gap: 0.75rem;
        }
        .hero .hero-title {
            font-size: 1.95rem;
            margin-bottom: 0.55rem;
        }
        .hero-subtitle {
            font-size: 0.84rem;
            line-height: 1.45;
            margin-bottom: 0.75rem;
        }
        .hero-actions .btn-primary,
        .hero-actions .btn-secondary {
            padding: 0.6rem 0.95rem;
        }
    }
    .hero-slider__viewport {
        border-radius: 50% 50% 0.6rem 0.6rem / 26% 26% 0.6rem 0.6rem;
    }
    .hero-slider__btn--prev { left: 0.55rem; }
    .hero-slider__btn--next { right: 0.55rem; }
    .hero-title {
        font-size: clamp(2.1rem, 8.5vw, 3rem);
    }
    .section-title {
        font-size: clamp(2.1rem, 6vw, 2.8rem);
    }
    .contact-card-container {
        padding: 1.5rem;
    }
    .contact-header h2 {
        font-size: clamp(2.1rem, 6vw, 2.8rem);
    }
    .sketch-card-seamless svg {
        transform: scale(1);
    }
    
    /* Footer Centering for Mobile */
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 1rem auto;
    }
    .footer-instagram {
        gap: 0;
    }
    .footer-instagram-title {
        font-size: 1.25rem;
        margin-bottom: 1.1rem;
    }
    .insta-polaroid {
        width: 112px;
        height: 142px;
        padding: 0.45rem 0.45rem 0.95rem 0.45rem;
    }
    .insta-logo-link {
        width: 56px;
        height: 56px;
    }
    .insta-logo-link svg {
        width: 36px;
        height: 36px;
    }
}

/* =========================================
   Location Section (Anfahrt) - iframe version
   ========================================= */
.location-section {
    padding: 8rem 2.5rem;
    background-color: var(--color-logo-bg);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.location-text p {
    font-size: 1rem;
    color: var(--color-stone);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.address-details {
    padding-left: 1.5rem;
    border-left: 2px solid var(--color-sand);
}

.address-details p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-charcoal);
    margin: 0;
    line-height: 1.3;
}

.location-map {
    width: 100%;
}

.location-map-frame {
    width: 100%;
    max-width: calc(1000px + 3.5rem);
    margin: 0 auto;
    padding: 1.75rem;
    background-color: #ffffff;
    border-radius: 3rem;
    box-shadow: 0 20px 50px rgba(45, 43, 42, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.location-map-frame .map-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 3rem;
}

.location-map-frame iframe {
    border-radius: 3rem;
}

@media (max-width: 768px) {
    .location-map-frame {
        padding: 1.1rem;
        border-radius: 2rem;
    }
    .location-map-frame .map-container,
    .location-map-frame iframe {
        border-radius: 2rem;
    }
}

@media (max-width: 768px) {
    .location-section {
        padding: 1.75rem 1rem 3.5rem;
    }
    .location-section .section-header {
        margin-bottom: 1.25rem !important;
    }
    .location-section .section-desc {
        margin-bottom: 0.75rem !important;
    }
    .location-section .section-header img {
        height: 110px !important;
        margin-bottom: -0.4rem !important;
    }
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 1.25rem;
    }
}


/* secondfloor — Abschnitt Formate (sf-) */
.sf-formats {
  --sf-paper:  var(--color-macadamia);
  --sf-sand:   var(--color-cream);
  --sf-ink:    var(--color-charcoal);
  --sf-stone:  var(--color-stone);
  --sf-line:   var(--color-line);
  --sf-oak:    var(--color-oak);
  --sf-sage:   var(--color-sand);
  --sf-sun:    var(--color-sun);
  --sf-display: var(--font-heading);
  --sf-text: var(--font-body);

  background: var(--sf-sand);
  color: var(--sf-ink);
  font-family: var(--sf-text);
  font-size: 17px;
  line-height: 1.6;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  box-sizing: border-box;
}
.sf-formats *,
.sf-formats *::before,
.sf-formats *::after { box-sizing: border-box; }

.sf-inner { max-width: 1140px; margin: 0 auto; }

/* --- Kopf ---------------------------------------------------------------- */
.sf-head {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.sf-head h2 {
  font-family: var(--sf-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin: 0;
}
.sf-head h2 em { font-style: italic; }
.sf-head p {
  margin: 0;
  color: var(--sf-stone);
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 36rem;
}

@media (max-width: 880px) {
  .sf-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }
  .sf-head h2 { white-space: normal; }
}

/* --- Raster: Liste links, Grundriss rechts ------------------------------- */
.sf-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* --- Formatliste --------------------------------------------------------- */
.sf-list { display: flex; flex-direction: column; }

.sf-item {
  border-top: 1px solid var(--sf-line);
  padding: 0;
}
.sf-item:last-child { border-bottom: 1px solid var(--sf-line); }

.sf-tab {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.15rem 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.sf-tab:focus-visible {
  outline: 2px solid var(--sf-sage);
  outline-offset: 3px;
  border-radius: 2px;
}
.sf-tab__name {
  font-family: var(--sf-display);
  font-size: 1.85rem;
  line-height: 1.1;
  transition: color .25s ease;
}
.sf-tab__sub {
  margin-left: auto;
  font-size: .82rem;
  color: var(--sf-stone);
  letter-spacing: .02em;
  white-space: nowrap;
}
.sf-tab[aria-selected="true"] .sf-tab__name { color: var(--sf-sage); }
.sf-tab:hover .sf-tab__name { color: var(--sf-sage); }

/* Der aktive Eintrag klappt auf */
.sf-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.2,.7,.3,1);
}
.sf-item[data-open="true"] .sf-item__body { grid-template-rows: 1fr; }
.sf-item__inner { overflow: hidden; }
.sf-item__inner > div { padding-bottom: 1.6rem; }
.sf-item p {
  margin: 0 0 1rem;
  max-width: 42ch;
  color: var(--sf-stone);
}
.sf-fit {
  display: inline-block;
  font-family: var(--sf-display);
  font-size: 1.05rem;
  color: var(--sf-ink);
  border-bottom: 2px solid var(--sf-sun);
  padding-bottom: 2px;
}

/* --- Grundriss ----------------------------------------------------------- */
.sf-plan {
  position: sticky;
  top: 6.5rem;
  z-index: 4;
  scroll-margin-top: 6.5rem;
  background: var(--sf-sand);
}
.sf-plan svg { width: 100%; height: auto; display: block; }

.sf-layer { opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.sf-formats[data-mode="bewegung"] .sf-layer--bewegung,
.sf-formats[data-mode="workshop"] .sf-layer--workshop,
.sf-formats[data-mode="buehne"]   .sf-layer--buehne { opacity: 1; }

.sf-mat, .sf-piece { transition: transform .5s cubic-bezier(.2,.7,.3,1); transform-box: fill-box; transform-origin: center; }
.sf-layer:not([style]) .sf-mat { }
.sf-formats:not([data-mode="bewegung"]) .sf-layer--bewegung .sf-mat { transform: scaleX(.55); }
.sf-formats:not([data-mode="workshop"]) .sf-layer--workshop .sf-piece { transform: scale(.7); }

.sf-caption {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: .4rem 1.4rem;
  font-size: .85rem;
  color: var(--sf-stone);
}
.sf-caption b { font-weight: 500; color: var(--sf-ink); }

/* --- Immer dabei --------------------------------------------------------- */
.sf-service {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--sf-line);
  padding-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 2rem;
  align-items: start;
}
.sf-service h3 {
  grid-column: 1 / -1;
  font-family: var(--sf-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 -0.6rem;
}
.sf-service dt {
  font-weight: 600;
  font-size: .93rem;
  margin-bottom: .3rem;
}
.sf-service dd {
  margin: 0;
  color: var(--sf-stone);
  font-size: .93rem;
  max-width: none;
  line-height: 1.6;
}

/* --- Mobil --------------------------------------------------------------- */
/* Mobil: Reiter als Chip-Reihe, darunter Grundriss, darunter nur der aktive Text */
@media (max-width: 880px) {
  .sf-grid {
    grid-template-columns: repeat(3, auto);
    justify-content: stretch;
    gap: 0 0.4rem;
    margin-top: 1.25rem;
  }
  .sf-list,
  .sf-item { display: contents; }
  .sf-tab {
    grid-row: 1;
    justify-content: center;
    padding: 0.62rem 0.5rem;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    background: var(--sf-paper);
    transition: background-color .25s ease, border-color .25s ease;
  }
  .sf-tab__name {
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .sf-tab__sub { display: none; }
  .sf-tab[aria-selected="true"] {
    background: var(--sf-sage);
    border-color: var(--sf-sage);
  }
  .sf-tab[aria-selected="true"] .sf-tab__name,
  .sf-tab[aria-selected="true"]:hover .sf-tab__name { color: var(--sf-paper); }
  .sf-plan {
    grid-row: 2;
    grid-column: 1 / -1;
    position: static;
    margin-top: 0.9rem;
  }
  .sf-caption {
    margin-top: 0.5rem;
    gap: 0.15rem 1rem;
    font-size: 0.78rem;
  }
  .sf-item__body {
    grid-row: 3;
    grid-column: 1 / -1;
    display: none;
  }
  .sf-item[data-open="true"] .sf-item__body {
    display: block;
    animation: sfFadeIn .35s ease both;
  }
  .sf-item__inner > div { padding: 1rem 0 0; }
  .sf-item p {
    max-width: none;
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
  .sf-service { grid-template-columns: 1fr; }
}

@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .sf-formats {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 360px) {
  .sf-tab { padding: 0.6rem 0.35rem; }
  .sf-tab__name { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-formats * { transition: none !important; }
}

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 9.5rem 2.5rem 6rem;
    color: var(--color-stone);
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--color-charcoal);
    margin: 0 0 2rem;
}

.legal-page h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.2;
    color: var(--color-charcoal);
    margin: 2.4rem 0 1rem;
}

.legal-page h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--color-charcoal);
    margin: 1.6rem 0 0.6rem;
}

.legal-page p,
.legal-page li {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}

.legal-page ul {
    margin: 0 0 1.2rem 1.1rem;
}

.legal-page a {
    color: var(--color-sand);
}

.legal-page address {
    font-style: normal;
    margin: 0 0 1rem;
    color: var(--color-charcoal);
    line-height: 1.6;
}

.legal-page .legal-notice {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.legal-page .legal-source {
    margin-top: 2.5rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 6.2rem 1.4rem 7.5rem;
    }
}

/* Anfrageformular kompakt: passt auf einen Handy-Bildschirm */
@media (max-width: 768px) {
    .contact-section {
        padding: 0.9rem 0.75rem 3rem;
    }
    .contact-card-container {
        padding: 1.1rem 1.05rem 1rem;
        border-radius: 1.6rem;
    }
    .contact-header {
        display: grid;
        grid-template-columns: 4.4rem 1fr;
        column-gap: 0.9rem;
        align-items: center;
        text-align: left;
        margin-bottom: 1rem;
    }
    .contact-header .form-logo {
        width: 4.4rem;
        margin: 0;
    }
    .contact-header h2 {
        font-size: 1.6rem;
        line-height: 1.15;
        margin: 0;
    }
    .contact-header p {
        grid-column: 1 / -1;
        margin: 0.7rem 0 0;
        font-size: 0.84rem;
        line-height: 1.5;
    }
    .cozy-form,
    .form-row {
        gap: 0.75rem;
    }
    .form-group {
        gap: 0.3rem;
    }
    .form-group label {
        font-size: 0.66rem;
        padding-left: 0.35rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.72rem 0.9rem;
        border-radius: 0.8rem;
        font-size: 16px;
    }
    .form-group textarea {
        height: 5.4rem;
        min-height: 4rem;
        resize: vertical;
    }
    .form-submit {
        margin-top: 0.15rem;
    }
    .submit-btn {
        padding: 0.9rem;
    }
    .form-status {
        margin-top: 0.4rem;
        min-height: 0;
    }
    .form-success {
        padding: 1.5rem 1.25rem;
    }
    .form-success__mark {
        width: 6rem;
    }
    .form-success h3 {
        font-size: 1.75rem;
    }
    .form-success p {
        font-size: 0.95rem;
        margin-bottom: 1.3rem;
    }
}
