:root {
    --text: #111;
    --muted: #666;
    --border: #e8e8e8;
    --bg: #ffffff;
    --accent: #0a7cff;
    --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

/* NAV */

.nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.nav__inner.container {
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: auto;
    min-height: 92px;
}

.nav__brand { height: 80px; }
.nav__logo { height: 80px; width: auto; }

.nav--minimal .nav__inner.container {
    justify-content: flex-start;
}

.nav__menu {
    font-weight: bold;
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0 0 0 auto;
    padding: 0;
}

.nav__link {
    text-decoration: none;
    color: var(--muted);
    font-size: .95rem;
    transition: color .2s ease;
}

.nav__link:hover { color: var(--text); }

.nav__lang,
.nav__lang--desktop {
    display: flex;
    gap: 8px;
    margin-left: 14px;
}

.nav__lang a,
.nav__lang--desktop a {
    text-decoration: none;
    font-size: .8rem;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 6px;
}

.nav__lang a:hover,
.nav__lang--desktop a:hover {
    color: var(--text);
    border-color: #d0d0d0;
}

.nav__toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
}

.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 2px 0;
    border-radius: 2px;
}

.nav__divider { display: none; }
.nav__lang--mobile { display: none; gap: 10px; }
li.nav__item { text-align: center; }

/* SECTIONS */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.section {
    scroll-margin-top: 90px;
    width: 100%;
    max-width: 1100px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border-radius: 12px;
    margin: 30px auto;
    padding: 20px 0;
}

.legal-page {
    padding: 10px 0 30px;
}

.legal-section {
    max-width: 900px;
}

.legal-content {
    max-width: 760px;
    padding-top: 16px;
    padding-bottom: 8px;
}

.legal-content h1 {
    margin-bottom: 24px;
}

.legal-content h2 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 20px 0 32px;
    background: #fff;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer__copy {
    margin: 0;
    color: var(--muted);
}

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

.site-footer__link:hover {
    text-decoration: underline;
}


.section, .container, .content { overflow-x: hidden; }
.container * { max-width: 100%; }

/* TYPO */

h1 {
    font-size: clamp(2.2rem,3vw,3rem);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    margin-top: 0;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}

.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(0,0,0,0.1);
}

h3 { margin: 0 0 10px; font-size: 1.1rem; }

p { color: var(--muted); margin: 0 0 14px; }

/* HERO */

.hero {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 20px;
    align-items: center;
}

.hero img {
    width: 100%;
    border-radius: var(--radius);
    height: auto;
}

.hero__kicker {
    font-size: .85rem;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero__lead { font-size: 1.05rem; color: var(--muted); max-width: 52ch; }

.hero__cta {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 18px;
}

.hero__media {
    position: relative;
    width: 100%;
    max-height: 420px;
}

.hero-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    max-height: 420px;
}

.hero-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 420px;
}

.hero-slider {
    max-height: 420px;
}

.hero-slider .slider-container {
    max-height: 420px;
}

.hero-slider .slider-container li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slider-container img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

@media (max-width: 700px) {
    .hero__media {
        max-height: none;
    }

    .hero-wrapper {
        max-height: none;
    }

    .hero-wrapper img {
        max-height: none;
    }

    .hero-slider {
        max-height: none;
    }

    .hero-slider .slider-container {
        max-height: none;
    }

    .hero-slider .slider-container img{
        height: auto;
    }
}



.hero__card {
    position: absolute;
    top: -18px;
    left: -18px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.hero__logo { font-weight: 650; letter-spacing: -0.01em; }
.hero__tag { font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* GRID */

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

.card {
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: var(--radius);
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(0,0,0,.04);
}

.card img {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 10px;
}

/* LINKS */

a { color: var(--accent); }
a:hover { text-decoration: underline; }

/* FORM */

form { max-width: 520px; }

.form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

input, textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
}

button {
    background: var(--text);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover { opacity: .85; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    background: var(--text);
    color: #fff;
    border: 1px solid var(--text);
}

.btn:hover { opacity: .9; text-decoration: none; }

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--ghost:hover { border-color: #d0d0d0; }

/* SLIDER */

.kf-slider__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(4px);
    transform: translateY(calc(100% - 52px));
    transition: transform .3s ease;
}

@media (hover: hover) {
    .slider-container li:hover .kf-slider__caption {
        transform: translateY(0);
    }
}

.kf-slider__caption.caption-open {
    transform: translateY(0);
}

.kf-slider__caption strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.kf-slider__caption p {
    margin: 0;
    color: #fff;
    opacity: .9;
    line-height: 1.4;
}

.referenzen-slider {
    display: flex;
    flex-direction: column;
}

.referenzen-slider .slider-indicators {
    order: -1;
    position: static;
    padding: 10px 0;
    margin-top: -32px;
    margin-bottom: 12px;
}

.referenzen-slider .slider-indicators button {
    background: #ddd;
    width: 2px;
    height: 2px;
    margin: 0 4px;
}

.referenzen-slider .slider-indicators button.active {
    background: #999;
}

.referenzen-slider .slider-container li {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-height: 510px;
    height: auto;
    width: auto;
    overflow-y: hidden;
}

.slider-container img {
    object-fit: contain !important;
    max-height: 500px;
    height: 100%;
    width: 100%;
    background: #fff;
}

.swiffy-slider .slider-nav .slider-nav-background {
    position: absolute;
    background: rgba(0,0,0,.25);
    width: 47px;
    height: 58px;
    border-radius: 18px;
}

#referenzen .container{
    padding: 0;
}

#referenzen .container h2{
    margin: 0 0 30px 24px;
}



