/* =========================================================
   KARRIERE-WEBSEITE – STARTSEITE
   Master-Layout
   ========================================================= */


/* HERO-GRUNDAUFBAU */

.home-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #ffffff 52%,
            #f8fbfd 100%
        );
}

.home-hero-grid {
    min-height: 540px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 40px;
    padding-top: 36px;
    padding-bottom: 28px;
}


/* LINKE SEITE */

.home-copy {
    position: relative;
    z-index: 10;
    max-width: 760px;
}

.hero-eyebrow {
    margin: 0 0 22px;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.025em;
}

.hero-eyebrow span {
    display: inline-block;
    margin-inline: 5px;
    color: #9aabb8;
}

.home-copy h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.9rem, 2.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.home-copy h1 span {
    display: block;
    white-space: nowrap;
}

.hero-divider {
    width: 72px;
    height: 3px;
    margin: 28px 0 26px;
    background: var(--blue);
}

.hero-description {
    max-width: 650px;
    margin: 0 0 12px;
    color: #586d7d;
    font-size: 1.05rem;
    line-height: 1.72;
}

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

.hero-actions .button {
    min-width: 158px;
    min-height: 48px;
    gap: 14px;
    border-radius: 3px;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.hero-actions .button:hover {
    transform: translateY(-2px);
}

.hero-actions .button-primary:hover {
    background: var(--navy);
    border-color: var(--navy);
    box-shadow: 0 8px 20px rgba(16, 46, 74, 0.12);
}

.hero-actions .button-secondary:hover {
    color: var(--navy);
    border-color: var(--navy);
}


/* RECHTE SEITE / PORTRAIT */

.home-visual {
    position: relative;
    z-index: 1;
    min-height: 470px;
    align-self: end;
}


/*
   Der Portrait-Platzhalter wird später durch das
   vorbereitete Portrait mit verschränkten Armen ersetzt.
*/

.portrait-placeholder {
    position: absolute;
    z-index: 5;
    right: 3%;
    bottom: 0;

    width: 70%;
    height: 88%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8aa0b0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    border: 1px dashed #b9cad7;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.88),
            rgba(231,240,247,0.72)
        );
}


/* TECHNISCHE BLUEPRINT-EBENE */

.blueprint {
    position: absolute;
    z-index: 1;
    opacity: 0.48;
    pointer-events: none;
}


/* Handwerk / Zahnrad links unten */

.blueprint-handwerk {
    left: -2%;
    bottom: 5%;
    width: 180px;
    height: 180px;

    border: 1px solid #cbdce8;
    border-radius: 50%;
}

.blueprint-handwerk::before {
    content: "";
    position: absolute;
    inset: 30px;
    border: 1px dashed #b8cedd;
    border-radius: 50%;
}

.blueprint-handwerk::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -25px;
    width: 1px;
    height: 230px;
    background: #d3e1ea;
}


/* Prozesse / Kreisdiagramm */

.blueprint-prozesse {
    left: 19%;
    top: 11%;
    width: 150px;
    height: 150px;

    border: 1px solid #cedee9;
    border-radius: 50%;
}

.blueprint-prozesse::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px dashed #c4d7e4;
    border-radius: 50%;
}

.blueprint-prozesse::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -65px;
    width: 280px;
    height: 1px;
    background: #d6e3eb;
}


/* Industrie / technisches Raster */

