/* =======================
   Responsive Products Grid
   ======================= */
#oitproducts-grid:where(:not(#oit-home-host *),[slot],[slot] *){
    display: grid;
    /* Dynamisch: so viele Spalten wie reinpassen, Karten min 220px breit */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(12px, 2vw, 20px);
}

/* =======================
   Card
   ======================= */
.oitproducts-item:where(:not(#oit-home-host *),[slot],[slot] *){
    border: 1px solid white;
    border-radius: 12px;
    padding: clamp(12px, 2.2vw, 16px);
    text-align: center;
    transition: transform 0.2s ease;
    background: transparent;
    cursor: pointer;
}

.oitproducts-item:hover:where(:not(#oit-home-host *),[slot],[slot] *){ transform: scale(1.03); }

/* =======================
   Thumbnail (quadratisch, fluid)
   ======================= */
.oitproducts-thumb-wrapper:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 10px;
}

.oitproducts-thumb:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* =======================
   Title (2-Zeilen-Clamp, fluid)
   ======================= */
.oitproducts-title:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproducts-title a:where(:not(#oit-home-host *),[slot],[slot] *){
    margin-top: clamp(8px, 1.4vw, 12px);
    /* Fluides Schriftmaß */
    font-size: clamp(1.0rem, 0.6vw + 0.95rem, 1.15rem);
    font-weight: 600;
    color: white;

    /* Clamp auf 2 Zeilen mit Ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;         /* max. 2 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Höhe passend zu 2 Zeilen */
    line-height: 1.3;
    max-height: calc(1.3em * 2);

    /* Robuste Umbrüche */
    overflow-wrap: anywhere;
    hyphens: auto;
    white-space: normal;
}

/* Wichtig, damit Ellipsis in Grid/Flex nicht „klebt“ */
.oitproducts-title:where(:not(#oit-home-host *),[slot],[slot] *){ min-width: 0; }

/* =======================
   Texte in der Karte
   ======================= */
.oitproducts-description:where(:not(#oit-home-host *),[slot],[slot] *){
    margin-top: 12px;
    font-size: clamp(0.95rem, 0.3vw + 0.9rem, 1rem);
    color: #ccc; /* bessere Lesbarkeit auf dunkel */
}

.oitproducts-contact:where(:not(#oit-home-host *),[slot],[slot] *){
    margin-top: 16px;
    font-size: clamp(0.9rem, 0.25vw + 0.85rem, 0.95rem);
    color: #ccc;
}

.oitproducts-contact-thumb:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-bottom: 5px;
    border-radius: 50%;
}

/* =======================
   Galerie Slides (fluid)
   ======================= */
.oitproduct-gallery .swiper-slide picture:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-gallery .swiper-slide img:where(:not(#oit-home-host *),[slot],[slot] *){
    width: clamp(140px, 28vw, 220px);
    height: clamp(140px, 28vw, 220px);
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* ===== Gallery Admin Styles ===== */
#oitproducts-gallery-list:where(:not(#oit-home-host *),[slot],[slot] *){
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#oitproducts-gallery-list li:where(:not(#oit-home-host *),[slot],[slot] *){
    position: relative;
    border: 1px solid #ddd;
    padding: 5px;
    background: #f9f9f9;
}
#oitproducts-gallery-list li img:where(:not(#oit-home-host *),[slot],[slot] *){
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
}
.gallery-remove:where(:not(#oit-home-host *),[slot],[slot] *){
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3232;
    color: white;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}
.gallery-remove:hover:where(:not(#oit-home-host *),[slot],[slot] *){ background: #a00; }

/* =======================
   Swiper-Container & Pfeile
   ======================= */
.oitproduct-gallery:where(:not(#oit-home-host *),[slot],[slot] *){
    position: relative;
    padding: 0 clamp(0px, 6vw, 60px); /* Pfeile bekommen dynamisch Platz */
    max-width: 100%;
    box-sizing: border-box;
}

.oitproduct-gallery .swiper-button-prev:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-gallery .swiper-button-next:where(:not(#oit-home-host *),[slot],[slot] *){
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: clamp(32px, 4.5vw, 40px);
    height: clamp(32px, 4.5vw, 40px);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.oitproduct-gallery .swiper-button-prev:where(:not(#oit-home-host *),[slot],[slot] *){ left: 0; }
.oitproduct-gallery .swiper-button-next:where(:not(#oit-home-host *),[slot],[slot] *){ right: 0; }

/* Sehr schmale Viewports: Pfeile ausblenden, um Overlaps zu vermeiden */
@media (max-width: 480px) {
  .oitproduct-gallery:where(:not(#oit-home-host *),[slot],[slot] *){ padding: 0; }
  .oitproduct-gallery .swiper-button-prev:where(:not(#oit-home-host *),[slot],[slot] *),
  .oitproduct-gallery .swiper-button-next:where(:not(#oit-home-host *),[slot],[slot] *){ display: none; }
}

/* =======================
   Container & Box Layout
   ======================= */
.oitproduct-container:where(:not(#oit-home-host *),[slot],[slot] *){
    display: flex;
    justify-content: center;
    padding: clamp(24px, 4vw, 40px) clamp(12px, 3vw, 20px);
    background-color: #000;
}

.oitproduct-box:where(:not(#oit-home-host *),[slot],[slot] *){
    max-width: min(1200px, 100%);
    width: 100%;
    padding: clamp(24px, 4vw, 40px);
    box-sizing: border-box;
}

/* =======================
   Projekte-Box (Glassmorphism)
   ======================= */
.oitproduct-projects:where(:not(#oit-home-host *),[slot],[slot] *){
    margin-top: clamp(24px, 3.5vw, 40px);
    padding: clamp(16px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: clamp(10px, 2vw, 15px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.8px);
    -webkit-backdrop-filter: blur(6.8px);
    color: white !important;
}

.oitproduct-project-list:where(:not(#oit-home-host *),[slot],[slot] *){
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 20px);
    margin-top: 20px;
    color: white !important;
}

.oitproduct-project-item:where(:not(#oit-home-host *),[slot],[slot] *){
    flex: 1 1 clamp(220px, 40%, 320px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: clamp(14px, 2vw, 20px);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
}

.oitproduct-projects h3:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-projects h2:where(:not(#oit-home-host *),[slot],[slot] *){ color: white !important; }

/* =======================
   Header (2-Spalten) — fluid
   ======================= */
.oitproduct-header-layout:where(:not(#oit-home-host *),[slot],[slot] *){
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 40px);
    margin-bottom: clamp(24px, 3.5vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: clamp(10px, 2vw, 15px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.8px);
    -webkit-backdrop-filter: blur(6.8px);
    padding: clamp(14px, 2.5vw, 20px);
}

.oitproduct-header-left:where(:not(#oit-home-host *),[slot],[slot] *){
    flex: 1 1 60%;
    color: white;
    display: flex;
    align-items: center;
    padding: clamp(12px, 2vw, 20px);
}

.oitproduct-header-left h1:where(:not(#oit-home-host *),[slot],[slot] *){
    margin: 0;
    /* Fluides H1 */
    font-size: clamp(1.4rem, 1.2vw + 1.2rem, 2rem);
    color: white;
}

.oitproduct-subtitle:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: clamp(1rem, 0.5vw + 0.9rem, 1.1rem);
    margin-top: 0.4em;
    color: white;
}

.oitproduct-header-right:where(:not(#oit-home-host *),[slot],[slot] *){
    flex: 1 1 35%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.oitproduct-logo-img:where(:not(#oit-home-host *),[slot],[slot] *){
    width: clamp(96px, 9vw, 120px);
    height: clamp(96px, 9vw, 120px);
    display: block;
}

/* =======================
   Inhalt + Sidebar (2-Spalten)
   ======================= */
.oitproduct-layout:where(:not(#oit-home-host *),[slot],[slot] *){
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 40px);
}

/* Inhalt links */
.oitproduct-main-content:where(:not(#oit-home-host *),[slot],[slot] *){
    flex: 1 1 60%;
    min-width: 280px;
    padding: clamp(14px, 2.5vw, 20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: clamp(10px, 2vw, 15px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.8px);
    -webkit-backdrop-filter: blur(6.8px);
}

/* Sidebar rechts */
.oitproduct-sidebar:where(:not(#oit-home-host *),[slot],[slot] *){
    flex: 1 1 35%;
    min-width: 240px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: clamp(10px, 2vw, 15px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.8px);
    -webkit-backdrop-filter: blur(6.8px);
    padding: clamp(14px, 2.5vw, 20px);
}

/* =======================
   Galerie-Abstand
   ======================= */
.oitproduct-gallery:where(:not(#oit-home-host *),[slot],[slot] *){ margin-bottom: clamp(16px, 2.5vw, 24px); }

/* =======================
   Inhalt & Sidebar Blöcke
   ======================= */
.oitproduct-description:where(:not(#oit-home-host *),[slot],[slot] *){
    margin-bottom: clamp(16px, 2.5vw, 24px);
    line-height: 1.7;
    color: white;
}

.oitproduct-logo:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-contact:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-budget:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-categories:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-tags:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-button-wrapper:where(:not(#oit-home-host *),[slot],[slot] *){
    margin-bottom: clamp(16px, 2.5vw, 25px);
}

.oitproduct-contact:where(:not(#oit-home-host *),[slot],[slot] *){
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 8px;
    padding: 20px 20px 0;
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.1rem);
}

.oitproduct-contact-img:where(:not(#oit-home-host *),[slot],[slot] *){
    display: block;
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-top: 10px;
}
.oitproduct-contact img:where(:not(#oit-home-host *),[slot],[slot] *){ border-radius: 50%; }

/* Kategorien & Preis */
.oitproduct-categories span:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-tags ul li:where(:not(#oit-home-host *),[slot],[slot] *){
    display: inline-block;
    margin-right: 8px;
    font-size: clamp(0.9rem, 0.3vw + 0.85rem, 0.95rem);
}
.oitproduct-categories:where(:not(#oit-home-host *),[slot],[slot] *),
.oitproduct-budget:where(:not(#oit-home-host *),[slot],[slot] *){ text-align: center; }

.oitproduct-button-wrapper:where(:not(#oit-home-host *),[slot],[slot] *){
    display: flex;
    justify-content: center;
    padding: clamp(14px, 2.2vw, 20px);
}

/* Anfrage-Button */
.oitproduct-button-wrapper a:where(:not(#oit-home-host *),[slot],[slot] *){
    display: inline-block;
    padding: clamp(8px, 1.2vw, 10px) clamp(14px, 2vw, 20px);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid white;
    color: white;
    background: transparent;
    transition: background 0.2s ease;
    border-radius: 8px;
}
.oitproduct-button-wrapper a:hover:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   OIT PRODUCTS — Redesign 2026 (full-width, no sidebar, dark)
   Hinzugefuegt von Claude. Zuruecksetzen: diesen Block loeschen.
   ============================================================ */
.single-oitproducts .oitproduct-container:where(:not(#oit-home-host *),[slot],[slot] *){ background:#000; padding: clamp(20px,4vw,52px) clamp(12px,3vw,24px); }
.single-oitproducts .oitproduct-box:where(:not(#oit-home-host *),[slot],[slot] *){ max-width: 1100px; padding: 0; }
.single-oitproducts .oitproduct-header-layout:where(:not(#oit-home-host *),[slot],[slot] *){
  background: linear-gradient(135deg, rgba(255,119,0,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,119,0,0.22);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  border-radius: 18px; padding: clamp(26px,4vw,46px); align-items: center;
}
.single-oitproducts .oitproduct-header-left h1:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: clamp(2rem, 2.4vw + 1.4rem, 3.2rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.5px;
}
/* Ansprechpartner + Anfrage als Full-Width-Sektion unter dem Content */
.single-oitproducts .oitproduct-sidebar:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(16px,3vw,28px); width: 100%; margin-top: clamp(20px,3vw,32px);
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.08);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  border-radius: 18px; padding: clamp(20px,3.5vw,32px);
}
.single-oitproducts .oitproduct-sidebar .oitproduct-sidebar-card:where(:not(#oit-home-host *),[slot],[slot] *),
.single-oitproducts .oitproduct-sidebar .oitproduct-contact:where(:not(#oit-home-host *),[slot],[slot] *){
  background: transparent; border: none; box-shadow: none; -webkit-backdrop-filter:none; backdrop-filter:none; padding: 0; margin: 0;
}
.single-oitproducts .oitproduct-contact:where(:not(#oit-home-host *),[slot],[slot] *){
  flex-direction: row; align-items: center; justify-content: flex-start;
  gap: clamp(12px,2vw,18px); text-align: left;
}
.single-oitproducts .oitproduct-contact-img:where(:not(#oit-home-host *),[slot],[slot] *){ margin: 0; width: 64px; height: 64px; }
.single-oitproducts .oitproduct-categories:where(:not(#oit-home-host *),[slot],[slot] *){ display: none !important; }
.single-oitproducts .oitproduct-button-wrapper:where(:not(#oit-home-host *),[slot],[slot] *){ padding: 0; margin: 0; flex: 0 0 auto; }
.single-oitproducts .oitproduct-button-wrapper a:where(:not(#oit-home-host *),[slot],[slot] *){
  background: #FF7700; border-color: #FF7700; color: #fff; font-weight: 700;
  padding: 14px 30px; border-radius: 40px;
}
.single-oitproducts .oitproduct-button-wrapper a:hover:where(:not(#oit-home-host *),[slot],[slot] *){ background: #e86b00; border-color:#e86b00; }
.single-oitproducts .oitproduct-layout:where(:not(#oit-home-host *),[slot],[slot] *){ display: block; }
.single-oitproducts .oitproduct-main-content:where(:not(#oit-home-host *),[slot],[slot] *){
  flex: none !important; width: 100%; min-width: 0;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  border-radius: 18px; padding: clamp(22px,3.5vw,44px);
}
.single-oitproducts .oitproduct-projects:where(:not(#oit-home-host *),[slot],[slot] *){
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  border-radius: 18px;
}
.single-oitproducts .oitproduct-project-item:where(:not(#oit-home-host *),[slot],[slot] *){
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
/* ===================== END REDESIGN ===================== */