#team .grid{
    gap: 16px;
}

#team .card {
    padding: 12px 0;
}

#team .card img {
    width: 170px;
    height: 170px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

#team .team-card__photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #666054;
    position: relative;
    display: block;
    margin: 0 auto;
}

#team .team-card__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(to right, rgba(42, 38, 30, 0.55), transparent 60%);
    pointer-events: none;
}

#team .card {
    text-align: center;
}

#team .team-role {
    margin: 0;
}

.team-card {
    overflow: hidden;
    position: relative;
}

.team-card__details {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    color: #fff;
    text-align: center;
    transform: translateY(100%);
    transition: transform .3s ease;
}

.team-card:hover .team-card__details {
    transform: translateY(0);
}

.team-card__spec {
    margin: 0 0 6px;
    color: #fff;
    opacity: .9;
}

.team-card__email {
    display: inline-block;
    color: #fff;
    white-space: nowrap;
}



.software-card {
    background: #f7f9f4;
    border: 1px solid #e2e8d6;
    padding: 32px;
}

.software-card:hover {
    transform: none;
    box-shadow: none;
}

.software-top {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 40px;
    align-items: start;
}

.software-mainlogo {
    width: 600px;
    max-width: 100%;
    height: auto;
}

.software-certlogos {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.software-certlogos img,
.software-certlogos svg {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.software-text {
    margin-top: 24px;
}

.software-cta{
    margin-top: 24px;
}

.software-cta a {
    display: inline-block;
    font-size: 20px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #98cf4e;
    color: #1f2a10;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
    margin-right: 12px;
}

.software-cta a:hover {
    background: #86bb44;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

@media (max-width: 700px) {
    .software-cta a:first-child{
        margin-bottom: 20px;
    }
}


.notices {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(8px);

    max-width: min(720px, calc(100% - 32px));
    width: auto;

    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,.22);

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.notices.success {
    background: #98cf4e;
    color: #1f2a10;
    border: 1px solid #7fb83b;
}

.notices.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notices p {
    margin: 0;
}


.bueros-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.bueros-mapcard {
    background: linear-gradient(180deg, #f8faf5 0%, #ffffff 100%);
    border: 1px solid #e2e8d6;
    border-radius: 16px;
    padding: 20px;
}

@media (max-width: 500px) {
    .bueros-mapcard{
        padding: 0;
    }
}


.bueros-intro,
.bueros-note {
    margin: 0 0 14px;
}

.bueros-note {
    margin-top: 12px;
    font-size: 0.92rem;
}

.bueros-map {
    min-height: 460px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d9e2c7;
    background:
        radial-gradient(circle at 22% 18%, rgba(152,207,78,.28), transparent 18%),
        radial-gradient(circle at 76% 64%, rgba(10,124,255,.09), transparent 22%),
        linear-gradient(180deg, #eef4e6 0%, #f8faf5 100%);
}

.bueros-map .leaflet-control-zoom {
    margin: 16px 16px 0 0;
    border: 1px solid rgba(31,42,16,.12);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.bueros-map .leaflet-control-zoom a {
    width: 38px;
    height: 38px;
    line-height: 36px;
    color: var(--text);
}

.bueros-map .leaflet-control-attribution {
    font-size: 11px;
}

.bueros-map .leaflet-marker-pane {
    z-index: 620;
}

.office-marker-icon {
    transition: transform .12s ease, filter .12s ease;
    transform-origin: center bottom;
    filter: hue-rotate(165deg) saturate(2) brightness(1.05) drop-shadow(0 8px 14px rgba(0,0,0,.16));
}

.office-marker-icon--active {
    transform: scale(1.08);
}

.bueros-map .leaflet-popup-pane {
    z-index: 700;
}

.office-popup-wrap .leaflet-popup-content-wrapper {
    background: #fff;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

.office-popup-wrap .leaflet-popup-content {
    margin: 0;
    background: #fff;
    min-width: 240px;
    max-width: min(280px, calc(100vw - 96px));
}

.office-popup-wrap .leaflet-popup-tip {
    background: #fff;
}

.office-popup-wrap .leaflet-popup-close-button {
    position: absolute;
    left: auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f3f4f1;
    color: var(--text);
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    z-index: 2;
}

.leaflet-container a.leaflet-popup-close-button{
    right: -220px !important;
    top: 4px !important;
}

.office-popup-wrap .leaflet-popup-close-button:hover {
    background: #e7eadf;
    color: var(--text);
}

.office-popup {
    display: grid;
    gap: 4px;
    padding: 18px;
    background: #fff;
    color: var(--text);
}

.office-popup h3 {
    margin: 0;
    padding-right: 28px;
    font-size: 1.05rem;
    line-height: 1.2;
}

.office-popup__label {
    margin: 12px 0 12px 0 !important;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.office-popup p {
    margin: 0;
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.35;
}

.office-popup__address {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.office-popup a {
    font-size: .9rem;
    font-weight: 600;
    color: #1f2a10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e8f3d5;
    text-decoration: none;
}

.office-popup a:hover {
    color: #1f2a10;
    background: #dcebba;
    text-decoration: none;
}

.bueros-list {
    display: grid;
    gap: 14px;
    max-height: 460px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #98cf4e #eef3e5;
}

.bueros-list::-webkit-scrollbar {
    width: 10px;
}

.bueros-list::-webkit-scrollbar-track {
    background: #eef3e5;
    border-radius: 999px;
}

.bueros-list::-webkit-scrollbar-thumb {
    background: #98cf4e;
    border-radius: 999px;
    border: 2px solid #eef3e5;
}

.bueros-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    display: grid;
    gap: 14px;
}

.bueros-item__meta h3 {
    margin: 0 0 2px;
}

.bueros-item__meta p {
    margin: 0;
}

.bueros-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bueros-item__focus,
.bueros-item__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.bueros-item__focus {
    border: none;
    background: #98cf4e;
    color: #1f2a10;
}

.bueros-item__focus:hover {
    background: #86bb44;
    opacity: 1;
}

.bueros-item__focus:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.bueros-item__link {
    border: 1px solid var(--border);
    color: var(--text);
    background: #fff;
}

.bueros-item__link:hover {
    text-decoration: none;
    border-color: #cbd5bd;
}



#kontakt form {
    max-width: 640px;
    margin: 0 auto;
}

#kontakt .form-field {
    margin-bottom: 18px;
}

#kontakt label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

#kontakt input,
#kontakt textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d7d7d7;
    background: #fff;
    font: inherit;
    transition: border .15s ease, box-shadow .15s ease;
}

#kontakt input:focus,
#kontakt textarea:focus {
    outline: none;
    border-color: #98cf4e;
    box-shadow: 0 0 0 3px rgba(152,207,78,.18);
}

#kontakt button {
    margin-top: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    background: #98cf4e;
    color: #1f2a10;
    font-weight: 600;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}

#kontakt button:hover {
    background: #86bb44;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}



@media (max-width: 900px) {
    .software-top {
        grid-template-columns: 1fr;
    }

    .software-left {
        text-align: center;

    }

    .software-text {
        margin-top: 0;
    }

    .software-certlogos {
        justify-content: center;
    }

    .bueros-layout {
        grid-template-columns: 1fr;
    }

    .bueros-map {
        min-height: 380px;
    }

    .bueros-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

}



/* RESPONSIVE */

@media (max-width: 900px) {

    .section { padding: 20px 0 30px 0 }

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

    .hero { grid-template-columns: 1fr; }

    .hero__card { position: static; margin-bottom: 12px; }

    .hero__cta { flex-direction: column; align-items: stretch; }

    .nav { z-index: 300000; }

    .nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        flex-direction: column;
        gap: 0.125rem;
    }

    .nav__lang--desktop { display: none; }

    .nav__lang--mobile{
    display: flex;
        }

    .nav__lang--mobile a{
        border: 1px solid var(--border);
        padding: 4px 8px;
        border-radius: 6px;
    }

    .nav__inner.container {
        position: relative;
        overflow: visible;
    }

    .nav__menu {
        display: none;
        position: absolute;
        z-index: 20;
        left: 0;
        right: 0;
        top: 92px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        border-top: 1px solid var(--border);
        padding: 14px 18px;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
    }

    .nav.nav--open .nav__menu { display: flex; }

    .nav__divider {
        display: block;
        height: 1px;
        background: var(--border);
        margin: 6px 0;
    }

    #team .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #team .card img {
        width: 130px;
        height: 130px;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 500px) {
    #team .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .software-certlogos img,
    .software-certlogos svg {
        height: 38px;
        width: auto;
        object-fit: contain;
        display: block;
    }
}