.blueprint-industrie {
    right: -3%;
    top: 6%;
    width: 220px;
    height: 180px;

    border-left: 1px solid #cfdee8;
    border-bottom: 1px solid #cfdee8;

    background-image:
        linear-gradient(#e2ebf1 1px, transparent 1px),
        linear-gradient(90deg, #e2ebf1 1px, transparent 1px);
    background-size: 28px 28px;
}


/* Digitalisierung / Netzwerk */

.blueprint-digital {
    right: -8%;
    bottom: 8%;
    width: 260px;
    height: 160px;

    background:
        radial-gradient(circle at 15% 35%, #b7ccda 0 3px, transparent 4px),
        radial-gradient(circle at 45% 17%, #b7ccda 0 3px, transparent 4px),
        radial-gradient(circle at 74% 42%, #b7ccda 0 3px, transparent 4px),
        radial-gradient(circle at 35% 78%, #b7ccda 0 3px, transparent 4px),
        radial-gradient(circle at 88% 82%, #b7ccda 0 3px, transparent 4px);
}

.blueprint-digital::before,
.blueprint-digital::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 1px;
    background: #c7d8e4;
    transform-origin: left center;
}

.blueprint-digital::before {
    left: 30px;
    top: 55px;
    transform: rotate(18deg);
}

.blueprint-digital::after {
    left: 55px;
    top: 120px;
    transform: rotate(-25deg);
}


/* =========================================================
   KOMPETENZLEISTE UNTEN
   ========================================================= */

.competence-strip {
    position: relative;
    z-index: 10;
    border-top: 1px solid #e2e9ee;
    border-bottom: 1px solid #e2e9ee;
    background: #ffffff;
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.competence-item {
    min-height: 150px;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-right: 1px solid #e2e9ee;
}

.competence-item:first-child {
    border-left: 1px solid #e2e9ee;
}

.competence-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    color: var(--blue);
    font-size: 1.55rem;

    border: 1px solid #d5e2eb;
    border-radius: 50%;
    background: #f8fbfd;
}

.competence-item h2 {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.competence-item p {
    margin: 0;
    color: #697d8c;
    font-size: 1.10rem;
    line-height: 1.40;
}


/* =========================================================
   HEADER – FEINABSTIMMUNG STARTSEITE
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;
}

.mail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0 !important;

    color: var(--blue) !important;
    font-size: 1.05rem !important;

    border: 1px solid #d8e4ec;
    border-radius: 50%;
}

.mail-link::after {
    display: none !important;
}

.mail-link:hover {
    color: var(--navy) !important;
    border-color: var(--blue);
    background: #f5f9fc;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .home-hero-grid {
        grid-template-columns: 1.12fr 0.88fr;
        gap: 30px;
    }

    .home-copy h1 {
        font-size: clamp(2.35rem, 3.8vw, 3rem);
    }

    .portrait-placeholder {
        width: 78%;
    }

    .competence-item {
        grid-template-columns: 44px 1fr;
        gap: 14px;
        padding-inline: 18px;
    }

    .competence-icon {
        width: 42px;
        height: 42px;
    }
}


@media (max-width: 900px) {

    .home-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 55px;
        padding-bottom: 0;
    }

    .home-copy {
        max-width: 720px;
    }

    .home-copy h1 {
        font-size: clamp(2.5rem, 7vw, 3.4rem);
    }

    .home-visual {
        min-height: 480px;
        margin-top: 20px;
    }

    .portrait-placeholder {
        right: 10%;
        width: 60%;
        height: 92%;
    }

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

    .competence-item:nth-child(2) {
        border-right: 1px solid #e2e9ee;
    }

    .competence-item:nth-child(3),
    .competence-item:nth-child(4) {
        border-top: 1px solid #e2e9ee;
    }
}


@media (max-width: 600px) {

    .home-copy h1 span {
        white-space: normal;
    }

    .hero-eyebrow span {
        display: none;
    }

    .hero-eyebrow {
        max-width: 320px;
    }

    .home-copy h1 {
        font-size: clamp(2.05rem, 10.5vw, 2.8rem);
        line-height: 1.08;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .home-visual {
        min-height: 400px;
    }

    .portrait-placeholder {
        right: 5%;
        width: 72%;
    }

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

    .competence-item {
        min-height: 120px;
        border-left: 1px solid #e2e9ee;
        border-right: 1px solid #e2e9ee;
        border-top: 1px solid #e2e9ee;
    }

    .competence-item:first-child {
        border-top: 0;
    }
}


/* =========================================================
   HERO-PORTRAIT
   Die finale freigestellte Datei kommt später nach:
   assets/images/hero-portrait.png
   ========================================================= */

.hero-portrait {
    position: absolute;
    z-index: 5;
    right: -3%;
    bottom: 0;

    width: 88%;
    height: 100%;

    background-image: url("../assets/images/hero-portrait.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;

    pointer-events: none;
}


/* =========================================================
   FREIGEGEBENES HERO-VISUAL
   ========================================================= */

.hero-master-visual {
    position: absolute;
    z-index: 1;

    right: -8%;
    bottom: 0;

    width: 145%;
    max-width: none;
    height: auto;

    display: block;
    object-fit: contain;

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   STARTSEITE – FEINSCHLIFF 2026-09-02
   ========================================================= */

/* Qualifikationszeile etwas ruhiger als die Hauptheadline */
.hero-eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Kompetenzsymbole optisch etwas stärker gewichten */
.competence-icon {
    width: 46px;
    height: 46px;

    min-width: 46px;
    flex: 0 0 46px;

    font-size: 1.18rem;
}


/* Mobile Darstellung proportional halten */
@media (max-width: 620px) {

    .hero-eyebrow {
        font-size: 0.9rem;
    }

    .competence-icon {
        width: 43px;
        height: 43px;

        min-width: 43px;
        flex-basis: 43px;

        font-size: 1.08rem;
    }

}



/* =========================================================
   STARTSEITE – PROZESSE VERBESSERN GRAU
   ========================================================= */

.home-copy h1 span:nth-child(2) {
    color: #7a828c;
}



/* =========================================================
   STARTSEITE – FINALER VISUELLER FEINSCHLIFF
   02.09.2026
   ========================================================= */


/* -----------------------------------------
   Markenclaim: PROZESSE grau
   ----------------------------------------- */

.brand-processes-muted {
    color: #8a9099;
}


/* -----------------------------------------
   Handwerk und Industrie leicht hervorheben
   ----------------------------------------- */

.competence-grid .competence-item:nth-child(1),
.competence-grid .competence-item:nth-child(3) {
    background: #f4f5f6;
}


/* -----------------------------------------
   Finales Hero-Motiv
   Breiter und stärker in den rechten Bereich
   ----------------------------------------- */

.home-hero-grid {
    grid-template-columns:
        minmax(0, 0.82fr)
        minmax(0, 1.18fr);

    gap: 24px;
}


.home-visual {
    display: flex;

    align-items: flex-end;
    justify-content: flex-end;

    overflow: visible;
}


.hero-master-visual {
    display: block;

    width: 118%;
    max-width: none;

    height: auto;

    object-fit: contain;
    object-position: right bottom;

    transform: translateX(2%);
}


/* -----------------------------------------
   Tablet / kleinere Displays
   ----------------------------------------- */

@media (max-width: 900px) {

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

    .hero-master-visual {
        width: 100%;
        max-width: 100%;

        transform: none;
    }

}


/* =========================================================
   STARTSEITE – HERO ÜBERLAPPUNG KORRIGIERT
   ========================================================= */

/* Mehr Luft zwischen Text und Hero-Grafik */
.home-hero-grid {
    grid-template-columns:
        minmax(0, 0.86fr)
        minmax(0, 1.14fr);

    gap: 52px;
}

/* Gesamte Grafik etwas kleiner und weiter nach rechts */
.hero-master-visual {
    width: 112%;
    max-width: none;

    transform: translateX(7%);
    transform-origin: right bottom;
}

/* Fließtext bewusst begrenzen */
.home-copy .hero-description {
    max-width: 570px;
}

/* Falls die Texte als einzelne Absätze aufgebaut sind */
.home-copy > p:not(.hero-eyebrow) {
    max-width: 570px;
}

/* Mobile / Tablet unverändert sauber */
@media (max-width: 900px) {

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-master-visual {
        width: 100%;
        max-width: 100%;
        transform: none;
    }

    .home-copy .hero-description,
    .home-copy > p:not(.hero-eyebrow) {
        max-width: none;
    }
}


/* =========================================================
   STARTSEITE – LETZTE HERO-FEINJUSTIERUNG
   größer, aber weiterhin klar vom Text getrennt
   ========================================================= */

.hero-master-visual {
    width: 120%;
    max-width: none;

    transform: translateX(13%);
    transform-origin: right bottom;
}


/* Tablet / Mobile weiterhin normal */
@media (max-width: 900px) {

    .hero-master-visual {
        width: 100%;
        max-width: 100%;

        transform: none;
    }

}


/* STARTSEITE – HERO PLUS 5 PROZENT */

.hero-master-visual {
    width: 146%;
    max-width: none;

    transform: translateX(20%) translateY(20px) scale(1.05);
    transform-origin: right bottom;
}


/* Tablet / Mobile unverändert */
@media (max-width: 900px) {

    .hero-master-visual {
        width: 100%;
        max-width: 100%;

        transform: none;
    }

}

/* ENDE HERO PLUS 5 PROZENT */



/* STARTSEITE – HEADLINE FINAL 2026 */
h1 > span {
    display: block;
}

h1 > span + span {
    margin-top: 8px;
}

h1 > span:nth-child(3) {
    color: #064ed8 !important;
}
/* END HEADLINE FINAL 2026 */

/* STARTSEITE – TEXT AN HERO AUSGERICHTET FINAL */
@media (min-width: 901px) {
    .home-copy .hero-description,
    .home-copy > p:not(.hero-eyebrow) {
        max-width: 420px;
    }
}
/* END TEXT AN HERO AUSGERICHTET FINAL */





/* STARTSEITE – STICHWORTBAND SAUBER ÜBER HERO */
@media (min-width: 901px) {

    .home-hero-grid {
        grid-template-rows: auto 1fr;
        column-gap: 52px;
        row-gap: 4px;
    }

    .home-copy {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .hero-keywords {
        position: static;
        grid-column: 2;
        grid-row: 1;

        display: flex;
        justify-content: center;
        align-items: center;
        gap: 13px;

        width: 100%;
        white-space: nowrap;
    }

    .home-visual {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 900px) {
    .home-copy,
    .home-visual {
        grid-column: 1;
        grid-row: auto;
    }
}
/* END STICHWORTBAND SAUBER ÜBER HERO */












/* STARTSEITE – KEYWORD SLIDER FINAL 2026 */

@media (min-width: 901px) {

    .hero-keyword-slider {
        display: grid !important;
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        align-items: center;
        gap: 10px;

        width: 100%;
        max-width: 920px;
        margin: 0 auto;

        overflow: visible !important;
    }

    .hero-keyword-slider-window {
        position: relative;

        width: 100%;
        height: 32px;

        min-width: 0;
        overflow: hidden;
    }

    .hero-keyword-slider-current {
        position: absolute;
        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        white-space: nowrap;

        color: #092a5e;
        font-size: 1.66rem;
        font-weight: 700;
        letter-spacing: 0.08em;

        transform: translateX(0);
        opacity: 1;
    }

    .hero-keywords-nav {
        width: 38px;
        height: 38px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;

        border: 2px solid #cbd6df;
        border-radius: 50%;

        background: #ffffff;
        color: #092a5e;

        font-size: 1.65rem;
        font-weight: 800;
        line-height: 1;

        cursor: pointer;
    }

    .hero-keywords-nav:focus-visible {
        outline: 2px solid #064ed8;
        outline-offset: 2px;
    }
}

@media (max-width: 900px) {
    .hero-keyword-slider {
        display: none !important;
    }
}

/* END KEYWORD SLIDER FINAL 2026 */


/* Kompetenzicons – finale PNG-Darstellung */
.competence-item {
    grid-template-columns: 72px 1fr;
}

.competence-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    flex: 0 0 72px;

    border: none;
    border-radius: 0;
    background: transparent;
}

.competence-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Kompetenzüberschriften einheitlich oben ausrichten */
.competence-item > div:last-child {
    align-self: start;
}

/* Kompetenzicons mit Textblock oben ausrichten */
.competence-icon {
    align-self: start;
}

/* RESPONSIVE – Hero-Grafik auf Tablet/Mobil zentrieren */
@media (max-width: 900px) {
    .hero-master-visual {
        right: 0;
    }
}

/* RESPONSIVE – Hero-Grafik mobil ohne unnötigen Leerraum */
@media (max-width: 600px) {
    .home-visual {
        min-height: 0;
        margin-top: 18px;
    }

    .hero-master-visual {
        position: static;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        transform: none;
    }
}
