* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.backlink a {
    text-decoration: none;
    color: white;
}

.backlink strong {
    letter-spacing: 2px;
}

/* Allgemeine Schriftart für den gesamten Body */
body {
  font-family: 'Roboto', sans-serif; /* Standard-Schriftart für Fließtext */
  color: #727272; /* Dezente Textfarbe */
  overflow-x: hidden !important; /* Verhindert horizontales Scrollen */
  line-height: 1.6;
}

/* Überschriften */
h1, h2, h3 {
  font-family: 'Poppins', sans-serif; /* Dynamische Schriftart für Überschriften */
  color: #5a5a5a; /* Akzentfarbe */
  font-weight: 600;
  line-height: 1.2;
}

/* Akzenttexte oder Zitate */
blockquote, .highlight-title, .philosophy-title {
  font-family: 'Merriweather', serif; /* Elegante Serifenschrift */
  font-style: italic;
  color: #c7c7c7;
}

/* Buttons */
.button, .button-dienstleistungen {
  font-family: 'Poppins', sans-serif; /* Gleiche Schriftart wie Überschriften für Konsistenz */
  font-weight: 500;
}

/* Navigation */
.header-container nav ul li a {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #727272 !important;
  text-transform: uppercase; /* Optional: Großbuchstaben für einen professionellen Look */
}

/* Fließtext */
p, li {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Improved image loading */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Stellt sicher, dass das Video den gesamten Container ausfüllt */
  z-index: -1; /* Positioniert das Video hinter anderen Elementen */
}

.banner-img {
  position: relative;
  z-index: 2; /* Stellt sicher, dass das Bild über dem Video liegt */
  width: 100%;
  height: auto;
  opacity: 1; /* Optional: Transparenz für das Bild */
  transform: translateY(20%);
}

.header-container {
  transition: transform 0.5s ease; /* Sanfte Animation beim Ein-/Ausblenden */
}

.header-container {
  position: fixed; /* Fixiert die Navigation */
  top: 0; /* Positioniert sie oben */
  left: 0;
  width: 100%; /* Deckt die gesamte Breite ab */
  z-index: 1000; /* Stellt sicher, dass sie über anderen Elementen liegt */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Schatten für visuelle Trennung */
  padding: 10px 0; /* Beibehaltung des Layouts */
  height: 6em; /* Höhe automatisch anpassen */
  display: flex;
  align-items: center;
  background-color: white;
  will-change: transform;
}

.header-container .desktop-nav {
  width: 80%;
  margin: 0 auto; /* Zentriert die Navigation */
}

.header-container nav ul {
  display: flex;
  justify-content: space-between; /* Verteilt die Elemente mit Abstand */
  align-items: center;
  padding: 10px;
}

.header-container nav ul li:first-child {
  flex: 6; /* Nimmt 60% der Breite ein */
}

.header-container nav ul li:not(:first-child) {
  flex: 1; /* Teilt den restlichen Platz gleichmäßig auf */
  text-align: center; /* Zentriert die Texte */
}

.header-container nav ul li {
    list-style: none;
}

.header-container nav ul li a {
    text-decoration: none;
    font-size: 18px;
    font-size: 20px;
    font-weight: 600;
    color: white;
    transition: color 0.3s ease;
}

.header-container nav ul li a:hover {
    color: #f79aac;
}

.mi {
  color: #5a5a5a;
}

.mi img {
    scale: .8;
}

.image-wrapper {
    display: grid;
    grid-template-columns: 33.33% 33.33% 33.33%;
    height: 105vh;
}

.image-wrapper .img {
    transform: translateY(13%);
    filter: blur(4px); /* Macht das Bild leicht verschwommen */
}

.image-wrapper .img img {
    scale: 1.1;
}

.content {
    position: relative;
}

.text-content {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -10%);
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    z-index: 1;
    padding: 20px;
    border-radius: 10px;
}

