/* =========================
   Header & Navigation
========================= */

/* 1. Roboto Regular (Weight 400) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto-v51-latin-regular.woff2') format('woff2');
}

/* 2. Roboto Light Italic (Weight 300, Italic) */
@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/roboto-v51-latin-300italic.woff2') format('woff2');
}

/* 3. Roboto Bold (Weight 700) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/roboto-v51-latin-700.woff2') format('woff2');
}

/* ===================== Globale Anwendung ===================== */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: #f0f2f5;
}



header {
  height: 120px;
  background: #bf0000;
}

.td-left > section > h1 {
  color: #2c3e50;
 }

.td-left > section > h2 {
  color: #2c3e50;
 }
#main-table > tbody > tr > td.td-left > h2:nth-child(1){
  color: #2c3e50;
 }
/* Navigation */
.nav {
  max-width: 80vw;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#wrap {
  max-width: 80vw;
  margin: 0 auto;
  padding: 1rem 0;
}

#entry-mission h1{ color: #bf3333;}

#entry-services h1{ color: #bf3333;}
#contact-section h1{ color: #bf3333;}
.page-header h1{ color: #bf3333;}
#entry-services td{vertical-align: top}
/* =========================
   frontend-slider 
========================= */


.frontend-slider-container {
    position: relative;
    /* max-width: 800px; */  /* Passe die Größe nach Wunsch an */
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    height: 500px;
}

.slider-slides {
    position: relative;
    width: 100%;
    height: 500px; /* Feste Höhe für den Slider definieren */
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-img.active {
    opacity: 1;
}

/* Design für die Pfeil-Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
/* </style> */
/* Home bleibt links,
   ab dem 2. Link nach rechts schieben */
.nav > a:nth-child(2) {
  margin-left: auto;
}

.nav > a:nth-child(1) {
   font-size: 16px;;
}

/* Nav-Links */
.nav > a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

/* Hover-Effekt */
.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav > a:hover::after {
  width: 100%;
}

/* =========================
   Tabellen & Content
========================= */
table#main-table {
  width: 100%;
  border: 1px solid grey;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 20px;
}

.td-left {
  padding: 1rem;
  width: 80%;
  border: 1px solid grey;
  border-radius: 12px;
  vertical-align: top;
}

.td-right {
  padding: 1rem;
  width: 20%;
  border: 1px solid grey;
  border-radius: 12px;
  vertical-align: top;
}

#container-moto {
  margin-bottom: 1.4rem;
}

#img-moto {
  width: 100%;
  height: 30%;
  border: 1px solid grey;
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
}



/* =========================
   HOME PAGE
========================= */

.page-content p {
    overflow-wrap: anywhere; /* Bricht auch sehr lange Zeichenketten sauber um */
    word-break: break-word;   /* Fallback für ältere Browser-Engines */
    max-width: 100%;         /* Verhindert das Herausragen aus dem Container */
}

.mission-grid,
.goals-grid,
.services-grid, 
.text-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}


/* Styling für die einzelnen Items */
.goal-item,
.service-item {
    border: 0.06em solid #ffffff;
    outline: none;
    text-decoration: none;
    border-radius: 0.33em;
    color: #ffffff;
    /* padding: 0.6em 0.6em; */
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
    background-color: #bf3333;
    text-align: center;
}


.text-item {
    border: 0.06em solid #ffffff;
    outline: none;
    text-decoration: none;
    border-radius: 0.33em;
    color: #111;
    /* padding: 0.6em 0.6em; */
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
/*     background-color: #bf3333;; */
    text-align: center;
}
/* Zurück-Button */
.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Abstände für Abschnitte */
.mission-section,
.pricing-guidelines-section,
.services-section,
.our-work-section {
    margin-bottom: 40px;
}

.mission-section > p{
	display: block;
    font-size: 3em;
    margin-top: 1em;
	width: 80%;
	margin-left: 10%;
	text-align: center;
} 

.our-work-section{
	text-align: center;
}

#entry-mission > p{
  text-align: left;
  font-weight: bold;
  font-size: 2em;
  color: var(--color-primary-soft);
}

/* #entry-mission > div:nth-child(2){ font-size: 2.1em;} */
#entry-mission > div:nth-child(3) > span{  text-align: left;
  font-weight: bold;
  font-size: 2em;
  color: var(--color-primary-soft);
}

.service-card {
  width: 11.2em;
  height: 14.5em;
  padding: 6px;
  border: red solid 1px;
  border-radius: 0.6em;
  overflow: hidden; /* Schneidet alles sauber ab, was übersteht */
  display: flex;
  box-sizing: border-box; /* Sorgt dafür, dass padding die Größe nicht sprengt */
}

.img-services {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit; /* Übernimmt den Radius vom Container-Div */
}

#id-for-img-hamid-about-us {
    float: right;
    margin-left: 2%;
    width: 40%;
    border: red solid 1px;
    border-radius: 0.4em;
    margin-top: 0.2em;
    padding: 1em;
}
.img-a-nice-rug {
	border: red solid 1px;
	padding: 12px;
    border-radius: 0.6em;
}

/* Responsive Anpassung für mobile Bildschirme */
@media (max-width: 768px) {
    .mission-grid,
    .goals-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Footer & Content
========================= */

footer {
    background: #bf0000;;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

/* nav-bottom */
#nav-bottom > a {font-size: 17px; font-weight: 300;}

/* social-media-lis */
#social-media-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

#social-media-list img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s;
    cursor: pointer;
}

#social-media-list img:hover {
    transform: scale(1.2);
}

/* copy-write */
#copy-write {
    width: 80%;
    text-align: center;
    color: #fff;
    margin-bottom: 5px;
    font-size: 17px;
    font-weight: 300;
}
#copy-write > p { margin: 12px auto; }



/* =========================
   Responsive Navigation
========================= */
@media (max-width: 768px) {

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Auto-Margin auf Mobile zurücksetzen */
  .nav > a:nth-child(2) {
    margin-left: 0;
  }

  .nav > a {
    width: 100%;
    padding: 0.75rem 0;
  }
}
