:root {
    --bg: #f7f7f5;
    --surface: #fff;
    --text: #171717;
    --text-muted: #666;
    --border: #e4e4e0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Hero */

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 40px 6vw 100px;
}

.hero-content {
    max-width: 1000px;
}

.hero-label {
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 1050px;
    margin: 0;
    font-size: clamp(52px, 6vw, 94px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.hero-description {
    max-width: 620px;
    margin-top: 36px;
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 40px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button-primary {
    background: var(--text);
    color: #fff;
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-2px);
}

.button-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

/* Shared section styles */

.services,
.projects,
.care-teaser,
.about {
    padding: 140px 6vw;
}

.services,
.about {
    background: var(--surface);
}

.section-label {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-header h2,
.projects-header h2,
.about-heading h2 {
    margin: 0;
    font-size: clamp(38px, 5vw, 68px);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.section-description {
    max-width: 600px;
    margin-top: 28px;
    color: #666;
    font-size: 19px;
    line-height: 1.6;
}

/* Services */

.section-header {
    max-width: 900px;
    margin-bottom: 70px;
}

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

.service-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover {
    border-color: #ccc;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.service-number {
    margin-bottom: 60px;
    color: #999;
    font-size: 13px;
    font-weight: 600;
}

.service-card h3 {
    margin: 0 0 18px;
    font-size: 26px;
    letter-spacing: -0.025em;
}

.service-card p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.service-link {
    margin-top: auto;
    padding-top: 40px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.websites-link {
    display: block;
}

/* Projects */

.projects {
    height: auto;
    overflow: hidden;
    padding-top: clamp(48px, 5vh, 72px);
    padding-bottom: 60px;
    background: var(--bg);
}

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: clamp(28px, 4vh, 56px);
}

.projects-intro {
    max-width: 420px;
    margin: 0 0 8px;
    color: #666;
    font-size: 17px;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 96px;
    column-gap: 24px;
}

.project-large {
    grid-column: 1 / -1;
}

@media (min-width: 751px) {
    .projects-grid .project-raumkante {
        transform: translateX(2.8vw);
    }

    .projects-grid .project-falkenberg {
        transform: translateX(-2.0vw);
    }
}

.project-visual-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-title-link {
    color: inherit;
    text-decoration: none;
}

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 3.5vw, 60px);
    overflow: hidden;
    border-radius: 16px;
    background: #d8d5cf;
}

.project-card:not(.project-large) .project-visual {
    height: 420px;
}

.project-large .project-visual {
    height: auto;
}

.project-browser {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14);
    transition: transform 0.4s ease;
}

.project-visual-link:hover .project-browser {
    transform: scale(1.025);
}

.project-falkenberg .project-visual {
    position: relative;
    overflow: visible;
    padding: 8px;
    background: transparent;
}

.project-raumkante .project-visual {
    position: relative;
    overflow: visible;
    padding: 8px;
    background: transparent;
}

.project-falkenberg .project-visual::before,
.project-raumkante .project-visual::before {
    content: "";
    position: absolute;
    inset: 4% 6%;
    border-radius: 18px;
    background: radial-gradient(
        ellipse at center,
        rgba(33, 33, 30, 0.16) 0%,
        rgba(33, 33, 30, 0.08) 48%,
        rgba(33, 33, 30, 0) 76%
    );
    filter: blur(18px);
    pointer-events: none;
}

.project-falkenberg .project-browser {
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
    position: relative;
    z-index: 1;
    width: calc(100% - 120px);
    max-width: 1320px;
}

.project-raumkante .project-browser {
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
    position: relative;
    z-index: 1;
    width: calc(100% - 256px);
    max-width: 1320px;
}

.project-falkenberg .project-browser picture {
    display: block;
}

.project-falkenberg .project-browser img {
    width: 100%;
    height: auto;
    display: block;
}

.project-raumkante .project-browser img {
    width: 100%;
    height: auto;
    display: block;
}

.browser-bar {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-bottom: 1px solid #eee;
}

.browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.project-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.project-type {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-size: 13px;
}

.project-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 22px;
}