.text-content h1 {
  color: white !important;
  font-size: 80px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-content p {
  color: white !important;
  font-weight: 400;
  font-size: 25px;
  color: #ffffff !important;
}

.image-container {
    height: 100vh;
    overflow: hidden;
}

.about {
    color: white;
    min-height: 75vh;
    padding: 2rem 0;
}

.about-heading {
    display: flex;
    justify-content: center;
    padding: 2em;
    font-size: 25px;
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.team-member {
  text-align: center;
  max-width: 300px;
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 5em;
  will-change: transform;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.team-photo {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-member h3 {
  font-size: 1.5rem;
  color: #5a5a5a;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 1rem;
  color: #727272;
  margin: 0.5rem 0;
}

.team-member a {
  color: #f79aac;
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-member a:hover {
  color: #c7c7c7;
}

.cart-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
  transform: translateY(4vh);
}

.Cart {
  background-color: rgba(255, 255, 255, 0.2); /* Halbtransparenter weißer Hintergrund */
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
  padding: 2rem;
  flex: 1 1 300px;
  max-width: 500px;
  min-height: 250px;
  color: black;
  font-size: 19px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px); /* Milchglas-Effekt */
  border: 1px solid rgb(199, 199, 199); /* Leichte Umrandung für den Effekt */
  will-change: transform;
}

.Cart:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Verstärkter Schatten beim Hover */
}

.cart-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.cart-heading h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #727272;
}

.cart-icon {
  font-size: 1.8rem;
  color: #f79aac;
}

.button-dienstleistungen {
    background-color: #c7c7c7;
    padding: 1em;
    border-radius: 25px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.3s ease;
}

.button-dienstleistungen:hover {
    background-color: #5a5a5a;
    color: white;
}

.about-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 50vh;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
}

.about-intro h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #5a5a5a;
    margin-bottom: 20px;
}

.about-intro p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.timeline {
    position: relative;
    margin-left: 30px;
    padding-left: 30px;
    border-left: 3px solid #c7c7c7;
    transform: translateX(13em);
}

.timeline-point {
    position: relative;
    margin-bottom: 40px;
}

.timeline-point::before {
    content: "";
    position: absolute;
    left: -43px;
    top: 3px;
    width: 16px;
    height: 16px;
    background-color: #f79aac;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #f79aac;
}

.timeline-point h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #5a5a5a;
}

.timeline-point p {
    margin: 0;
    color: #727272;
}

.philosophy-section {
    margin-top: 35em;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.philosophy-container {
    background-color: white;
    padding: 60px 40px;
    border-radius: 20px;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-25em);
}

.philosophy-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #f79aac;
    margin-bottom: 20px;
    position: relative;
}

.philosophy-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #f79aac;
    margin: 12px auto 0;
    border-radius: 2px;
}

.philosophy-text {
    margin-top: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #727272;
}

.kontakt {
    margin-top: 5em;
    display: flex;
    text-align: center;
    display: block;
    padding: 2rem;
    transform: translateY(-20em);
}

.kontakt p {
    color: #727272;
    font-size: 15px;
    margin-top: .5em;
    margin-bottom: 2em;
}

.kontakt-container {
    margin-top: 2em;
    margin-bottom: 3em;
}

.kontakt h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.name, .email {
    width: min(20%, 300px);
    min-width: 250px;
    height: 2em;
    background-color: transparent;
    margin-bottom: 1em;
    border: 2px solid #5a5a5a;
    border-radius: 3px;
    padding: 5px;
    font-size: 16px;
}

.message {
    width: min(20%, 300px);
    min-width: 250px;
    height: 10em;
    background-color: transparent;
    margin-bottom: 1em;
    border: 2px solid #5a5a5a;
    border-radius: 3px;
    padding: 5px;
    font-size: 16px;
    resize: vertical;
}

.button {
    background-color: #5a5a5a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #727272;
    color: white;
}

.button:active {
    background-color: #5a5a5a;
}

.line-Section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1em;
}

.Linewrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 4px;
    background-color: #f79aac;
    border-radius: 25px;
}

.highlight-section {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.highlight-container {
    background-color: white;
    padding: 40px 40px;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-25em);
}

