html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f0f0f0;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    color: #40444a;
    line-height: 1.6;
}

p {
    margin: 0;
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #18273e;
    margin: 0 0 10px 0;
}

h1 {
    font-size: 2.25rem;
    font-weight: 400;
    color: #e2001a;
    margin-top: 0;
	margin-bottom: 5px;
}

h3 {
    position: relative;
    padding-left: 56px;
    font-size: 30px;
    color: #18273e;
    margin: 0 0 40px 0;
}

h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

h4 {
    font-size: 22px;
    color: #18273e;
    margin: 0 0 20px 0;
}

#slogan {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-narrow {
    max-width: 1500px;
    margin: 0 auto;
    text-align: justify;
    hyphens: auto;
}

.section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    scroll-margin-top: 140px;
}

#einleitung, #einleitung2 {
    max-width: 1000px;
    margin: 0 auto;
}
#einleitung h1 {
    position: relative;
    padding-bottom: 13px;
    margin-bottom: 15px;
}
#einleitung h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #e2001a;
}

header {
    background: #fff;
    padding: 12px 0;
}

.flex {
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

#logo {
    align-self: center;
}

#logo img {
    width: 100px;
}

header p {
    margin: 0;
    line-height: normal;
}

.top-nav {
    background-color: #18273e;
    border-bottom: 1px solid #0f1a2c;
}

.top-nav .container {
    padding: 10px 40px;
}

.nav-flex {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 8px 0;
}

.top-nav a {
    font-size: 14px;
    letter-spacing: 0.8px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-nav a:hover {
    color: #e2001a;
}


.header-img {
    height: 350px;
    overflow: hidden;
    margin-bottom: 40px;
}

.header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.section ul {
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.section li {
    position: relative;
    padding-left: 28px;
    margin: 8px 0;
}

.section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #e2001a;
}


.job-buttons {
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-btn {
    position: relative;
    padding: 14px 48px 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #18273e;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.job-btn::after {
    content: "→";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.job-btn:hover {
    transform: scale(1.03);
}


.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    text-align: left;
}

.two-col .text { order: 1; }
.two-col .image { order: 2; }

.two-col .image img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12),
    0 6px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.two-col .image img:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.18),
    0 10px 20px rgba(0,0,0,0.10);
}


.divider {
    width: 100%;
    max-width: 1100px;
    height: 1px;
    background: #c2c2c2;
    margin: 60px auto;
}

.spacer { height: 80px; }


.image-carousel-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    margin-top: 40px;
    padding: 40px 0;
    background-color: rgba(194, 194, 194, 0.54);
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 40px auto;
    padding: 20px;
    background: rgba(194, 194, 194, 0.54);

    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    align-items: stretch;
}


.carousel-track img {
    width: 33.333%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}


@media (max-width: 900px) {
    .carousel-track img {
        width: 50%;
    }
}


@media (max-width: 600px) {
    .carousel-track img {
        width: 100%;
    }
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(194, 194, 194, 0.54);
}

.slide img {
    width: 33.333%;
    min-width: 500px;
    height: 350px;
    object-fit: cover;
    background: transparent;
    margin: 0;
    display: block;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(213, 213, 214, 0);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
}

.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }

.carousel-btn:hover {
    background: rgba(227, 213, 213, 0.58);
}


.static-image-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1850px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.static-image-row img {
    flex: 1 1 0;
    max-width: 500px;
    min-width: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 8px -5px 11px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.static-image-row img:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.18),
    0 10px 20px rgba(0,0,0,0.10);
}


.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.focus-col h3 { margin-bottom: 10px; }
.focus-col ul { margin: 0; }

#Verstaerkung h3::before { background-image: url("../images/icons/wachstum.png"); }
#Schwerpunkte h3::before { background-image: url("../images/icons/schwerpunkt.png"); }
#Ausstattung h3::before { background-image: url("../images/icons/3ddrucker.png"); }
#Arbeitsweise h3::before { background-image: url("../images/icons/team.png"); }
#Standort h3::before { background-image: url("../images/icons/innsbruck.png"); }


@keyframes sectionHighlight {
    0% { background-color: transparent; box-shadow: none; }
    30% { background-color: rgb(238,238,238); box-shadow: 0 0 20px rgba(238,238,238,0.5); }
    100% { background-color: transparent; box-shadow: none; }
}

.highlight-flash {
    animation: sectionHighlight 1.2s ease-out;
    border-radius: 50px;
    padding: 12px;
}


@media (min-width: 768px) {
    .two-col { grid-template-columns: 1fr 1fr; }
    .two-col.reverse .text { order: 2; }
    .two-col.reverse .image { order: 1; }
    .focus-grid { grid-template-columns: 1fr 1fr; }
    header { padding: 10px 0; }
    .image-carousel-section {padding: 40px 30px;}
}

@media (min-width: 1024px) {
    .section { padding: 0 60px; }
    .header-img { height: 350px; }
    .image-carousel-section { height: 400px; padding: 40px 30px;}
}

@media (max-width: 600px) {
    .static-image-row {
        flex-direction: column;
        align-items: center;
    }

    .static-image-row img { max-width: 80%; }
    .image-carousel-section {padding: 40px 30px;}
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    #slogan { font-size: 14px; }
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    h4 { font-size: 14px; }
    header { padding: 6px 0; }
    .image-carousel-section {padding: 40px 10px;}
}