/****************************************************
   WSD – Werkstatt-Dokument (bereinigt & stabil)
****************************************************/

/* Container */
.wsd {
  position: relative;
}

/* ============================================
   1. Dokument-Box (Papier)
   ============================================ */
.wsd .solex-document {
  background: #fff;
  border: 2px solid #626262;
  border-radius: 12px;
  padding: 25px;
  margin-top: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  font-family: 'Courier New', monospace;
  color: #000;
}

/* ============================================
   2. Header
   ============================================ */
.wsd .solex-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.wsd .solex-logo {
  width: 90px;
  height: auto;
  flex-shrink: 0;
}

.wsd .solex-header-text h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #111;
  font-style: italic; /* leicht schräg */
}

.wsd .solex-header-text p {
  margin: 2px 0;
  font-size: 0.9rem;
}

/* ============================================
   3. Stempel
   ============================================ */
.wsd .solex-stamp {
  float: right;
  font-size: 0.85rem;
  text-align: center;
  border: 2px solid #900;
  color: #900;
  padding: 6px 10px;
  margin: 5px 0 10px 10px;
  font-weight: bold;
  transform: rotate(-3deg);
  background: rgba(255,255,255,0.85);
}

/* ============================================
   4. Dokument-Titel
   ============================================ */
.wsd .solex-center-title {
  text-align: center;
  font-weight: bold;
  margin: 20px 0;
  color: #222;
}

/* ============================================
   5. Inhalt (PRE – ohne linken Balken!)
   ============================================ */
.wsd .solex-document pre {
  background: #fdfdfd;
  padding: 15px;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow: hidden;
  color: #000;
  border: none !important;       /* Balken entfernt */
}

.wsd .solex-document pre.techblock {
  white-space: pre;          /* KEIN Umbruch */
  text-align: center;
  overflow-x: auto;          /* NIE hidden */
  overflow-y: visible;
}

/* ============================================
   6. Optional: linke Einzüge
   ============================================ */
.wsd .left {
  margin-left: 10px;
}

/* ============================================
   7. Boxed-Elemente (graue Container)
   ============================================ */
.wsd .boxed {
  background: #f7f7f7;
  border: 2px solid #626262;
  padding: 20px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.wsd .image-section {
  background: #ffffff;
}

/* ============================================
   8. Mobil-Layout
   ============================================ */
@media (max-width: 700px) {

  .wsd .solex-header {
    flex-direction: column;
    text-align: center;
  }

  .wsd .solex-logo {
    width: 120px;
  }

  .wsd .solex-stamp {
    float: none;
    transform: rotate(0deg);
    margin: 10px auto;
    display: inline-block;
  }
}

/* ============================================
   9. Druckoptimierung (A4)
   ============================================ */
@media print {

  @page { 
    size: A4 portrait;
    margin: 20mm;
  }

  body {
    background: white !important;
  }

  .wsd .solex-document {
    box-shadow: none !important;
    border: 2px solid #000;
    animation: none !important;
  }

  .wsd .solex-logo {
    width: 110px;
  }
}