.highlight-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #f79aac;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.highlight-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #f79aac;
    margin: 12px auto 0;
    border-radius: 2px;
}

.highlight-point {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.highlight-point-symbol {
    color: #5a5a5a;
    font-size: 1.4rem;
    line-height: 1.2;
}

.highlight-point-content p {
    margin: 0;
    line-height: 1.6;
    color: #727272;
}

.highlight-point-content strong {
    color: #5a5a5a;
}

.footer {
    background-color: #f79aac;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer h3 {
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 20px;
    color: white;
}

.footer p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #c7c7c7;
}

.footer-social {
    margin-top: 20px;
}

.footer-contact h4 {
    margin-top: 1em;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 500;
    letter-spacing: .1rem;
    font-family: 'Roboto', sans-serif;
}

.footer-social a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-contact table {
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 1.2rem;
    color: white;
    margin-bottom: .5em;
}

.footer-contact table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
    color: #c7c7c7;
}

.zeiten-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impressum-main {
    min-height: 87vh;
}

.impressum-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #727272;
}

.impressum-container {
    transform: translateY(10em);
}

.impressum-container h1 {
    text-align: center;
}

.impressum-section h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #5a5a5a;
    margin-bottom: 1rem;
    text-align: center;
}

.impressum-section a {
    color: #f79aac;
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-section a:hover {
    color: #c7c7c7;
}

.adresse, .kontakt-daten, .rechtliches {
    padding: .3em;
    margin-bottom: .3em;
}

.impressum-header {
    background-color: white !important;
}

.datenschutz-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #727272;
    min-height: auto;
}

.datenschutz-container {
    transform: translateY(10em);
}

.datenschutz-section h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #5a5a5a;
    margin-bottom: 1rem;
    text-align: center;
}

.datenschutz-section h2 {
    font-size: 1.5rem;
    color: #5a5a5a;
    margin-top: 1.5rem;
}

.datenschutz-section ul {
    margin-left: 1.5rem;
    list-style-type: disc;
}

.datenschutz-section a {
    color: #f79aac;
    text-decoration: none;
    transition: color 0.3s ease;
}

.datenschutz-section a:hover {
    color: #c7c7c7;
}

.datenschutz-footer {
    background-color: #f79aac;
    color: white;
    padding: 40px 20px;
    text-align: center;
    transform: translateY(10em);
}

.social-media-wrapper {
    background-color: #f79aac;
}

.social-media-wrapper-heading {
    margin: 1em;
    font-weight: 500;
}

.insta img {
    width: 60px;
    height: 60px;
    margin: 0 20px;
    background-color: #f79aac;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon img {
    width: 50px;
    height: 50px;
    margin: 0 20px;
    background-color: #f79aac;
}

.social-media-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em;
    background-color: #f79aac;
}

.social-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: min(13%, 200px);
}

li {
    list-style: none;
}

.topnav {
    display: none;
}

.team-member p {
    color: #5a5a5a;
}