.project-actions a {
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.project-actions a:hover {
    opacity: 0.55;
}



/* Care teaser and about */

.care-teaser {
    background: var(--accent-deep);
    color: #fff;
}

.care-teaser .section-label {
    color: var(--accent-on-dark);
}

.care-teaser-grid,
.about-grid {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.care-teaser-heading h2 {
    margin: 0;
    font-size: clamp(40px, 5vw, 70px);
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.care-teaser-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.care-teaser-intro {
    max-width: 600px;
    margin: 0;
    color: var(--accent-on-deep);
    font-size: 21px;
    line-height: 1.6;
}

.care-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 35px;
}

.care-tags span {
    padding: 8px 13px;
    border: 1px solid var(--accent-line);
    border-radius: 100px;
    color: var(--accent-on-deep);
    font-size: 13px;
}

.text-link {
    width: fit-content;
    display: inline-block;
    margin-top: 45px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.care-teaser .text-link {
    color: #fff;
}

.text-link:hover {
    opacity: 0.55;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 45px;
}

.inline-links .text-link {
    margin-top: 0;
}

.about-content {
    padding-top: 34px;
}

.about-content>p {
    max-width: 620px;
    color: #666;
    font-size: 17px;
    line-height: 1.7;
}

.about-content .about-intro {
    margin-top: 0;
    color: #222;
    font-size: 24px;
    letter-spacing: -0.02em;
    line-height: 1.45;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.about-details span {
    display: block;
    margin-bottom: 8px;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-details p {
    margin: 0;
    color: #333;
    font-size: 15px;
}

/* Contact */

.contact {
    padding: 150px 6vw;
    background: #f0efeb;
}

.contact-inner {
    max-width: 1100px;
}

.contact h2 {
    margin: 0;
    font-size: clamp(48px, 6vw, 90px);
    letter-spacing: -0.05em;
    line-height: 1;
}

.contact-description {
    max-width: 600px;
    margin: 36px 0 50px;
    color: #666;
    font-size: 19px;
    line-height: 1.65;
}

.contact-mail {
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 1px solid #222;
    color: #171717;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
    text-decoration: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.contact-mail:hover {
    opacity: 0.55;
    transform: translateX(5px);
}

/* Responsive */

@media (max-width: 900px) {

    .projects {
        height: auto;
        overflow: visible;
    }

    .services,
    .projects,
    .care-teaser,
    .about,
    .contact {
        min-height: 0;
    }

    .projects,
    .care-teaser,
    .about,
    .contact {
        min-height: 100dvh;
    }

    .project-falkenberg .project-browser {
        width: calc(100% - 48px);
    }

    .project-raumkante .project-browser {
        width: calc(100% - 48px);
    }

    .service-grid,
    .projects-grid,
    .care-teaser-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .project-large {
        grid-column: auto;
    }

    .project-info {
        align-items: flex-start;
        margin-top: 28px;
    }

    .care-teaser-grid,
    .about-grid {
        gap: 45px;
    }

    .about-content {
        padding-top: 0;
    }
}

@media (min-width: 701px) and (max-width: 1100px) and (orientation: portrait) {
}

@media (max-width: 750px) {

    .hero {
        padding: 40px 24px 80px;
    }

    .hero h1 {
        font-size: clamp(45px, 13vw, 70px);
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .services,
    .projects,
    .care-teaser,
    .about,
    .contact {
        padding: 44px 24px;
    }

    .services .section-header {
        margin-bottom: 32px;
    }

    .services .section-description {
        margin-top: 20px;
        font-size: 17px;
        line-height: 1.5;
    }

    .services .service-card {
        padding: 20px;
    }

    .services .service-number {
        margin-bottom: 20px;
    }

    .services .service-card h3 {
        margin-bottom: 12px;
        font-size: 23px;
    }

    .services .service-card p {
        font-size: 15px;
        line-height: 1.45;
    }

    .services .service-link {
        padding-top: 20px;
    }

    .about-grid {
        gap: 32px;
    }

    .about {
        min-height: 0;
    }

    .about-heading h2 {
        font-size: 34px;
        line-height: 1.05;
    }

    .about-content .about-intro {
        margin-bottom: 18px;
        font-size: 20px;
        line-height: 1.4;
    }

    .about-content > p {
        font-size: 16px;
        line-height: 1.55;
    }

    .about-details {
        margin-top: 40px;
    }

    .contact {
        min-height: 0;
        padding: 82px 24px;
    }

    .project-visual {
        padding: 24px;
    }

    .projects-grid {
        row-gap: 64px;
    }

    .project-large .project-visual {
        height: auto;
    }

    .project-falkenberg .project-browser {
        width: min(86%, 320px);
        padding: 24px 8px 8px;
        border: 1px solid #3a3a3a;
        border-radius: 24px;
        background: #171717;
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
    }

    .project-raumkante .project-browser {
        width: min(86%, 320px);
        padding: 24px 8px 8px;
        border: 1px solid #3a3a3a;
        border-radius: 24px;
        background: #171717;
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
    }

    .project-raumkante .project-browser::before,
    .project-falkenberg .project-browser::before {
        content: "";
        position: absolute;
        top: 12px;
        left: 16px;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #777;
        box-shadow: 10px 0 #5d5d5d, 20px 0 #444;
        z-index: 1;
    }

    .project-raumkante .project-browser::after,
    .project-falkenberg .project-browser::after {
        content: "studio-raumkante.de";
        position: absolute;
        top: 8px;
        left: 50%;
        width: 118px;
        height: 14px;
        border-radius: 7px;
        background: #292929;
        color: #8b8b8b;
        font-size: 6px;
        line-height: 14px;
        text-align: center;
        transform: translateX(-50%);
        z-index: 1;
    }

    .project-falkenberg .project-browser::after {
        content: "kanzlei-falkenberg.de";
    }

    .project-raumkante .project-browser .browser-bar,
    .project-falkenberg .project-browser .browser-bar {
        display: none;
    }

    .project-raumkante .project-browser img,
    .project-falkenberg .project-browser img {
        border-radius: 0 0 16px 16px;
    }

    .projects-grid .project-raumkante,
    .projects-grid .project-falkenberg {
        transform: none;
    }

    .project-info {
        flex-direction: column;
        gap: 18px;
    }

    .project-actions {
        justify-content: flex-start;
    }

    .project-card:not(.project-large) .project-visual {
        height: 300px;
    }

    .about-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .about-details span {
        min-height: 0;
        font-size: 10px;
        letter-spacing: 0.02em;
    }

    .contact-description {
        font-size: 17px;
    }
}

@media (min-width: 751px) and (max-width: 900px) and (orientation: portrait) {
    .projects {
        height: auto;
        min-height: 0;
        padding-bottom: 72px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) and (orientation: portrait) {
    .hero {
        min-height: 0;
        padding: 96px 6vw 104px;
    }

    .projects {
        height: auto;
        min-height: 0;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .projects-header {
        margin-bottom: 36px;
    }

    .project-info {
        margin-top: 36px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) and (max-height: 900px) {
    .projects {
        padding-top: 40px;
        padding-bottom: 34px;
    }

    .projects-header {
        margin-bottom: 24px;
    }

    .project-falkenberg .project-browser {
        width: calc(100% - 260px);
    }

    .project-info {
        margin-top: 28px;
    }
}

@media (min-width: 701px) and (max-width: 1200px) and (orientation: portrait) {
    .hero {
        height: calc(100dvh - 80px);
        min-height: calc(100dvh - 80px);
    }
}

@media (min-width: 1201px) and (max-width: 1400px) and (max-height: 1100px) {
    .services {
        height: 100dvh;
        min-height: 100dvh;
        padding: 80px 6vw;
    }

    .services .section-header {
        margin-bottom: 48px;
    }

    .projects {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .projects-header {
        margin-bottom: 28px;
    }

    .projects-header h2 {
        font-size: clamp(48px, 4vw, 58px);
    }

    .projects-intro {
        max-width: 360px;
        font-size: 15px;
    }

    .project-falkenberg .project-browser {
        width: min(960px, calc(100% - 240px));
    }

    .project-info {
        margin-top: 28px;
    }
}