/* =============================
   Farben & Grundlayout
   ============================= */
:root {
  --rot: #b80000;
  --white: #ffffff;
  --grau: #f5f5f5bb;
  --dunkel: #222222;
}

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

.disabled{
  display: none;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--white);
  color: var(--dunkel);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

}

main.content {
  flex: 1;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

main h1 {
  color: var(--rot);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--rot);
  padding-bottom: 0.3rem;
}

main h2 {
  color: var(--rot);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* =============================
   Header & Navigation
   ============================= */
header {
  background-color: var(--rot);
  color: var(--white);
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
  padding: 10px 0;

}

.logo {
  height: 60px;
}

/* Desktop-Menü */
#navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

#navbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

#navbar a:hover,
#navbar a.active {
  border-bottom: 2px solid var(--white);
}

/* Hamburger Button */
#menu-toggle {
    display: none; /* nur sichtbar bei Mobile */
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem 1rem;
}

/* =============================
   Mobile Navigation
   ============================= */
@media (max-width: 1050px) {

  /* Desktop-Navi ausblenden */
  #navbar ul {
    display: none;
    flex-direction: column;
    background-color: var(--rot);
    position: absolute;
    top: 70px;
    right: 15px;
    width: 220px;
    padding: 15px 0;
    border-radius: 6px;
    text-align: center;
    z-index:10;
  }

  /* Wenn active → anzeigen */
  #navbar.active ul {
    display: flex;
  }

  /* Hamburger anzeigen */
  #menu-toggle {
    display: block;
  }

  /* Maus Scroll indicator ausblenden */
  .scroll-indicator{
    display:none;
  }

  /* Pfeil Scroll indicator */
.arrowscroll-indicator{
  position:absolute;
  bottom:15%;
  left:50%;
  transform:translateX(-50%);
  width:40px;
  height:40px;
}

.arrowscroll-indicator span{
  position:absolute;
  top:0;
  left:50%;
  width:20px;
  height:20px;
  border-right:3px solid var(--white);
  border-bottom:3px solid var(--white);
  transform:translateX(-50%) rotate(45deg);
  animation:arrowScroll 1.5s infinite;
}

}

@keyframes arrowScroll{
    0%{opacity:0; transform:translate(-50%,0) rotate(45deg);}
    50%{opacity:1;}
    100%{opacity:0; transform:translate(-50%,15px) rotate(45deg);}
}

/* =============================
   Hero & Allgemeine Inhalte
   ============================= */
.hero {
  text-align: center;
  padding: 60px 20px;
}

/* HERO BILD */

.hero-image{
    height:100vh;
    background-image:url("../bilder/wel_logo/hero_ew.jpg");
    background-size:cover;
    background-position:center 10%;
    background-attachment:fixed;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}

/* dunkler overlay für Lesbarkeit */

.hero-image::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.4);
}

/* Text im Bild */

.hero-overlay{
    position:relative;
    color:var(--white);
    text-align:center;
    z-index:2;
}

.hero-overlay h1{
    font-size:3rem;
    margin-bottom:10px;
}

.hero-overlay p{
    font-size:1.4rem;
}

/* Inhalt über dem Bild */

.content{
    background:var(--white);
    padding:60px 20px;
}

/* Scroll Indicator */

.scroll-indicator{
    position:absolute;
    bottom:15%;
    left:50%;
    transform:translateX(-50%);
    width:30px;
    height:50px;
    border:2px solid var(--white);
    border-radius:20px;
}

.scroll-indicator span{
    position:absolute;
    top:10px;
    left:50%;
    width:6px;
    height:6px;
    background:var(--white);
    border-radius:50%;
    transform:translateX(-50%);
    animation:scroll 2s infinite;
}

@keyframes scroll{
    0%{
        opacity:0;
        transform:translate(-50%,0);
    }
    50%{
        opacity:1;
    }
    100%{
        opacity:0;
        transform:translate(-50%,15px);
    }
}


.btn {
  background-color: var(--rot);
  color: var(--white);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 20px;
  transition: 0.2s;
}

.btn:hover {
  background-color: var(--rot);
  transform: scale(1.02)
}

/* =============================
   Grids / Cards
   ============================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  /* background-color: var(--rot);
  color: var(--white); */
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
  
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* =============================
   Warum wir
   ============================= */
.warum-wir {
    padding: 3rem 1rem;
}

.warum-wir h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.warum-wir ul {
    list-style: disc inside;
    max-width: 600px;
    margin: 0 auto;
}

