* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

nav,
.nav-links a,
nav .btn,
.btn {
    font-size: 18px;
    font-weight: normal;
}

h1, h2 {
    font-family: 'Inter';
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.container2{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto;
}

header {
    background: #fff;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav .btn,
.button {
    background: #A51022;
    color: #fff;
    padding: 10px 20px;
}

nav .nav-links a {
    margin-right: 30px; 
}

nav .nav-links a:last-child {
    margin-right: 0; 
}

.hero {
    background: url('pics/werkstatt.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 0; 
    font-size: 20px;
}

.info-bar {
    background: #f8f8f8;
    padding: 50px 0;
    display: flex;
}

.info-bar .info-item {
    text-align: center;
    font-size: 14px;
}

.contact-info {
    background: #f9f9f9;
    padding: 20px 0;
    text-align: center;
}

.info {
    margin: 10px 0;
}

.section {
    padding: 60px 0;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about {
    padding: 60px 0;
    background: #F4F0DF;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    max-width: 1240px; 
}

.light-bg {
    background: #F4F0DF;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #000000;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: #141313;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .contact-link {
    background-color: #A51022;
    color: #000000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-links .contact-link::after {
    display: none;
}

.nav-links .contact-link:hover {
    background-color: #A51022; 
    transform: scale(1.1); 
}

#anfahrt {
    background: #F4F0DF;
    padding: 60px 0;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    width: fit-content; 
    padding-bottom: 8px
}

nav .nav-links .btn {
    background: #A51022;
    color: #fff;
    padding: 10px 25px 12px;
    border-radius: 5px;
    cursor: pointer; 
}

nav .nav-links .btn:hover {
    background-color: #A51022; 
}

.btn {
    display: inline-block;
    background: #A51022;
    color: #fff;
    padding: 10px 20px;
    border: none;        
    text-decoration: none;
    cursor: pointer;
}

footer i,  
footer svg {
    font-size: 0.7em; 
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 1rem;
}

.info-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    flex-wrap: wrap;
}

.footer-links a {
    color: #000000; 
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
    margin: 0 10px;
    color: #000;
    text-decoration: none;
    font-size: 0.75rem;
    margin-right: 0;
}

footer {
    background: #F4F0DF;
    color: #000;
    padding: 30px 0;
}

.footer-links {
    display: flex;
    gap: 10px;
}

.footer-links a:hover {
    color: #A51022;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
}

.footer-copy {
    font-size: 0.75rem;
    flex: 1;
}

.reference-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 200px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-card .quote {
    font-size: 16px;
    margin-bottom: 20px;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info strong {
    font-size: 14px;
    display: block;
}

.author-info span {
    font-size: 12px;
    color: #A51022;
}

.references-grid {
    flex-wrap: wrap;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

#unter{
    padding-bottom: 10px;
    color: #A51022;
}

.logo img {
    height: 110px;
    object-fit: contain;
}

nav .nav-links {
    display: flex;
    justify-content: flex-end; 
    gap: 20px; 
}

nav .btn {
    background: #A51022;
    color: #fff;
    padding: 10px 25px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.service-icon {
    font-size: 36px;
    color: #A51022;
    margin-bottom: 15px;
    display: block;
    width: 40px;
    height: 40px;
}

.service {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; 
}

.service i {
    font-size: 2rem;
    color: #A51022;
    margin-bottom: 10px;
    display: block;
}

.ltex {
    color: #97797e;
}

.testbild {
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    
}

@media (max-width: 768px) {
    .footer-top {
        align-items: center;
    }

    .footer-links {
        gap: 5px;
    }

    .footer-copy {
        padding: 10px 0;
    }

    .services-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-right {
        margin-top: 0.5rem;
        align-self: flex-end;
    }
  
    .infotext {
        display: flex;
        font-size: 0.9rem;
        padding: 10px;
    }
      
    .about-content {
        flex-direction: column;
    }

    .info-item{
        flex-direction: column;
        align-items: center; 
        gap: 0px; 
    }

    .testbild {
        display: none;
    }

    .about{
        padding-bottom: 25px;
    }
}

.ima {
    width: 155px;
    padding-top: 8px;
}

.footer {
    background-color: #222;
    color: white;
    padding: 2rem;
    font-size: 0.9rem;
}
  
.footer-left {
    text-align: left;
}
  
.footer-right {
    display: flex;
    gap: 1.5rem;
    text-align: right;
}
  
.footer-right a {
    color: white;
    text-decoration: none;
}
  
.footer-right a:hover {
    text-decoration: underline;
}
  
@media (max-width: 939px) {
    nav .nav-links a,
    nav .btn {
        font-size: 18px;
        margin-right: 15px;
    }

    .btn {
        padding: 8px 16px;
    }
}

.abstand {
    margin: 20px;
}

.sectio1 {
    padding-top: 23px;
    padding-bottom: 49px;
    border-top: 1px solid #ddd;
}

h1 {
    font-size: 45px;
    margin-bottom: 5px;
}

.hamburger {
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; 
}
  
.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #A51022;
    border-radius: 2px;
}
  
.navbar {
    position: relative;
}
  
.nav-links {
    display: flex;
    gap: 20px;
}
  
  
@media (max-width: 850px) {
    .hamburger {
        display: flex;
    }
  
    .navbar {
        position: fixed;
        top: 0;
        right: -250px; 
        height: 100vh;
        width: 250px;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 90px;
    }
  
    .nav-links {
        flex-direction: column;
        gap: 30px;
    }
  
    .navbar.open {
       right: 0;
    }
}
  
.navbar.open .nav-links a {
    text-decoration: none;
}

.navbar.open .nav-links a:hover {
    color: #A51022; 
}

.navbar.open .nav-links a::after {
    width: 0 !important; 
}

body.noscroll {
    overflow: hidden;
}

#close{
    height: 40px;
    width: 40px;
}

#kontaktButton:hover {
    background-color: #7a0e1b;     
    cursor: pointer;             
    transition: background-color 0.3s ease; 
}
  
#kontaktButton {
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}
  
.mapimg{
    width: 100%;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}
  
.map-credit {
    text-align: center;
    font-size: 0.75rem;
    color: #555;
}

.map-credit a {
    color: #A51022;
    text-decoration: none;
    padding-right: 10px
}

.map-credit a:hover {
    text-decoration: underline;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.container3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto;
}
  
@font-face {
    font-family: 'Inter';
    src: url('font/Inter/Inter_18pt-Regular.tff') format('tff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
  
@font-face {
    font-family: 'Inter';
    src: url('font/Inter/Inter_18pt-Bold.tff') format('tff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
  
#closeham {
    display: none;
}