.team-title {
    text-decoration: underline;
    text-decoration-color: #5a5a5a;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

/* Mobile Navigation Improvements */
.mobile-nav {
    display: none;
}

/* Responsive Design Improvements */
@media screen and (max-width: 1200px) {
    .timeline {
        transform: translateX(5em);
    }
    
    .header-container .desktop-nav {
        width: 90%;
    }
}

@media screen and (max-width: 900px) {
    .image-wrapper {
        display: block;         /* kein Grid mehr */
        height: 100vh;          /* gesamte Höhe des Viewports */
        width: 100%;            /* gesamte Breite */
        position: relative;
    }

    .mobileMainImage {
        display: block;
        width: 100%;
        height: 80%;
    }

    .mobileMainImage img {
        width: 100%;
        height: 100%;
        object-fit: cover;       /* Bild skaliert ohne Verzerrung */
        filter: blur(4px);
        transform: translateY(1em);
    }

    .image-wrapper .img {
        filter: none;            /* Unschärfe wegnehmen wenn nicht gewollt */
        transform: none;
    }

    .mobileimg {
        display: none !important; /* die Seitlichen Bilder weg */
    }

    .text-content h1 {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .image-wrapper .img img {
        scale: 1.1;
    }

    .header-container {
        display: none !important;
    }
    
    .mobile-nav {
        display: block;
        width: 100%;
    }
    
    .timeline {
        transform: translateX(0);
        transform: translateY(3em);
        margin-left: 10px;
        padding-left: 20px;
    }
    
    .timeline-point::before {
        left: -33px;
    }
    
    .philosophy-section {
    }
    
    .philosophy-container {
        padding: 40px 20px;
    }
    
    .highlight-container {
        padding: 30px 20px;
    }
    
    .highlight-point {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 600px) {
    .topnav {
        display: block;
        overflow: hidden;
        background-color: #f79aac;
        position: relative;
    }
    
    .topnav #myLinks {
        display: none;
    }
    
    .topnav a {
        color: white;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
    }
    
    .topnav a.icon {
        background: rgb(255, 255, 255);
        color: #f79aac;
        display: block;
        position: absolute;
        right: 40px;
        top: 20px;
    }
    
    .topnav a:hover {
        background-color: #ffffff;
        color: #f79aac;
    }
    
    .active {
        background-color: white;
        color: white;
        transition: .3s ease;
    }
    
    .mobile-logo img {
        transform: translateX(-7rem);
        width: 100px;
        height: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }
    
    .text-content h1 {
        font-size: clamp(3rem, 8vw, 3rem);
    }
    
    .text-content p {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .image-container video {
        display: block !important;
        height: 85%;
        width: 110%;
    }
    
    .image-container-desktop img {
        display: none !important;
    }

    .banner-img {
        display: none !important;
    }
    
    .content {
        height: 83vh;
    }
    
    .about h2 {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
    
    .Cart {
        flex: 1 1 100%;
        max-width: none;
        margin-bottom: 1rem;
    }
    
    .cart-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .team-container {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member {
        max-width: 90%;
        margin-bottom: 2em;
    }
    
    .name, .email, .message {
        width: 90%;
        min-width: auto;
        max-width: 400px;
    }
    
    .social-media {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        width: auto;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-contact table {
        font-size: 1rem;
    }
    
    .footer-contact table td {
        padding: 0.3rem 0.5rem;
    }
}

@media screen and (max-width: 768px) and (min-width:601px) {
        .topnav {
        display: block;
        overflow: hidden;
        background-color: #f79aac;
        position: relative;
    }
    
    .topnav #myLinks {
        display: none;
    }
    
    .topnav a {
        color: white;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
    }
    
    .topnav a.icon {
        background: rgb(255, 255, 255);
        color: #f79aac;
        display: block;
        position: absolute;
        right: 40px;
        top: 20px;
    }
    
    .topnav a:hover {
        background-color: #ffffff;
        color: #f79aac;
    }
    
    .active {
        background-color: white;
        color: white;
        transition: .3s ease;
    }
    
    .mobile-logo img {
        transform: translateX(-7rem);
        width: 100px;
        height: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }
    
    .text-content h1 {
        font-size: clamp(4rem, 8vw, 3rem);
    }
    
    .text-content p {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .image-container video {
        display: block !important;
        height: 85%;
        width: 110%;
    }
    
    .image-container-desktop img {
        display: none !important;
    }

    .banner-img {
        display: none !important;
    }
    
    .content {
        height: 83vh;
    }
    
    .about h2 {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
    
    .Cart {
        flex: 1 1 90%;
        max-width: none;
        margin-bottom: 1rem;
    }
    
    .cart-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .team-container {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member {
        max-width: 90%;
        margin-bottom: 2em;
    }
    
    .name, .email, .message {
        width: 90%;
        min-width: auto;
        max-width: 400px;
    }
    
    .social-media {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        width: auto;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-contact table {
        font-size: 1rem;
    }
    
    .footer-contact table td {
        padding: 0.3rem 0.5rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #f79aac;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header-container,
    .mobile-nav,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}