.warum-wir li {
    margin-bottom: 0.8rem;
}

/* =============================
   Footer
   ============================= */
footer {
  background-color: var(--rot);
  color: var(--white);
  text-align: center;
  padding: 15px 10px;
  margin-top: auto;
}

footer a {
  color: var(--white);
  text-decoration: underline;
}

footer a:hover {
  font-weight: 700;
}

/* =============================
   Kontaktformular
   ============================= */

.kontakt-info a {
    color: var(--rot);
    text-decoration: none;
    font-weight: 500;
}

.kontakt-info a:hover {
    text-decoration: underline;
}

/* Formular */
.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    width: 100%;
    margin: 1rem auto;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.kontakt-form button {
    background-color: var(--rot);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.kontakt-form button:hover {
    background-color: #900000;
}

/* =============================
   Dank / Fehler Seiten
   ============================= */
.message-page {
    text-align: center;
    padding: 3rem 1rem;
}

.message-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--rot);
}

.message-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.message-page .button {
    display: inline-block;
    background-color: var(--rot);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.message-page .button:hover {
    background-color: #900000;
}



/* =============================
   Referenzen
   ============================= */

.referenzen {
  margin-top: 2.5rem;
}

.referenzen .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.referenzen .card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.referenzen .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.referenzen .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #eee;
  display: block;
}

/* Fallback falls Bild fehlt */
.referenzen .card img:not([src]),
.referenzen .card img[src=""] {
  background: repeating-linear-gradient(
    45deg,
    #e0e0e0,
    #e0e0e0 10px,
    #f0f0f0 10px,
    #f0f0f0 20px
  );
}

.referenzen .card h3 {
  font-size: 1.1rem;
  margin: 1rem 1rem 0.5rem;
  color: var(--dunkel);
}

.referenzen .card p {
  font-size: 0.95rem;
  margin: 0 1rem 1.25rem;
  color: #444;
  line-height: 1.5;
}

.referenzen .card a {

  text-decoration: none;
}

/* =============================
   Referenzen: Kundenstimmen
   ============================= */

.kundenstimmen {
  margin-top: 4rem;
}

.kundenstimmen h2 {
  margin-bottom: 1.5rem;
}

.kundenstimmen .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.kundenstimmen blockquote {
  background: var(--grau);
  padding: 1.5rem;
  border-left: 4px solid var(--rot);
  border-radius: 6px;
}

.kundenstimmen blockquote p {
  font-style: italic;
  margin-bottom: 1rem;
}

.kundenstimmen blockquote footer {
  font-size: 0.9rem;
  color: white;
}

/* =============================
   Referenzen: Galerie Grid
   ============================= */

.galerie-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
margin-top:40px;
}

.galerie-grid img{
width:100%;
height:220px;
object-fit:cover;
border-radius:6px;
cursor:pointer;
transition:0.2s;
}

.galerie-grid img:hover{
transform:scale(1.04);
}

/* Lightbox */

.lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:none;
align-items:center;
justify-content:center;
z-index:1000;
}

.lightbox img{
max-width:90%;
max-height:90%;
}

.lightbox-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:40px;
color:white;
background:none;
border:none;
cursor:pointer;
padding:20px;
}

.prev{left:20px;}
.next{right:20px;}

.close{
position:absolute;
top:20px;
right:30px;
font-size:40px;
color:white;
cursor:pointer;
}


/* =============================
   Partner-Seite
   ============================= */

.partner-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.partner-section h1 {
  margin-bottom: 10px;
}

.partner-section p {
  max-width: 700px;
  margin-bottom: 40px;
  color: #444;
}

/* Kategorie-Überschriften */
.partner-section h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--dunkel);
  border-bottom: 2px solid var(--rot);
  padding-bottom: 5px;
}

/* Grid für Logos */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: center;
  margin-bottom: 30px;
}

/* Partner-Item */
.partner-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.partner-item img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partner-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.partner-item span {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #444;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
  .partner-section {
    padding: 20px 10px;
  }

  .partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
  }

  .partner-item img {
    max-height: 60px;
  }

  .partner-section h2 {
    font-size: 1.3rem;
  }
}

/* =============================
   Leistungen Grid
   ============================= */
.leistungen-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.leistungen-section .card {
    background-color: var(--grau);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.leistungen-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.leistungen-section .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.leistungen-section .card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dunkel);
}

.leistungen-section .card p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .leistungen-section .card img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .leistungen-section .card img {
        height: 120px;
    }
}

