Files
website-html/css/style.css
Patrick Zerhusen 5a44c165dc Update Leistungen
2026-03-02 16:39:30 +01:00

1351 lines
22 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* =====================
GENERAL
===================== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'League Spartan', sans-serif;
}
html {
scroll-behavior: smooth;
}
body {
color: #151515;
overflow-x: hidden;
padding-top: 109px;
}
html, body {
width: 100%;
max-width: 100%;
overflow-x: hidden;
}
/* =====================
HEADER / NAV
===================== */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 109px;
background: white;
border-bottom: 1px solid #eee;
z-index: 9999;
}
.nav {
max-width: 1440px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
height: 100%;
padding: 0 40px;
}
.logo {
display: flex;
align-items: center;
cursor: pointer;
}
.logo img {
height: 45px;
width: auto;
display: block;
}
.nav-links {
display: flex;
gap: 32px;
font-size: 24px;
font-weight: 500;
align-items: center;
}
.nav-links a {
text-decoration: none;
color: #151515;
transition: font-weight 0.2s ease;
}
.nav-links a.active {
font-weight: 800;
color: #151515;
}
.lang-switch span {
cursor: pointer;
font-size: 16px;
font-weight: 500;
transition: font-weight 0.2s ease;
}
.lang-switch span.active {
font-weight: 700;
}
.burger {
display: none;
}
/* =====================
SECTIONS
===================== */
section:not(.company):not(.hero),
footer {
width: 100%;
max-width: 1440px;
margin-inline: auto;
padding-inline: clamp(16px, 6vw, 180px);
padding-block: clamp(80px, 8vw, 120px);
box-sizing: border-box;
}
/* =====================
HERO
===================== */
.hero {
position: relative;
width: 100%;
max-width: 100%;
height: 610px;
background-image: url("../assets/hero-bg.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
overflow: hidden;
isolation: isolate;
}
/* ================= HERO BOXES ================= */
.hero::before,
.hero::after {
content: '';
position: absolute;
top: 50%;
transform-origin: top left;
pointer-events: none;
}
/* Rechte grüne Fläche */
.hero::before {
width: 900px;
height: 900px;
background-color: #7FD332;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cline x1='0%25' y1='75%25' x2='100%25' y2='55%25' stroke='white' stroke-width='1'/%3E%3Cline x1='0%25' y1='60%25' x2='100%25' y2='85%25' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: cover;
transform: rotate(-14deg) translateY(-50%);
right: -700px;
z-index: 1;
}
/* Linke weiße Fläche */
.hero::after {
width: 900px;
height: 900px;
background-color: #fff;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cline x1='0%25' y1='75%25' x2='100%25' y2='55%25' stroke='black' stroke-width='1'/%3E%3Cline x1='0%25' y1='60%25' x2='100%25' y2='85%25' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: cover;
transform: rotate(-10.86deg) translateY(-50%);
left: -700px;
margin-top: 80px;
z-index: 1;
}
/* Overlay liegt über den Dekoflächen */
.hero-overlay {
position: relative;
z-index: 2;
max-width: clamp(400px, 45vw, 700px);
padding: 20px;
}
/* Fluid: ab 1589px reinfahren, bei 1024px auf -750px */
@media (max-width: 1589px) {
.hero::before {
right: calc(-700px + ((1589 - 100vw / 1px) / (1589 - 1024)) * (-750 + 700) * -1px);
}
.hero::after {
left: calc(-700px + ((1589 - 100vw / 1px) / (1589 - 1024)) * (-750 + 700) * -1px);
}
}
/* Ab 1024px: fix außerhalb */
@media (max-width: 1024px) {
.hero::before {
right: -750px;
}
.hero::after {
left: -750px;
}
}
.hero-title {
font-family: "League Spartan", sans-serif;
font-weight: 600;
font-size: 96px;
color: #ffffff;
margin-bottom: 24px;
}
.hero-subline {
font-family: "League Spartan", sans-serif;
font-size: 18px;
color: #ffffff;
line-height: 1.3;
margin-bottom: 40px;
}
.hero-button {
position: relative;
font-family: "League Spartan", sans-serif;
background: #7FD332;
color: #151515;
border: 1px solid #151515;
padding: 14px 32px;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
overflow: hidden;
letter-spacing: 0;
}
.hero-button::after {
content: "→";
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%) translateX(10px);
opacity: 0;
transition: all 0.3s ease;
font-weight: bold;
}
.hero-button:hover {
background: #F0F9E9;
color: #151515;
padding-right: 40px;
}
.hero-button:hover::after {
transform: translateY(-50%) translateX(0);
opacity: 1;
}
/* =====================
NEWS BUTTON
===================== */
.news-button {
position: relative;
font-family: "League Spartan", sans-serif;
background: #7FD332;
color: #151515;
border: 1px solid #151515;
padding: 14px 2px 14px 16px;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
overflow: hidden;
letter-spacing: 0;
width: auto;
white-space: nowrap;
}
.news-button::after {
content: "→";
display: inline-block;
font-weight: bold;
transform: translateX(4px);
opacity: 0;
transition: all 0.3s ease;
}
.news-button:hover {
background: #F0F9E9;
color: #151515;
padding-right: 28px;
}
.news-button:hover::after {
transform: translateX(0);
opacity: 1;
}
/* =====================
NEWS
===================== */
.news-section-title {
font-size: 48px;
margin-top: 160px;
margin-bottom: 40px;
}
.news {
width: 100%;
padding: 80px 0;
}
.news-container {
max-width: 1080px;
}
.news-slider {
overflow: hidden;
position: relative;
}
.news-track {
display: flex;
transition: transform 0.6s ease;
background-color: #F0F9E9;
}
.news-slide {
display: grid;
grid-template-columns: 1fr 1fr;
min-height: 400px;
min-width: 100%;
box-sizing: border-box;
background-color: #F0F9E9;
border-right: 1px solid #7FD332;
border-left: 1px solid #7FD332;
}
.news-media {
position: relative;
width: 100%;
height: 100%;
clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
overflow: hidden;
}
.news-media::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cline x1='0%25' y1='100%25' x2='100%25' y2='75%25' stroke='white' stroke-width='1.5'/%3E%3Cline x1='50%25' y1='100%25' x2='100%25' y2='50%25' stroke='%237FD332' stroke-width='1.5'/%3E%3C/svg%3E");
background-size: cover;
background-repeat: no-repeat;
}
.news-media img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 0;
}
.news-content {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
padding: clamp(20px, 5vw, 40px);
gap: 16px;
}
.news-title {
font-family: "League Spartan", sans-serif;
font-weight: 700;
font-size: 32px;
line-height: 125%;
color: #7FD332;
margin-bottom: 16px;
}
.news-subline {
font-family: "League Spartan", sans-serif;
font-weight: 600;
font-size: 24px;
color: #151515;
margin-bottom: 20px;
}
.news-text {
font-family: "League Spartan", sans-serif;
font-weight: 400;
font-size: 16px;
color: #151515;
line-height: 1.6;
margin-bottom: 16px;
}
.news-dots {
display: flex;
justify-content: center;
gap: 16px;
margin-top: 30px;
}
.news-dot {
width: 18px;
height: 18px;
border: 1px solid #151515;
cursor: pointer;
}
.news-dot.active {
background: #7FD332;
}
.news-dot:hover {
background: #F0F9E9;
}
/* =====================
SERVICES
===================== */
#services {
margin-top: 80px;
margin-bottom: 160px;
}
#services p {
font-size: 18px;
margin-bottom: 56px;
line-height: 1.7;
}
.services-header {
text-align: left;
margin-bottom: 80px;
}
.services-header h2 {
font-size: 48px;
margin-bottom: 24px;
}
.services-header h3 {
font-size: 24px;
margin-bottom: 24px;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 48px;
}
.service-box {
min-height: 468px;
background: #F8FBF5;
padding: 16px;
transition: all 0.3s ease;
position: relative;
flex-shrink: 0;
align-self: flex-start;
box-sizing: border-box;
display: flex;
flex-direction: column;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
}
.service-box img {
width: 100%;
height: 224px;
object-fit: cover;
transition: all 0.3s ease;
}
.service-title {
font-size: 32px;
margin-top: 16px;
transition: color 0.3s;
color: #000000;
}
.service-arrow {
position: absolute;
bottom: 16px;
right: 16px;
cursor: pointer;
transition: color 0.3s, opacity 0.3s, transform 0.2s, font-weight 0.2s;
color: #000000;
font-weight: 400;
}
.service-text {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease, margin-top 0.5s ease;
font-size: 18px;
line-height: 150%;
margin-top: 0;
color: #7FD332;
}
.service-box:hover,
.service-box.open {
background: #F0F9E9;
border-left: 1px solid #7FD332;
border-right: 1px solid #7FD332;
}
.service-box:hover .service-title,
.service-box:hover .service-arrow,
.service-box.open .service-title,
.service-box.open .service-arrow,
.service-box.closing .service-title,
.service-box.closing .service-arrow {
color: #7FD332;
}
.service-box:hover .service-arrow {
font-weight: 1000;
transform: scale(1.6);
}
.service-box.closing .service-arrow {
font-weight: 600;
transform: scale(1.6);
}
.service-box.open .service-arrow {
opacity: 0;
}
.service-box.open .service-text {
max-height: 500px;
margin-top: 24px;
}
/* =====================
COMPANY
===================== */
.company {
background: #F0F9E9;
width: 100%;
padding: 160px 96px;
}
.company-content {
display: grid;
grid-template-columns: 1fr;
padding: 0 4vw;
max-width: 1440px;
margin: 0 auto;
box-sizing: border-box;
}
.company-content h2 {
font-size: 48px;
margin-bottom: 24px;
}
.company-content h3 {
font-size: 24px;
margin-bottom: 20px;
}
.company-text {
font-size: 18px;
text-align: justify;
line-height: 1.7;
hyphens: auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 104px;
margin-top: 40px;
margin-bottom: 56px;
}
.company img {
width: 100%;
height: auto;
object-fit: cover;
}
/* =====================
DIVIDER 1
===================== */
#divider-1 {
width: 100%;
height: 102px;
background-color: #7FD332;
clip-path: polygon(0 0, 100% 0, 100% 51%, 0 100%);
}
/* =====================
CONTACT
===================== */
#contact h2 {
margin-top: 180px;
font-size: 48px;
margin-bottom: 24px;
}
#contact h3 {
font-size: 36px;
margin-bottom: 16px;
}
#contact p {
font-size: 18px;
margin-bottom: 56px;
line-height: 1.7;
}
.content-box {
background-color: #F0F9E9;
max-width: 400px;
min-height: 190px;
padding: 36px;
border-left: 1px solid #7FD332;
border-right: 1px solid #7FD332;
}
.contact-options {
display: flex;
align-items: flex-start;
gap: 16px;
}
.content-box > *:not(h3) {
margin-top: 16px;
}
.contact-link {
font-family: "League Spartan", sans-serif;
font-size: 18px;
color: #151515;
text-decoration-line: underline;
transition: color 0.3s ease;
text-align: left;
}
.contact-link:hover {
color: #7FD332;
}
.contact-button {
margin-top: 56px;
position: relative;
font-family: "League Spartan", sans-serif;
background: #7FD332;
color: #151515;
border: 1px solid #151515;
padding: 14px 32px;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
overflow: hidden;
letter-spacing: 0;
}
.contact-button::after {
content: "→";
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%) translateX(10px);
opacity: 0;
transition: all 0.3s ease;
font-weight: bold;
}
.contact-button:hover {
background: #F0F9E9;
color: #151515;
padding-right: 40px;
}
.contact-button:hover::after {
transform: translateY(-50%) translateX(0);
opacity: 1;
}
/* =====================
CAREER
===================== */
#career h2 {
font-size: 48px;
margin-bottom: 24px;
}
#career h3 {
font-size: 24px;
margin-bottom: 24px;
}
#career p {
font-size: 18px;
margin-bottom: 56px;
line-height: 1.7;
}
/* =====================
DIVIDER 2
===================== */
#divider-2 {
width: 100%;
height: 192px;
background-color: #7FD332;
clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}
/* =====================
FOOTER
===================== */
footer {
padding: 80px 180px;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 40px;
align-items: start;
}
#footer-logo {
width: 100px;
max-width: 100%;
margin-bottom: 40px;
}
.footer-grid h4 {
font-size: 24px;
margin-bottom: 16px;
}
.footer-grid a {
font-size: 16px;
line-height: 150%;
color: #7FD332;
}
.copyright {
margin-top: 96px;
border-top: 1px solid #7FD332;
text-align: center;
padding-top: 56px;
color: #7FD332;
}
/* =====================
LEGALS
===================== */
#legals-logo {
width: 300px;
margin-top: 58px;
margin-left: 180px;
display: block;
padding: 0;
box-sizing: content-box;
}
#impressum, #datenschutz {
margin-left: 0;
}
#impressum h1, #datenschutz h1 {
padding-bottom: 0;
}
#impressum h2, #datenschutz h2 {
padding-top: 36px;
padding-bottom: 24px;
}
#impressum p, #datenschutz p,
#impressum ul, #datenschutz ul {
line-height: 1.7;
font-size: 18px;
}
#impressum a, #datenschutz a {
color: #7FD332;
}
img, video, svg {
max-width: 100%;
height: auto;
}
/* ======================================
RESPONSIVE
====================================== */
/* ---------- 1200px ---------- */
@media (max-width: 1200px) {
section:not(.hero), footer {
padding-left: 80px;
padding-right: 80px;
}
.footer-grid {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 32px;
}
}
/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
section:not(.hero), footer {
padding-left: 48px;
padding-right: 48px;
}
.hero {
height: 520px;
}
.hero-title {
font-size: 72px;
}
.news-slide {
grid-template-columns: 1fr;
height: auto;
}
.company-text {
grid-template-columns: 1fr;
gap: 32px;
}
.footer-grid {
grid-template-columns: 1fr;
gap: 32px;
text-align: left;
}
#footer-logo {
order: -1;
margin: 0 0 48px 0;
width: 280px;
}
.footer-grid div {
display: block;
}
.footer-grid a {
display: block;
margin-bottom: 8px;
}
.nav-links {
display: none;
}
.mobile-menu {
display: flex;
align-items: center;
gap: 12px;
margin-left: auto;
}
.burger {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 24px;
height: 18px;
cursor: pointer;
}
.burger span {
display: block;
height: 3px;
width: 100%;
background: #151515;
border-radius: 2px;
transition: all 0.3s ease;
}
.lang-switch {
display: flex;
align-items: center;
gap: 9px;
cursor: pointer;
}
.nav.open .nav-links {
display: flex;
flex-direction: column;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
padding: 20px;
gap: 16px;
border-bottom: 1px solid #eee;
z-index: 998;
}
}
/* ---------- 881px ---------- */
@media (max-width: 881px) {
section, footer {
padding-left: 20px;
padding-right: 20px;
box-sizing: border-box;
}
.hero {
height: 80vh;
padding: 5vw;
}
.hero-title {
font-size: clamp(28px, 6vw, 48px);
}
.hero-subline {
font-size: clamp(12px, 3vw, 16px);
}
.services-grid {
grid-template-columns: 1fr;
gap: 32px;
}
.service-box {
min-height: auto;
}
.news-slide {
grid-template-columns: 1fr;
height: auto;
}
.news-media {
clip-path: none;
height: 260px;
}
.news-content {
justify-content: flex-start;
align-items: flex-start;
}
.company {
padding: 80px 20px;
}
.company-text {
grid-template-columns: 1fr;
gap: 32px;
}
.company img {
height: 220px;
}
.content-box {
width: 100%;
}
.contact-options {
flex-direction: column;
gap: 12px;
text-align: left;
}
footer {
padding: 60px 20px;
}
.footer-grid {
grid-template-columns: 1fr;
gap: 32px;
text-align: left;
}
#footer-logo {
width: 200px;
margin-bottom: 56px;
}
}
/* ---------- 768px ---------- */
@media (max-width: 768px) {
body {
padding-top: 80px;
}
section:not(.hero), footer {
padding-left: 20px;
padding-right: 20px;
padding-top: 80px;
padding-bottom: 80px;
}
header {
height: 80px;
}
.nav {
padding: 0 20px;
}
.logo img {
height: 36px;
}
.hero {
height: 100vh;
padding: 40px 20px;
}
.hero-overlay {
transform: scale(1.05);
}
.hero-title {
font-size: 48px;
}
.hero-subline {
font-size: 14px;
}
.news-slide {
grid-template-columns: 1fr;
height: auto;
}
.news-media {
height: 260px;
clip-path: none;
}
.company {
padding: 120px 20px;
}
.company img {
height: 220px;
}
.logo-track {
padding: 0 20px;
gap: 40px;
overflow-x: auto;
}
.logo-track img {
width: 160px;
flex-shrink: 0;
}
.content-box {
width: 100%;
}
.contact-options {
flex-direction: row;
gap: 12px;
text-align: left;
}
footer {
padding: 80px 20px;
}
.footer-grid {
grid-template-columns: 1fr;
gap: 32px;
text-align: left;
}
#footer-logo {
width: 200px;
margin-bottom: 56px;
}
}
/* =====================
HERO FLUID: 411px 768px
===================== */
@media (min-width: 411px) and (max-width: 768px) {
.hero::before {
right: -750px; /* war: -600px */
width: calc(300px + ((100vw - 411px) / (768 - 411)) * (750 - 300));
height: calc(400px + ((100vw - 411px) / (768 - 411)) * (1050 - 400));
}
.hero::after {
left: -500px;
width: calc(250px + ((100vw - 411px) / (768 - 411)) * (600 - 250));
height: calc(350px + ((100vw - 411px) / (768 - 411)) * (1000 - 350));
}
}
/* =====================
TINY MOBILE: 410px & below
===================== */
@media (max-width: 410px) {
.hero::before,
.hero::after {
display: none !important;
}
.hero {
height: auto;
padding: 20px 16px;
}
.hero-title {
font-size: 36px !important;
line-height: 1.2;
}
.hero-subline {
font-size: 16px !important;
line-height: 1.4;
word-break: break-word;
}
.news-slide {
grid-template-columns: 1fr !important;
height: auto !important;
}
.news-media {
height: 220px !important;
clip-path: none !important;
}
.news-title {
font-size: 20px !important;
margin-bottom: 8px !important;
}
.news-subline {
font-size: 16px !important;
margin-bottom: 8px !important;
}
.news-text {
font-size: 14px !important;
line-height: 1.4 !important;
margin-bottom: 12px !important;
}
.company {
padding: 60px 16px !important;
}
.company-text {
grid-template-columns: 1fr !important;
gap: 16px !important;
}
.company img {
height: auto !important;
}
.content-box {
padding: 24px 16px !important;
}
section, footer,
.news-container,
.company-content,
.logo-track {
max-width: 100% !important;
padding-left: 16px !important;
padding-right: 16px !important;
box-sizing: border-box;
}
}
/* =====================
TINY MOBILE: 320px & below
===================== */
@media (max-width: 320px) {
section:not(.hero), footer {
padding-left: 16px !important;
padding-right: 16px !important;
}
.hero {
height: auto !important;
padding: 20px 16px !important;
}
.hero-title {
font-size: 32px !important;
line-height: 1.2 !important;
}
.hero-subline {
font-size: 14px !important;
line-height: 1.4 !important;
word-break: break-word !important;
}
.hero-overlay {
max-width: 90% !important;
padding: 8px !important;
}
.services-grid {
grid-template-columns: 1fr !important;
gap: 24px !important;
padding-left: 8px !important;
padding-right: 8px !important;
}
.service-box {
min-height: auto !important;
}
.news-slide {
display: flex !important;
flex-direction: column !important;
border-left: 1px solid #7FD332 !important;
border-right: 1px solid #7FD332 !important;
padding: 8px 16px !important;
height: auto !important;
}
.news-title {
font-size: 18px !important;
margin-bottom: 8px !important;
}
.news-subline {
font-size: 14px !important;
margin-bottom: 8px !important;
}
.news-text {
font-size: 12px !important;
margin-bottom: 8px !important;
}
.news-button {
padding: 8px 12px !important;
font-size: 12px !important;
}
.company {
padding: 60px 16px !important;
}
.company-content {
padding: 0 16px !important;
}
.company-text {
grid-template-columns: 1fr !important;
gap: 16px !important;
}
#clients {
padding: 0 16px !important;
}
.logo-track {
flex-wrap: wrap !important;
justify-content: center !important;
padding: 0 !important;
gap: 16px !important;
}
.logo-track img {
width: 45% !important;
margin-bottom: 16px !important;
max-height: 50px !important;
}
.content-box {
padding: 8px 16px !important;
max-width: 100% !important;
}
.contact-options {
flex-direction: column !important;
align-items: flex-start !important;
gap: 8px !important;
}
.contact-link {
font-size: 14px !important;
}
.contact-button {
font-size: 12px !important;
padding: 8px 16px !important;
width: 100% !important;
text-align: center !important;
}
footer {
padding: 40px 16px !important;
}
.footer-grid {
grid-template-columns: 1fr !important;
gap: 24px !important;
}
#footer-logo {
width: 160px !important;
margin-bottom: 40px !important;
}
header {
height: 70px !important;
}
.nav {
padding: 0 16px !important;
}
.logo img {
height: 30px !important;
}
}