:root {
    --ink: #171411;
    --muted: #625d56;
    --line: #e8e3dc;
    --paper: #ffffff;
    --soft: #f7f4ef;
    --accent: #0f766e;
    --accent-dark: #0b4f4a;
    --warm: #c2410c;
    --shadow: 0 18px 45px rgba(23, 20, 17, 0.11);
}

html {
    scroll-behavior: smooth;
}

html.is-loading body {
    opacity: 0;
}

body {
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--accent);
}

.portfolio-nav {
    border-bottom: 1px solid rgba(23, 20, 17, 0.08);
    box-shadow: 0 6px 24px rgba(23, 20, 17, 0.05);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0;
}

.navbar .nav-link {
    color: var(--muted);
    font-weight: 650;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--ink);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}

.language-switch .nav-link {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.82rem;
}

.language-switch .nav-link.active {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 104px 0 82px;
    color: #fff;
    background: #171411;
}

.hero-section h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.65rem, 6vw, 5.35rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-section .lead {
    max-width: 720px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.eyebrow,
.section-kicker,
.project-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 10px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 999px;
    color: var(--accent-dark);
    background: rgba(15, 118, 110, 0.08);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.hero-section .eyebrow {
    color: #b8fff6;
    border-color: rgba(184, 255, 246, 0.26);
    background: rgba(184, 255, 246, 0.08);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    border-radius: 8px;
    font-weight: 750;
}

.btn-primary {
    border-color: var(--accent);
    background: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.btn-outline-light:hover {
    color: var(--ink);
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 44px;
}

.hero-proof div,
.hero-panel,
.value-card,
.contact-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-proof div {
    padding: 16px;
}

.hero-proof strong,
.hero-proof span {
    display: block;
}

.hero-proof strong {
    font-size: 1.08rem;
}

.hero-proof span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.hero-panel {
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.hero-panel-top {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-panel-top img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    padding: 10px;
}

.hero-panel-top span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-panel-top h2 {
    margin: 3px 0 0;
    font-size: 1.55rem;
    font-weight: 820;
}

.hero-panel-list {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.hero-panel-list li {
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.82);
    border-left: 3px solid #b8fff6;
}

.section-pad {
    padding: 88px 0;
}

.bg-soft {
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
#about h2,
#contact h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 840;
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p,
.section-lead {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.value-grid-4,
.service-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card {
    padding: 20px;
    border-color: var(--line);
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 20, 17, 0.06);
}

.value-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 820;
}

.value-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.iot-focus-section {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f7f4ef 100%);
}

.iot-focus-section h2,
.landing-hero h1 {
    letter-spacing: 0;
}

.iot-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.iot-capability-grid div {
    min-height: 86px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 820;
    box-shadow: 0 12px 28px rgba(23, 20, 17, 0.06);
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 940px;
    margin: 0 auto;
}

.skill-cloud span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(23, 20, 17, 0.04);
}

#projects {
    background: #fff;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(23, 20, 17, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-card .card-img-top {
    height: 170px;
    object-fit: contain;
    padding: 28px;
    background: var(--soft);
}

.project-card .card-body {
    padding: 24px;
}

.project-card .card-title {
    margin: 0 0 10px;
    font-size: 1.28rem;
    font-weight: 840;
}

.project-card .card-text {
    color: var(--muted);
}

.project-card .card-footer {
    padding: 0 24px 24px;
    border: 0;
    background: transparent;
}

.project-facts {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
}

.project-facts div {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.project-facts dt {
    color: var(--warm);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 650;
}

.modal-dialog {
    max-width: 820px;
}

.modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.modal-header,
.modal-footer {
    padding: 22px 28px;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 850;
}

.modal-body {
    padding: 28px;
}

.project-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.project-section:first-child {
    padding-top: 0;
}

.project-section:last-child {
    border-bottom: 0;
}

.project-section h2 {
    margin: 0 0 9px;
    color: var(--accent-dark);
    font-size: 0.92rem;
    font-weight: 850;
    text-transform: uppercase;
}

.project-section p,
.project-section li {
    color: var(--muted);
}

.project-section ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 1.2rem;
}

.section-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.process-grid div {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 20, 17, 0.05);
}

.process-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-dark);
    font-size: 1.02rem;
}

.process-grid p {
    margin: 0;
    color: var(--muted);
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 920px;
    margin: 0 auto;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 20, 17, 0.05);
}

.faq-list summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--ink);
    font-weight: 820;
}

.faq-list p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--muted);
}

.contact-section {
    color: #fff;
    background: #171411;
}

.contact-section .section-kicker {
    color: #b8fff6;
    border-color: rgba(184, 255, 246, 0.26);
    background: rgba(184, 255, 246, 0.08);
}

.contact-section .section-lead {
    color: rgba(255, 255, 255, 0.76);
}

.contact-points {
    display: grid;
    gap: 10px;
    margin: 28px 0;
}

.contact-points div {
    padding: 13px 15px;
    border-left: 3px solid #b8fff6;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 720;
}

.contact-card {
    padding: 28px;
    border-color: rgba(255, 255, 255, 0.16);
}

.contact-card .form-label,
.contact-card .form-check-label {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 650;
}

.contact-card .form-control {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.contact-card .form-control:focus {
    border-color: #b8fff6;
    box-shadow: 0 0 0 0.2rem rgba(184, 255, 246, 0.16);
}

#impressum,
#privacy {
    color: var(--ink);
}

footer {
    background: #171411 !important;
}

@media (max-width: 991px) {
    .hero-section {
        padding: 82px 0 64px;
    }

    .hero-proof,
    .value-grid,
    .value-grid-4,
    .service-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .section-pad {
        padding: 68px 0;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 2.55rem;
    }

    .hero-actions .btn,
    .contact-card .btn {
        width: 100%;
    }

    .hero-proof {
        gap: 10px;
    }

    .hero-panel {
        padding: 20px;
    }

    .iot-capability-grid {
        grid-template-columns: 1fr;
    }

    .project-card .card-img-top {
        height: 140px;
    }

    .modal-body,
    .modal-header,
    .modal-footer,
    .contact-card {
        padding: 20px;
    }
}
