/* Allgemein */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
  margin: 0;
  font-family: sans-serif;
  background-image: url(images/AdobeStock_331113913.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cookie-box {
  background: #fff;
  max-width: 500px;
  padding: 20px 24px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-family: sans-serif;
}

.cookie-box h3 {
  margin-top: 0;
}

.cookie-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.cookie-buttons button.secondary {
  background: #eee;
}


.container {
  padding: 0 1.5rem;
}

.meister {
  display: block;          /* Block-Element für margin: auto */
  margin: 1.5rem auto;     /* Oben/Unten Abstand, Links/Rechts automatisch (zentriert) */
  width: 100%;             /* Nutzt verfügbaren Platz */
  max-width: 550px;        /* Aber wird nicht größer als 200px */
  height: auto;            /* Behält Seitenverhältnis bei */
  object-fit: contain;     /* Verhindert Verzerrung */
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 0.1rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav-list a {
  background-color: #f1b5f7;
  color: #680505;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.1rem;
  font-weight: bold;
  display: block;
}

.nav-list a:hover {
  background-color: #a50562;
  color: white;
}

.nav-search {
  display: flex;
  gap: 0.5rem;
}

.nav-search input {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.nav-search button {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: #680505;
  color: white;
  cursor: pointer;
}

/* Main-Bereich */
main {
  flex-grow: 1; 
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem auto; 
  width: 100%;
  max-width: 1200px;
}

.content-section {
  flex: 2;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  padding: 1rem;
  color: black;
}

.sidebar {
  flex: 1; /* Bestimmt das Breitenverhältnis (ca. 30%) */
  min-width: 300px; /* Deine gewünschte Mindestbreite */
  background-color: rgba(255, 255, 255, 0.9); /* Gleiche Farbe wie Section */
  border-radius: 0.5rem; /* Gleiche Rundung */
  padding: 2rem; /* Gleiches Padding für identische Optik */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: #333;
}

/* Titel in der Sidebar */
.sidebar h2, .sidebar h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #000000; /* Passend zu deinem Dunkelrot im Header */
  border-bottom: 2px solid #FDC112; /* Die gelbe Linie aus dem Logo */
  padding-bottom: 5px;
}

/* Links in der Sidebar (z.B. Stellenanzeigen) */
.sidebar a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* Timberframe / Galerie */
.timberframe {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    margin: 20px 0;
}

figure {
    width: 30%;
    max-width: 300px;
    background: #ddd;
    padding: 0.5rem;
    margin: 0;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

figure img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

figure p {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
}

figure:hover {
    transform: scale(1.1);
    z-index: 10;
}




/* --- AB HIER: ORIGINALE FOOTER EINSTELLUNGEN --- */
.footer {
  font-size: 1rem;
  color: white; 
  text-align: center;
  background-color: black; 
  padding: 0.8rem 0;
  margin-top: auto; 
  border-radius: 0.5rem;
  width: 100%;
  max-width: 1200px; 
  margin-left: auto;
  margin-right: auto;
}

.searchingyou {
  justify-content: center;
  width: 270px;
  height: 500; /* dein originalwert */
  transition: transform 0.3s ease;
}

.searchingyou:hover {
  transform: scale(1.1);
}

.footer .container {
  padding: 0 1rem; 
}

.footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; 
  text-align: left; 
}

.footer .row > div:nth-child(1) { 
  flex: 1 1 25%;
  max-width: 25%;
}

.footer .row > div:nth-child(2) { 
  flex: 1 1 50%; 
  max-width: 50%; 
}

.footer .row > div:nth-child(3) { 
  flex: 1 1 25%;
  max-width: 25%;
}

.footer h4 {
  color: black; 
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer p {
  margin-bottom: 0.3rem;
  line-height: 1.4;
  color: black;
}

.footer a {
  color: black; 
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #FDC112; 
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0;
  }

  .timberframe {
    flex-wrap: wrap;
    justify-content: center;
  }

  figure {
    width: 45%;
    max-width: none;
  }

  main {
    flex-direction: column;
    max-width: 100%;
    margin: 1rem 0;
  }

/* Hauptbereich auf volle Breite ohne Sidebar */
.content-section-full {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  padding: 2.5rem; /* Etwas mehr Platz für die volle Breite */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Der Container für die zwei Spalten */
.partner-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 50px; /* Großer Abstand zwischen Händlern und Handwerkern */
  margin-top: 30px;
}

/* Die beiden Spalten (Händler / Handwerker) */
.partner-card {
  flex: 1; /* Beide nehmen exakt 50% ein */
}

/* Design der Überschriften */
.partner-title {
  color: #000000; /* Dein Dunkelrot */
  font-size: 1.4rem;
  margin-bottom: 25px;
  border-bottom: 3px solid #FDC112; /* Gelbe Akzentlinie */
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Einzelne Betriebe */

.partner-name {
  font-weight: bold;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 4px;
  color: #000000;
}

.partner-link {
  color: #000000;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.partner-link:hover {
  color: #FDC112;
  text-decoration: none;
}

/* Mobile Ansicht: Untereinander auf dem Handy */
@media (max-width: 768px) {
  .partner-container {
    flex-direction: column;
    gap: 30px;
  }
  .content-section-full {
    padding: 1.5rem;
  }
}







/* --- RESPONSIVE ANPASSUNG --- */
@media (max-width: 992px) {
  /* Wenn der Bildschirm schmaler wird, Sidebar nach unten */
  main {
    flex-direction: column;
  }
  
  .sidebar {
    max-width: 100%;
    width: 100%;
  }

}

/* Responsive Anpassung für Partner */
@media (max-width: 600px) {
 

  .footer {
    max-width: 100%; 
    margin-left: 0;
    margin-right: 0;
  }

  .footer .row > div {
    flex: 1 1 100%; 
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  figure {
    width: 90%;
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 992px) {
.sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}