* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #1b1b1b;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s ease;
}

.navbar {
    top: 0;
    width: 100%;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

.navbar_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    border-bottom: 1px solid rgba(251, 251, 251, 0.22);
    padding-bottom: 0.5rem;
    transition: border-color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar .logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: white;
    font-weight: 500;
    font-size: larger;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #024685;
}

.contactbutton {
    text-decoration: none;
    color: white;
    background-color: #1b1b1b;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: larger;
}

.contactbutton:hover {
    background-color: #024685;
    transition: background-color 0.2s ease, transform 0.2s ease-in-out;
    transform: scale(1.05);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px 0;
    background: #1b1b1b;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero .container {
    margin: 0 auto;
    width: 100%;
    max-width: 1300px;
    padding: 0 24px; /* huhhh*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    min-height: 100vh;
    padding-top: 80px; /* huhhh why does this work lol*/
    background: url(/Resourcen/heroy.png) no-repeat top center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 1.5rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0, 0.5);
    z-index: 0;
}

.cta-button {
    margin-top: 20px;
    background-color: #024685;
    padding: 1rem clamp(2rem, 10vw, 8rem);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 200px;
}

.cta-button:hover {
    background-color: #1b1b1b;
    transition: background-color 0.2s ease, transform 0.2s ease-in-out;
    transform: scale(1.05);
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0, 0.1);
}

.navbar.scrolled .nav-links li a,
.navbar.scrolled .burger {
    color: black;
}

.navbar.scrolled .nav-links li a:hover {
    color: #024685;
}

    /* about */
.about {
    padding: 4rem 0;
}

.about-grid {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 600;
    color: #222222;
    line-height:3rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    line-height: 2;
    color: #383838;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
}

    /* services */
.services-section {
    background-color: #fff;
    margin-bottom: 4rem;
}

.services-section h2 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.5rem;
}

.services-intro {
    text-align: left;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #555;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Frame für Slide-Effekt */
.service-frame {
    position: relative;
    overflow: hidden;
    height: 12rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.164);
    cursor: pointer;
}

/* Beschreibung, darunter liegend */
.service-desc {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ececec;
    padding: clamp(1rem, 5vw, 1.5rem) clamp(1rem, 5vw, 2.5rem);
    box-sizing: border-box;
    z-index: 1;
    opacity: 0;               /* initial unsichtbar */
    transition: opacity 0.3s;
}

/* Karte selbst, oben liegend */
.service-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #024685;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform 0.4s ease;
    z-index: 2;
    }

/* Hover-Effekt Desktop */
.service-frame:hover .service-card {
    transform: translateX(100%);  /* Karte rutscht komplett nach rechts */
}
.service-frame:hover .service-desc {
    opacity: 1;                    /* Beschreibung wird sichtbar */
}

/* Aktiv-Klasse für Klick-Toggling */
.service-frame.active .service-card {
    transform: translateX(100%);
}
.service-frame.active .service-desc {
    opacity: 1;
}

    /* footer */
.footer {
    background-color: #383838;
    color: #fff;
    padding-top: 2rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: #0c5eaa;
}

/* Grid für die vier Spalten */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 500 ;
}

.footer-col p,
.footer-col ul {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #868686;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li + li {
    margin-top: 0.5rem;
}

.footer-col ul li a {
    color: #868686;
}

/* untere Fußzeile */
.footer-bottom {
    background-color: #313131;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #868686;
}
